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()
boolean
The map between request protocol and the backend address.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 final com.google.protobuf.Descriptors.Descriptor
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
Deprecated.google.api.BackendRule.min_deadline is deprecated.Deprecated.double
The number of seconds to wait for the completion of a long running operation.Deprecated.int
The 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.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.boolean
When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved.boolean
The JWT audience is used when generating a JWT ID token for the backend.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
mergeFrom
(BackendRule other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) final BackendRule.Builder
mergeUnknownFields
(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.Builder
setUnknownFields
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
setField
public BackendRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
setRepeatedField
public BackendRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
addRepeatedField
public BackendRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BackendRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BackendRule.Builder>
- Throws:
IOException
-
getAuthenticationCase
- Specified by:
getAuthenticationCase
in 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:
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.
-
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:
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.
-
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:
getDeadline
in 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:
getMinDeadline
in 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:
getOperationDeadline
in 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:
getPathTranslationValue
in 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:
getPathTranslation
in 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:
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.
-
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:
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.
-
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:
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.
-
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:BackendRuleOrBuilder
The map between request protocol and the backend address.
map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;
- Specified by:
getOverridesByRequestProtocolCount
in interfaceBackendRuleOrBuilder
-
containsOverridesByRequestProtocol
The map between request protocol and the backend address.
map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;
- Specified by:
containsOverridesByRequestProtocol
in interfaceBackendRuleOrBuilder
-
getOverridesByRequestProtocol
Deprecated.UsegetOverridesByRequestProtocolMap()
instead.- Specified by:
getOverridesByRequestProtocol
in interfaceBackendRuleOrBuilder
-
getOverridesByRequestProtocolMap
The map between request protocol and the backend address.
map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;
- Specified by:
getOverridesByRequestProtocolMap
in interfaceBackendRuleOrBuilder
-
getOverridesByRequestProtocolOrDefault
The map between request protocol and the backend address.
map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;
- Specified by:
getOverridesByRequestProtocolOrDefault
in interfaceBackendRuleOrBuilder
-
getOverridesByRequestProtocolOrThrow
The map between request protocol and the backend address.
map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;
- Specified by:
getOverridesByRequestProtocolOrThrow
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-
mergeUnknownFields
public final BackendRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BackendRule.Builder>
-