Class Denied.Builder (2.76.0)

public static final class Denied.Builder extends GeneratedMessageV3.Builder<Denied.Builder> implements DeniedOrBuilder

Denied IP rule.

Protobuf type google.cloud.securitycenter.v2.Denied

Implements

DeniedOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllIpRules(Iterable<? extends IpRule> values)

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

Optional. Optional list of denied 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
Denied.Builder

addIpRules(IpRule value)

public Denied.Builder addIpRules(IpRule value)

Optional. Optional list of denied IP rules.

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

Parameter
Name Description
value IpRule
Returns
Type Description
Denied.Builder

addIpRules(IpRule.Builder builderForValue)

public Denied.Builder addIpRules(IpRule.Builder builderForValue)

Optional. Optional list of denied 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
Denied.Builder

addIpRules(int index, IpRule value)

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

Optional. Optional list of denied 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
Denied.Builder

addIpRules(int index, IpRule.Builder builderForValue)

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

Optional. Optional list of denied 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
Denied.Builder

addIpRulesBuilder()

public IpRule.Builder addIpRulesBuilder()

Optional. Optional list of denied 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 denied 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 Denied.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Denied.Builder
Overrides

build()

public Denied build()
Returns
Type Description
Denied

buildPartial()

public Denied buildPartial()
Returns
Type Description
Denied

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIpRules()

public Denied.Builder clearIpRules()

Optional. Optional list of denied IP rules.

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

Returns
Type Description
Denied.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Denied getDefaultInstanceForType()
Returns
Type Description
Denied

getDescriptorForType()

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

getIpRules(int index)

public IpRule getIpRules(int index)

Optional. Optional list of denied 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 denied 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 denied 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 denied 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 denied 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 denied 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 denied 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(Denied other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeIpRules(int index)

public Denied.Builder removeIpRules(int index)

Optional. Optional list of denied IP rules.

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

Parameter
Name Description
index int
Returns
Type Description
Denied.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpRules(int index, IpRule value)

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

Optional. Optional list of denied 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
Denied.Builder

setIpRules(int index, IpRule.Builder builderForValue)

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

Optional. Optional list of denied 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
Denied.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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