Package com.google.api
Class MethodSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>
com.google.api.MethodSettings.Builder
- All Implemented Interfaces:
MethodSettingsOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- MethodSettings
public static final class MethodSettings.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>
implements MethodSettingsOrBuilder
Describes the generator configuration for a method.Protobuf type
google.api.MethodSettings
-
Method Summary
Modifier and TypeMethodDescriptionaddAllAutoPopulatedFields
(Iterable<String> values) List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format.addAutoPopulatedFields
(String value) List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format.addAutoPopulatedFieldsBytes
(com.google.protobuf.ByteString value) List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Describes settings to use for long-running operations when generating API methods for RPCs.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The fully qualified name of the method, for which the options below apply.clone()
getAutoPopulatedFields
(int index) List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format.com.google.protobuf.ByteString
getAutoPopulatedFieldsBytes
(int index) List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format.int
List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format.com.google.protobuf.ProtocolStringList
List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Describes settings to use for long-running operations when generating API methods for RPCs.Describes settings to use for long-running operations when generating API methods for RPCs.Describes settings to use for long-running operations when generating API methods for RPCs.The fully qualified name of the method, for which the options below apply.com.google.protobuf.ByteString
The fully qualified name of the method, for which the options below apply.boolean
Describes settings to use for long-running operations when generating API methods for RPCs.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(MethodSettings other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) Describes settings to use for long-running operations when generating API methods for RPCs.final MethodSettings.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setAutoPopulatedFields
(int index, String value) List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format.Describes settings to use for long-running operations when generating API methods for RPCs.setLongRunning
(MethodSettings.LongRunning.Builder builderForValue) Describes settings to use for long-running operations when generating API methods for RPCs.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSelector
(String value) The fully qualified name of the method, for which the options below apply.setSelectorBytes
(com.google.protobuf.ByteString value) The fully qualified name of the method, for which the options below apply.final MethodSettings.Builder
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, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.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<MethodSettings.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.GeneratedMessageV3.Builder<MethodSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.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<MethodSettings.Builder>
-
setField
public MethodSettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>
-
setRepeatedField
public MethodSettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>
-
addRepeatedField
public MethodSettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MethodSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>
-
mergeFrom
public MethodSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<MethodSettings.Builder>
- Throws:
IOException
-
getSelector
The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options.
string selector = 1;
- Specified by:
getSelector
in interfaceMethodSettingsOrBuilder
- Returns:
- The selector.
-
getSelectorBytes
public com.google.protobuf.ByteString getSelectorBytes()The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options.
string selector = 1;
- Specified by:
getSelectorBytes
in interfaceMethodSettingsOrBuilder
- Returns:
- The bytes for selector.
-
setSelector
The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options.
string selector = 1;
- Parameters:
value
- The selector to set.- Returns:
- This builder for chaining.
-
clearSelector
The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options.
string selector = 1;
- Returns:
- This builder for chaining.
-
setSelectorBytes
The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options.
string selector = 1;
- Parameters:
value
- The bytes for selector to set.- Returns:
- This builder for chaining.
-
hasLongRunning
public boolean hasLongRunning()Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes
.google.api.MethodSettings.LongRunning long_running = 2;
- Specified by:
hasLongRunning
in interfaceMethodSettingsOrBuilder
- Returns:
- Whether the longRunning field is set.
-
getLongRunning
Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes
.google.api.MethodSettings.LongRunning long_running = 2;
- Specified by:
getLongRunning
in interfaceMethodSettingsOrBuilder
- Returns:
- The longRunning.
-
setLongRunning
Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes
.google.api.MethodSettings.LongRunning long_running = 2;
-
setLongRunning
Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes
.google.api.MethodSettings.LongRunning long_running = 2;
-
mergeLongRunning
Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes
.google.api.MethodSettings.LongRunning long_running = 2;
-
clearLongRunning
Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes
.google.api.MethodSettings.LongRunning long_running = 2;
-
getLongRunningBuilder
Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes
.google.api.MethodSettings.LongRunning long_running = 2;
-
getLongRunningOrBuilder
Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes
.google.api.MethodSettings.LongRunning long_running = 2;
- Specified by:
getLongRunningOrBuilder
in interfaceMethodSettingsOrBuilder
-
getAutoPopulatedFieldsList
public com.google.protobuf.ProtocolStringList getAutoPopulatedFieldsList()List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format. Currently supported format: UUID4. Example of a YAML configuration: publishing: method_settings: - selector: google.example.v1.ExampleService.CreateExample auto_populated_fields: - request_id
repeated string auto_populated_fields = 3;
- Specified by:
getAutoPopulatedFieldsList
in interfaceMethodSettingsOrBuilder
- Returns:
- A list containing the autoPopulatedFields.
-
getAutoPopulatedFieldsCount
public int getAutoPopulatedFieldsCount()List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format. Currently supported format: UUID4. Example of a YAML configuration: publishing: method_settings: - selector: google.example.v1.ExampleService.CreateExample auto_populated_fields: - request_id
repeated string auto_populated_fields = 3;
- Specified by:
getAutoPopulatedFieldsCount
in interfaceMethodSettingsOrBuilder
- Returns:
- The count of autoPopulatedFields.
-
getAutoPopulatedFields
List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format. Currently supported format: UUID4. Example of a YAML configuration: publishing: method_settings: - selector: google.example.v1.ExampleService.CreateExample auto_populated_fields: - request_id
repeated string auto_populated_fields = 3;
- Specified by:
getAutoPopulatedFields
in interfaceMethodSettingsOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The autoPopulatedFields at the given index.
-
getAutoPopulatedFieldsBytes
public com.google.protobuf.ByteString getAutoPopulatedFieldsBytes(int index) List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format. Currently supported format: UUID4. Example of a YAML configuration: publishing: method_settings: - selector: google.example.v1.ExampleService.CreateExample auto_populated_fields: - request_id
repeated string auto_populated_fields = 3;
- Specified by:
getAutoPopulatedFieldsBytes
in interfaceMethodSettingsOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the autoPopulatedFields at the given index.
-
setAutoPopulatedFields
List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format. Currently supported format: UUID4. Example of a YAML configuration: publishing: method_settings: - selector: google.example.v1.ExampleService.CreateExample auto_populated_fields: - request_id
repeated string auto_populated_fields = 3;
- Parameters:
index
- The index to set the value at.value
- The autoPopulatedFields to set.- Returns:
- This builder for chaining.
-
addAutoPopulatedFields
List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format. Currently supported format: UUID4. Example of a YAML configuration: publishing: method_settings: - selector: google.example.v1.ExampleService.CreateExample auto_populated_fields: - request_id
repeated string auto_populated_fields = 3;
- Parameters:
value
- The autoPopulatedFields to add.- Returns:
- This builder for chaining.
-
addAllAutoPopulatedFields
List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format. Currently supported format: UUID4. Example of a YAML configuration: publishing: method_settings: - selector: google.example.v1.ExampleService.CreateExample auto_populated_fields: - request_id
repeated string auto_populated_fields = 3;
- Parameters:
values
- The autoPopulatedFields to add.- Returns:
- This builder for chaining.
-
clearAutoPopulatedFields
List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format. Currently supported format: UUID4. Example of a YAML configuration: publishing: method_settings: - selector: google.example.v1.ExampleService.CreateExample auto_populated_fields: - request_id
repeated string auto_populated_fields = 3;
- Returns:
- This builder for chaining.
-
addAutoPopulatedFieldsBytes
List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format. Currently supported format: UUID4. Example of a YAML configuration: publishing: method_settings: - selector: google.example.v1.ExampleService.CreateExample auto_populated_fields: - request_id
repeated string auto_populated_fields = 3;
- Parameters:
value
- The bytes of the autoPopulatedFields to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final MethodSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>
-
mergeUnknownFields
public final MethodSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>
-