public static final class AssistantGroundedContent.TextGroundingMetadata.VisualSegment extends GeneratedMessage implements AssistantGroundedContent.TextGroundingMetadata.VisualSegmentOrBuilderGrounding information for a visual segment.
Protobuf type
google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > AssistantGroundedContent.TextGroundingMetadata.VisualSegmentStatic Fields
CONTENT_ID_FIELD_NUMBER
public static final int CONTENT_ID_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
REFERENCE_INDICES_FIELD_NUMBER
public static final int REFERENCE_INDICES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static AssistantGroundedContent.TextGroundingMetadata.VisualSegment getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static AssistantGroundedContent.TextGroundingMetadata.VisualSegment.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment.Builder |
|
newBuilder(AssistantGroundedContent.TextGroundingMetadata.VisualSegment prototype)
public static AssistantGroundedContent.TextGroundingMetadata.VisualSegment.Builder newBuilder(AssistantGroundedContent.TextGroundingMetadata.VisualSegment prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment.Builder |
|
parseDelimitedFrom(InputStream input)
public static AssistantGroundedContent.TextGroundingMetadata.VisualSegment parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AssistantGroundedContent.TextGroundingMetadata.VisualSegment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static AssistantGroundedContent.TextGroundingMetadata.VisualSegment parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AssistantGroundedContent.TextGroundingMetadata.VisualSegment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static AssistantGroundedContent.TextGroundingMetadata.VisualSegment parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AssistantGroundedContent.TextGroundingMetadata.VisualSegment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static AssistantGroundedContent.TextGroundingMetadata.VisualSegment parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AssistantGroundedContent.TextGroundingMetadata.VisualSegment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static AssistantGroundedContent.TextGroundingMetadata.VisualSegment parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AssistantGroundedContent.TextGroundingMetadata.VisualSegment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static AssistantGroundedContent.TextGroundingMetadata.VisualSegment parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AssistantGroundedContent.TextGroundingMetadata.VisualSegment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<AssistantGroundedContent.TextGroundingMetadata.VisualSegment> parser()| Returns | |
|---|---|
| Type | Description |
Parser<VisualSegment> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getContentId()
public String getContentId() The content id of the visual segment. In order to display the citation
of the visual element, this content_id needs to match with the
grounded_content.content_metadata.content_id field.
string content_id = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The contentId. |
getContentIdBytes()
public ByteString getContentIdBytes() The content id of the visual segment. In order to display the citation
of the visual element, this content_id needs to match with the
grounded_content.content_metadata.content_id field.
string content_id = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for contentId. |
getDefaultInstanceForType()
public AssistantGroundedContent.TextGroundingMetadata.VisualSegment getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment |
|
getParserForType()
public Parser<AssistantGroundedContent.TextGroundingMetadata.VisualSegment> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<VisualSegment> |
|
getReferenceIndices(int index)
public int getReferenceIndices(int index)References for the visual segment.
repeated int32 reference_indices = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The referenceIndices at the given index. |
getReferenceIndicesCount()
public int getReferenceIndicesCount()References for the visual segment.
repeated int32 reference_indices = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The count of referenceIndices. |
getReferenceIndicesList()
public List<Integer> getReferenceIndicesList()References for the visual segment.
repeated int32 reference_indices = 1;
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the referenceIndices. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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.VisualSegment.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected AssistantGroundedContent.TextGroundingMetadata.VisualSegment.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment.Builder |
|
toBuilder()
public AssistantGroundedContent.TextGroundingMetadata.VisualSegment.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent.TextGroundingMetadata.VisualSegment.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|