Class FeatureMap.StringList.Builder (0.8.10)

public static final class FeatureMap.StringList.Builder extends GeneratedMessageV3.Builder<FeatureMap.StringList.Builder> implements FeatureMap.StringListOrBuilder

A list of string features.

Protobuf type google.cloud.recommendationengine.v1beta1.FeatureMap.StringList

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllValue(Iterable<String> values)

public FeatureMap.StringList.Builder addAllValue(Iterable<String> values)

String feature value with a length limit of 128 bytes.

repeated string value = 1;

Parameter
NameDescription
valuesIterable<String>

The value to add.

Returns
TypeDescription
FeatureMap.StringList.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FeatureMap.StringList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FeatureMap.StringList.Builder
Overrides

addValue(String value)

public FeatureMap.StringList.Builder addValue(String value)

String feature value with a length limit of 128 bytes.

repeated string value = 1;

Parameter
NameDescription
valueString

The value to add.

Returns
TypeDescription
FeatureMap.StringList.Builder

This builder for chaining.

addValueBytes(ByteString value)

public FeatureMap.StringList.Builder addValueBytes(ByteString value)

String feature value with a length limit of 128 bytes.

repeated string value = 1;

Parameter
NameDescription
valueByteString

The bytes of the value to add.

Returns
TypeDescription
FeatureMap.StringList.Builder

This builder for chaining.

build()

public FeatureMap.StringList build()
Returns
TypeDescription
FeatureMap.StringList

buildPartial()

public FeatureMap.StringList buildPartial()
Returns
TypeDescription
FeatureMap.StringList

clear()

public FeatureMap.StringList.Builder clear()
Returns
TypeDescription
FeatureMap.StringList.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FeatureMap.StringList.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FeatureMap.StringList.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FeatureMap.StringList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FeatureMap.StringList.Builder
Overrides

clearValue()

public FeatureMap.StringList.Builder clearValue()

String feature value with a length limit of 128 bytes.

repeated string value = 1;

Returns
TypeDescription
FeatureMap.StringList.Builder

This builder for chaining.

clone()

public FeatureMap.StringList.Builder clone()
Returns
TypeDescription
FeatureMap.StringList.Builder
Overrides

getDefaultInstanceForType()

public FeatureMap.StringList getDefaultInstanceForType()
Returns
TypeDescription
FeatureMap.StringList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValue(int index)

public String getValue(int index)

String feature value with a length limit of 128 bytes.

repeated string value = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The value at the given index.

getValueBytes(int index)

public ByteString getValueBytes(int index)

String feature value with a length limit of 128 bytes.

repeated string value = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the value at the given index.

getValueCount()

public int getValueCount()

String feature value with a length limit of 128 bytes.

repeated string value = 1;

Returns
TypeDescription
int

The count of value.

getValueList()

public ProtocolStringList getValueList()

String feature value with a length limit of 128 bytes.

repeated string value = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FeatureMap.StringList other)

public FeatureMap.StringList.Builder mergeFrom(FeatureMap.StringList other)
Parameter
NameDescription
otherFeatureMap.StringList
Returns
TypeDescription
FeatureMap.StringList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FeatureMap.StringList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FeatureMap.StringList.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FeatureMap.StringList.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FeatureMap.StringList.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FeatureMap.StringList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FeatureMap.StringList.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FeatureMap.StringList.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FeatureMap.StringList.Builder
Overrides

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

public FeatureMap.StringList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FeatureMap.StringList.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FeatureMap.StringList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FeatureMap.StringList.Builder
Overrides

setValue(int index, String value)

public FeatureMap.StringList.Builder setValue(int index, String value)

String feature value with a length limit of 128 bytes.

repeated string value = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The value to set.

Returns
TypeDescription
FeatureMap.StringList.Builder

This builder for chaining.