public static final class Chunk.DocumentMetadata extends GeneratedMessage implements Chunk.DocumentMetadataOrBuilderDocument metadata contains the information of the document of the current chunk.
Protobuf type google.cloud.discoveryengine.v1.Chunk.DocumentMetadata
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > Chunk.DocumentMetadataImplements
Chunk.DocumentMetadataOrBuilderStatic Fields
STRUCT_DATA_FIELD_NUMBER
public static final int STRUCT_DATA_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static Chunk.DocumentMetadata getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static Chunk.DocumentMetadata.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata.Builder |
|
newBuilder(Chunk.DocumentMetadata prototype)
public static Chunk.DocumentMetadata.Builder newBuilder(Chunk.DocumentMetadata prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
Chunk.DocumentMetadata |
| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata.Builder |
|
parseDelimitedFrom(InputStream input)
public static Chunk.DocumentMetadata parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Chunk.DocumentMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static Chunk.DocumentMetadata parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Chunk.DocumentMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static Chunk.DocumentMetadata parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Chunk.DocumentMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static Chunk.DocumentMetadata parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Chunk.DocumentMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static Chunk.DocumentMetadata parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Chunk.DocumentMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static Chunk.DocumentMetadata parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Chunk.DocumentMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<Chunk.DocumentMetadata> parser()| Returns | |
|---|---|
| Type | Description |
Parser<DocumentMetadata> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public Chunk.DocumentMetadata getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata |
|
getParserForType()
public Parser<Chunk.DocumentMetadata> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<DocumentMetadata> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getStructData()
public Struct getStructData() Data representation.
The structured JSON data for the document. It should conform to the
registered Schema or an
INVALID_ARGUMENT error is thrown.
.google.protobuf.Struct struct_data = 3;
| Returns | |
|---|---|
| Type | Description |
Struct |
The structData. |
getStructDataOrBuilder()
public StructOrBuilder getStructDataOrBuilder() Data representation.
The structured JSON data for the document. It should conform to the
registered Schema or an
INVALID_ARGUMENT error is thrown.
.google.protobuf.Struct struct_data = 3;
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
getTitle()
public String getTitle()Title of the document.
string title = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The title. |
getTitleBytes()
public ByteString getTitleBytes()Title of the document.
string title = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for title. |
getUri()
public String getUri()Uri of the document.
string uri = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The uri. |
getUriBytes()
public ByteString getUriBytes()Uri of the document.
string uri = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for uri. |
hasStructData()
public boolean hasStructData() Data representation.
The structured JSON data for the document. It should conform to the
registered Schema or an
INVALID_ARGUMENT error is thrown.
.google.protobuf.Struct struct_data = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the structData field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public Chunk.DocumentMetadata.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Chunk.DocumentMetadata.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata.Builder |
|
toBuilder()
public Chunk.DocumentMetadata.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
Chunk.DocumentMetadata.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|