publicstaticfinalclass AuthorizationPolicy.Rule.DestinationextendsGeneratedMessageV3implementsAuthorizationPolicy.Rule.DestinationOrBuilder
Specification of traffic destination attributes.
Protobuf type
google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
HOSTS_FIELD_NUMBER
publicstaticfinalintHOSTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
publicstaticfinalintHTTP_HEADER_MATCH_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
METHODS_FIELD_NUMBER
publicstaticfinalintMETHODS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
PORTS_FIELD_NUMBER
publicstaticfinalintPORTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticAuthorizationPolicy.Rule.DestinationgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticAuthorizationPolicy.Rule.Destination.BuildernewBuilder()
newBuilder(AuthorizationPolicy.Rule.Destination prototype)
publicstaticAuthorizationPolicy.Rule.Destination.BuildernewBuilder(AuthorizationPolicy.Rule.Destinationprototype)
publicstaticAuthorizationPolicy.Rule.DestinationparseDelimitedFrom(InputStreaminput)
publicstaticAuthorizationPolicy.Rule.DestinationparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(CodedInputStreaminput)
publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(InputStreaminput)
publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticAuthorizationPolicy.Rule.DestinationparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<AuthorizationPolicy.Rule.Destination>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicAuthorizationPolicy.Rule.DestinationgetDefaultInstanceForType()
getHosts(int index)
publicStringgetHosts(intindex)
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];
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The hosts at the given index.
|
getHostsBytes(int index)
publicByteStringgetHostsBytes(intindex)
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];
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the hosts at the given index.
|
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];
| Returns |
| Type |
Description |
int |
The count of hosts.
|
getHostsList()
publicProtocolStringListgetHostsList()
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];
publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatchgetHttpHeaderMatch()
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.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];
publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuildergetHttpHeaderMatchOrBuilder()
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.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];
getMethods(int index)
publicStringgetMethods(intindex)
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];
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The methods at the given index.
|
getMethodsBytes(int index)
publicByteStringgetMethodsBytes(intindex)
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];
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the methods at the given index.
|
getMethodsCount()
publicintgetMethodsCount()
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];
| Returns |
| Type |
Description |
int |
The count of methods.
|
getMethodsList()
publicProtocolStringListgetMethodsList()
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];
getParserForType()
publicParser<AuthorizationPolicy.Rule.Destination>getParserForType()
Overrides
getPorts(int index)
publicintgetPorts(intindex)
Required. List of destination ports to match. At least one port should
match.
repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
int |
The ports at the given index.
|
getPortsCount()
Required. List of destination ports to match. At least one port should
match.
repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
int |
The count of ports.
|
getPortsList()
publicList<Integer>getPortsList()
Required. List of destination ports to match. At least one port should
match.
repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
List<Integer> |
A list containing the ports.
|
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
publicbooleanhasHttpHeaderMatch()
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.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the httpHeaderMatch field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicAuthorizationPolicy.Rule.Destination.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedAuthorizationPolicy.Rule.Destination.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicAuthorizationPolicy.Rule.Destination.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides