Class FirewallInfo
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.networkmanagement.v1.FirewallInfo
-
- All Implemented Interfaces:
FirewallInfoOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class FirewallInfo extends com.google.protobuf.GeneratedMessageV3 implements FirewallInfoOrBuilder
For display only. Metadata associated with a VPC firewall rule, an implied VPC firewall rule, or a hierarchical firewall policy rule.
Protobuf typegoogle.cloud.networkmanagement.v1.FirewallInfo
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FirewallInfo.Builder
For display only.static class
FirewallInfo.FirewallRuleType
The firewall rule's type.-
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 int
ACTION_FIELD_NUMBER
static int
DIRECTION_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
FIREWALL_RULE_TYPE_FIELD_NUMBER
static int
NETWORK_URI_FIELD_NUMBER
static int
POLICY_FIELD_NUMBER
static int
PRIORITY_FIELD_NUMBER
static int
TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER
static int
TARGET_TAGS_FIELD_NUMBER
static int
URI_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getAction()
Possible values: ALLOW, DENYcom.google.protobuf.ByteString
getActionBytes()
Possible values: ALLOW, DENYstatic FirewallInfo
getDefaultInstance()
FirewallInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDirection()
Possible values: INGRESS, EGRESScom.google.protobuf.ByteString
getDirectionBytes()
Possible values: INGRESS, EGRESSString
getDisplayName()
The display name of the VPC firewall rule.com.google.protobuf.ByteString
getDisplayNameBytes()
The display name of the VPC firewall rule.FirewallInfo.FirewallRuleType
getFirewallRuleType()
The firewall rule's type.int
getFirewallRuleTypeValue()
The firewall rule's type.String
getNetworkUri()
The URI of the VPC network that the firewall rule is associated with.com.google.protobuf.ByteString
getNetworkUriBytes()
The URI of the VPC network that the firewall rule is associated with.com.google.protobuf.Parser<FirewallInfo>
getParserForType()
String
getPolicy()
The hierarchical firewall policy that this rule is associated with.com.google.protobuf.ByteString
getPolicyBytes()
The hierarchical firewall policy that this rule is associated with.int
getPriority()
The priority of the firewall rule.int
getSerializedSize()
String
getTargetServiceAccounts(int index)
The target service accounts specified by the firewall rule.com.google.protobuf.ByteString
getTargetServiceAccountsBytes(int index)
The target service accounts specified by the firewall rule.int
getTargetServiceAccountsCount()
The target service accounts specified by the firewall rule.com.google.protobuf.ProtocolStringList
getTargetServiceAccountsList()
The target service accounts specified by the firewall rule.String
getTargetTags(int index)
The target tags defined by the VPC firewall rule.com.google.protobuf.ByteString
getTargetTagsBytes(int index)
The target tags defined by the VPC firewall rule.int
getTargetTagsCount()
The target tags defined by the VPC firewall rule.com.google.protobuf.ProtocolStringList
getTargetTagsList()
The target tags defined by the VPC firewall rule.String
getUri()
The URI of the VPC firewall rule.com.google.protobuf.ByteString
getUriBytes()
The URI of the VPC firewall rule.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static FirewallInfo.Builder
newBuilder()
static FirewallInfo.Builder
newBuilder(FirewallInfo prototype)
FirewallInfo.Builder
newBuilderForType()
protected FirewallInfo.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static FirewallInfo
parseDelimitedFrom(InputStream input)
static FirewallInfo
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static FirewallInfo
parseFrom(byte[] data)
static FirewallInfo
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static FirewallInfo
parseFrom(com.google.protobuf.ByteString data)
static FirewallInfo
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static FirewallInfo
parseFrom(com.google.protobuf.CodedInputStream input)
static FirewallInfo
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static FirewallInfo
parseFrom(InputStream input)
static FirewallInfo
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static FirewallInfo
parseFrom(ByteBuffer data)
static FirewallInfo
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<FirewallInfo>
parser()
FirewallInfo.Builder
toBuilder()
void
writeTo(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
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DIRECTION_FIELD_NUMBER
public static final int DIRECTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_URI_FIELD_NUMBER
public static final int NETWORK_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_TAGS_FIELD_NUMBER
public static final int TARGET_TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER
public static final int TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
POLICY_FIELD_NUMBER
public static final int POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FIREWALL_RULE_TYPE_FIELD_NUMBER
public static final int FIREWALL_RULE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getDisplayName
public String getDisplayName()
The display name of the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
string display_name = 1;
- Specified by:
getDisplayName
in interfaceFirewallInfoOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
The display name of the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
string display_name = 1;
- Specified by:
getDisplayNameBytes
in interfaceFirewallInfoOrBuilder
- Returns:
- The bytes for displayName.
-
getUri
public String getUri()
The URI of the VPC firewall rule. This field is not applicable to implied firewall rules or hierarchical firewall policy rules.
string uri = 2;
- Specified by:
getUri
in interfaceFirewallInfoOrBuilder
- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()
The URI of the VPC firewall rule. This field is not applicable to implied firewall rules or hierarchical firewall policy rules.
string uri = 2;
- Specified by:
getUriBytes
in interfaceFirewallInfoOrBuilder
- Returns:
- The bytes for uri.
-
getDirection
public String getDirection()
Possible values: INGRESS, EGRESS
string direction = 3;
- Specified by:
getDirection
in interfaceFirewallInfoOrBuilder
- Returns:
- The direction.
-
getDirectionBytes
public com.google.protobuf.ByteString getDirectionBytes()
Possible values: INGRESS, EGRESS
string direction = 3;
- Specified by:
getDirectionBytes
in interfaceFirewallInfoOrBuilder
- Returns:
- The bytes for direction.
-
getAction
public String getAction()
Possible values: ALLOW, DENY
string action = 4;
- Specified by:
getAction
in interfaceFirewallInfoOrBuilder
- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()
Possible values: ALLOW, DENY
string action = 4;
- Specified by:
getActionBytes
in interfaceFirewallInfoOrBuilder
- Returns:
- The bytes for action.
-
getPriority
public int getPriority()
The priority of the firewall rule.
int32 priority = 5;
- Specified by:
getPriority
in interfaceFirewallInfoOrBuilder
- Returns:
- The priority.
-
getNetworkUri
public String getNetworkUri()
The URI of the VPC network that the firewall rule is associated with. This field is not applicable to hierarchical firewall policy rules.
string network_uri = 6;
- Specified by:
getNetworkUri
in interfaceFirewallInfoOrBuilder
- Returns:
- The networkUri.
-
getNetworkUriBytes
public com.google.protobuf.ByteString getNetworkUriBytes()
The URI of the VPC network that the firewall rule is associated with. This field is not applicable to hierarchical firewall policy rules.
string network_uri = 6;
- Specified by:
getNetworkUriBytes
in interfaceFirewallInfoOrBuilder
- Returns:
- The bytes for networkUri.
-
getTargetTagsList
public com.google.protobuf.ProtocolStringList getTargetTagsList()
The target tags defined by the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
repeated string target_tags = 7;
- Specified by:
getTargetTagsList
in interfaceFirewallInfoOrBuilder
- Returns:
- A list containing the targetTags.
-
getTargetTagsCount
public int getTargetTagsCount()
The target tags defined by the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
repeated string target_tags = 7;
- Specified by:
getTargetTagsCount
in interfaceFirewallInfoOrBuilder
- Returns:
- The count of targetTags.
-
getTargetTags
public String getTargetTags(int index)
The target tags defined by the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
repeated string target_tags = 7;
- Specified by:
getTargetTags
in interfaceFirewallInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The targetTags at the given index.
-
getTargetTagsBytes
public com.google.protobuf.ByteString getTargetTagsBytes(int index)
The target tags defined by the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
repeated string target_tags = 7;
- Specified by:
getTargetTagsBytes
in interfaceFirewallInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the targetTags at the given index.
-
getTargetServiceAccountsList
public com.google.protobuf.ProtocolStringList getTargetServiceAccountsList()
The target service accounts specified by the firewall rule.
repeated string target_service_accounts = 8;
- Specified by:
getTargetServiceAccountsList
in interfaceFirewallInfoOrBuilder
- Returns:
- A list containing the targetServiceAccounts.
-
getTargetServiceAccountsCount
public int getTargetServiceAccountsCount()
The target service accounts specified by the firewall rule.
repeated string target_service_accounts = 8;
- Specified by:
getTargetServiceAccountsCount
in interfaceFirewallInfoOrBuilder
- Returns:
- The count of targetServiceAccounts.
-
getTargetServiceAccounts
public String getTargetServiceAccounts(int index)
The target service accounts specified by the firewall rule.
repeated string target_service_accounts = 8;
- Specified by:
getTargetServiceAccounts
in interfaceFirewallInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The targetServiceAccounts at the given index.
-
getTargetServiceAccountsBytes
public com.google.protobuf.ByteString getTargetServiceAccountsBytes(int index)
The target service accounts specified by the firewall rule.
repeated string target_service_accounts = 8;
- Specified by:
getTargetServiceAccountsBytes
in interfaceFirewallInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the targetServiceAccounts at the given index.
-
getPolicy
public String getPolicy()
The hierarchical firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules.
string policy = 9;
- Specified by:
getPolicy
in interfaceFirewallInfoOrBuilder
- Returns:
- The policy.
-
getPolicyBytes
public com.google.protobuf.ByteString getPolicyBytes()
The hierarchical firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules.
string policy = 9;
- Specified by:
getPolicyBytes
in interfaceFirewallInfoOrBuilder
- Returns:
- The bytes for policy.
-
getFirewallRuleTypeValue
public int getFirewallRuleTypeValue()
The firewall rule's type.
.google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
- Specified by:
getFirewallRuleTypeValue
in interfaceFirewallInfoOrBuilder
- Returns:
- The enum numeric value on the wire for firewallRuleType.
-
getFirewallRuleType
public FirewallInfo.FirewallRuleType getFirewallRuleType()
The firewall rule's type.
.google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
- Specified by:
getFirewallRuleType
in interfaceFirewallInfoOrBuilder
- Returns:
- The firewallRuleType.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static FirewallInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FirewallInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FirewallInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FirewallInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FirewallInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FirewallInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FirewallInfo parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static FirewallInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static FirewallInfo parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static FirewallInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static FirewallInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static FirewallInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public FirewallInfo.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static FirewallInfo.Builder newBuilder()
-
newBuilder
public static FirewallInfo.Builder newBuilder(FirewallInfo prototype)
-
toBuilder
public FirewallInfo.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FirewallInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static FirewallInfo getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<FirewallInfo> parser()
-
getParserForType
public com.google.protobuf.Parser<FirewallInfo> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public FirewallInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-