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