Class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder (1.64.0)

public static final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder extends GeneratedMessageV3.Builder<InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder> implements InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicyOrBuilder

Protobuf type google.cloud.compute.v1.InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

Static Methods

getDescriptor()

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

Methods

addAllRules(Iterable<? extends FirewallPolicyRule> values)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder addAllRules(Iterable<? extends FirewallPolicyRule> values)

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.FirewallPolicyRule>
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder
Overrides

addRules(FirewallPolicyRule value)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder addRules(FirewallPolicyRule value)

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Parameter
Name Description
value FirewallPolicyRule
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

addRules(FirewallPolicyRule.Builder builderForValue)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder addRules(FirewallPolicyRule.Builder builderForValue)

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Parameter
Name Description
builderForValue FirewallPolicyRule.Builder
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

addRules(int index, FirewallPolicyRule value)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder addRules(int index, FirewallPolicyRule value)

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Parameters
Name Description
index int
value FirewallPolicyRule
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

addRules(int index, FirewallPolicyRule.Builder builderForValue)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder addRules(int index, FirewallPolicyRule.Builder builderForValue)

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Parameters
Name Description
index int
builderForValue FirewallPolicyRule.Builder
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

addRulesBuilder()

public FirewallPolicyRule.Builder addRulesBuilder()

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Returns
Type Description
FirewallPolicyRule.Builder

addRulesBuilder(int index)

public FirewallPolicyRule.Builder addRulesBuilder(int index)

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Parameter
Name Description
index int
Returns
Type Description
FirewallPolicyRule.Builder

build()

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy build()
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy

buildPartial()

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy buildPartial()
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy

clear()

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder clear()
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder
Overrides

clearDisplayName()

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder clearDisplayName()

[Output Only] Deprecated, please use short name instead. The display name of the firewall policy.

optional string display_name = 4473832;

Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder
Overrides

clearName()

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder clearName()

[Output Only] The name of the firewall policy.

optional string name = 3373707;

Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder
Overrides

clearPriority()

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder clearPriority()

[Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY.

optional int32 priority = 445151652;

Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

This builder for chaining.

clearRules()

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder clearRules()

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

clearShortName()

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder clearShortName()

[Output Only] The short name of the firewall policy.

optional string short_name = 492051566;

Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

This builder for chaining.

clearType()

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder clearType()

[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

This builder for chaining.

clone()

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder clone()
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder
Overrides

getDefaultInstanceForType()

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy getDefaultInstanceForType()
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

[Output Only] Deprecated, please use short name instead. The display name of the firewall policy.

optional string display_name = 4473832;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

[Output Only] Deprecated, please use short name instead. The display name of the firewall policy.

optional string display_name = 4473832;

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

[Output Only] The name of the firewall policy.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

[Output Only] The name of the firewall policy.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getPriority()

public int getPriority()

[Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY.

optional int32 priority = 445151652;

Returns
Type Description
int

The priority.

getRules(int index)

public FirewallPolicyRule getRules(int index)

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Parameter
Name Description
index int
Returns
Type Description
FirewallPolicyRule

getRulesBuilder(int index)

public FirewallPolicyRule.Builder getRulesBuilder(int index)

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Parameter
Name Description
index int
Returns
Type Description
FirewallPolicyRule.Builder

getRulesBuilderList()

public List<FirewallPolicyRule.Builder> getRulesBuilderList()

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Returns
Type Description
List<Builder>

getRulesCount()

public int getRulesCount()

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Returns
Type Description
int

getRulesList()

public List<FirewallPolicyRule> getRulesList()

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Returns
Type Description
List<FirewallPolicyRule>

getRulesOrBuilder(int index)

public FirewallPolicyRuleOrBuilder getRulesOrBuilder(int index)

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Parameter
Name Description
index int
Returns
Type Description
FirewallPolicyRuleOrBuilder

getRulesOrBuilderList()

public List<? extends FirewallPolicyRuleOrBuilder> getRulesOrBuilderList()

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.FirewallPolicyRuleOrBuilder>

getShortName()

public String getShortName()

[Output Only] The short name of the firewall policy.

optional string short_name = 492051566;

Returns
Type Description
String

The shortName.

getShortNameBytes()

public ByteString getShortNameBytes()

[Output Only] The short name of the firewall policy.

optional string short_name = 492051566;

Returns
Type Description
ByteString

The bytes for shortName.

getType()

public String getType()

[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
ByteString

The bytes for type.

hasDisplayName()

public boolean hasDisplayName()

[Output Only] Deprecated, please use short name instead. The display name of the firewall policy.

optional string display_name = 4473832;

Returns
Type Description
boolean

Whether the displayName field is set.

hasName()

public boolean hasName()

[Output Only] The name of the firewall policy.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasPriority()

public boolean hasPriority()

[Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY.

optional int32 priority = 445151652;

Returns
Type Description
boolean

Whether the priority field is set.

hasShortName()

public boolean hasShortName()

[Output Only] The short name of the firewall policy.

optional string short_name = 492051566;

Returns
Type Description
boolean

Whether the shortName field is set.

hasType()

public boolean hasType()

[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy other)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder mergeFrom(InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy other)
Parameter
Name Description
other InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder
Overrides

removeRules(int index)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder removeRules(int index)

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Parameter
Name Description
index int
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

setDisplayName(String value)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder setDisplayName(String value)

[Output Only] Deprecated, please use short name instead. The display name of the firewall policy.

optional string display_name = 4473832;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder setDisplayNameBytes(ByteString value)

[Output Only] Deprecated, please use short name instead. The display name of the firewall policy.

optional string display_name = 4473832;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder
Overrides

setName(String value)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder setName(String value)

[Output Only] The name of the firewall policy.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder setNameBytes(ByteString value)

[Output Only] The name of the firewall policy.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

This builder for chaining.

setPriority(int value)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder setPriority(int value)

[Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY.

optional int32 priority = 445151652;

Parameter
Name Description
value int

The priority to set.

Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder
Overrides

setRules(int index, FirewallPolicyRule value)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder setRules(int index, FirewallPolicyRule value)

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Parameters
Name Description
index int
value FirewallPolicyRule
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

setRules(int index, FirewallPolicyRule.Builder builderForValue)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder setRules(int index, FirewallPolicyRule.Builder builderForValue)

[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.

repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;

Parameters
Name Description
index int
builderForValue FirewallPolicyRule.Builder
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

setShortName(String value)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder setShortName(String value)

[Output Only] The short name of the firewall policy.

optional string short_name = 492051566;

Parameter
Name Description
value String

The shortName to set.

Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

This builder for chaining.

setShortNameBytes(ByteString value)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder setShortNameBytes(ByteString value)

[Output Only] The short name of the firewall policy.

optional string short_name = 492051566;

Parameter
Name Description
value ByteString

The bytes for shortName to set.

Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

This builder for chaining.

setType(String value)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder setType(String value)

[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. Check the Type enum for the list of possible values.

optional string type = 3575610;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder setTypeBytes(ByteString value)

[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. Check the Type enum for the list of possible values.

optional string type = 3575610;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.Builder
Overrides