Send feedback
Class TextMessage.Builder (0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
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];
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.
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.
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextMessage . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public TextMessage build ()
buildPartial()
public TextMessage buildPartial ()
clear()
public TextMessage . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public TextMessage . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TextMessage . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearParts()
public TextMessage . Builder clearParts ()
Optional. The parts of the message.
repeated string parts = 1 [(.google.api.field_behavior) = OPTIONAL];
clone()
public TextMessage . Builder clone ()
Overrides
getDefaultInstanceForType()
public TextMessage getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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];
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(TextMessage other)
public TextMessage . Builder mergeFrom ( TextMessage other )
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextMessage . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public TextMessage . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextMessage . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public TextMessage . Builder setField ( Descriptors . FieldDescriptor field , Object value )
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.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextMessage . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TextMessage . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,[]]