Class Allowed.Builder (2.76.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public Allowed.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Allowed.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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