Class FirewallInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkmanagement.v1beta1.FirewallInfo
- All Implemented Interfaces:
FirewallInfoOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class FirewallInfo
extends com.google.protobuf.GeneratedMessage
implements FirewallInfoOrBuilder
For display only. Metadata associated with a VPC firewall rule, an implied VPC firewall rule, or a firewall policy rule.Protobuf type
google.cloud.networkmanagement.v1beta1.FirewallInfo- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFor display only.static enumThe firewall rule's type.static enumTarget type of the firewall rule.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanPossible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUPcom.google.protobuf.ByteStringPossible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUPstatic FirewallInfostatic final com.google.protobuf.Descriptors.DescriptorPossible values: INGRESS, EGRESScom.google.protobuf.ByteStringPossible values: INGRESS, EGRESSThe display name of the firewall rule.com.google.protobuf.ByteStringThe display name of the firewall rule.The firewall rule's type.intThe firewall rule's type.The URI of the VPC network that the firewall rule is associated with.com.google.protobuf.ByteStringThe URI of the VPC network that the firewall rule is associated with.com.google.protobuf.Parser<FirewallInfo>The name of the firewall policy that this rule is associated with.com.google.protobuf.ByteStringThe name of the firewall policy that this rule is associated with.intThe priority of the firewall policy that this rule is associated with.The URI of the firewall policy that this rule is associated with.com.google.protobuf.ByteStringThe URI of the firewall policy that this rule is associated with.intThe priority of the firewall rule.intgetTargetServiceAccounts(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.intThe target service accounts specified by the firewall rule.com.google.protobuf.ProtocolStringListThe target service accounts specified by the firewall rule.getTargetTags(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.intThe target tags defined by the VPC firewall rule.com.google.protobuf.ProtocolStringListThe target tags defined by the VPC firewall rule.Target type of the firewall rule.intTarget type of the firewall rule.getUri()The URI of the firewall rule.com.google.protobuf.ByteStringThe URI of the firewall rule.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic FirewallInfo.Builderstatic FirewallInfo.BuildernewBuilder(FirewallInfo prototype) protected FirewallInfo.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER- See Also:
-
DIRECTION_FIELD_NUMBER
public static final int DIRECTION_FIELD_NUMBER- See Also:
-
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER- See Also:
-
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER- See Also:
-
NETWORK_URI_FIELD_NUMBER
public static final int NETWORK_URI_FIELD_NUMBER- See Also:
-
TARGET_TAGS_FIELD_NUMBER
public static final int TARGET_TAGS_FIELD_NUMBER- See Also:
-
TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER
public static final int TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER- See Also:
-
POLICY_FIELD_NUMBER
public static final int POLICY_FIELD_NUMBER- See Also:
-
POLICY_URI_FIELD_NUMBER
public static final int POLICY_URI_FIELD_NUMBER- See Also:
-
FIREWALL_RULE_TYPE_FIELD_NUMBER
public static final int FIREWALL_RULE_TYPE_FIELD_NUMBER- See Also:
-
POLICY_PRIORITY_FIELD_NUMBER
public static final int POLICY_PRIORITY_FIELD_NUMBER- See Also:
-
TARGET_TYPE_FIELD_NUMBER
public static final int TARGET_TYPE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getDisplayName
The display name of the firewall rule. This field might be empty for 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 firewall rule. This field might be empty for firewall policy rules.
string display_name = 1;- Specified by:
getDisplayNameBytesin interfaceFirewallInfoOrBuilder- Returns:
- The bytes for displayName.
-
getUri
The URI of the firewall rule. This field is not applicable to implied VPC firewall rules.
string uri = 2;- Specified by:
getUriin interfaceFirewallInfoOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()The URI of the firewall rule. This field is not applicable to implied VPC firewall rules.
string uri = 2;- Specified by:
getUriBytesin interfaceFirewallInfoOrBuilder- Returns:
- The bytes for uri.
-
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
Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP
string action = 4;- Specified by:
getActionin interfaceFirewallInfoOrBuilder- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP
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
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 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 firewall policy rules.
repeated string target_tags = 7;- Specified by:
getTargetTagsCountin interfaceFirewallInfoOrBuilder- Returns:
- The count of targetTags.
-
getTargetTags
The target tags defined by the VPC firewall rule. This field is not applicable to 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 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
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
The name of the firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules and implied VPC firewall rules.
string policy = 9;- Specified by:
getPolicyin interfaceFirewallInfoOrBuilder- Returns:
- The policy.
-
getPolicyBytes
public com.google.protobuf.ByteString getPolicyBytes()The name of the firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules and implied VPC firewall rules.
string policy = 9;- Specified by:
getPolicyBytesin interfaceFirewallInfoOrBuilder- Returns:
- The bytes for policy.
-
getPolicyUri
The URI of the firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules and implied VPC firewall rules.
string policy_uri = 11;- Specified by:
getPolicyUriin interfaceFirewallInfoOrBuilder- Returns:
- The policyUri.
-
getPolicyUriBytes
public com.google.protobuf.ByteString getPolicyUriBytes()The URI of the firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules and implied VPC firewall rules.
string policy_uri = 11;- Specified by:
getPolicyUriBytesin interfaceFirewallInfoOrBuilder- Returns:
- The bytes for policyUri.
-
getFirewallRuleTypeValue
public int getFirewallRuleTypeValue()The firewall rule's type.
.google.cloud.networkmanagement.v1beta1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;- Specified by:
getFirewallRuleTypeValuein interfaceFirewallInfoOrBuilder- Returns:
- The enum numeric value on the wire for firewallRuleType.
-
getFirewallRuleType
The firewall rule's type.
.google.cloud.networkmanagement.v1beta1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;- Specified by:
getFirewallRuleTypein interfaceFirewallInfoOrBuilder- Returns:
- The firewallRuleType.
-
getPolicyPriority
public int getPolicyPriority()The priority of the firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules and implied VPC firewall rules.
int32 policy_priority = 12;- Specified by:
getPolicyPriorityin interfaceFirewallInfoOrBuilder- Returns:
- The policyPriority.
-
getTargetTypeValue
public int getTargetTypeValue()Target type of the firewall rule.
.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType target_type = 13;- Specified by:
getTargetTypeValuein interfaceFirewallInfoOrBuilder- Returns:
- The enum numeric value on the wire for targetType.
-
getTargetType
Target type of the firewall rule.
.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType target_type = 13;- Specified by:
getTargetTypein interfaceFirewallInfoOrBuilder- Returns:
- The targetType.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static FirewallInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static FirewallInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FirewallInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FirewallInfo.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-