publicstaticfinalclass AuthorizationPolicy.RuleextendsGeneratedMessageV3implementsAuthorizationPolicy.RuleOrBuilder
Specification of rules.
Protobuf type google.cloud.networksecurity.v1.AuthorizationPolicy.Rule
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
DESTINATIONS_FIELD_NUMBER
publicstaticfinalintDESTINATIONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SOURCES_FIELD_NUMBER
publicstaticfinalintSOURCES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticAuthorizationPolicy.RulegetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticAuthorizationPolicy.Rule.BuildernewBuilder()
newBuilder(AuthorizationPolicy.Rule prototype)
publicstaticAuthorizationPolicy.Rule.BuildernewBuilder(AuthorizationPolicy.Ruleprototype)
publicstaticAuthorizationPolicy.RuleparseDelimitedFrom(InputStreaminput)
publicstaticAuthorizationPolicy.RuleparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticAuthorizationPolicy.RuleparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticAuthorizationPolicy.RuleparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticAuthorizationPolicy.RuleparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticAuthorizationPolicy.RuleparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticAuthorizationPolicy.RuleparseFrom(CodedInputStreaminput)
publicstaticAuthorizationPolicy.RuleparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticAuthorizationPolicy.RuleparseFrom(InputStreaminput)
publicstaticAuthorizationPolicy.RuleparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticAuthorizationPolicy.RuleparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticAuthorizationPolicy.RuleparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<AuthorizationPolicy.Rule>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicAuthorizationPolicy.RulegetDefaultInstanceForType()
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 |
| Name |
Description |
index |
int
|
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 |
| Type |
Description |
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];
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 |
| Name |
Description |
index |
int
|
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 |
| Type |
Description |
List<? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.DestinationOrBuilder> |
getParserForType()
publicParser<AuthorizationPolicy.Rule>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
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 |
| Name |
Description |
index |
int
|
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 |
| Type |
Description |
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];
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 |
| Name |
Description |
index |
int
|
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 |
| Type |
Description |
List<? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.SourceOrBuilder> |
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicAuthorizationPolicy.Rule.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedAuthorizationPolicy.Rule.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicAuthorizationPolicy.Rule.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides