Package com.google.api
Class BackendRule
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.api.BackendRule
- All Implemented Interfaces:
BackendRuleOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class BackendRule
extends com.google.protobuf.GeneratedMessageV3
implements BackendRuleOrBuilder
A backend rule provides configuration for an individual API element.Protobuf type
google.api.BackendRule
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static final class
A backend rule provides configuration for an individual API element.static enum
Path Translation specifies how to combine the backend address with the request path in order to produce the appropriate forwarding URL for the request.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,
BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The address of the API backend.com.google.protobuf.ByteString
The address of the API backend.double
The number of seconds to wait for a response from a request.static BackendRule
static final com.google.protobuf.Descriptors.Descriptor
boolean
When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved.The JWT audience is used when generating a JWT ID token for the backend.com.google.protobuf.ByteString
The JWT audience is used when generating a JWT ID token for the backend.double
Minimum deadline in seconds needed for this method.double
The number of seconds to wait for the completion of a long running operation.com.google.protobuf.Parser<BackendRule>
.google.api.BackendRule.PathTranslation path_translation = 6;
int
.google.api.BackendRule.PathTranslation path_translation = 6;
The protocol used for sending a request to the backend.com.google.protobuf.ByteString
The protocol used for sending a request to the backend.Selects the methods to which this rule applies.com.google.protobuf.ByteString
Selects the methods to which this rule applies.int
final com.google.protobuf.UnknownFieldSet
boolean
When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved.int
hashCode()
boolean
The JWT audience is used when generating a JWT ID token for the backend.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
static BackendRule.Builder
static BackendRule.Builder
newBuilder
(BackendRule prototype) protected BackendRule.Builder
newBuilderForType
(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected Object
newInstance
(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static BackendRule
parseDelimitedFrom
(InputStream input) static BackendRule
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BackendRule
parseFrom
(byte[] data) static BackendRule
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BackendRule
parseFrom
(com.google.protobuf.ByteString data) static BackendRule
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BackendRule
parseFrom
(com.google.protobuf.CodedInputStream input) static BackendRule
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BackendRule
parseFrom
(InputStream input) static BackendRule
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BackendRule
parseFrom
(ByteBuffer data) static BackendRule
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<BackendRule>
parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
SELECTOR_FIELD_NUMBER
public static final int SELECTOR_FIELD_NUMBER- See Also:
-
ADDRESS_FIELD_NUMBER
public static final int ADDRESS_FIELD_NUMBER- See Also:
-
DEADLINE_FIELD_NUMBER
public static final int DEADLINE_FIELD_NUMBER- See Also:
-
MIN_DEADLINE_FIELD_NUMBER
public static final int MIN_DEADLINE_FIELD_NUMBER- See Also:
-
OPERATION_DEADLINE_FIELD_NUMBER
public static final int OPERATION_DEADLINE_FIELD_NUMBER- See Also:
-
PATH_TRANSLATION_FIELD_NUMBER
public static final int PATH_TRANSLATION_FIELD_NUMBER- See Also:
-
JWT_AUDIENCE_FIELD_NUMBER
public static final int JWT_AUDIENCE_FIELD_NUMBER- See Also:
-
DISABLE_AUTH_FIELD_NUMBER
public static final int DISABLE_AUTH_FIELD_NUMBER- See Also:
-
PROTOCOL_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getAuthenticationCase
- Specified by:
getAuthenticationCase
in interfaceBackendRuleOrBuilder
-
getSelector
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;
- Specified by:
getSelector
in interfaceBackendRuleOrBuilder
- Returns:
- The selector.
-
getSelectorBytes
public com.google.protobuf.ByteString getSelectorBytes()Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;
- Specified by:
getSelectorBytes
in interfaceBackendRuleOrBuilder
- Returns:
- The bytes for selector.
-
getAddress
The address of the API backend. The scheme is used to determine the backend protocol and security. The following schemes are accepted: SCHEME PROTOCOL SECURITY http:// HTTP None https:// HTTP TLS grpc:// gRPC None grpcs:// gRPC TLS It is recommended to explicitly include a scheme. Leaving out the scheme may cause constrasting behaviors across platforms. If the port is unspecified, the default is: - 80 for schemes without TLS - 443 for schemes with TLS For HTTP backends, use [protocol][google.api.BackendRule.protocol] to specify the protocol version.
string address = 2;
- Specified by:
getAddress
in interfaceBackendRuleOrBuilder
- Returns:
- The address.
-
getAddressBytes
public com.google.protobuf.ByteString getAddressBytes()The address of the API backend. The scheme is used to determine the backend protocol and security. The following schemes are accepted: SCHEME PROTOCOL SECURITY http:// HTTP None https:// HTTP TLS grpc:// gRPC None grpcs:// gRPC TLS It is recommended to explicitly include a scheme. Leaving out the scheme may cause constrasting behaviors across platforms. If the port is unspecified, the default is: - 80 for schemes without TLS - 443 for schemes with TLS For HTTP backends, use [protocol][google.api.BackendRule.protocol] to specify the protocol version.
string address = 2;
- Specified by:
getAddressBytes
in interfaceBackendRuleOrBuilder
- Returns:
- The bytes for address.
-
getDeadline
public double getDeadline()The number of seconds to wait for a response from a request. The default varies based on the request protocol and deployment environment.
double deadline = 3;
- Specified by:
getDeadline
in interfaceBackendRuleOrBuilder
- Returns:
- The deadline.
-
getMinDeadline
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;
- Specified by:
getMinDeadline
in interfaceBackendRuleOrBuilder
- Returns:
- The minDeadline.
-
getOperationDeadline
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;
- Specified by:
getOperationDeadline
in interfaceBackendRuleOrBuilder
- Returns:
- The operationDeadline.
-
getPathTranslationValue
public int getPathTranslationValue().google.api.BackendRule.PathTranslation path_translation = 6;
- Specified by:
getPathTranslationValue
in interfaceBackendRuleOrBuilder
- Returns:
- The enum numeric value on the wire for pathTranslation.
-
getPathTranslation
.google.api.BackendRule.PathTranslation path_translation = 6;
- Specified by:
getPathTranslation
in interfaceBackendRuleOrBuilder
- Returns:
- The pathTranslation.
-
hasJwtAudience
public boolean hasJwtAudience()The JWT audience is used when generating a JWT ID token for the backend. This ID token will be added in the HTTP "authorization" header, and sent to the backend.
string jwt_audience = 7;
- Specified by:
hasJwtAudience
in interfaceBackendRuleOrBuilder
- Returns:
- Whether the jwtAudience field is set.
-
getJwtAudience
The JWT audience is used when generating a JWT ID token for the backend. This ID token will be added in the HTTP "authorization" header, and sent to the backend.
string jwt_audience = 7;
- Specified by:
getJwtAudience
in interfaceBackendRuleOrBuilder
- Returns:
- The jwtAudience.
-
getJwtAudienceBytes
public com.google.protobuf.ByteString getJwtAudienceBytes()The JWT audience is used when generating a JWT ID token for the backend. This ID token will be added in the HTTP "authorization" header, and sent to the backend.
string jwt_audience = 7;
- Specified by:
getJwtAudienceBytes
in interfaceBackendRuleOrBuilder
- Returns:
- The bytes for jwtAudience.
-
hasDisableAuth
public boolean hasDisableAuth()When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved. If the header is used to carry the original token and is expected by the backend, this field must be set to true to preserve the header.
bool disable_auth = 8;
- Specified by:
hasDisableAuth
in interfaceBackendRuleOrBuilder
- Returns:
- Whether the disableAuth field is set.
-
getDisableAuth
public boolean getDisableAuth()When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved. If the header is used to carry the original token and is expected by the backend, this field must be set to true to preserve the header.
bool disable_auth = 8;
- Specified by:
getDisableAuth
in interfaceBackendRuleOrBuilder
- Returns:
- The disableAuth.
-
getProtocol
The protocol used for sending a request to the backend. The supported values are "http/1.1" and "h2". The default value is inferred from the scheme in the [address][google.api.BackendRule.address] field: SCHEME PROTOCOL http:// http/1.1 https:// http/1.1 grpc:// h2 grpcs:// h2 For secure HTTP backends (https://) that support HTTP/2, set this field to "h2" for improved performance. Configuring this field to non-default values is only supported for secure HTTP backends. This field will be ignored for all other backends. See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values.
string protocol = 9;
- Specified by:
getProtocol
in interfaceBackendRuleOrBuilder
- Returns:
- The protocol.
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()The protocol used for sending a request to the backend. The supported values are "http/1.1" and "h2". The default value is inferred from the scheme in the [address][google.api.BackendRule.address] field: SCHEME PROTOCOL http:// http/1.1 https:// http/1.1 grpc:// h2 grpcs:// h2 For secure HTTP backends (https://) that support HTTP/2, set this field to "h2" for improved performance. Configuring this field to non-default values is only supported for secure HTTP backends. This field will be ignored for all other backends. See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values.
string protocol = 9;
- Specified by:
getProtocolBytes
in interfaceBackendRuleOrBuilder
- Returns:
- The bytes for protocol.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BackendRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BackendRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static BackendRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BackendRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BackendRule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-