Class AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
- com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder
-
- All Implemented Interfaces:
AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- AuthorizationPolicy.Rule.Destination.HttpHeaderMatch
public static final class AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder> implements AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
Specification of HTTP header match attributes.
Protobuf typegoogle.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
clear
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.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<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.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<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
getDefaultInstanceForType
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.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<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
setField
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.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<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
clearField
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
clearOneof
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
setRepeatedField
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.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<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
addRepeatedField
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.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<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
mergeFrom
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
mergeFrom
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder mergeFrom(AuthorizationPolicy.Rule.Destination.HttpHeaderMatch other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
mergeFrom
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.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<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
- Throws:
IOException
-
getTypeCase
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.TypeCase getTypeCase()
- Specified by:
getTypeCase
in interfaceAuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
-
clearType
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clearType()
-
hasRegexMatch
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];
- Specified by:
hasRegexMatch
in interfaceAuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
- Returns:
- Whether the regexMatch field is set.
-
getRegexMatch
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];
- Specified by:
getRegexMatch
in interfaceAuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
- Returns:
- The regexMatch.
-
getRegexMatchBytes
public com.google.protobuf.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];
- Specified by:
getRegexMatchBytes
in interfaceAuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
- Returns:
- The bytes for regexMatch.
-
setRegexMatch
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];
- Parameters:
value
- The regexMatch to set.- Returns:
- This builder for chaining.
-
clearRegexMatch
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];
- Returns:
- This builder for chaining.
-
setRegexMatchBytes
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setRegexMatchBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for regexMatch to set.- Returns:
- This builder for chaining.
-
getHeaderName
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];
- Specified by:
getHeaderName
in interfaceAuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
- Returns:
- The headerName.
-
getHeaderNameBytes
public com.google.protobuf.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];
- Specified by:
getHeaderNameBytes
in interfaceAuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
- Returns:
- The bytes for headerName.
-
setHeaderName
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];
- Parameters:
value
- The headerName to set.- Returns:
- This builder for chaining.
-
clearHeaderName
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];
- Returns:
- This builder for chaining.
-
setHeaderNameBytes
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setHeaderNameBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for headerName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
mergeUnknownFields
public final AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
-