Package com.google.api
Class MethodSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<MethodSettings,MethodSettings.Builder>
com.google.api.MethodSettings.Builder
- All Implemented Interfaces:
MethodSettingsOrBuilder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
- Enclosing class:
- MethodSettings
public static final class MethodSettings.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<MethodSettings,MethodSettings.Builder>
implements MethodSettingsOrBuilder
Describes the generator configuration for a method.Protobuf type
google.api.MethodSettings
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
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.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.The fully qualified name of the method, for which the options below apply.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.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.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.Describes settings to use for long-running operations when generating API methods for RPCs.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.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.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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. Example: publishing: method_settings: - selector: google.storage.control.v2.StorageControl.CreateFolder # method settings for CreateFolder...
string selector = 1 [json_name = "selector"];
- 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. Example: publishing: method_settings: - selector: google.storage.control.v2.StorageControl.CreateFolder # method settings for CreateFolder...
string selector = 1 [json_name = "selector"];
- 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. Example: publishing: method_settings: - selector: google.storage.control.v2.StorageControl.CreateFolder # method settings for CreateFolder...
string selector = 1 [json_name = "selector"];
- 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. Example: publishing: method_settings: - selector: google.storage.control.v2.StorageControl.CreateFolder # method settings for CreateFolder...
string selector = 1 [json_name = "selector"];
- 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. Example: publishing: method_settings: - selector: google.storage.control.v2.StorageControl.CreateFolder # method settings for CreateFolder...
string selector = 1 [json_name = "selector"];
- 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: 60s # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: 360s # 6 minutes total_poll_timeout: 54000s # 90 minutes
.google.api.MethodSettings.LongRunning long_running = 2 [json_name = "longRunning"];
- 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: 60s # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: 360s # 6 minutes total_poll_timeout: 54000s # 90 minutes
.google.api.MethodSettings.LongRunning long_running = 2 [json_name = "longRunning"];
- 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: 60s # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: 360s # 6 minutes total_poll_timeout: 54000s # 90 minutes
.google.api.MethodSettings.LongRunning long_running = 2 [json_name = "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: 60s # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: 360s # 6 minutes total_poll_timeout: 54000s # 90 minutes
.google.api.MethodSettings.LongRunning long_running = 2 [json_name = "longRunning"];
-
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: 60s # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: 360s # 6 minutes total_poll_timeout: 54000s # 90 minutes
.google.api.MethodSettings.LongRunning long_running = 2 [json_name = "longRunning"];
-
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: 60s # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: 360s # 6 minutes total_poll_timeout: 54000s # 90 minutes
.google.api.MethodSettings.LongRunning long_running = 2 [json_name = "longRunning"];
-
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 [json_name = "autoPopulatedFields"];
- 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 [json_name = "autoPopulatedFields"];
- 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 [json_name = "autoPopulatedFields"];
- 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 [json_name = "autoPopulatedFields"];
- 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 [json_name = "autoPopulatedFields"];
- 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 [json_name = "autoPopulatedFields"];
- 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 [json_name = "autoPopulatedFields"];
- 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 [json_name = "autoPopulatedFields"];
- 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 [json_name = "autoPopulatedFields"];
- Parameters:
value
- The bytes of the autoPopulatedFields to add.- Returns:
- This builder for chaining.
-