Class TextPayload (0.148.0)

public final class TextPayload extends GeneratedMessageV3 implements TextPayloadOrBuilder

Container of information about a piece of text.

Protobuf type google.cloud.datalabeling.v1beta1.TextPayload

Static Fields

TEXT_CONTENT_FIELD_NUMBER

public static final int TEXT_CONTENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TextPayload getDefaultInstance()
Returns
TypeDescription
TextPayload

getDescriptor()

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

newBuilder()

public static TextPayload.Builder newBuilder()
Returns
TypeDescription
TextPayload.Builder

newBuilder(TextPayload prototype)

public static TextPayload.Builder newBuilder(TextPayload prototype)
Parameter
NameDescription
prototypeTextPayload
Returns
TypeDescription
TextPayload.Builder

parseDelimitedFrom(InputStream input)

public static TextPayload parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextPayload
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TextPayload parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextPayload
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TextPayload parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TextPayload
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TextPayload parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextPayload
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TextPayload parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TextPayload
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TextPayload parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextPayload
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TextPayload parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TextPayload
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TextPayload parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextPayload
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TextPayload parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextPayload
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TextPayload parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextPayload
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TextPayload parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TextPayload
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TextPayload parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextPayload
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TextPayload> parser()
Returns
TypeDescription
Parser<TextPayload>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public TextPayload getDefaultInstanceForType()
Returns
TypeDescription
TextPayload

getParserForType()

public Parser<TextPayload> getParserForType()
Returns
TypeDescription
Parser<TextPayload>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TextPayload.Builder newBuilderForType()
Returns
TypeDescription
TextPayload.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TextPayload.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TextPayload.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TextPayload.Builder toBuilder()
Returns
TypeDescription
TextPayload.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException