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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > FirewallInfo.BuilderImplements
FirewallInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<String> The targetServiceAccounts to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<String> The targetTags to add. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FirewallInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
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 | |
---|---|
Name | Description |
value | String The targetServiceAccounts to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes of the targetServiceAccounts to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The targetTags to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes of the targetTags to add. |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
build()
public FirewallInfo build()
Returns | |
---|---|
Type | Description |
FirewallInfo |
buildPartial()
public FirewallInfo buildPartial()
Returns | |
---|---|
Type | Description |
FirewallInfo |
clear()
public FirewallInfo.Builder clear()
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
clearAction()
public FirewallInfo.Builder clearAction()
Possible values: ALLOW, DENY
string action = 4;
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
clearDirection()
public FirewallInfo.Builder clearDirection()
Possible values: INGRESS, EGRESS
string direction = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public FirewallInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
clearFirewallRuleType()
public FirewallInfo.Builder clearFirewallRuleType()
The firewall rule's type.
.google.cloud.networkmanagement.v1beta1.FirewallInfo.FirewallRuleType firewall_rule_type = 10;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public FirewallInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
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 | |
---|---|
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
clearPriority()
public FirewallInfo.Builder clearPriority()
The priority of the firewall rule.
int32 priority = 5;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
FirewallInfo.Builder | This builder for chaining. |
clone()
public FirewallInfo.Builder clone()
Returns | |
---|---|
Type | Description |
FirewallInfo.Builder |
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()
Returns | |
---|---|
Type | Description |
FirewallInfo |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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. |