public final class OutputFields extends GeneratedMessage implements OutputFieldsOrBuilder
Defines an output fields struct for data in DataObject.
Output fields are opt-in. A search or query result contains only the data
object name and ID, plus the fields listed here. If this message is unset or
a list is empty, the corresponding part of the data object (data,
vectors or metadata) is omitted from the result; it is not an indication
that the stored data object is empty. Use "*" in a list to return all
fields of that kind.
Protobuf type google.cloud.vectorsearch.v1.OutputFields
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
DATA_FIELDS_FIELD_NUMBER
public static final int DATA_FIELDS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int METADATA_FIELDS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VECTOR_FIELDS_FIELD_NUMBER
public static final int VECTOR_FIELDS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static OutputFields getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static OutputFields.Builder newBuilder()
newBuilder(OutputFields prototype)
public static OutputFields.Builder newBuilder(OutputFields prototype)
public static OutputFields parseDelimitedFrom(InputStream input)
public static OutputFields parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static OutputFields parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OutputFields parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static OutputFields parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OutputFields parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OutputFields parseFrom(CodedInputStream input)
public static OutputFields parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static OutputFields parseFrom(InputStream input)
public static OutputFields parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static OutputFields parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OutputFields parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<OutputFields> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDataFields(int index)
public String getDataFields(int index)
Optional. The fields from the data fields to include in the output. Use
"*" to include all data fields. If empty, data is omitted from results.
repeated string data_fields = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The dataFields at the given index.
|
getDataFieldsBytes(int index)
public ByteString getDataFieldsBytes(int index)
Optional. The fields from the data fields to include in the output. Use
"*" to include all data fields. If empty, data is omitted from results.
repeated string data_fields = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the dataFields at the given index.
|
getDataFieldsCount()
public int getDataFieldsCount()
Optional. The fields from the data fields to include in the output. Use
"*" to include all data fields. If empty, data is omitted from results.
repeated string data_fields = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The count of dataFields.
|
getDataFieldsList()
public ProtocolStringList getDataFieldsList()
Optional. The fields from the data fields to include in the output. Use
"*" to include all data fields. If empty, data is omitted from results.
repeated string data_fields = 1 [(.google.api.field_behavior) = OPTIONAL];
getDefaultInstanceForType()
public OutputFields getDefaultInstanceForType()
public String getMetadataFields(int index)
Optional. The DataObject metadata fields to include in the output:
create_time, update_time and etag. Use "*" to include all metadata
fields. If empty, these fields are omitted from results.
repeated string metadata_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The metadataFields at the given index.
|
public ByteString getMetadataFieldsBytes(int index)
Optional. The DataObject metadata fields to include in the output:
create_time, update_time and etag. Use "*" to include all metadata
fields. If empty, these fields are omitted from results.
repeated string metadata_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the metadataFields at the given index.
|
public int getMetadataFieldsCount()
Optional. The DataObject metadata fields to include in the output:
create_time, update_time and etag. Use "*" to include all metadata
fields. If empty, these fields are omitted from results.
repeated string metadata_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The count of metadataFields.
|
public ProtocolStringList getMetadataFieldsList()
Optional. The DataObject metadata fields to include in the output:
create_time, update_time and etag. Use "*" to include all metadata
fields. If empty, these fields are omitted from results.
repeated string metadata_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
getParserForType()
public Parser<OutputFields> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getVectorFields(int index)
public String getVectorFields(int index)
Optional. The fields from the vector fields to include in the output. Use
"*" to include all vector fields. If empty, vectors is omitted from
results.
repeated string vector_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The vectorFields at the given index.
|
getVectorFieldsBytes(int index)
public ByteString getVectorFieldsBytes(int index)
Optional. The fields from the vector fields to include in the output. Use
"*" to include all vector fields. If empty, vectors is omitted from
results.
repeated string vector_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the vectorFields at the given index.
|
getVectorFieldsCount()
public int getVectorFieldsCount()
Optional. The fields from the vector fields to include in the output. Use
"*" to include all vector fields. If empty, vectors is omitted from
results.
repeated string vector_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The count of vectorFields.
|
getVectorFieldsList()
public ProtocolStringList getVectorFieldsList()
Optional. The fields from the vector fields to include in the output. Use
"*" to include all vector fields. If empty, vectors is omitted from
results.
repeated string vector_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public OutputFields.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected OutputFields.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public OutputFields.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides