Class 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 type google.cloud.networkmanagement.v1beta1.FirewallInfo
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.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 class com.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 interface FirewallInfoOrBuilder
        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 interface FirewallInfoOrBuilder
        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 interface FirewallInfoOrBuilder
        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 interface FirewallInfoOrBuilder
        Returns:
        The bytes for uri.
      • 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.
      • getActionBytes

        public com.google.protobuf.ByteString getActionBytes()
         Possible values: ALLOW, DENY
         
        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 hierarchical 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 hierarchical 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 hierarchical 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 hierarchical 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 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 interface FirewallInfoOrBuilder
        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 interface FirewallInfoOrBuilder
        Returns:
        The bytes for policy.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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 interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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