Package com.google.api
Class BackendRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
com.google.api.BackendRule.Builder
- All Implemented Interfaces:
BackendRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BackendRule
public static final class BackendRule.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
implements BackendRuleOrBuilder
A backend rule provides configuration for an individual API element.Protobuf type
google.api.BackendRule-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The address of the API backend.The number of seconds to wait for a response from a request.When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The JWT audience is used when generating a JWT ID token for the backend.Deprecated.google.api.BackendRule.min_deadline is deprecated.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The number of seconds to wait for the completion of a long running operation..google.api.BackendRule.PathTranslation path_translation = 6;The protocol used for sending a request to the backend.Selects the methods to which this rule applies.clone()booleanThe map between request protocol and the backend address.The address of the API backend.com.google.protobuf.ByteStringThe address of the API backend.doubleThe number of seconds to wait for a response from a request.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhen 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.ByteStringThe JWT audience is used when generating a JWT ID token for the backend.doubleDeprecated.google.api.BackendRule.min_deadline is deprecated.Deprecated.doubleThe number of seconds to wait for the completion of a long running operation.Deprecated.intThe map between request protocol and the backend address.The map between request protocol and the backend address.getOverridesByRequestProtocolOrDefault(String key, BackendRule defaultValue) The map between request protocol and the backend address.The map between request protocol and the backend address..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.ByteStringThe protocol used for sending a request to the backend.Selects the methods to which this rule applies.com.google.protobuf.ByteStringSelects the methods to which this rule applies.booleanWhen disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved.booleanThe JWT audience is used when generating a JWT ID token for the backend.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number) final booleanmergeFrom(BackendRule other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final BackendRule.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The map between request protocol and the backend address.putOverridesByRequestProtocol(String key, BackendRule value) The map between request protocol and the backend address.The map between request protocol and the backend address.setAddress(String value) The address of the API backend.setAddressBytes(com.google.protobuf.ByteString value) The address of the API backend.setDeadline(double value) The number of seconds to wait for a response from a request.setDisableAuth(boolean value) When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved.setJwtAudience(String value) The JWT audience is used when generating a JWT ID token for the backend.setJwtAudienceBytes(com.google.protobuf.ByteString value) The JWT audience is used when generating a JWT ID token for the backend.setMinDeadline(double value) Deprecated.google.api.BackendRule.min_deadline is deprecated.setOperationDeadline(double value) The number of seconds to wait for the completion of a long running operation..google.api.BackendRule.PathTranslation path_translation = 6;setPathTranslationValue(int value) .google.api.BackendRule.PathTranslation path_translation = 6;setProtocol(String value) The protocol used for sending a request to the backend.setProtocolBytes(com.google.protobuf.ByteString value) The protocol used for sending a request to the backend.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSelector(String value) Selects the methods to which this rule applies.setSelectorBytes(com.google.protobuf.ByteString value) Selects the methods to which this rule applies.final BackendRule.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
setField
public BackendRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
setRepeatedField
public BackendRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
addRepeatedField
public BackendRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackendRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
mergeFrom
public BackendRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackendRule.Builder>- Throws:
IOException
-
getAuthenticationCase
- Specified by:
getAuthenticationCasein interfaceBackendRuleOrBuilder
-
clearAuthentication
-
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.
-
setSelector
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;- Parameters:
value- The selector to set.- Returns:
- This builder for chaining.
-
clearSelector
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;- Returns:
- This builder for chaining.
-
setSelectorBytes
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;- Parameters:
value- The bytes for selector to set.- Returns:
- This builder for chaining.
-
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.
-
setAddress
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;- Parameters:
value- The address to set.- Returns:
- This builder for chaining.
-
clearAddress
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;- Returns:
- This builder for chaining.
-
setAddressBytes
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;- Parameters:
value- The bytes for address to set.- Returns:
- This builder for chaining.
-
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.
-
setDeadline
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;- Parameters:
value- The deadline to set.- Returns:
- This builder for chaining.
-
clearDeadline
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;- Returns:
- This builder for chaining.
-
getMinDeadline
Deprecated.google.api.BackendRule.min_deadline is deprecated. See google/api/backend.proto;l=124Deprecated, do not use.
double min_deadline = 4 [deprecated = true];- Specified by:
getMinDeadlinein interfaceBackendRuleOrBuilder- Returns:
- The minDeadline.
-
setMinDeadline
Deprecated.google.api.BackendRule.min_deadline is deprecated. See google/api/backend.proto;l=124Deprecated, do not use.
double min_deadline = 4 [deprecated = true];- Parameters:
value- The minDeadline to set.- Returns:
- This builder for chaining.
-
clearMinDeadline
Deprecated.google.api.BackendRule.min_deadline is deprecated. See google/api/backend.proto;l=124Deprecated, do not use.
double min_deadline = 4 [deprecated = true];- Returns:
- This builder for chaining.
-
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.
-
setOperationDeadline
The number of seconds to wait for the completion of a long running operation. The default is no deadline.
double operation_deadline = 5;- Parameters:
value- The operationDeadline to set.- Returns:
- This builder for chaining.
-
clearOperationDeadline
The number of seconds to wait for the completion of a long running operation. The default is no deadline.
double operation_deadline = 5;- Returns:
- This builder for chaining.
-
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.
-
setPathTranslationValue
.google.api.BackendRule.PathTranslation path_translation = 6;- Parameters:
value- The enum numeric value on the wire for pathTranslation to set.- Returns:
- This builder for chaining.
-
getPathTranslation
.google.api.BackendRule.PathTranslation path_translation = 6;- Specified by:
getPathTranslationin interfaceBackendRuleOrBuilder- Returns:
- The pathTranslation.
-
setPathTranslation
.google.api.BackendRule.PathTranslation path_translation = 6;- Parameters:
value- The pathTranslation to set.- Returns:
- This builder for chaining.
-
clearPathTranslation
.google.api.BackendRule.PathTranslation path_translation = 6;- Returns:
- This builder for chaining.
-
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
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.
-
setJwtAudience
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;- Parameters:
value- The jwtAudience to set.- Returns:
- This builder for chaining.
-
clearJwtAudience
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;- Returns:
- This builder for chaining.
-
setJwtAudienceBytes
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;- Parameters:
value- The bytes for jwtAudience to set.- Returns:
- This builder for chaining.
-
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.
-
setDisableAuth
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;- Parameters:
value- The disableAuth to set.- Returns:
- This builder for chaining.
-
clearDisableAuth
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;- Returns:
- This builder for chaining.
-
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.
-
setProtocol
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;- Parameters:
value- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
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;- Returns:
- This builder for chaining.
-
setProtocolBytes
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;- Parameters:
value- The bytes for protocol to set.- Returns:
- This builder for chaining.
-
getOverridesByRequestProtocolCount
public int getOverridesByRequestProtocolCount()Description copied from interface:BackendRuleOrBuilderThe map between request protocol and the backend address.
map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;- Specified by:
getOverridesByRequestProtocolCountin interfaceBackendRuleOrBuilder
-
containsOverridesByRequestProtocol
The map between request protocol and the backend address.
map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;- Specified by:
containsOverridesByRequestProtocolin interfaceBackendRuleOrBuilder
-
getOverridesByRequestProtocol
Deprecated.UsegetOverridesByRequestProtocolMap()instead.- Specified by:
getOverridesByRequestProtocolin interfaceBackendRuleOrBuilder
-
getOverridesByRequestProtocolMap
The map between request protocol and the backend address.
map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;- Specified by:
getOverridesByRequestProtocolMapin interfaceBackendRuleOrBuilder
-
getOverridesByRequestProtocolOrDefault
The map between request protocol and the backend address.
map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;- Specified by:
getOverridesByRequestProtocolOrDefaultin interfaceBackendRuleOrBuilder
-
getOverridesByRequestProtocolOrThrow
The map between request protocol and the backend address.
map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;- Specified by:
getOverridesByRequestProtocolOrThrowin interfaceBackendRuleOrBuilder
-
clearOverridesByRequestProtocol
-
removeOverridesByRequestProtocol
The map between request protocol and the backend address.
map<string, .google.api.BackendRule> overrides_by_request_protocol = 10; -
getMutableOverridesByRequestProtocol
Deprecated.Use alternate mutation accessors instead. -
putOverridesByRequestProtocol
The map between request protocol and the backend address.
map<string, .google.api.BackendRule> overrides_by_request_protocol = 10; -
putAllOverridesByRequestProtocol
The map between request protocol and the backend address.
map<string, .google.api.BackendRule> overrides_by_request_protocol = 10; -
setUnknownFields
public final BackendRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
mergeUnknownFields
public final BackendRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-