public static final class TextMessage.Builder extends GeneratedMessage.Builder<TextMessage.Builder> implements TextMessageOrBuilderA multi-part text message.
Protobuf type google.cloud.geminidataanalytics.v1beta.TextMessage
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.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. |
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 |
|
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. |
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 GeneratedMessage.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 |
|
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. |
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. |