Send feedback
Class MethodSettings (2.13.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.13.0 keyboard_arrow_down
public final class MethodSettings extends GeneratedMessageV3 implements MethodSettingsOrBuilder
Describes the generator configuration for a method.
Protobuf type google.api.MethodSettings
Static Fields
LONG_RUNNING_FIELD_NUMBER
public static final int LONG_RUNNING_FIELD_NUMBER
Field Value
SELECTOR_FIELD_NUMBER
public static final int SELECTOR_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static MethodSettings getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static MethodSettings . Builder newBuilder ()
Returns
newBuilder(MethodSettings prototype)
public static MethodSettings . Builder newBuilder ( MethodSettings prototype )
Parameter
Returns
public static MethodSettings parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static MethodSettings parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static MethodSettings parseFrom ( byte [] data )
Parameter
Name Description data
byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MethodSettings parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static MethodSettings parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MethodSettings parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static MethodSettings parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static MethodSettings parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static MethodSettings parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static MethodSettings parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static MethodSettings parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MethodSettings parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<MethodSettings> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getDefaultInstanceForType()
public MethodSettings getDefaultInstanceForType ()
Returns
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
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
getParserForType()
public Parser<MethodSettings> getParserForType ()
Returns
Overrides
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
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
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.
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public MethodSettings . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MethodSettings . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public MethodSettings . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
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-01-27 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-01-27 UTC."],[],[]]