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.v1.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.v1.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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
clear
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
getDefaultInstanceForType
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein 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:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin 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:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin 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:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin 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:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin 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:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>- Throws:
IOException
-
getTypeCase
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.TypeCase getTypeCase()
- Specified by:
getTypeCasein 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:
hasRegexMatchin 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:
getRegexMatchin 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:
getRegexMatchBytesin 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:
getHeaderNamein 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:
getHeaderNameBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin 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:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
-
-