public static final class Chunk.AnnotationMetadata extends GeneratedMessage implements Chunk.AnnotationMetadataOrBuilderThe annotation metadata includes structured content in the current chunk.
Protobuf type google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > Chunk.AnnotationMetadataImplements
Chunk.AnnotationMetadataOrBuilderStatic Fields
IMAGE_ID_FIELD_NUMBER
public static final int IMAGE_ID_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
STRUCTURED_CONTENT_FIELD_NUMBER
public static final int STRUCTURED_CONTENT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static Chunk.AnnotationMetadata getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static Chunk.AnnotationMetadata.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata.Builder |
|
newBuilder(Chunk.AnnotationMetadata prototype)
public static Chunk.AnnotationMetadata.Builder newBuilder(Chunk.AnnotationMetadata prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
Chunk.AnnotationMetadata |
| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata.Builder |
|
parseDelimitedFrom(InputStream input)
public static Chunk.AnnotationMetadata parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Chunk.AnnotationMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static Chunk.AnnotationMetadata parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Chunk.AnnotationMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static Chunk.AnnotationMetadata parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Chunk.AnnotationMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static Chunk.AnnotationMetadata parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Chunk.AnnotationMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static Chunk.AnnotationMetadata parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Chunk.AnnotationMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static Chunk.AnnotationMetadata parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Chunk.AnnotationMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<Chunk.AnnotationMetadata> parser()| Returns | |
|---|---|
| Type | Description |
Parser<AnnotationMetadata> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public Chunk.AnnotationMetadata getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata |
|
getImageId()
public String getImageId()Output only. Image id is provided if the structured content is based on an image.
string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The imageId. |
getImageIdBytes()
public ByteString getImageIdBytes()Output only. Image id is provided if the structured content is based on an image.
string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for imageId. |
getParserForType()
public Parser<Chunk.AnnotationMetadata> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<AnnotationMetadata> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getStructuredContent()
public Chunk.StructuredContent getStructuredContent()Output only. The structured content information.
.google.cloud.discoveryengine.v1.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Chunk.StructuredContent |
The structuredContent. |
getStructuredContentOrBuilder()
public Chunk.StructuredContentOrBuilder getStructuredContentOrBuilder()Output only. The structured content information.
.google.cloud.discoveryengine.v1.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Chunk.StructuredContentOrBuilder |
|
hasStructuredContent()
public boolean hasStructuredContent()Output only. The structured content information.
.google.cloud.discoveryengine.v1.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the structuredContent 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.AnnotationMetadata.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Chunk.AnnotationMetadata.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata.Builder |
|
toBuilder()
public Chunk.AnnotationMetadata.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
Chunk.AnnotationMetadata.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|