Package com.google.api
Class SelectiveGapicGeneration.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
com.google.api.SelectiveGapicGeneration.Builder
- All Implemented Interfaces:
SelectiveGapicGenerationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SelectiveGapicGeneration
public static final class SelectiveGapicGeneration.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
implements SelectiveGapicGenerationOrBuilder
This message is used to configure the generation of a subset of the RPCs in a service for client libraries.Protobuf type
google.api.SelectiveGapicGeneration-
Method Summary
Modifier and TypeMethodDescriptionaddAllMethods(Iterable<String> values) An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.addMethods(String value) An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.addMethodsBytes(com.google.protobuf.ByteString value) An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Setting this to true indicates to the client generators that methods that would be excluded from the generation should instead be generated in a way that indicates these methods should not be consumed by end users.An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanSetting this to true indicates to the client generators that methods that would be excluded from the generation should instead be generated in a way that indicates these methods should not be consumed by end users.getMethods(int index) An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.com.google.protobuf.ByteStringgetMethodsBytes(int index) An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.intAn allowlist of the fully qualified names of RPCs that should be included on public client surfaces.com.google.protobuf.ProtocolStringListAn allowlist of the fully qualified names of RPCs that should be included on public client surfaces.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setGenerateOmittedAsInternal(boolean value) Setting this to true indicates to the client generators that methods that would be excluded from the generation should instead be generated in a way that indicates these methods should not be consumed by end users.setMethods(int index, String value) An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
setField
public SelectiveGapicGeneration.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
clearField
public SelectiveGapicGeneration.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
clearOneof
public SelectiveGapicGeneration.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
setRepeatedField
public SelectiveGapicGeneration.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
addRepeatedField
public SelectiveGapicGeneration.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SelectiveGapicGeneration.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
mergeFrom
public SelectiveGapicGeneration.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SelectiveGapicGeneration.Builder>- Throws:
IOException
-
getMethodsList
public com.google.protobuf.ProtocolStringList getMethodsList()An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
repeated string methods = 1;- Specified by:
getMethodsListin interfaceSelectiveGapicGenerationOrBuilder- Returns:
- A list containing the methods.
-
getMethodsCount
public int getMethodsCount()An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
repeated string methods = 1;- Specified by:
getMethodsCountin interfaceSelectiveGapicGenerationOrBuilder- Returns:
- The count of methods.
-
getMethods
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
repeated string methods = 1;- Specified by:
getMethodsin interfaceSelectiveGapicGenerationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The methods at the given index.
-
getMethodsBytes
public com.google.protobuf.ByteString getMethodsBytes(int index) An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
repeated string methods = 1;- Specified by:
getMethodsBytesin interfaceSelectiveGapicGenerationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the methods at the given index.
-
setMethods
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
repeated string methods = 1;- Parameters:
index- The index to set the value at.value- The methods to set.- Returns:
- This builder for chaining.
-
addMethods
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
repeated string methods = 1;- Parameters:
value- The methods to add.- Returns:
- This builder for chaining.
-
addAllMethods
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
repeated string methods = 1;- Parameters:
values- The methods to add.- Returns:
- This builder for chaining.
-
clearMethods
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
repeated string methods = 1;- Returns:
- This builder for chaining.
-
addMethodsBytes
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
repeated string methods = 1;- Parameters:
value- The bytes of the methods to add.- Returns:
- This builder for chaining.
-
getGenerateOmittedAsInternal
public boolean getGenerateOmittedAsInternal()Setting this to true indicates to the client generators that methods that would be excluded from the generation should instead be generated in a way that indicates these methods should not be consumed by end users. How this is expressed is up to individual language implementations to decide. Some examples may be: added annotations, obfuscated identifiers, or other language idiomatic patterns.
bool generate_omitted_as_internal = 2;- Specified by:
getGenerateOmittedAsInternalin interfaceSelectiveGapicGenerationOrBuilder- Returns:
- The generateOmittedAsInternal.
-
setGenerateOmittedAsInternal
Setting this to true indicates to the client generators that methods that would be excluded from the generation should instead be generated in a way that indicates these methods should not be consumed by end users. How this is expressed is up to individual language implementations to decide. Some examples may be: added annotations, obfuscated identifiers, or other language idiomatic patterns.
bool generate_omitted_as_internal = 2;- Parameters:
value- The generateOmittedAsInternal to set.- Returns:
- This builder for chaining.
-
clearGenerateOmittedAsInternal
Setting this to true indicates to the client generators that methods that would be excluded from the generation should instead be generated in a way that indicates these methods should not be consumed by end users. How this is expressed is up to individual language implementations to decide. Some examples may be: added annotations, obfuscated identifiers, or other language idiomatic patterns.
bool generate_omitted_as_internal = 2;- Returns:
- This builder for chaining.
-
setUnknownFields
public final SelectiveGapicGeneration.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
mergeUnknownFields
public final SelectiveGapicGeneration.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-