Class FirewallInfo (1.48.0)

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

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

TARGET_TAGS_FIELD_NUMBER

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()
Returns
Type Description
FirewallInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static FirewallInfo.Builder newBuilder()
Returns
Type Description
FirewallInfo.Builder

newBuilder(FirewallInfo prototype)

public static FirewallInfo.Builder newBuilder(FirewallInfo prototype)
Parameter
Name Description
prototype FirewallInfo
Returns
Type Description
FirewallInfo.Builder

parseDelimitedFrom(InputStream input)

public static FirewallInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FirewallInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FirewallInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FirewallInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FirewallInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FirewallInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FirewallInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FirewallInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FirewallInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FirewallInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FirewallInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FirewallInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FirewallInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FirewallInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FirewallInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FirewallInfo> parser()
Returns
Type Description
Parser<FirewallInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAction()

public String getAction()

Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP

string action = 4;

Returns
Type Description
String

The action.

getActionBytes()

public ByteString getActionBytes()

Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP

string action = 4;

Returns
Type Description
ByteString

The bytes for action.

getDefaultInstanceForType()

public FirewallInfo getDefaultInstanceForType()
Returns
Type Description
FirewallInfo

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;

Returns
Type Description
FirewallInfo.FirewallRuleType

The firewallRuleType.

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()
Returns
Type Description
Parser<FirewallInfo>
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()

public int 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
index int

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
index int

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;

Returns
Type Description
ProtocolStringList

A list containing the targetServiceAccounts.

getTargetTags(int index)

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
index int

The index of the element to return.

Returns
Type Description
String

The targetTags at the given index.

getTargetTagsBytes(int 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
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the targetTags at the given index.

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;

Returns
Type Description
int

The count of targetTags.

getTargetTagsList()

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;

Returns
Type Description
ProtocolStringList

A list containing the targetTags.

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;

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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public FirewallInfo.Builder newBuilderForType()
Returns
Type Description
FirewallInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FirewallInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FirewallInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public FirewallInfo.Builder toBuilder()
Returns
Type Description
FirewallInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException