Class Allowed.Builder (2.91.0)

public static final class Allowed.Builder extends GeneratedMessage.Builder<Allowed.Builder> implements AllowedOrBuilder

Allowed IP rule.

Protobuf type google.cloud.securitycenter.v2.Allowed

Implements

AllowedOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllIpRules(Iterable<? extends IpRule> values)

public Allowed.Builder addAllIpRules(Iterable<? extends IpRule> values)

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.securitycenter.v2.IpRule>
Returns
Type Description
Allowed.Builder

addIpRules(IpRule value)

public Allowed.Builder addIpRules(IpRule value)

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value IpRule
Returns
Type Description
Allowed.Builder

addIpRules(IpRule.Builder builderForValue)

public Allowed.Builder addIpRules(IpRule.Builder builderForValue)

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue IpRule.Builder
Returns
Type Description
Allowed.Builder

addIpRules(int index, IpRule value)

public Allowed.Builder addIpRules(int index, IpRule value)

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value IpRule
Returns
Type Description
Allowed.Builder

addIpRules(int index, IpRule.Builder builderForValue)

public Allowed.Builder addIpRules(int index, IpRule.Builder builderForValue)

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue IpRule.Builder
Returns
Type Description
Allowed.Builder

addIpRulesBuilder()

public IpRule.Builder addIpRulesBuilder()

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IpRule.Builder

addIpRulesBuilder(int index)

public IpRule.Builder addIpRulesBuilder(int index)

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
IpRule.Builder

build()

public Allowed build()
Returns
Type Description
Allowed

buildPartial()

public Allowed buildPartial()
Returns
Type Description
Allowed

clear()

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

clearIpRules()

public Allowed.Builder clearIpRules()

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Allowed.Builder

getDefaultInstanceForType()

public Allowed getDefaultInstanceForType()
Returns
Type Description
Allowed

getDescriptorForType()

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

getIpRules(int index)

public IpRule getIpRules(int index)

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
IpRule

getIpRulesBuilder(int index)

public IpRule.Builder getIpRulesBuilder(int index)

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
IpRule.Builder

getIpRulesBuilderList()

public List<IpRule.Builder> getIpRulesBuilderList()

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getIpRulesCount()

public int getIpRulesCount()

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getIpRulesList()

public List<IpRule> getIpRulesList()

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<IpRule>

getIpRulesOrBuilder(int index)

public IpRuleOrBuilder getIpRulesOrBuilder(int index)

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
IpRuleOrBuilder

getIpRulesOrBuilderList()

public List<? extends IpRuleOrBuilder> getIpRulesOrBuilderList()

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.IpRuleOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Allowed other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeIpRules(int index)

public Allowed.Builder removeIpRules(int index)

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Allowed.Builder

setIpRules(int index, IpRule value)

public Allowed.Builder setIpRules(int index, IpRule value)

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value IpRule
Returns
Type Description
Allowed.Builder

setIpRules(int index, IpRule.Builder builderForValue)

public Allowed.Builder setIpRules(int index, IpRule.Builder builderForValue)

Optional. Optional list of allowed IP rules.

repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue IpRule.Builder
Returns
Type Description
Allowed.Builder