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| Modifier and Type | Method and Description |
|---|---|
MethodSettings.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MethodSettings |
build() |
MethodSettings |
buildPartial() |
MethodSettings.Builder |
clear() |
MethodSettings.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
MethodSettings.Builder |
clearLongRunning()
Describes settings to use for long-running operations when generating
API methods for RPCs.
|
MethodSettings.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
MethodSettings.Builder |
clearSelector()
The fully qualified name of the method, for which the options below apply.
|
MethodSettings.Builder |
clone() |
MethodSettings |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
MethodSettings.LongRunning |
getLongRunning()
Describes settings to use for long-running operations when generating
API methods for RPCs.
|
MethodSettings.LongRunning.Builder |
getLongRunningBuilder()
Describes settings to use for long-running operations when generating
API methods for RPCs.
|
MethodSettings.LongRunningOrBuilder |
getLongRunningOrBuilder()
Describes settings to use for long-running operations when generating
API methods for RPCs.
|
String |
getSelector()
The fully qualified name of the method, for which the options below apply.
|
com.google.protobuf.ByteString |
getSelectorBytes()
The fully qualified name of the method, for which the options below apply.
|
boolean |
hasLongRunning()
Describes settings to use for long-running operations when generating
API methods for RPCs.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MethodSettings.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MethodSettings.Builder |
mergeFrom(com.google.protobuf.Message other) |
MethodSettings.Builder |
mergeFrom(MethodSettings other) |
MethodSettings.Builder |
mergeLongRunning(MethodSettings.LongRunning value)
Describes settings to use for long-running operations when generating
API methods for RPCs.
|
MethodSettings.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
MethodSettings.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MethodSettings.Builder |
setLongRunning(MethodSettings.LongRunning.Builder builderForValue)
Describes settings to use for long-running operations when generating
API methods for RPCs.
|
MethodSettings.Builder |
setLongRunning(MethodSettings.LongRunning value)
Describes settings to use for long-running operations when generating
API methods for RPCs.
|
MethodSettings.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
MethodSettings.Builder |
setSelector(String value)
The fully qualified name of the method, for which the options below apply.
|
MethodSettings.Builder |
setSelectorBytes(com.google.protobuf.ByteString value)
The fully qualified name of the method, for which the options below apply.
|
MethodSettings.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>public MethodSettings.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>public MethodSettings getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MethodSettings build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MethodSettings buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MethodSettings.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>public MethodSettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>public MethodSettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>public MethodSettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>public MethodSettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>public MethodSettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>public MethodSettings.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MethodSettings.Builder>public MethodSettings.Builder mergeFrom(MethodSettings other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>public MethodSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MethodSettings.Builder>IOExceptionpublic 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;getSelector in interface MethodSettingsOrBuilderpublic 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;getSelectorBytes in interface MethodSettingsOrBuilderpublic 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;value - The selector to set.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;public MethodSettings.Builder setSelectorBytes(com.google.protobuf.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;value - The bytes for selector to set.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;hasLongRunning in interface MethodSettingsOrBuilderpublic 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;getLongRunning in interface MethodSettingsOrBuilderpublic 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;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;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;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;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;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;getLongRunningOrBuilder in interface MethodSettingsOrBuilderpublic final MethodSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>public final MethodSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MethodSettings.Builder>Copyright © 2022 Google LLC. All rights reserved.