public static final class AuthorizationPolicy.Rule.Destination.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.Builder> implements AuthorizationPolicy.Rule.DestinationOrBuilder
Specification of traffic destination attributes.Protobuf type
google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.Builder>public AuthorizationPolicy.Rule.Destination.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.Builder>public AuthorizationPolicy.Rule.Destination getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AuthorizationPolicy.Rule.Destination build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AuthorizationPolicy.Rule.Destination buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AuthorizationPolicy.Rule.Destination.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.Builder>public AuthorizationPolicy.Rule.Destination.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.Builder>public AuthorizationPolicy.Rule.Destination.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.Builder>public AuthorizationPolicy.Rule.Destination.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.Builder>public AuthorizationPolicy.Rule.Destination.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.Builder>public AuthorizationPolicy.Rule.Destination.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.Builder>public AuthorizationPolicy.Rule.Destination.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AuthorizationPolicy.Rule.Destination.Builder>public AuthorizationPolicy.Rule.Destination.Builder mergeFrom(AuthorizationPolicy.Rule.Destination other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.Builder>public AuthorizationPolicy.Rule.Destination.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AuthorizationPolicy.Rule.Destination.Builder>IOExceptionpublic com.google.protobuf.ProtocolStringList getHostsList()
Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.*") or a suffix match (example "*.myorg.com") or a presence (any) match "*".
repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];getHostsList in interface AuthorizationPolicy.Rule.DestinationOrBuilderpublic int getHostsCount()
Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.*") or a suffix match (example "*.myorg.com") or a presence (any) match "*".
repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];getHostsCount in interface AuthorizationPolicy.Rule.DestinationOrBuilderpublic String getHosts(int index)
Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.*") or a suffix match (example "*.myorg.com") or a presence (any) match "*".
repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];getHosts in interface AuthorizationPolicy.Rule.DestinationOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getHostsBytes(int index)
Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.*") or a suffix match (example "*.myorg.com") or a presence (any) match "*".
repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];getHostsBytes in interface AuthorizationPolicy.Rule.DestinationOrBuilderindex - The index of the value to return.public AuthorizationPolicy.Rule.Destination.Builder setHosts(int index, String value)
Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.*") or a suffix match (example "*.myorg.com") or a presence (any) match "*".
repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];index - The index to set the value at.value - The hosts to set.public AuthorizationPolicy.Rule.Destination.Builder addHosts(String value)
Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.*") or a suffix match (example "*.myorg.com") or a presence (any) match "*".
repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];value - The hosts to add.public AuthorizationPolicy.Rule.Destination.Builder addAllHosts(Iterable<String> values)
Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.*") or a suffix match (example "*.myorg.com") or a presence (any) match "*".
repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];values - The hosts to add.public AuthorizationPolicy.Rule.Destination.Builder clearHosts()
Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.*") or a suffix match (example "*.myorg.com") or a presence (any) match "*".
repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];public AuthorizationPolicy.Rule.Destination.Builder addHostsBytes(com.google.protobuf.ByteString value)
Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.*") or a suffix match (example "*.myorg.com") or a presence (any) match "*".
repeated string hosts = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes of the hosts to add.public List<Integer> getPortsList()
Required. List of destination ports to match. At least one port should match.
repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];getPortsList in interface AuthorizationPolicy.Rule.DestinationOrBuilderpublic int getPortsCount()
Required. List of destination ports to match. At least one port should match.
repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];getPortsCount in interface AuthorizationPolicy.Rule.DestinationOrBuilderpublic int getPorts(int index)
Required. List of destination ports to match. At least one port should match.
repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];getPorts in interface AuthorizationPolicy.Rule.DestinationOrBuilderindex - The index of the element to return.public AuthorizationPolicy.Rule.Destination.Builder setPorts(int index, int value)
Required. List of destination ports to match. At least one port should match.
repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];index - The index to set the value at.value - The ports to set.public AuthorizationPolicy.Rule.Destination.Builder addPorts(int value)
Required. List of destination ports to match. At least one port should match.
repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];value - The ports to add.public AuthorizationPolicy.Rule.Destination.Builder addAllPorts(Iterable<? extends Integer> values)
Required. List of destination ports to match. At least one port should match.
repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];values - The ports to add.public AuthorizationPolicy.Rule.Destination.Builder clearPorts()
Required. List of destination ports to match. At least one port should match.
repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];public com.google.protobuf.ProtocolStringList getMethodsList()
Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.
repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];getMethodsList in interface AuthorizationPolicy.Rule.DestinationOrBuilderpublic int getMethodsCount()
Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.
repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];getMethodsCount in interface AuthorizationPolicy.Rule.DestinationOrBuilderpublic String getMethods(int index)
Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.
repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];getMethods in interface AuthorizationPolicy.Rule.DestinationOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getMethodsBytes(int index)
Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.
repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];getMethodsBytes in interface AuthorizationPolicy.Rule.DestinationOrBuilderindex - The index of the value to return.public AuthorizationPolicy.Rule.Destination.Builder setMethods(int index, String value)
Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.
repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];index - The index to set the value at.value - The methods to set.public AuthorizationPolicy.Rule.Destination.Builder addMethods(String value)
Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.
repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];value - The methods to add.public AuthorizationPolicy.Rule.Destination.Builder addAllMethods(Iterable<String> values)
Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.
repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];values - The methods to add.public AuthorizationPolicy.Rule.Destination.Builder clearMethods()
Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.
repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];public AuthorizationPolicy.Rule.Destination.Builder addMethodsBytes(com.google.protobuf.ByteString value)
Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.
repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL];value - The bytes of the methods to add.public boolean hasHttpHeaderMatch()
Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.
.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];
hasHttpHeaderMatch in interface AuthorizationPolicy.Rule.DestinationOrBuilderpublic AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getHttpHeaderMatch()
Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.
.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];
getHttpHeaderMatch in interface AuthorizationPolicy.Rule.DestinationOrBuilderpublic AuthorizationPolicy.Rule.Destination.Builder setHttpHeaderMatch(AuthorizationPolicy.Rule.Destination.HttpHeaderMatch value)
Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.
.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];
public AuthorizationPolicy.Rule.Destination.Builder setHttpHeaderMatch(AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder builderForValue)
Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.
.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];
public AuthorizationPolicy.Rule.Destination.Builder mergeHttpHeaderMatch(AuthorizationPolicy.Rule.Destination.HttpHeaderMatch value)
Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.
.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];
public AuthorizationPolicy.Rule.Destination.Builder clearHttpHeaderMatch()
Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.
.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder getHttpHeaderMatchBuilder()
Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.
.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];
public AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder getHttpHeaderMatchOrBuilder()
Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.
.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];
getHttpHeaderMatchOrBuilder in interface AuthorizationPolicy.Rule.DestinationOrBuilderpublic final AuthorizationPolicy.Rule.Destination.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.Builder>public final AuthorizationPolicy.Rule.Destination.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.Builder>Copyright © 2024 Google LLC. All rights reserved.