Class AuthorizationPolicy.Rule (0.63.0)

publicstaticfinalclassAuthorizationPolicy.RuleextendsGeneratedMessageV3implementsAuthorizationPolicy.RuleOrBuilder

Specification of rules.

Protobuf type google.cloud.networksecurity.v1.AuthorizationPolicy.Rule

Static Fields

DESTINATIONS_FIELD_NUMBER

publicstaticfinalintDESTINATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCES_FIELD_NUMBER

publicstaticfinalintSOURCES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticAuthorizationPolicy.RulegetDefaultInstance()
Returns
TypeDescription
AuthorizationPolicy.Rule

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticAuthorizationPolicy.Rule.BuildernewBuilder()
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder

newBuilder(AuthorizationPolicy.Rule prototype)

publicstaticAuthorizationPolicy.Rule.BuildernewBuilder(AuthorizationPolicy.Ruleprototype)
Parameter
NameDescription
prototypeAuthorizationPolicy.Rule
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder

parseDelimitedFrom(InputStream input)

publicstaticAuthorizationPolicy.RuleparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.RuleparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticAuthorizationPolicy.RuleparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.RuleparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticAuthorizationPolicy.RuleparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.RuleparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticAuthorizationPolicy.RuleparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.RuleparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticAuthorizationPolicy.RuleparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.RuleparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticAuthorizationPolicy.RuleparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticAuthorizationPolicy.RuleparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AuthorizationPolicy.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<AuthorizationPolicy.Rule>parser()
Returns
TypeDescription
Parser<Rule>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

publicAuthorizationPolicy.RulegetDefaultInstanceForType()
Returns
TypeDescription
AuthorizationPolicy.Rule

getDestinations(int index)

publicAuthorizationPolicy.Rule.DestinationgetDestinations(intindex)

Optional. List of attributes for the traffic destination. All of the destinations must match. A destination is a match if a request matches all the specified hosts, ports, methods and headers. If not set, the action specified in the 'action' field will be applied without any rule checks for the destination.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
AuthorizationPolicy.Rule.Destination

getDestinationsCount()

publicintgetDestinationsCount()

Optional. List of attributes for the traffic destination. All of the destinations must match. A destination is a match if a request matches all the specified hosts, ports, methods and headers. If not set, the action specified in the 'action' field will be applied without any rule checks for the destination.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getDestinationsList()

publicList<AuthorizationPolicy.Rule.Destination>getDestinationsList()

Optional. List of attributes for the traffic destination. All of the destinations must match. A destination is a match if a request matches all the specified hosts, ports, methods and headers. If not set, the action specified in the 'action' field will be applied without any rule checks for the destination.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Destination>

getDestinationsOrBuilder(int index)

publicAuthorizationPolicy.Rule.DestinationOrBuildergetDestinationsOrBuilder(intindex)

Optional. List of attributes for the traffic destination. All of the destinations must match. A destination is a match if a request matches all the specified hosts, ports, methods and headers. If not set, the action specified in the 'action' field will be applied without any rule checks for the destination.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
AuthorizationPolicy.Rule.DestinationOrBuilder

getDestinationsOrBuilderList()

publicList<?extendsAuthorizationPolicy.Rule.DestinationOrBuilder>getDestinationsOrBuilderList()

Optional. List of attributes for the traffic destination. All of the destinations must match. A destination is a match if a request matches all the specified hosts, ports, methods and headers. If not set, the action specified in the 'action' field will be applied without any rule checks for the destination.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder>

getParserForType()

publicParser<AuthorizationPolicy.Rule>getParserForType()
Returns
TypeDescription
Parser<Rule>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

getSources(int index)

publicAuthorizationPolicy.Rule.SourcegetSources(intindex)

Optional. List of attributes for the traffic source. All of the sources must match. A source is a match if both principals and ip_blocks match. If not set, the action specified in the 'action' field will be applied without any rule checks for the source.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
AuthorizationPolicy.Rule.Source

getSourcesCount()

publicintgetSourcesCount()

Optional. List of attributes for the traffic source. All of the sources must match. A source is a match if both principals and ip_blocks match. If not set, the action specified in the 'action' field will be applied without any rule checks for the source.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getSourcesList()

publicList<AuthorizationPolicy.Rule.Source>getSourcesList()

Optional. List of attributes for the traffic source. All of the sources must match. A source is a match if both principals and ip_blocks match. If not set, the action specified in the 'action' field will be applied without any rule checks for the source.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Source>

getSourcesOrBuilder(int index)

publicAuthorizationPolicy.Rule.SourceOrBuildergetSourcesOrBuilder(intindex)

Optional. List of attributes for the traffic source. All of the sources must match. A source is a match if both principals and ip_blocks match. If not set, the action specified in the 'action' field will be applied without any rule checks for the source.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
AuthorizationPolicy.Rule.SourceOrBuilder

getSourcesOrBuilderList()

publicList<?extendsAuthorizationPolicy.Rule.SourceOrBuilder>getSourcesOrBuilderList()

Optional. List of attributes for the traffic source. All of the sources must match. A source is a match if both principals and ip_blocks match. If not set, the action specified in the 'action' field will be applied without any rule checks for the source.

repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder>

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicAuthorizationPolicy.Rule.BuildernewBuilderForType()
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedAuthorizationPolicy.Rule.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

publicAuthorizationPolicy.Rule.BuildertoBuilder()
Returns
TypeDescription
AuthorizationPolicy.Rule.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException