public static final class AuthorizationPolicy.Rule extends GeneratedMessageV3 implements AuthorizationPolicy.RuleOrBuilder
Specification of rules.
Protobuf type google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
DESTINATIONS_FIELD_NUMBER
public static final int DESTINATIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SOURCES_FIELD_NUMBER
public static final int SOURCES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static AuthorizationPolicy.Rule getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AuthorizationPolicy.Rule.Builder newBuilder()
newBuilder(AuthorizationPolicy.Rule prototype)
public static AuthorizationPolicy.Rule.Builder newBuilder(AuthorizationPolicy.Rule prototype)
public static AuthorizationPolicy.Rule parseDelimitedFrom(InputStream input)
public static AuthorizationPolicy.Rule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AuthorizationPolicy.Rule parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AuthorizationPolicy.Rule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AuthorizationPolicy.Rule parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AuthorizationPolicy.Rule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AuthorizationPolicy.Rule parseFrom(CodedInputStream input)
public static AuthorizationPolicy.Rule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AuthorizationPolicy.Rule parseFrom(InputStream input)
public static AuthorizationPolicy.Rule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AuthorizationPolicy.Rule parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AuthorizationPolicy.Rule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AuthorizationPolicy.Rule> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public AuthorizationPolicy.Rule getDefaultInstanceForType()
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
int | |
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];
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 |
---|
Name | Description |
index | int
|
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()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
int | |
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];
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 |
---|
Name | Description |
index | int
|
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()
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AuthorizationPolicy.Rule.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AuthorizationPolicy.Rule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public AuthorizationPolicy.Rule.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides