Class AllowedValues.Builder (0.10.0)

public static final class AllowedValues.Builder extends GeneratedMessage.Builder<AllowedValues.Builder> implements AllowedValuesOrBuilder

The allowed set of values for the parameter.

Protobuf type google.cloud.cloudsecuritycompliance.v1.AllowedValues

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<? extends ParamValue> values)

public AllowedValues.Builder addAllValues(Iterable<? extends ParamValue> values)

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.cloudsecuritycompliance.v1.ParamValue>
Returns
Type Description
AllowedValues.Builder

addValues(ParamValue value)

public AllowedValues.Builder addValues(ParamValue value)

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ParamValue
Returns
Type Description
AllowedValues.Builder

addValues(ParamValue.Builder builderForValue)

public AllowedValues.Builder addValues(ParamValue.Builder builderForValue)

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ParamValue.Builder
Returns
Type Description
AllowedValues.Builder

addValues(int index, ParamValue value)

public AllowedValues.Builder addValues(int index, ParamValue value)

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ParamValue
Returns
Type Description
AllowedValues.Builder

addValues(int index, ParamValue.Builder builderForValue)

public AllowedValues.Builder addValues(int index, ParamValue.Builder builderForValue)

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ParamValue.Builder
Returns
Type Description
AllowedValues.Builder

addValuesBuilder()

public ParamValue.Builder addValuesBuilder()

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ParamValue.Builder

addValuesBuilder(int index)

public ParamValue.Builder addValuesBuilder(int index)

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ParamValue.Builder

build()

public AllowedValues build()
Returns
Type Description
AllowedValues

buildPartial()

public AllowedValues buildPartial()
Returns
Type Description
AllowedValues

clear()

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

clearValues()

public AllowedValues.Builder clearValues()

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AllowedValues.Builder

getDefaultInstanceForType()

public AllowedValues getDefaultInstanceForType()
Returns
Type Description
AllowedValues

getDescriptorForType()

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

getValues(int index)

public ParamValue getValues(int index)

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ParamValue

getValuesBuilder(int index)

public ParamValue.Builder getValuesBuilder(int index)

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ParamValue.Builder

getValuesBuilderList()

public List<ParamValue.Builder> getValuesBuilderList()

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getValuesCount()

public int getValuesCount()

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getValuesList()

public List<ParamValue> getValuesList()

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<ParamValue>

getValuesOrBuilder(int index)

public ParamValueOrBuilder getValuesOrBuilder(int index)

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ParamValueOrBuilder

getValuesOrBuilderList()

public List<? extends ParamValueOrBuilder> getValuesOrBuilderList()

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.cloudsecuritycompliance.v1.ParamValueOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AllowedValues other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeValues(int index)

public AllowedValues.Builder removeValues(int index)

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AllowedValues.Builder

setValues(int index, ParamValue value)

public AllowedValues.Builder setValues(int index, ParamValue value)

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ParamValue
Returns
Type Description
AllowedValues.Builder

setValues(int index, ParamValue.Builder builderForValue)

public AllowedValues.Builder setValues(int index, ParamValue.Builder builderForValue)

Required. The list of allowed values for the parameter.

repeated .google.cloud.cloudsecuritycompliance.v1.ParamValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ParamValue.Builder
Returns
Type Description
AllowedValues.Builder