Class AttributeValues.EnumAttributeValues.Builder (0.7.0)

public static final class AttributeValues.EnumAttributeValues.Builder extends GeneratedMessageV3.Builder<AttributeValues.EnumAttributeValues.Builder> implements AttributeValues.EnumAttributeValuesOrBuilder

The attribute values of data type enum.

Protobuf type google.cloud.apihub.v1.AttributeValues.EnumAttributeValues

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<? extends Attribute.AllowedValue> values)

public AttributeValues.EnumAttributeValues.Builder addAllValues(Iterable<? extends Attribute.AllowedValue> values)

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.apihub.v1.Attribute.AllowedValue>
Returns
Type Description
AttributeValues.EnumAttributeValues.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValues(Attribute.AllowedValue value)

public AttributeValues.EnumAttributeValues.Builder addValues(Attribute.AllowedValue value)

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Attribute.AllowedValue
Returns
Type Description
AttributeValues.EnumAttributeValues.Builder

addValues(Attribute.AllowedValue.Builder builderForValue)

public AttributeValues.EnumAttributeValues.Builder addValues(Attribute.AllowedValue.Builder builderForValue)

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Attribute.AllowedValue.Builder
Returns
Type Description
AttributeValues.EnumAttributeValues.Builder

addValues(int index, Attribute.AllowedValue value)

public AttributeValues.EnumAttributeValues.Builder addValues(int index, Attribute.AllowedValue value)

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Attribute.AllowedValue
Returns
Type Description
AttributeValues.EnumAttributeValues.Builder

addValues(int index, Attribute.AllowedValue.Builder builderForValue)

public AttributeValues.EnumAttributeValues.Builder addValues(int index, Attribute.AllowedValue.Builder builderForValue)

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Attribute.AllowedValue.Builder
Returns
Type Description
AttributeValues.EnumAttributeValues.Builder

addValuesBuilder()

public Attribute.AllowedValue.Builder addValuesBuilder()

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Attribute.AllowedValue.Builder

addValuesBuilder(int index)

public Attribute.AllowedValue.Builder addValuesBuilder(int index)

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Attribute.AllowedValue.Builder

build()

public AttributeValues.EnumAttributeValues build()
Returns
Type Description
AttributeValues.EnumAttributeValues

buildPartial()

public AttributeValues.EnumAttributeValues buildPartial()
Returns
Type Description
AttributeValues.EnumAttributeValues

clear()

public AttributeValues.EnumAttributeValues.Builder clear()
Returns
Type Description
AttributeValues.EnumAttributeValues.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValues()

public AttributeValues.EnumAttributeValues.Builder clearValues()

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributeValues.EnumAttributeValues.Builder

clone()

public AttributeValues.EnumAttributeValues.Builder clone()
Returns
Type Description
AttributeValues.EnumAttributeValues.Builder
Overrides

getDefaultInstanceForType()

public AttributeValues.EnumAttributeValues getDefaultInstanceForType()
Returns
Type Description
AttributeValues.EnumAttributeValues

getDescriptorForType()

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

getValues(int index)

public Attribute.AllowedValue getValues(int index)

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Attribute.AllowedValue

getValuesBuilder(int index)

public Attribute.AllowedValue.Builder getValuesBuilder(int index)

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Attribute.AllowedValue.Builder

getValuesBuilderList()

public List<Attribute.AllowedValue.Builder> getValuesBuilderList()

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getValuesCount()

public int getValuesCount()

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getValuesList()

public List<Attribute.AllowedValue> getValuesList()

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<AllowedValue>

getValuesOrBuilder(int index)

public Attribute.AllowedValueOrBuilder getValuesOrBuilder(int index)

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Attribute.AllowedValueOrBuilder

getValuesOrBuilderList()

public List<? extends Attribute.AllowedValueOrBuilder> getValuesOrBuilderList()

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.apihub.v1.Attribute.AllowedValueOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AttributeValues.EnumAttributeValues other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeValues(int index)

public AttributeValues.EnumAttributeValues.Builder removeValues(int index)

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AttributeValues.EnumAttributeValues.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValues(int index, Attribute.AllowedValue value)

public AttributeValues.EnumAttributeValues.Builder setValues(int index, Attribute.AllowedValue value)

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Attribute.AllowedValue
Returns
Type Description
AttributeValues.EnumAttributeValues.Builder

setValues(int index, Attribute.AllowedValue.Builder builderForValue)

public AttributeValues.EnumAttributeValues.Builder setValues(int index, Attribute.AllowedValue.Builder builderForValue)

Required. The attribute values in case attribute data type is enum.

repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Attribute.AllowedValue.Builder
Returns
Type Description
AttributeValues.EnumAttributeValues.Builder