Class FirewallInfo.Builder (1.20.0)

public static final class FirewallInfo.Builder extends GeneratedMessageV3.Builder<FirewallInfo.Builder> 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 Methods

getDescriptor()

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

Methods

addAllTargetServiceAccounts(Iterable<String> values)

public FirewallInfo.Builder addAllTargetServiceAccounts(Iterable<String> values)

The target service accounts specified by the firewall rule.

repeated string target_service_accounts = 8;

Parameter
NameDescription
valuesIterable<String>

The targetServiceAccounts to add.

Returns
TypeDescription
FirewallInfo.Builder

This builder for chaining.

addAllTargetTags(Iterable<String> values)

public FirewallInfo.Builder addAllTargetTags(Iterable<String> values)

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
valuesIterable<String>

The targetTags to add.

Returns
TypeDescription
FirewallInfo.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FirewallInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FirewallInfo.Builder
Overrides

addTargetServiceAccounts(String value)

public FirewallInfo.Builder addTargetServiceAccounts(String value)

The target service accounts specified by the firewall rule.

repeated string target_service_accounts = 8;

Parameter
NameDescription
valueString

The targetServiceAccounts to add.

Returns
TypeDescription
FirewallInfo.Builder

This builder for chaining.

addTargetServiceAccountsBytes(ByteString value)

public FirewallInfo.Builder addTargetServiceAccountsBytes(ByteString value)

The target service accounts specified by the firewall rule.

repeated string target_service_accounts = 8;

Parameter
NameDescription
valueByteString

The bytes of the targetServiceAccounts to add.

Returns
TypeDescription
FirewallInfo.Builder

This builder for chaining.

addTargetTags(String value)

public FirewallInfo.Builder addTargetTags(String value)

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
valueString

The targetTags to add.

Returns
TypeDescription
FirewallInfo.Builder

This builder for chaining.

addTargetTagsBytes(ByteString value)

public FirewallInfo.Builder addTargetTagsBytes(ByteString value)

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
valueByteString

The bytes of the targetTags to add.

Returns
TypeDescription
FirewallInfo.Builder

This builder for chaining.

build()

public FirewallInfo build()
Returns
TypeDescription
FirewallInfo

buildPartial()

public FirewallInfo buildPartial()
Returns
TypeDescription
FirewallInfo

clear()

public FirewallInfo.Builder clear()
Returns
TypeDescription
FirewallInfo.Builder
Overrides

clearAction()

public FirewallInfo.Builder clearAction()

Possible values: ALLOW, DENY

string action = 4;

Returns
TypeDescription
FirewallInfo.Builder

This builder for chaining.

clearDirection()

public FirewallInfo.Builder clearDirection()

Possible values: INGRESS, EGRESS

string direction = 3;

Returns
TypeDescription
FirewallInfo.Builder

This builder for chaining.

clearDisplayName()

public FirewallInfo.Builder clearDisplayName()

The display name of the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.

string display_name = 1;

Returns
TypeDescription
FirewallInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public FirewallInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FirewallInfo.Builder
Overrides

clearFirewallRuleType()

public FirewallInfo.Builder clearFirewallRuleType()

The firewall rule's type.

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

Returns
TypeDescription
FirewallInfo.Builder

This builder for chaining.

clearNetworkUri()

public FirewallInfo.Builder clearNetworkUri()

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
FirewallInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FirewallInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FirewallInfo.Builder
Overrides

clearPolicy()

public FirewallInfo.Builder clearPolicy()

The hierarchical firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules.

string policy = 9;

Returns
TypeDescription
FirewallInfo.Builder

This builder for chaining.

clearPriority()

public FirewallInfo.Builder clearPriority()

The priority of the firewall rule.

int32 priority = 5;

Returns
TypeDescription
FirewallInfo.Builder

This builder for chaining.

clearTargetServiceAccounts()

public FirewallInfo.Builder clearTargetServiceAccounts()

The target service accounts specified by the firewall rule.

repeated string target_service_accounts = 8;

Returns
TypeDescription
FirewallInfo.Builder

This builder for chaining.

clearTargetTags()

public FirewallInfo.Builder clearTargetTags()

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
FirewallInfo.Builder

This builder for chaining.

clearUri()

public FirewallInfo.Builder clearUri()

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
FirewallInfo.Builder

This builder for chaining.

clone()

public FirewallInfo.Builder clone()
Returns
TypeDescription
FirewallInfo.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.