Send feedback
Class MethodSettings.Builder (2.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.12.0 keyboard_arrow_down
public static final class MethodSettings . Builder extends GeneratedMessageV3 . Builder<MethodSettings . Builder > implements MethodSettingsOrBuilder
Describes the generator configuration for a method.
Protobuf type google.api.MethodSettings
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MethodSettings . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public MethodSettings build ()
Returns
buildPartial()
public MethodSettings buildPartial ()
Returns
clear()
public MethodSettings . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public MethodSettings . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearLongRunning()
public MethodSettings . Builder 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_behavior:
selector: CreateAdDomain
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;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public MethodSettings . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearSelector()
public MethodSettings . Builder 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
clone()
public MethodSettings . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public MethodSettings getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getLongRunning()
public MethodSettings . LongRunning 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_behavior:
selector: CreateAdDomain
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;
Returns
getLongRunningBuilder()
public MethodSettings . LongRunning . Builder 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_behavior:
selector: CreateAdDomain
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;
Returns
getLongRunningOrBuilder()
public MethodSettings . LongRunningOrBuilder 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_behavior:
selector: CreateAdDomain
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;
Returns
getSelector()
public String 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;
Returns
Type Description String The selector.
getSelectorBytes()
public 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;
Returns
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_behavior:
selector: CreateAdDomain
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;
Returns
Type Description boolean Whether the longRunning field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(MethodSettings other)
public MethodSettings . Builder mergeFrom ( MethodSettings other )
Parameter
Returns
public MethodSettings . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MethodSettings . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeLongRunning(MethodSettings.LongRunning value)
public MethodSettings . Builder mergeLongRunning ( MethodSettings . LongRunning value )
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_behavior:
selector: CreateAdDomain
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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MethodSettings . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public MethodSettings . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setLongRunning(MethodSettings.LongRunning value)
public MethodSettings . Builder setLongRunning ( MethodSettings . LongRunning value )
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_behavior:
selector: CreateAdDomain
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;
Parameter
Returns
setLongRunning(MethodSettings.LongRunning.Builder builderForValue)
public MethodSettings . Builder setLongRunning ( MethodSettings . LongRunning . Builder builderForValue )
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_behavior:
selector: CreateAdDomain
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;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MethodSettings . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setSelector(String value)
public MethodSettings . Builder setSelector ( String value )
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;
Parameter
Name Description value String
The selector to set.
Returns
setSelectorBytes(ByteString value)
public MethodSettings . Builder setSelectorBytes ( ByteString value )
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;
Parameter
Name Description value ByteString
The bytes for selector to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final MethodSettings . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-06 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-06 UTC."],[],[]]