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 classFirewallInfo.BuilderFor display only.static classFirewallInfo.FirewallRuleTypeThe 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 intACTION_FIELD_NUMBERstatic intDIRECTION_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intFIREWALL_RULE_TYPE_FIELD_NUMBERstatic intNETWORK_URI_FIELD_NUMBERstatic intPOLICY_FIELD_NUMBERstatic intPRIORITY_FIELD_NUMBERstatic intTARGET_SERVICE_ACCOUNTS_FIELD_NUMBERstatic intTARGET_TAGS_FIELD_NUMBERstatic intURI_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAction()Possible values: ALLOW, DENYcom.google.protobuf.ByteStringgetActionBytes()Possible values: ALLOW, DENYstatic FirewallInfogetDefaultInstance()FirewallInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDirection()Possible values: INGRESS, EGRESScom.google.protobuf.ByteStringgetDirectionBytes()Possible values: INGRESS, EGRESSStringgetDisplayName()The display name of the VPC firewall rule.com.google.protobuf.ByteStringgetDisplayNameBytes()The display name of the VPC firewall rule.FirewallInfo.FirewallRuleTypegetFirewallRuleType()The firewall rule's type.intgetFirewallRuleTypeValue()The firewall rule's type.StringgetNetworkUri()The URI of the VPC network that the firewall rule is associated with.com.google.protobuf.ByteStringgetNetworkUriBytes()The URI of the VPC network that the firewall rule is associated with.com.google.protobuf.Parser<FirewallInfo>getParserForType()StringgetPolicy()The hierarchical firewall policy that this rule is associated with.com.google.protobuf.ByteStringgetPolicyBytes()The hierarchical firewall policy that this rule is associated with.intgetPriority()The priority of the firewall rule.intgetSerializedSize()StringgetTargetServiceAccounts(int index)The target service accounts specified by the firewall rule.com.google.protobuf.ByteStringgetTargetServiceAccountsBytes(int index)The target service accounts specified by the firewall rule.intgetTargetServiceAccountsCount()The target service accounts specified by the firewall rule.com.google.protobuf.ProtocolStringListgetTargetServiceAccountsList()The target service accounts specified by the firewall rule.StringgetTargetTags(int index)The target tags defined by the VPC firewall rule.com.google.protobuf.ByteStringgetTargetTagsBytes(int index)The target tags defined by the VPC firewall rule.intgetTargetTagsCount()The target tags defined by the VPC firewall rule.com.google.protobuf.ProtocolStringListgetTargetTagsList()The target tags defined by the VPC firewall rule.StringgetUri()The URI of the VPC firewall rule.com.google.protobuf.ByteStringgetUriBytes()The URI of the VPC firewall rule.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static FirewallInfo.BuildernewBuilder()static FirewallInfo.BuildernewBuilder(FirewallInfo prototype)FirewallInfo.BuildernewBuilderForType()protected FirewallInfo.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static FirewallInfoparseDelimitedFrom(InputStream input)static FirewallInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FirewallInfoparseFrom(byte[] data)static FirewallInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FirewallInfoparseFrom(com.google.protobuf.ByteString data)static FirewallInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FirewallInfoparseFrom(com.google.protobuf.CodedInputStream input)static FirewallInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FirewallInfoparseFrom(InputStream input)static FirewallInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FirewallInfoparseFrom(ByteBuffer data)static FirewallInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<FirewallInfo>parser()FirewallInfo.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
getDisplayNamein 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:
getDisplayNameBytesin 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:
getUriin 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:
getUriBytesin interfaceFirewallInfoOrBuilder- Returns:
- The bytes for uri.
-
getDirection
public String getDirection()
Possible values: INGRESS, EGRESS
string direction = 3;- Specified by:
getDirectionin interfaceFirewallInfoOrBuilder- Returns:
- The direction.
-
getDirectionBytes
public com.google.protobuf.ByteString getDirectionBytes()
Possible values: INGRESS, EGRESS
string direction = 3;- Specified by:
getDirectionBytesin interfaceFirewallInfoOrBuilder- Returns:
- The bytes for direction.
-
getAction
public String getAction()
Possible values: ALLOW, DENY
string action = 4;- Specified by:
getActionin interfaceFirewallInfoOrBuilder- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()
Possible values: ALLOW, DENY
string action = 4;- Specified by:
getActionBytesin interfaceFirewallInfoOrBuilder- Returns:
- The bytes for action.
-
getPriority
public int getPriority()
The priority of the firewall rule.
int32 priority = 5;- Specified by:
getPriorityin 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:
getNetworkUriin 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:
getNetworkUriBytesin 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:
getTargetTagsListin 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:
getTargetTagsCountin 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:
getTargetTagsin 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:
getTargetTagsBytesin 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:
getTargetServiceAccountsListin 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:
getTargetServiceAccountsCountin 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:
getTargetServiceAccountsin 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:
getTargetServiceAccountsBytesin 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:
getPolicyin 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:
getPolicyBytesin 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:
getFirewallRuleTypeValuein 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:
getFirewallRuleTypein interfaceFirewallInfoOrBuilder- Returns:
- The firewallRuleType.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FirewallInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public FirewallInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-