Class FirewallInfo (1.34.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
TypeDescription
int

DIRECTION_FIELD_NUMBER

public static final int DIRECTION_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

FIREWALL_RULE_TYPE_FIELD_NUMBER

public static final int FIREWALL_RULE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_URI_FIELD_NUMBER

public static final int NETWORK_URI_FIELD_NUMBER
Field Value
TypeDescription
int

POLICY_FIELD_NUMBER

public static final int POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

PRIORITY_FIELD_NUMBER

public static final int PRIORITY_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER

public static final int TARGET_SERVICE_ACCOUNTS_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_TAGS_FIELD_NUMBER

public static final int TARGET_TAGS_FIELD_NUMBER
Field Value
TypeDescription
int

URI_FIELD_NUMBER

public static final int URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FirewallInfo getDefaultInstance()
Returns
TypeDescription
FirewallInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static FirewallInfo.Builder newBuilder()
Returns
TypeDescription
FirewallInfo.Builder

newBuilder(FirewallInfo prototype)

public static FirewallInfo.Builder newBuilder(FirewallInfo prototype)
Parameter
NameDescription
prototypeFirewallInfo
Returns
TypeDescription
FirewallInfo.Builder

parseDelimitedFrom(InputStream input)

public static FirewallInfo parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FirewallInfo
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallInfo
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FirewallInfo parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FirewallInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FirewallInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FirewallInfo parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FirewallInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FirewallInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FirewallInfo parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FirewallInfo
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FirewallInfo parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FirewallInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallInfo
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FirewallInfo parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FirewallInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FirewallInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<FirewallInfo> parser()
Returns
TypeDescription
Parser<FirewallInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAction()

public String getAction()

Possible values: ALLOW, DENY

string action = 4;

Returns
TypeDescription
String

The action.

getActionBytes()

public ByteString getActionBytes()

Possible values: ALLOW, DENY

string action = 4;

Returns
TypeDescription
ByteString

The bytes for action.

getDefaultInstanceForType()

public FirewallInfo getDefaultInstanceForType()
Returns
TypeDescription
FirewallInfo

getDirection()

public String getDirection()

Possible values: INGRESS, EGRESS

string direction = 3;

Returns
TypeDescription
String

The direction.

getDirectionBytes()

public ByteString getDirectionBytes()

Possible values: INGRESS, EGRESS

string direction = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
FirewallInfo.FirewallRuleType

The firewallRuleType.

getFirewallRuleTypeValue()

public int getFirewallRuleTypeValue()

The firewall rule's type.

.google.cloud.networkmanagement.v1beta1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for networkUri.

getParserForType()

public Parser<FirewallInfo> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for policy.

getPriority()

public int getPriority()

The priority of the firewall rule.

int32 priority = 5;

Returns
TypeDescription
int

The priority.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for uri.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public FirewallInfo.Builder newBuilderForType()
Returns
TypeDescription
FirewallInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FirewallInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FirewallInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public FirewallInfo.Builder toBuilder()
Returns
TypeDescription
FirewallInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException