Class TextPayload.Builder (0.156.0)

public static final class TextPayload.Builder extends GeneratedMessageV3.Builder<TextPayload.Builder> implements TextPayloadOrBuilder

Container of information about a piece of text.

Protobuf type google.cloud.datalabeling.v1beta1.TextPayload

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TextPayload build()
Returns
TypeDescription
TextPayload

buildPartial()

public TextPayload buildPartial()
Returns
TypeDescription
TextPayload

clear()

public TextPayload.Builder clear()
Returns
TypeDescription
TextPayload.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTextContent()

public TextPayload.Builder clearTextContent()

Text content.

string text_content = 1;

Returns
TypeDescription
TextPayload.Builder

This builder for chaining.

clone()

public TextPayload.Builder clone()
Returns
TypeDescription
TextPayload.Builder
Overrides

getDefaultInstanceForType()

public TextPayload getDefaultInstanceForType()
Returns
TypeDescription
TextPayload

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTextContent()

public String getTextContent()

Text content.

string text_content = 1;

Returns
TypeDescription
String

The textContent.

getTextContentBytes()

public ByteString getTextContentBytes()

Text content.

string text_content = 1;

Returns
TypeDescription
ByteString

The bytes for textContent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TextPayload other)

public TextPayload.Builder mergeFrom(TextPayload other)
Parameter
NameDescription
otherTextPayload
Returns
TypeDescription
TextPayload.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTextContent(String value)

public TextPayload.Builder setTextContent(String value)

Text content.

string text_content = 1;

Parameter
NameDescription
valueString

The textContent to set.

Returns
TypeDescription
TextPayload.Builder

This builder for chaining.

setTextContentBytes(ByteString value)

public TextPayload.Builder setTextContentBytes(ByteString value)

Text content.

string text_content = 1;

Parameter
NameDescription
valueByteString

The bytes for textContent to set.

Returns
TypeDescription
TextPayload.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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