Class TextMessage.Builder (0.1.0)

public static final class TextMessage.Builder extends GeneratedMessageV3.Builder<TextMessage.Builder> implements TextMessageOrBuilder

A multi-part text message.

Protobuf type google.cloud.geminidataanalytics.v1beta.TextMessage

Static Methods

getDescriptor()

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

Methods

addAllParts(Iterable<String> values)

public TextMessage.Builder addAllParts(Iterable<String> values)

Optional. The parts of the message.

repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The parts to add.

Returns
Type Description
TextMessage.Builder

This builder for chaining.

addParts(String value)

public TextMessage.Builder addParts(String value)

Optional. The parts of the message.

repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The parts to add.

Returns
Type Description
TextMessage.Builder

This builder for chaining.

addPartsBytes(ByteString value)

public TextMessage.Builder addPartsBytes(ByteString value)

Optional. The parts of the message.

repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the parts to add.

Returns
Type Description
TextMessage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TextMessage build()
Returns
Type Description
TextMessage

buildPartial()

public TextMessage buildPartial()
Returns
Type Description
TextMessage

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParts()

public TextMessage.Builder clearParts()

Optional. The parts of the message.

repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TextMessage.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TextMessage getDefaultInstanceForType()
Returns
Type Description
TextMessage

getDescriptorForType()

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

getParts(int index)

public String getParts(int index)

Optional. The parts of the message.

repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The parts at the given index.

getPartsBytes(int index)

public ByteString getPartsBytes(int index)

Optional. The parts of the message.

repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the parts at the given index.

getPartsCount()

public int getPartsCount()

Optional. The parts of the message.

repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of parts.

getPartsList()

public ProtocolStringList getPartsList()

Optional. The parts of the message.

repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the parts.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TextMessage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParts(int index, String value)

public TextMessage.Builder setParts(int index, String value)

Optional. The parts of the message.

repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The parts to set.

Returns
Type Description
TextMessage.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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