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:
  • 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getDisplayName

      public String getDisplayName()
       The display name of the firewall rule. This field might be empty for
       firewall policy rules.
       
      string display_name = 1;
      Specified by:
      getDisplayName in interface FirewallInfoOrBuilder
      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:
      getDisplayNameBytes in interface FirewallInfoOrBuilder
      Returns:
      The bytes for displayName.
    • getUri

      public String getUri()
       The URI of the firewall rule. This field is not applicable to implied
       VPC firewall rules.
       
      string uri = 2;
      Specified by:
      getUri in interface FirewallInfoOrBuilder
      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:
      getUriBytes in interface FirewallInfoOrBuilder
      Returns:
      The bytes for uri.
    • getDirection

      public String getDirection()
       Possible values: INGRESS, EGRESS
       
      string direction = 3;
      Specified by:
      getDirection in interface FirewallInfoOrBuilder
      Returns:
      The direction.
    • getDirectionBytes

      public com.google.protobuf.ByteString getDirectionBytes()
       Possible values: INGRESS, EGRESS
       
      string direction = 3;
      Specified by:
      getDirectionBytes in interface FirewallInfoOrBuilder
      Returns:
      The bytes for direction.
    • getAction

      public String getAction()
       Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP
       
      string action = 4;
      Specified by:
      getAction in interface FirewallInfoOrBuilder
      Returns:
      The action.
    • getActionBytes

      public com.google.protobuf.ByteString getActionBytes()
       Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP
       
      string action = 4;
      Specified by:
      getActionBytes in interface FirewallInfoOrBuilder
      Returns:
      The bytes for action.
    • getPriority

      public int getPriority()
       The priority of the firewall rule.
       
      int32 priority = 5;
      Specified by:
      getPriority in interface FirewallInfoOrBuilder
      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 interface FirewallInfoOrBuilder
      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 interface FirewallInfoOrBuilder
      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:
      getTargetTagsList in interface FirewallInfoOrBuilder
      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:
      getTargetTagsCount in interface FirewallInfoOrBuilder
      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 firewall policy rules.
       
      repeated string target_tags = 7;
      Specified by:
      getTargetTags in interface FirewallInfoOrBuilder
      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:
      getTargetTagsBytes in interface FirewallInfoOrBuilder
      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 interface FirewallInfoOrBuilder
      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 interface FirewallInfoOrBuilder
      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 interface FirewallInfoOrBuilder
      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 interface FirewallInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the targetServiceAccounts at the given index.
    • getPolicy

      public String 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:
      getPolicy in interface FirewallInfoOrBuilder
      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:
      getPolicyBytes in interface FirewallInfoOrBuilder
      Returns:
      The bytes for policy.
    • getPolicyUri

      public String 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:
      getPolicyUri in interface FirewallInfoOrBuilder
      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:
      getPolicyUriBytes in interface FirewallInfoOrBuilder
      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:
      getFirewallRuleTypeValue in interface FirewallInfoOrBuilder
      Returns:
      The enum numeric value on the wire for firewallRuleType.
    • getFirewallRuleType

      public FirewallInfo.FirewallRuleType getFirewallRuleType()
       The firewall rule's type.
       
      .google.cloud.networkmanagement.v1beta1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
      Specified by:
      getFirewallRuleType in interface FirewallInfoOrBuilder
      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:
      getPolicyPriority in interface FirewallInfoOrBuilder
      Returns:
      The policyPriority.
    • getTargetTypeValue

      public int getTargetTypeValue()
       Target type of the firewall rule.
       
      .google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType target_type = 13;
      Specified by:
      getTargetTypeValue in interface FirewallInfoOrBuilder
      Returns:
      The enum numeric value on the wire for targetType.
    • getTargetType

      public FirewallInfo.TargetType getTargetType()
       Target type of the firewall rule.
       
      .google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType target_type = 13;
      Specified by:
      getTargetType in interface FirewallInfoOrBuilder
      Returns:
      The targetType.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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 interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.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 interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected FirewallInfo.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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 interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public FirewallInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder