public static final class AuthorizationPolicy.Rule.Destination.HttpHeaderMatch extends GeneratedMessage 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.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder newBuilderForType()
protected AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides