public static final class AssistantGroundedContent.TextGroundingMetadata.Reference extends GeneratedMessage implements AssistantGroundedContent.TextGroundingMetadata.ReferenceOrBuilderReferenced content and related document metadata.
Protobuf type
google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > AssistantGroundedContent.TextGroundingMetadata.ReferenceStatic Fields
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DOCUMENT_METADATA_FIELD_NUMBER
public static final int DOCUMENT_METADATA_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static AssistantGroundedContent.TextGroundingMetadata.Reference getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static AssistantGroundedContent.TextGroundingMetadata.Reference.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference.Builder |
|
newBuilder(AssistantGroundedContent.TextGroundingMetadata.Reference prototype)
public static AssistantGroundedContent.TextGroundingMetadata.Reference.Builder newBuilder(AssistantGroundedContent.TextGroundingMetadata.Reference prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
AssistantGroundedContent.TextGroundingMetadata.Reference |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference.Builder |
|
parseDelimitedFrom(InputStream input)
public static AssistantGroundedContent.TextGroundingMetadata.Reference parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AssistantGroundedContent.TextGroundingMetadata.Reference parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static AssistantGroundedContent.TextGroundingMetadata.Reference parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AssistantGroundedContent.TextGroundingMetadata.Reference parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static AssistantGroundedContent.TextGroundingMetadata.Reference parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AssistantGroundedContent.TextGroundingMetadata.Reference parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static AssistantGroundedContent.TextGroundingMetadata.Reference parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AssistantGroundedContent.TextGroundingMetadata.Reference parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static AssistantGroundedContent.TextGroundingMetadata.Reference parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AssistantGroundedContent.TextGroundingMetadata.Reference parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static AssistantGroundedContent.TextGroundingMetadata.Reference parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AssistantGroundedContent.TextGroundingMetadata.Reference parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<AssistantGroundedContent.TextGroundingMetadata.Reference> parser()| Returns | |
|---|---|
| Type | Description |
Parser<Reference> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getContent()
public String getContent()Referenced text content.
string content = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The content. |
getContentBytes()
public ByteString getContentBytes()Referenced text content.
string content = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for content. |
getDefaultInstanceForType()
public AssistantGroundedContent.TextGroundingMetadata.Reference getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference |
|
getDocumentMetadata()
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata getDocumentMetadata()Document metadata.
.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2;
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata |
The documentMetadata. |
getDocumentMetadataOrBuilder()
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder getDocumentMetadataOrBuilder()Document metadata.
.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2;
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder |
|
getParserForType()
public Parser<AssistantGroundedContent.TextGroundingMetadata.Reference> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<Reference> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hasDocumentMetadata()
public boolean hasDocumentMetadata()Document metadata.
.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the documentMetadata 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 AssistantGroundedContent.TextGroundingMetadata.Reference.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected AssistantGroundedContent.TextGroundingMetadata.Reference.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference.Builder |
|
toBuilder()
public AssistantGroundedContent.TextGroundingMetadata.Reference.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.Reference.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|