Class FirewallInfo (1.30.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 1.30.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   final   class  FirewallInfo   extends   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
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  ACTION_FIELD_NUMBER 
  
    
public   static   final   int   ACTION_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  DIRECTION_FIELD_NUMBER 
  
    
public   static   final   int   DIRECTION_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  DISPLAY_NAME_FIELD_NUMBER 
  
    
public   static   final   int   DISPLAY_NAME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  FIREWALL_RULE_TYPE_FIELD_NUMBER 
  
    
public   static   final   int   FIREWALL_RULE_TYPE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  NETWORK_URI_FIELD_NUMBER 
  
    
public   static   final   int   NETWORK_URI_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  POLICY_FIELD_NUMBER 
  
    
public   static   final   int   POLICY_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  PRIORITY_FIELD_NUMBER 
  
    
public   static   final   int   PRIORITY_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER 
  
    
public   static   final   int   TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   TARGET_TAGS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  URI_FIELD_NUMBER 
  
    
public   static   final   int   URI_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   FirewallInfo   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   FirewallInfo . Builder   newBuilder ()  
  
  newBuilder(FirewallInfo prototype) 
  
    
public   static   FirewallInfo . Builder   newBuilder ( FirewallInfo   prototype )  
  
  
  
    
public   static   FirewallInfo   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   FirewallInfo   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   FirewallInfo   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   FirewallInfo   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   FirewallInfo   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   FirewallInfo   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   FirewallInfo   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   FirewallInfo   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   FirewallInfo   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   FirewallInfo   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   FirewallInfo   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   FirewallInfo   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<FirewallInfo>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getAction() 
  
    
public   String   getAction ()  
   Possible values: ALLOW, DENY
 string action = 4;
    
      
        Returns  
      
        Type Description  
      
        String The action.
 
     
  
  getActionBytes() 
  
    
public   ByteString   getActionBytes ()  
   Possible values: ALLOW, DENY
 string action = 4;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for action.
 
     
  
  getDefaultInstanceForType() 
  
    
public   FirewallInfo   getDefaultInstanceForType ()  
  
  getDirection() 
  
    
public   String   getDirection ()  
   Possible values: INGRESS, EGRESS
 string direction = 3;
    
      
        Returns  
      
        Type Description  
      
        String The direction.
 
     
  
  getDirectionBytes() 
  
    
public   ByteString   getDirectionBytes ()  
   Possible values: INGRESS, EGRESS
 string direction = 3;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for direction.
 
     
  
  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;
    
      
        Returns  
      
        Type Description  
      
        String The displayName.
 
     
  
  getDisplayNameBytes() 
  
    
public   ByteString   getDisplayNameBytes ()  
   The display name of the VPC firewall rule. This field is not applicable
 to hierarchical firewall policy rules.
 string display_name = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for displayName.
 
     
  
  getFirewallRuleType() 
  
    
public   FirewallInfo . FirewallRuleType   getFirewallRuleType ()  
   The firewall rule's type.
 
 .google.cloud.networkmanagement.v1beta1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
 
getFirewallRuleTypeValue() 
  
    
public   int   getFirewallRuleTypeValue ()  
   The firewall rule's type.
 
 .google.cloud.networkmanagement.v1beta1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
 
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for firewallRuleType.
 
     
  
  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;
    
      
        Returns  
      
        Type Description  
      
        String The networkUri.
 
     
  
  getNetworkUriBytes() 
  
    
public   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;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for networkUri.
 
     
  
  getParserForType() 
  
    
public   Parser<FirewallInfo>   getParserForType ()  
  
  Overrides 
  
  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;
    
      
        Returns  
      
        Type Description  
      
        String The policy.
 
     
  
  getPolicyBytes() 
  
    
public   ByteString   getPolicyBytes ()  
   The hierarchical firewall policy that this rule is associated with.
 This field is not applicable to VPC firewall rules.
 string policy = 9;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for policy.
 
     
  
  getPriority() 
  
   The priority of the firewall rule.
 int32 priority = 5;
    
      
        Returns  
      
        Type Description  
      
        int The priority.
 
     
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getTargetServiceAccounts(int index) 
  
    
public   String   getTargetServiceAccounts ( int   index )  
   The target service accounts specified by the firewall rule.
 repeated string target_service_accounts = 8;
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the element to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        String The targetServiceAccounts at the given index.
 
     
  
  getTargetServiceAccountsBytes(int index) 
  
    
public   ByteString   getTargetServiceAccountsBytes ( int   index )  
   The target service accounts specified by the firewall rule.
 repeated string target_service_accounts = 8;
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the value to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes of the targetServiceAccounts at the given index.
 
     
  
  getTargetServiceAccountsCount() 
  
    
public   int   getTargetServiceAccountsCount ()  
   The target service accounts specified by the firewall rule.
 repeated string target_service_accounts = 8;
    
      
        Returns  
      
        Type Description  
      
        int The count of targetServiceAccounts.
 
     
  
  getTargetServiceAccountsList() 
  
    
public   ProtocolStringList   getTargetServiceAccountsList ()  
   The target service accounts specified by the firewall rule.
 repeated string target_service_accounts = 8;
    
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;
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the element to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        String The targetTags at the given index.
 
     
  
  
    
public   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;
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the value to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes of the targetTags at the given index.
 
     
  
  
    
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;
    
      
        Returns  
      
        Type Description  
      
        int The count of targetTags.
 
     
  
  
    
public   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;
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;
    
      
        Returns  
      
        Type Description  
      
        String The uri.
 
     
  
  getUriBytes() 
  
    
public   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;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for uri.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   FirewallInfo . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   FirewallInfo . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   FirewallInfo . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]