Class AuthorizationPolicy.Rule.Destination
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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.GeneratedMessageV3 implements AuthorizationPolicy.Rule.DestinationOrBuilder
Specification of traffic destination attributes.
Protobuf typegoogle.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthorizationPolicy.Rule.Destination.BuilderSpecification of traffic destination attributes.static classAuthorizationPolicy.Rule.Destination.HttpHeaderMatchSpecification of HTTP header match attributes.static interfaceAuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intHOSTS_FIELD_NUMBERstatic intHTTP_HEADER_MATCH_FIELD_NUMBERstatic intMETHODS_FIELD_NUMBERstatic intPORTS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static AuthorizationPolicy.Rule.DestinationgetDefaultInstance()AuthorizationPolicy.Rule.DestinationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetHosts(int index)Required.com.google.protobuf.ByteStringgetHostsBytes(int index)Required.intgetHostsCount()Required.com.google.protobuf.ProtocolStringListgetHostsList()Required.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchgetHttpHeaderMatch()Optional.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuildergetHttpHeaderMatchOrBuilder()Optional.StringgetMethods(int index)Optional.com.google.protobuf.ByteStringgetMethodsBytes(int index)Optional.intgetMethodsCount()Optional.com.google.protobuf.ProtocolStringListgetMethodsList()Optional.com.google.protobuf.Parser<AuthorizationPolicy.Rule.Destination>getParserForType()intgetPorts(int index)Required.intgetPortsCount()Required.List<Integer>getPortsList()Required.intgetSerializedSize()inthashCode()booleanhasHttpHeaderMatch()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static AuthorizationPolicy.Rule.Destination.BuildernewBuilder()static AuthorizationPolicy.Rule.Destination.BuildernewBuilder(AuthorizationPolicy.Rule.Destination prototype)AuthorizationPolicy.Rule.Destination.BuildernewBuilderForType()protected AuthorizationPolicy.Rule.Destination.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AuthorizationPolicy.Rule.DestinationparseDelimitedFrom(InputStream input)static AuthorizationPolicy.Rule.DestinationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AuthorizationPolicy.Rule.DestinationparseFrom(byte[] data)static AuthorizationPolicy.Rule.DestinationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AuthorizationPolicy.Rule.DestinationparseFrom(com.google.protobuf.ByteString data)static AuthorizationPolicy.Rule.DestinationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AuthorizationPolicy.Rule.DestinationparseFrom(com.google.protobuf.CodedInputStream input)static AuthorizationPolicy.Rule.DestinationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AuthorizationPolicy.Rule.DestinationparseFrom(InputStream input)static AuthorizationPolicy.Rule.DestinationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AuthorizationPolicy.Rule.DestinationparseFrom(ByteBuffer data)static AuthorizationPolicy.Rule.DestinationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AuthorizationPolicy.Rule.Destination>parser()AuthorizationPolicy.Rule.Destination.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
HOSTS_FIELD_NUMBER
public static final int HOSTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PORTS_FIELD_NUMBER
public static final int PORTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METHODS_FIELD_NUMBER
public static final int METHODS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HTTP_HEADER_MATCH_FIELD_NUMBER
public static final int HTTP_HEADER_MATCH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
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
public 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];- 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
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];- 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
public 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];- 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
public 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];- Specified by:
getHttpHeaderMatchin interfaceAuthorizationPolicy.Rule.DestinationOrBuilder- Returns:
- The httpHeaderMatch.
-
getHttpHeaderMatchOrBuilder
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.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.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
public static AuthorizationPolicy.Rule.Destination parseFrom(InputStream input) throws IOException
- 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
public AuthorizationPolicy.Rule.Destination.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AuthorizationPolicy.Rule.Destination.Builder newBuilder()
-
newBuilder
public static AuthorizationPolicy.Rule.Destination.Builder newBuilder(AuthorizationPolicy.Rule.Destination prototype)
-
toBuilder
public AuthorizationPolicy.Rule.Destination.Builder 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.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AuthorizationPolicy.Rule.Destination getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AuthorizationPolicy.Rule.Destination> parser()
-
getParserForType
public com.google.protobuf.Parser<AuthorizationPolicy.Rule.Destination> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AuthorizationPolicy.Rule.Destination getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-