Class AssistantGroundedContent.TextGroundingMetadata (0.66.0)

public static final class AssistantGroundedContent.TextGroundingMetadata extends GeneratedMessageV3 implements AssistantGroundedContent.TextGroundingMetadataOrBuilder

Grounding details for text sources.

Protobuf type google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AssistantGroundedContent.TextGroundingMetadata

Static Fields

REFERENCES_FIELD_NUMBER

public static final int REFERENCES_FIELD_NUMBER
Field Value
Type Description
int

SEGMENTS_FIELD_NUMBER

public static final int SEGMENTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AssistantGroundedContent.TextGroundingMetadata getDefaultInstance()
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata

getDescriptor()

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

newBuilder()

public static AssistantGroundedContent.TextGroundingMetadata.Builder newBuilder()
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

newBuilder(AssistantGroundedContent.TextGroundingMetadata prototype)

public static AssistantGroundedContent.TextGroundingMetadata.Builder newBuilder(AssistantGroundedContent.TextGroundingMetadata prototype)
Parameter
Name Description
prototype AssistantGroundedContent.TextGroundingMetadata
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

parseDelimitedFrom(InputStream input)

public static AssistantGroundedContent.TextGroundingMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssistantGroundedContent.TextGroundingMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AssistantGroundedContent.TextGroundingMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AssistantGroundedContent.TextGroundingMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AssistantGroundedContent.TextGroundingMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AssistantGroundedContent.TextGroundingMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AssistantGroundedContent.TextGroundingMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AssistantGroundedContent.TextGroundingMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AssistantGroundedContent.TextGroundingMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssistantGroundedContent.TextGroundingMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AssistantGroundedContent.TextGroundingMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AssistantGroundedContent.TextGroundingMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AssistantGroundedContent.TextGroundingMetadata> parser()
Returns
Type Description
Parser<TextGroundingMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AssistantGroundedContent.TextGroundingMetadata getDefaultInstanceForType()
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata

getParserForType()

public Parser<AssistantGroundedContent.TextGroundingMetadata> getParserForType()
Returns
Type Description
Parser<TextGroundingMetadata>
Overrides

getReferences(int index)

public AssistantGroundedContent.TextGroundingMetadata.Reference getReferences(int index)

References for the grounded text.

repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;

Parameter
Name Description
index int
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Reference

getReferencesCount()

public int getReferencesCount()

References for the grounded text.

repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;

Returns
Type Description
int

getReferencesList()

public List<AssistantGroundedContent.TextGroundingMetadata.Reference> getReferencesList()

References for the grounded text.

repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;

Returns
Type Description
List<Reference>

getReferencesOrBuilder(int index)

public AssistantGroundedContent.TextGroundingMetadata.ReferenceOrBuilder getReferencesOrBuilder(int index)

References for the grounded text.

repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;

Parameter
Name Description
index int
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.ReferenceOrBuilder

getReferencesOrBuilderList()

public List<? extends AssistantGroundedContent.TextGroundingMetadata.ReferenceOrBuilder> getReferencesOrBuilderList()

References for the grounded text.

repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.ReferenceOrBuilder>

getSegments(int index)

public AssistantGroundedContent.TextGroundingMetadata.Segment getSegments(int index)

Grounding information for parts of the text.

repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;

Parameter
Name Description
index int
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Segment

getSegmentsCount()

public int getSegmentsCount()

Grounding information for parts of the text.

repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;

Returns
Type Description
int

getSegmentsList()

public List<AssistantGroundedContent.TextGroundingMetadata.Segment> getSegmentsList()

Grounding information for parts of the text.

repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;

Returns
Type Description
List<Segment>

getSegmentsOrBuilder(int index)

public AssistantGroundedContent.TextGroundingMetadata.SegmentOrBuilder getSegmentsOrBuilder(int index)

Grounding information for parts of the text.

repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;

Parameter
Name Description
index int
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.SegmentOrBuilder

getSegmentsOrBuilderList()

public List<? extends AssistantGroundedContent.TextGroundingMetadata.SegmentOrBuilder> getSegmentsOrBuilderList()

Grounding information for parts of the text.

repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.SegmentOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AssistantGroundedContent.TextGroundingMetadata.Builder newBuilderForType()
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AssistantGroundedContent.TextGroundingMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AssistantGroundedContent.TextGroundingMetadata.Builder toBuilder()
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException