public static final class AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder extends GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder> implements AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
Specification of HTTP header match attributes.
Protobuf type
google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch build()
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch buildPartial()
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clear()
Overrides
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clearHeaderName()
Required. The name of the HTTP header to match. For matching
against the HTTP request's authority, use a headerMatch
with the header name ":authority". For matching a
request's method, use the headerName ":method".
string header_name = 1 [(.google.api.field_behavior) = REQUIRED];
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clearRegexMatch()
Required. The value of the header must match the regular expression
specified in regexMatch. For regular expression grammar,
please see: en.cppreference.com/w/cpp/regex/ecmascript
For matching against a port specified in the HTTP
request, use a headerMatch with headerName set to Host
and a regular expression that satisfies the RFC2616 Host
header's port specifier.
string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clearType()
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clone()
Overrides
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getHeaderName()
Required. The name of the HTTP header to match. For matching
against the HTTP request's authority, use a headerMatch
with the header name ":authority". For matching a
request's method, use the headerName ":method".
string header_name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
String | The headerName.
|
public ByteString getHeaderNameBytes()
Required. The name of the HTTP header to match. For matching
against the HTTP request's authority, use a headerMatch
with the header name ":authority". For matching a
request's method, use the headerName ":method".
string header_name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
ByteString | The bytes for headerName.
|
public String getRegexMatch()
Required. The value of the header must match the regular expression
specified in regexMatch. For regular expression grammar,
please see: en.cppreference.com/w/cpp/regex/ecmascript
For matching against a port specified in the HTTP
request, use a headerMatch with headerName set to Host
and a regular expression that satisfies the RFC2616 Host
header's port specifier.
string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
String | The regexMatch.
|
public ByteString getRegexMatchBytes()
Required. The value of the header must match the regular expression
specified in regexMatch. For regular expression grammar,
please see: en.cppreference.com/w/cpp/regex/ecmascript
For matching against a port specified in the HTTP
request, use a headerMatch with headerName set to Host
and a regular expression that satisfies the RFC2616 Host
header's port specifier.
string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
ByteString | The bytes for regexMatch.
|
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.TypeCase getTypeCase()
public boolean hasRegexMatch()
Required. The value of the header must match the regular expression
specified in regexMatch. For regular expression grammar,
please see: en.cppreference.com/w/cpp/regex/ecmascript
For matching against a port specified in the HTTP
request, use a headerMatch with headerName set to Host
and a regular expression that satisfies the RFC2616 Host
header's port specifier.
string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the regexMatch field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder mergeFrom(AuthorizationPolicy.Rule.Destination.HttpHeaderMatch other)
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setHeaderName(String value)
Required. The name of the HTTP header to match. For matching
against the HTTP request's authority, use a headerMatch
with the header name ":authority". For matching a
request's method, use the headerName ":method".
string header_name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | String
The headerName to set.
|
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setHeaderNameBytes(ByteString value)
Required. The name of the HTTP header to match. For matching
against the HTTP request's authority, use a headerMatch
with the header name ":authority". For matching a
request's method, use the headerName ":method".
string header_name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for headerName to set.
|
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setRegexMatch(String value)
Required. The value of the header must match the regular expression
specified in regexMatch. For regular expression grammar,
please see: en.cppreference.com/w/cpp/regex/ecmascript
For matching against a port specified in the HTTP
request, use a headerMatch with headerName set to Host
and a regular expression that satisfies the RFC2616 Host
header's port specifier.
string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | String
The regexMatch to set.
|
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setRegexMatchBytes(ByteString value)
Required. The value of the header must match the regular expression
specified in regexMatch. For regular expression grammar,
please see: en.cppreference.com/w/cpp/regex/ecmascript
For matching against a port specified in the HTTP
request, use a headerMatch with headerName set to Host
and a regular expression that satisfies the RFC2616 Host
header's port specifier.
string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for regexMatch to set.
|
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides