Class GroundedGenerationContent.Part.Builder (0.81.0)

public static final class GroundedGenerationContent.Part.Builder extends GeneratedMessage.Builder<GroundedGenerationContent.Part.Builder> implements GroundedGenerationContent.PartOrBuilder

Single part of content.

Protobuf type google.cloud.discoveryengine.v1.GroundedGenerationContent.Part

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public GroundedGenerationContent.Part build()
Returns
Type Description
GroundedGenerationContent.Part

buildPartial()

public GroundedGenerationContent.Part buildPartial()
Returns
Type Description
GroundedGenerationContent.Part

clear()

public GroundedGenerationContent.Part.Builder clear()
Returns
Type Description
GroundedGenerationContent.Part.Builder
Overrides

clearData()

public GroundedGenerationContent.Part.Builder clearData()
Returns
Type Description
GroundedGenerationContent.Part.Builder

clearText()

public GroundedGenerationContent.Part.Builder clearText()

Inline text.

string text = 1;

Returns
Type Description
GroundedGenerationContent.Part.Builder

This builder for chaining.

getDataCase()

public GroundedGenerationContent.Part.DataCase getDataCase()
Returns
Type Description
GroundedGenerationContent.Part.DataCase

getDefaultInstanceForType()

public GroundedGenerationContent.Part getDefaultInstanceForType()
Returns
Type Description
GroundedGenerationContent.Part

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getText()

public String getText()

Inline text.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Inline text.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

hasText()

public boolean hasText()

Inline text.

string text = 1;

Returns
Type Description
boolean

Whether the text field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GroundedGenerationContent.Part other)

public GroundedGenerationContent.Part.Builder mergeFrom(GroundedGenerationContent.Part other)
Parameter
Name Description
other GroundedGenerationContent.Part
Returns
Type Description
GroundedGenerationContent.Part.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GroundedGenerationContent.Part.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GroundedGenerationContent.Part.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GroundedGenerationContent.Part.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GroundedGenerationContent.Part.Builder
Overrides

setText(String value)

public GroundedGenerationContent.Part.Builder setText(String value)

Inline text.

string text = 1;

Parameter
Name Description
value String

The text to set.

Returns
Type Description
GroundedGenerationContent.Part.Builder

This builder for chaining.

setTextBytes(ByteString value)

public GroundedGenerationContent.Part.Builder setTextBytes(ByteString value)

Inline text.

string text = 1;

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
GroundedGenerationContent.Part.Builder

This builder for chaining.