public static final class BackendRule.Builder extends GeneratedMessageV3.Builder<BackendRule.Builder> implements BackendRuleOrBuilder
A backend rule provides configuration for an individual API element.Protobuf type
google.api.BackendRule
Modifier and Type | Method and Description |
---|---|
BackendRule.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
BackendRule |
build() |
BackendRule |
buildPartial() |
BackendRule.Builder |
clear() |
BackendRule.Builder |
clearAddress()
The address of the API backend.
|
BackendRule.Builder |
clearAuthentication() |
BackendRule.Builder |
clearDeadline()
The number of seconds to wait for a response from a request.
|
BackendRule.Builder |
clearField(Descriptors.FieldDescriptor field) |
BackendRule.Builder |
clearJwtAudience()
The JWT audience is used when generating a JWT id token for the backend.
|
BackendRule.Builder |
clearMinDeadline()
Minimum deadline in seconds needed for this method.
|
BackendRule.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
BackendRule.Builder |
clearOperationDeadline()
The number of seconds to wait for the completion of a long running
operation.
|
BackendRule.Builder |
clearPathTranslation()
.google.api.BackendRule.PathTranslation path_translation = 6; |
BackendRule.Builder |
clearSelector()
Selects the methods to which this rule applies.
|
BackendRule.Builder |
clone() |
java.lang.String |
getAddress()
The address of the API backend.
|
ByteString |
getAddressBytes()
The address of the API backend.
|
BackendRule.AuthenticationCase |
getAuthenticationCase() |
double |
getDeadline()
The number of seconds to wait for a response from a request.
|
BackendRule |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getJwtAudience()
The JWT audience is used when generating a JWT id token for the backend.
|
ByteString |
getJwtAudienceBytes()
The JWT audience is used when generating a JWT id token for the backend.
|
double |
getMinDeadline()
Minimum deadline in seconds needed for this method.
|
double |
getOperationDeadline()
The number of seconds to wait for the completion of a long running
operation.
|
BackendRule.PathTranslation |
getPathTranslation()
.google.api.BackendRule.PathTranslation path_translation = 6; |
int |
getPathTranslationValue()
.google.api.BackendRule.PathTranslation path_translation = 6; |
java.lang.String |
getSelector()
Selects the methods to which this rule applies.
|
ByteString |
getSelectorBytes()
Selects the methods to which this rule applies.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BackendRule.Builder |
mergeFrom(BackendRule other) |
BackendRule.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
BackendRule.Builder |
mergeFrom(Message other) |
BackendRule.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
BackendRule.Builder |
setAddress(java.lang.String value)
The address of the API backend.
|
BackendRule.Builder |
setAddressBytes(ByteString value)
The address of the API backend.
|
BackendRule.Builder |
setDeadline(double value)
The number of seconds to wait for a response from a request.
|
BackendRule.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
BackendRule.Builder |
setJwtAudience(java.lang.String value)
The JWT audience is used when generating a JWT id token for the backend.
|
BackendRule.Builder |
setJwtAudienceBytes(ByteString value)
The JWT audience is used when generating a JWT id token for the backend.
|
BackendRule.Builder |
setMinDeadline(double value)
Minimum deadline in seconds needed for this method.
|
BackendRule.Builder |
setOperationDeadline(double value)
The number of seconds to wait for the completion of a long running
operation.
|
BackendRule.Builder |
setPathTranslation(BackendRule.PathTranslation value)
.google.api.BackendRule.PathTranslation path_translation = 6; |
BackendRule.Builder |
setPathTranslationValue(int value)
.google.api.BackendRule.PathTranslation path_translation = 6; |
BackendRule.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
BackendRule.Builder |
setSelector(java.lang.String value)
Selects the methods to which this rule applies.
|
BackendRule.Builder |
setSelectorBytes(ByteString value)
Selects the methods to which this rule applies.
|
BackendRule.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<BackendRule.Builder>
public BackendRule.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<BackendRule.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<BackendRule.Builder>
public BackendRule getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public BackendRule build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public BackendRule buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public BackendRule.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<BackendRule.Builder>
public BackendRule.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<BackendRule.Builder>
public BackendRule.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<BackendRule.Builder>
public BackendRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<BackendRule.Builder>
public BackendRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<BackendRule.Builder>
public BackendRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<BackendRule.Builder>
public BackendRule.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<BackendRule.Builder>
public BackendRule.Builder mergeFrom(BackendRule other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<BackendRule.Builder>
public BackendRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<BackendRule.Builder>
java.io.IOException
public BackendRule.AuthenticationCase getAuthenticationCase()
getAuthenticationCase
in interface BackendRuleOrBuilder
public BackendRule.Builder clearAuthentication()
public java.lang.String getSelector()
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;
getSelector
in interface BackendRuleOrBuilder
public ByteString getSelectorBytes()
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;
getSelectorBytes
in interface BackendRuleOrBuilder
public BackendRule.Builder setSelector(java.lang.String value)
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;
public BackendRule.Builder clearSelector()
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;
public BackendRule.Builder setSelectorBytes(ByteString value)
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;
public java.lang.String getAddress()
The address of the API backend.
string address = 2;
getAddress
in interface BackendRuleOrBuilder
public ByteString getAddressBytes()
The address of the API backend.
string address = 2;
getAddressBytes
in interface BackendRuleOrBuilder
public BackendRule.Builder setAddress(java.lang.String value)
The address of the API backend.
string address = 2;
public BackendRule.Builder clearAddress()
The address of the API backend.
string address = 2;
public BackendRule.Builder setAddressBytes(ByteString value)
The address of the API backend.
string address = 2;
public double getDeadline()
The number of seconds to wait for a response from a request. The default deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
double deadline = 3;
getDeadline
in interface BackendRuleOrBuilder
public BackendRule.Builder setDeadline(double value)
The number of seconds to wait for a response from a request. The default deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
double deadline = 3;
public BackendRule.Builder clearDeadline()
The number of seconds to wait for a response from a request. The default deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
double deadline = 3;
public double getMinDeadline()
Minimum deadline in seconds needed for this method. Calls having deadline value lower than this will be rejected.
double min_deadline = 4;
getMinDeadline
in interface BackendRuleOrBuilder
public BackendRule.Builder setMinDeadline(double value)
Minimum deadline in seconds needed for this method. Calls having deadline value lower than this will be rejected.
double min_deadline = 4;
public BackendRule.Builder clearMinDeadline()
Minimum deadline in seconds needed for this method. Calls having deadline value lower than this will be rejected.
double min_deadline = 4;
public double getOperationDeadline()
The number of seconds to wait for the completion of a long running operation. The default is no deadline.
double operation_deadline = 5;
getOperationDeadline
in interface BackendRuleOrBuilder
public BackendRule.Builder setOperationDeadline(double value)
The number of seconds to wait for the completion of a long running operation. The default is no deadline.
double operation_deadline = 5;
public BackendRule.Builder clearOperationDeadline()
The number of seconds to wait for the completion of a long running operation. The default is no deadline.
double operation_deadline = 5;
public int getPathTranslationValue()
.google.api.BackendRule.PathTranslation path_translation = 6;
getPathTranslationValue
in interface BackendRuleOrBuilder
public BackendRule.Builder setPathTranslationValue(int value)
.google.api.BackendRule.PathTranslation path_translation = 6;
public BackendRule.PathTranslation getPathTranslation()
.google.api.BackendRule.PathTranslation path_translation = 6;
getPathTranslation
in interface BackendRuleOrBuilder
public BackendRule.Builder setPathTranslation(BackendRule.PathTranslation value)
.google.api.BackendRule.PathTranslation path_translation = 6;
public BackendRule.Builder clearPathTranslation()
.google.api.BackendRule.PathTranslation path_translation = 6;
public java.lang.String getJwtAudience()
The JWT audience is used when generating a JWT id token for the backend.
string jwt_audience = 7;
getJwtAudience
in interface BackendRuleOrBuilder
public ByteString getJwtAudienceBytes()
The JWT audience is used when generating a JWT id token for the backend.
string jwt_audience = 7;
getJwtAudienceBytes
in interface BackendRuleOrBuilder
public BackendRule.Builder setJwtAudience(java.lang.String value)
The JWT audience is used when generating a JWT id token for the backend.
string jwt_audience = 7;
public BackendRule.Builder clearJwtAudience()
The JWT audience is used when generating a JWT id token for the backend.
string jwt_audience = 7;
public BackendRule.Builder setJwtAudienceBytes(ByteString value)
The JWT audience is used when generating a JWT id token for the backend.
string jwt_audience = 7;
public final BackendRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<BackendRule.Builder>
public final BackendRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<BackendRule.Builder>