Class AuthorizationPolicy.Rule.Destination
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination
- All Implemented Interfaces:
AuthorizationPolicy.Rule.DestinationOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- AuthorizationPolicy.Rule
public static final class AuthorizationPolicy.Rule.Destination
extends com.google.protobuf.GeneratedMessage
implements AuthorizationPolicy.Rule.DestinationOrBuilder
Specification of traffic destination attributes.Protobuf type
google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecification of traffic destination attributes.static final classSpecification of HTTP header match attributes.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic final com.google.protobuf.Descriptors.DescriptorgetHosts(int index) Required.com.google.protobuf.ByteStringgetHostsBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.Optional.Optional.getMethods(int index) Optional.com.google.protobuf.ByteStringgetMethodsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.com.google.protobuf.Parser<AuthorizationPolicy.Rule.Destination>intgetPorts(int index) Required.intRequired.Required.intinthashCode()booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(AuthorizationPolicy.Rule.Destination prototype) newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AuthorizationPolicy.Rule.Destination>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
HOSTS_FIELD_NUMBER
public static final int HOSTS_FIELD_NUMBER- See Also:
-
PORTS_FIELD_NUMBER
public static final int PORTS_FIELD_NUMBER- See Also:
-
METHODS_FIELD_NUMBER
public static final int METHODS_FIELD_NUMBER- See Also:
-
HTTP_HEADER_MATCH_FIELD_NUMBER
public static final int HTTP_HEADER_MATCH_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getHostsList
public 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];- Specified by:
getHostsListin interfaceAuthorizationPolicy.Rule.DestinationOrBuilder- Returns:
- A list containing the hosts.
-
getHostsCount
public 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];- Specified by:
getHostsCountin interfaceAuthorizationPolicy.Rule.DestinationOrBuilder- Returns:
- The count of hosts.
-
getHosts
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];- Specified by:
getHostsin interfaceAuthorizationPolicy.Rule.DestinationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The hosts at the given index.
-
getHostsBytes
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];- Specified by:
getHostsBytesin interfaceAuthorizationPolicy.Rule.DestinationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the hosts at the given index.
-
getPortsList
Required. List of destination ports to match. At least one port should match.
repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPortsListin interfaceAuthorizationPolicy.Rule.DestinationOrBuilder- Returns:
- A list containing the ports.
-
getPortsCount
public int getPortsCount()Required. List of destination ports to match. At least one port should match.
repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPortsCountin interfaceAuthorizationPolicy.Rule.DestinationOrBuilder- Returns:
- The count of ports.
-
getPorts
public 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];- Specified by:
getPortsin interfaceAuthorizationPolicy.Rule.DestinationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The ports at the given index.
-
getMethodsList
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];- Specified by:
getMethodsListin interfaceAuthorizationPolicy.Rule.DestinationOrBuilder- Returns:
- A list containing the methods.
-
getMethodsCount
public 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];- Specified by:
getMethodsCountin interfaceAuthorizationPolicy.Rule.DestinationOrBuilder- Returns:
- The count of methods.
-
getMethods
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];- Specified by:
getMethodsin interfaceAuthorizationPolicy.Rule.DestinationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The methods at the given index.
-
getMethodsBytes
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];- Specified by:
getMethodsBytesin interfaceAuthorizationPolicy.Rule.DestinationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the methods at the given index.
-
hasHttpHeaderMatch
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];- Specified by:
hasHttpHeaderMatchin interfaceAuthorizationPolicy.Rule.DestinationOrBuilder- Returns:
- Whether the httpHeaderMatch field is set.
-
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];- Specified by:
getHttpHeaderMatchin interfaceAuthorizationPolicy.Rule.DestinationOrBuilder- Returns:
- The httpHeaderMatch.
-
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];- Specified by:
getHttpHeaderMatchOrBuilderin interfaceAuthorizationPolicy.Rule.DestinationOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AuthorizationPolicy.Rule.Destination parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthorizationPolicy.Rule.Destination parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthorizationPolicy.Rule.Destination parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthorizationPolicy.Rule.Destination parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthorizationPolicy.Rule.Destination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthorizationPolicy.Rule.Destination parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AuthorizationPolicy.Rule.Destination parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static AuthorizationPolicy.Rule.Destination parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static AuthorizationPolicy.Rule.Destination parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AuthorizationPolicy.Rule.Destination parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AuthorizationPolicy.Rule.Destination parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static AuthorizationPolicy.Rule.Destination.Builder newBuilder(AuthorizationPolicy.Rule.Destination prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AuthorizationPolicy.Rule.Destination.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-