public static final class AuthorizationPolicy.Rule.Destination extends com.google.protobuf.GeneratedMessageV3 implements AuthorizationPolicy.Rule.DestinationOrBuilder
Specification of traffic destination attributes.Protobuf type
google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination| Modifier and Type | Class and Description |
|---|---|
static class |
AuthorizationPolicy.Rule.Destination.Builder
Specification of traffic destination attributes.
|
static class |
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch
Specification of HTTP header match attributes.
|
static interface |
AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
HOSTS_FIELD_NUMBER |
static int |
HTTP_HEADER_MATCH_FIELD_NUMBER |
static int |
METHODS_FIELD_NUMBER |
static int |
PORTS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static AuthorizationPolicy.Rule.Destination |
getDefaultInstance() |
AuthorizationPolicy.Rule.Destination |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getHosts(int index)
Required.
|
com.google.protobuf.ByteString |
getHostsBytes(int index)
Required.
|
int |
getHostsCount()
Required.
|
com.google.protobuf.ProtocolStringList |
getHostsList()
Required.
|
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch |
getHttpHeaderMatch()
Optional.
|
AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder |
getHttpHeaderMatchOrBuilder()
Optional.
|
String |
getMethods(int index)
Optional.
|
com.google.protobuf.ByteString |
getMethodsBytes(int index)
Optional.
|
int |
getMethodsCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getMethodsList()
Optional.
|
com.google.protobuf.Parser<AuthorizationPolicy.Rule.Destination> |
getParserForType() |
int |
getPorts(int index)
Required.
|
int |
getPortsCount()
Required.
|
List<Integer> |
getPortsList()
Required.
|
int |
getSerializedSize() |
int |
hashCode() |
boolean |
hasHttpHeaderMatch()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AuthorizationPolicy.Rule.Destination.Builder |
newBuilder() |
static AuthorizationPolicy.Rule.Destination.Builder |
newBuilder(AuthorizationPolicy.Rule.Destination prototype) |
AuthorizationPolicy.Rule.Destination.Builder |
newBuilderForType() |
protected AuthorizationPolicy.Rule.Destination.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AuthorizationPolicy.Rule.Destination |
parseDelimitedFrom(InputStream input) |
static AuthorizationPolicy.Rule.Destination |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AuthorizationPolicy.Rule.Destination |
parseFrom(byte[] data) |
static AuthorizationPolicy.Rule.Destination |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AuthorizationPolicy.Rule.Destination |
parseFrom(ByteBuffer data) |
static AuthorizationPolicy.Rule.Destination |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AuthorizationPolicy.Rule.Destination |
parseFrom(com.google.protobuf.ByteString data) |
static AuthorizationPolicy.Rule.Destination |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AuthorizationPolicy.Rule.Destination |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AuthorizationPolicy.Rule.Destination |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AuthorizationPolicy.Rule.Destination |
parseFrom(InputStream input) |
static AuthorizationPolicy.Rule.Destination |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AuthorizationPolicy.Rule.Destination> |
parser() |
AuthorizationPolicy.Rule.Destination.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int HOSTS_FIELD_NUMBER
public static final int PORTS_FIELD_NUMBER
public static final int METHODS_FIELD_NUMBER
public static final int HTTP_HEADER_MATCH_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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.v1beta1.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.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];
getHttpHeaderMatch in interface AuthorizationPolicy.Rule.DestinationOrBuilderpublic 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.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch http_header_match = 5 [(.google.api.field_behavior) = OPTIONAL];
getHttpHeaderMatchOrBuilder in interface AuthorizationPolicy.Rule.DestinationOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AuthorizationPolicy.Rule.Destination parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AuthorizationPolicy.Rule.Destination parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AuthorizationPolicy.Rule.Destination parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AuthorizationPolicy.Rule.Destination parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AuthorizationPolicy.Rule.Destination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AuthorizationPolicy.Rule.Destination parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AuthorizationPolicy.Rule.Destination parseFrom(InputStream input) throws IOException
IOExceptionpublic static AuthorizationPolicy.Rule.Destination parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AuthorizationPolicy.Rule.Destination parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AuthorizationPolicy.Rule.Destination parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AuthorizationPolicy.Rule.Destination parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AuthorizationPolicy.Rule.Destination parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AuthorizationPolicy.Rule.Destination.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AuthorizationPolicy.Rule.Destination.Builder newBuilder()
public static AuthorizationPolicy.Rule.Destination.Builder newBuilder(AuthorizationPolicy.Rule.Destination prototype)
public AuthorizationPolicy.Rule.Destination.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AuthorizationPolicy.Rule.Destination.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AuthorizationPolicy.Rule.Destination getDefaultInstance()
public static com.google.protobuf.Parser<AuthorizationPolicy.Rule.Destination> parser()
public com.google.protobuf.Parser<AuthorizationPolicy.Rule.Destination> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AuthorizationPolicy.Rule.Destination getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.