public static final class AuthorizationPolicy.Rule extends GeneratedMessageV3 implements AuthorizationPolicy.RuleOrBuilder
Specification of rules.
Protobuf type google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule
Static Fields
DESTINATIONS_FIELD_NUMBER
public static final int DESTINATIONS_FIELD_NUMBER
Field Value
SOURCES_FIELD_NUMBER
public static final int SOURCES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AuthorizationPolicy.Rule getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AuthorizationPolicy.Rule.Builder newBuilder()
Returns
newBuilder(AuthorizationPolicy.Rule prototype)
public static AuthorizationPolicy.Rule.Builder newBuilder(AuthorizationPolicy.Rule prototype)
Parameter
Returns
public static AuthorizationPolicy.Rule parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AuthorizationPolicy.Rule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AuthorizationPolicy.Rule parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AuthorizationPolicy.Rule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AuthorizationPolicy.Rule parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AuthorizationPolicy.Rule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AuthorizationPolicy.Rule parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AuthorizationPolicy.Rule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AuthorizationPolicy.Rule parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AuthorizationPolicy.Rule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AuthorizationPolicy.Rule parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AuthorizationPolicy.Rule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AuthorizationPolicy.Rule> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public AuthorizationPolicy.Rule getDefaultInstanceForType()
Returns
getDestinations(int index)
public AuthorizationPolicy.Rule.Destination getDestinations(int index)
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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getDestinationsCount()
public int getDestinationsCount()
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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
getDestinationsList()
public List<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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
getDestinationsOrBuilder(int index)
public AuthorizationPolicy.Rule.DestinationOrBuilder getDestinationsOrBuilder(int index)
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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getDestinationsOrBuilderList()
public List<? extends AuthorizationPolicy.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.v1beta1.AuthorizationPolicy.Rule.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
List<? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.DestinationOrBuilder> | |
getParserForType()
public Parser<AuthorizationPolicy.Rule> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSources(int index)
public AuthorizationPolicy.Rule.Source getSources(int index)
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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getSourcesCount()
public int getSourcesCount()
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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
getSourcesList()
public List<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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
getSourcesOrBuilder(int index)
public AuthorizationPolicy.Rule.SourceOrBuilder getSourcesOrBuilder(int index)
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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getSourcesOrBuilderList()
public List<? extends AuthorizationPolicy.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.v1beta1.AuthorizationPolicy.Rule.Source sources = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
List<? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceOrBuilder> | |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AuthorizationPolicy.Rule.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AuthorizationPolicy.Rule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AuthorizationPolicy.Rule.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions