Class AttributeValues.StringAttributeValues.Builder (0.7.0)

public static final class AttributeValues.StringAttributeValues.Builder extends GeneratedMessageV3.Builder<AttributeValues.StringAttributeValues.Builder> implements AttributeValues.StringAttributeValuesOrBuilder

The attribute values of data type string or JSON.

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

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<String> values)

public AttributeValues.StringAttributeValues.Builder addAllValues(Iterable<String> values)

Required. The attribute values in case attribute data type is string or JSON.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The values to add.

Returns
Type Description
AttributeValues.StringAttributeValues.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValues(String value)

public AttributeValues.StringAttributeValues.Builder addValues(String value)

Required. The attribute values in case attribute data type is string or JSON.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The values to add.

Returns
Type Description
AttributeValues.StringAttributeValues.Builder

This builder for chaining.

addValuesBytes(ByteString value)

public AttributeValues.StringAttributeValues.Builder addValuesBytes(ByteString value)

Required. The attribute values in case attribute data type is string or JSON.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the values to add.

Returns
Type Description
AttributeValues.StringAttributeValues.Builder

This builder for chaining.

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValues()

public AttributeValues.StringAttributeValues.Builder clearValues()

Required. The attribute values in case attribute data type is string or JSON.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributeValues.StringAttributeValues.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getValues(int index)

public String getValues(int index)

Required. The attribute values in case attribute data type is string or JSON.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The values at the given index.

getValuesBytes(int index)

public ByteString getValuesBytes(int index)

Required. The attribute values in case attribute data type is string or JSON.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the values at the given index.

getValuesCount()

public int getValuesCount()

Required. The attribute values in case attribute data type is string or JSON.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of values.

getValuesList()

public ProtocolStringList getValuesList()

Required. The attribute values in case attribute data type is string or JSON.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the values.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AttributeValues.StringAttributeValues other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValues(int index, String value)

public AttributeValues.StringAttributeValues.Builder setValues(int index, String value)

Required. The attribute values in case attribute data type is string or JSON.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The values to set.

Returns
Type Description
AttributeValues.StringAttributeValues.Builder

This builder for chaining.