Class Chunk.DocumentMetadata.Builder (0.35.0)

public static final class Chunk.DocumentMetadata.Builder extends GeneratedMessageV3.Builder<Chunk.DocumentMetadata.Builder> implements Chunk.DocumentMetadataOrBuilder

Document metadata contains the information of the document of the current chunk.

Protobuf type google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Chunk.DocumentMetadata build()
Returns
TypeDescription
Chunk.DocumentMetadata

buildPartial()

public Chunk.DocumentMetadata buildPartial()
Returns
TypeDescription
Chunk.DocumentMetadata

clear()

public Chunk.DocumentMetadata.Builder clear()
Returns
TypeDescription
Chunk.DocumentMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTitle()

public Chunk.DocumentMetadata.Builder clearTitle()

Title of the document.

string title = 2;

Returns
TypeDescription
Chunk.DocumentMetadata.Builder

This builder for chaining.

clearUri()

public Chunk.DocumentMetadata.Builder clearUri()

Uri of the document.

string uri = 1;

Returns
TypeDescription
Chunk.DocumentMetadata.Builder

This builder for chaining.

clone()

public Chunk.DocumentMetadata.Builder clone()
Returns
TypeDescription
Chunk.DocumentMetadata.Builder
Overrides

getDefaultInstanceForType()

public Chunk.DocumentMetadata getDefaultInstanceForType()
Returns
TypeDescription
Chunk.DocumentMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTitle()

public String getTitle()

Title of the document.

string title = 2;

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Title of the document.

string title = 2;

Returns
TypeDescription
ByteString

The bytes for title.

getUri()

public String getUri()

Uri of the document.

string uri = 1;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Uri of the document.

string uri = 1;

Returns
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Chunk.DocumentMetadata other)

public Chunk.DocumentMetadata.Builder mergeFrom(Chunk.DocumentMetadata other)
Parameter
NameDescription
otherChunk.DocumentMetadata
Returns
TypeDescription
Chunk.DocumentMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTitle(String value)

public Chunk.DocumentMetadata.Builder setTitle(String value)

Title of the document.

string title = 2;

Parameter
NameDescription
valueString

The title to set.

Returns
TypeDescription
Chunk.DocumentMetadata.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public Chunk.DocumentMetadata.Builder setTitleBytes(ByteString value)

Title of the document.

string title = 2;

Parameter
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
Chunk.DocumentMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public Chunk.DocumentMetadata.Builder setUri(String value)

Uri of the document.

string uri = 1;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
Chunk.DocumentMetadata.Builder

This builder for chaining.

setUriBytes(ByteString value)

public Chunk.DocumentMetadata.Builder setUriBytes(ByteString value)

Uri of the document.

string uri = 1;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
Chunk.DocumentMetadata.Builder

This builder for chaining.