Package com.google.api
Class SelectiveGapicGeneration.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
- com.google.api.SelectiveGapicGeneration.Builder
-
- All Implemented Interfaces:
SelectiveGapicGenerationOrBuilder
,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.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 typegoogle.api.SelectiveGapicGeneration
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectiveGapicGeneration.Builder
addAllMethods(java.lang.Iterable<java.lang.String> values)
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.SelectiveGapicGeneration.Builder
addMethods(java.lang.String value)
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.SelectiveGapicGeneration.Builder
addMethodsBytes(com.google.protobuf.ByteString value)
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.SelectiveGapicGeneration.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
SelectiveGapicGeneration
build()
SelectiveGapicGeneration
buildPartial()
SelectiveGapicGeneration.Builder
clear()
SelectiveGapicGeneration.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SelectiveGapicGeneration.Builder
clearMethods()
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.SelectiveGapicGeneration.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SelectiveGapicGeneration.Builder
clone()
SelectiveGapicGeneration
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getMethods(int index)
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.com.google.protobuf.ByteString
getMethodsBytes(int index)
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.int
getMethodsCount()
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.com.google.protobuf.ProtocolStringList
getMethodsList()
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SelectiveGapicGeneration.Builder
mergeFrom(SelectiveGapicGeneration other)
SelectiveGapicGeneration.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SelectiveGapicGeneration.Builder
mergeFrom(com.google.protobuf.Message other)
SelectiveGapicGeneration.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SelectiveGapicGeneration.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
SelectiveGapicGeneration.Builder
setMethods(int index, java.lang.String value)
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.SelectiveGapicGeneration.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
SelectiveGapicGeneration.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Overrides:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
clear
public SelectiveGapicGeneration.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<SelectiveGapicGeneration.Builder>
-
getDefaultInstanceForType
public SelectiveGapicGeneration getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SelectiveGapicGeneration build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SelectiveGapicGeneration buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SelectiveGapicGeneration.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
setField
public SelectiveGapicGeneration.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
clearField
public SelectiveGapicGeneration.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
clearOneof
public SelectiveGapicGeneration.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
setRepeatedField
public SelectiveGapicGeneration.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
addRepeatedField
public SelectiveGapicGeneration.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
mergeFrom
public SelectiveGapicGeneration.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SelectiveGapicGeneration.Builder>
-
mergeFrom
public SelectiveGapicGeneration.Builder mergeFrom(SelectiveGapicGeneration other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,SelectiveGapicGeneration.Builder>
-
mergeFrom
public SelectiveGapicGeneration.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SelectiveGapicGeneration.Builder>
- Throws:
java.io.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:
getMethodsList
in 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:
getMethodsCount
in interfaceSelectiveGapicGenerationOrBuilder
- Returns:
- The count of methods.
-
getMethods
public java.lang.String getMethods(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:
getMethods
in 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:
getMethodsBytes
in interfaceSelectiveGapicGenerationOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the methods at the given index.
-
setMethods
public SelectiveGapicGeneration.Builder setMethods(int index, java.lang.String value)
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
public SelectiveGapicGeneration.Builder addMethods(java.lang.String value)
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
public SelectiveGapicGeneration.Builder addAllMethods(java.lang.Iterable<java.lang.String> values)
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
public SelectiveGapicGeneration.Builder 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
public SelectiveGapicGeneration.Builder addMethodsBytes(com.google.protobuf.ByteString value)
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.
-
setUnknownFields
public final SelectiveGapicGeneration.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
mergeUnknownFields
public final SelectiveGapicGeneration.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
-
-