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 typegoogle.api.BackendRule- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBackendRule.AuthenticationCasestatic classBackendRule.BuilderA backend rule provides configuration for an individual API element.static classBackendRule.PathTranslationPath 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
-
-
Field Summary
Fields Modifier and Type Field Description static intADDRESS_FIELD_NUMBERstatic intDEADLINE_FIELD_NUMBERstatic intDISABLE_AUTH_FIELD_NUMBERstatic intJWT_AUDIENCE_FIELD_NUMBERstatic intMIN_DEADLINE_FIELD_NUMBERstatic intOPERATION_DEADLINE_FIELD_NUMBERstatic intPATH_TRANSLATION_FIELD_NUMBERstatic intPROTOCOL_FIELD_NUMBERstatic intSELECTOR_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAddress()The address of the API backend.com.google.protobuf.ByteStringgetAddressBytes()The address of the API backend.BackendRule.AuthenticationCasegetAuthenticationCase()doublegetDeadline()The number of seconds to wait for a response from a request.static BackendRulegetDefaultInstance()BackendRulegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetDisableAuth()When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved.StringgetJwtAudience()The JWT audience is used when generating a JWT ID token for the backend.com.google.protobuf.ByteStringgetJwtAudienceBytes()The JWT audience is used when generating a JWT ID token for the backend.doublegetMinDeadline()Deprecated.google.api.BackendRule.min_deadline is deprecated.doublegetOperationDeadline()The number of seconds to wait for the completion of a long running operation.com.google.protobuf.Parser<BackendRule>getParserForType()BackendRule.PathTranslationgetPathTranslation().google.api.BackendRule.PathTranslation path_translation = 6;intgetPathTranslationValue().google.api.BackendRule.PathTranslation path_translation = 6;StringgetProtocol()The protocol used for sending a request to the backend.com.google.protobuf.ByteStringgetProtocolBytes()The protocol used for sending a request to the backend.StringgetSelector()Selects the methods to which this rule applies.com.google.protobuf.ByteStringgetSelectorBytes()Selects the methods to which this rule applies.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasDisableAuth()When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved.inthashCode()booleanhasJwtAudience()The JWT audience is used when generating a JWT ID token for the backend.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static BackendRule.BuildernewBuilder()static BackendRule.BuildernewBuilder(BackendRule prototype)BackendRule.BuildernewBuilderForType()protected BackendRule.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static BackendRuleparseDelimitedFrom(InputStream input)static BackendRuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackendRuleparseFrom(byte[] data)static BackendRuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackendRuleparseFrom(com.google.protobuf.ByteString data)static BackendRuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackendRuleparseFrom(com.google.protobuf.CodedInputStream input)static BackendRuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackendRuleparseFrom(InputStream input)static BackendRuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackendRuleparseFrom(ByteBuffer data)static BackendRuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<BackendRule>parser()BackendRule.BuildertoBuilder()voidwriteTo(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
-
-
-
-
Field Detail
-
SELECTOR_FIELD_NUMBER
public static final int SELECTOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ADDRESS_FIELD_NUMBER
public static final int ADDRESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEADLINE_FIELD_NUMBER
public static final int DEADLINE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_DEADLINE_FIELD_NUMBER
public static final int MIN_DEADLINE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPERATION_DEADLINE_FIELD_NUMBER
public static final int OPERATION_DEADLINE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PATH_TRANSLATION_FIELD_NUMBER
public static final int PATH_TRANSLATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
JWT_AUDIENCE_FIELD_NUMBER
public static final int JWT_AUDIENCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISABLE_AUTH_FIELD_NUMBER
public static final int DISABLE_AUTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROTOCOL_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getAuthenticationCase
public BackendRule.AuthenticationCase getAuthenticationCase()
- Specified by:
getAuthenticationCasein interfaceBackendRuleOrBuilder
-
getSelector
public String getSelector()
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;- Specified by:
getSelectorin 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:
getSelectorBytesin interfaceBackendRuleOrBuilder- Returns:
- The bytes for selector.
-
getAddress
public String 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:
getAddressin 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:
getAddressBytesin 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:
getDeadlinein interfaceBackendRuleOrBuilder- Returns:
- The deadline.
-
getMinDeadline
@Deprecated public double getMinDeadline()
Deprecated.google.api.BackendRule.min_deadline is deprecated. See google/api/backend.proto;l=123Deprecated, do not use.
double min_deadline = 4 [deprecated = true];- Specified by:
getMinDeadlinein 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:
getOperationDeadlinein interfaceBackendRuleOrBuilder- Returns:
- The operationDeadline.
-
getPathTranslationValue
public int getPathTranslationValue()
.google.api.BackendRule.PathTranslation path_translation = 6;- Specified by:
getPathTranslationValuein interfaceBackendRuleOrBuilder- Returns:
- The enum numeric value on the wire for pathTranslation.
-
getPathTranslation
public BackendRule.PathTranslation getPathTranslation()
.google.api.BackendRule.PathTranslation path_translation = 6;- Specified by:
getPathTranslationin 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:
hasJwtAudiencein interfaceBackendRuleOrBuilder- Returns:
- Whether the jwtAudience field is set.
-
getJwtAudience
public String 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:
getJwtAudiencein 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:
getJwtAudienceBytesin 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:
hasDisableAuthin 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:
getDisableAuthin interfaceBackendRuleOrBuilder- Returns:
- The disableAuth.
-
getProtocol
public String 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:
getProtocolin 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:
getProtocolBytesin interfaceBackendRuleOrBuilder- Returns:
- The bytes for protocol.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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
public static BackendRule parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BackendRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BackendRule parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BackendRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static BackendRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BackendRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public BackendRule.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static BackendRule.Builder newBuilder()
-
newBuilder
public static BackendRule.Builder newBuilder(BackendRule prototype)
-
toBuilder
public BackendRule.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BackendRule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static BackendRule getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<BackendRule> parser()
-
getParserForType
public com.google.protobuf.Parser<BackendRule> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public BackendRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-