public static final class TextMessage.Builder extends GeneratedMessageV3.Builder<TextMessage.Builder> implements TextMessageOrBuilderA multi-part text message.
Protobuf type google.cloud.geminidataanalytics.v1beta.TextMessage
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TextMessage.BuilderImplements
TextMessageOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
|
clearField(Descriptors.FieldDescriptor field)
public TextMessage.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
TextMessage.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public TextMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
TextMessage.Builder |
|
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. |
clearTextType()
public TextMessage.Builder clearTextType()Optional. The type of the text message.
.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TextMessage.Builder |
This builder for chaining. |
clone()
public TextMessage.Builder clone()| Returns | |
|---|---|
| Type | Description |
TextMessage.Builder |
|
getDefaultInstanceForType()
public TextMessage getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TextMessage |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
intThe 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 |
intThe 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. |
getTextType()
public TextMessage.TextType getTextType()Optional. The type of the text message.
.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TextMessage.TextType |
The textType. |
getTextTypeValue()
public int getTextTypeValue()Optional. The type of the text message.
.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for textType. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TextMessage.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TextMessage.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
TextMessage.Builder |
|
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 |
|
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 |
intThe index to set the value at. |
value |
StringThe 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 |
|
setTextType(TextMessage.TextType value)
public TextMessage.Builder setTextType(TextMessage.TextType value)Optional. The type of the text message.
.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
TextMessage.TextTypeThe textType to set. |
| Returns | |
|---|---|
| Type | Description |
TextMessage.Builder |
This builder for chaining. |
setTextTypeValue(int value)
public TextMessage.Builder setTextTypeValue(int value)Optional. The type of the text message.
.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType text_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for textType to set. |
| Returns | |
|---|---|
| Type | Description |
TextMessage.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final TextMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
TextMessage.Builder |
|