public static final class AuthorizationPolicy.Rule.Destination.HttpHeaderMatch extends GeneratedMessageV3 implements AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
Specification of HTTP header match atrributes.
Protobuf type
google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch
Static Fields
public static final int HEADER_NAME_FIELD_NUMBER
Field Value
public static final int REGEX_MATCH_FIELD_NUMBER
Field Value
Static Methods
public static AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder newBuilder()
Returns
public static AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder newBuilder(AuthorizationPolicy.Rule.Destination.HttpHeaderMatch prototype)
Parameter
Returns
public static AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static AuthorizationPolicy.Rule.Destination.HttpHeaderMatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getDefaultInstanceForType()
Returns
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 Parser<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch> getParserForType()
Returns
Overrides
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 int getSerializedSize()
Returns
Overrides
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.TypeCase getTypeCase()
Returns
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder newBuilderForType()
Returns
protected AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions