Class GroundedGenerationContent.Part.Builder (0.49.0)

public static final class GroundedGenerationContent.Part.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GroundedGenerationContent.Part.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GroundedGenerationContent.Part.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public GroundedGenerationContent.Part.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GroundedGenerationContent.Part.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GroundedGenerationContent.Part.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GroundedGenerationContent.Part.Builder
Overrides

clearText()

public GroundedGenerationContent.Part.Builder clearText()

Inline text.

string text = 1;

Returns
Type Description
GroundedGenerationContent.Part.Builder

This builder for chaining.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GroundedGenerationContent.Part.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GroundedGenerationContent.Part.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GroundedGenerationContent.Part.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GroundedGenerationContent.Part.Builder
Overrides

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

public GroundedGenerationContent.Part.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
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.

setUnknownFields(UnknownFieldSet unknownFields)

public final GroundedGenerationContent.Part.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GroundedGenerationContent.Part.Builder
Overrides