public final class AggregationResultBatch extends GeneratedMessageV3 implements AggregationResultBatchOrBuilder
A batch of aggregation results produced by an aggregation query.
Protobuf type google.datastore.v1.AggregationResultBatch
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AggregationResultBatchImplements
AggregationResultBatchOrBuilderStatic Fields
AGGREGATION_RESULTS_FIELD_NUMBER
public static final int AGGREGATION_RESULTS_FIELD_NUMBER
Type | Description |
int |
MORE_RESULTS_FIELD_NUMBER
public static final int MORE_RESULTS_FIELD_NUMBER
Type | Description |
int |
READ_TIME_FIELD_NUMBER
public static final int READ_TIME_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static AggregationResultBatch getDefaultInstance()
Type | Description |
AggregationResultBatch |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static AggregationResultBatch.Builder newBuilder()
Type | Description |
AggregationResultBatch.Builder |
newBuilder(AggregationResultBatch prototype)
public static AggregationResultBatch.Builder newBuilder(AggregationResultBatch prototype)
Name | Description |
prototype | AggregationResultBatch |
Type | Description |
AggregationResultBatch.Builder |
parseDelimitedFrom(InputStream input)
public static AggregationResultBatch parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
AggregationResultBatch |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AggregationResultBatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResultBatch |
Type | Description |
IOException |
parseFrom(byte[] data)
public static AggregationResultBatch parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
AggregationResultBatch |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AggregationResultBatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResultBatch |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static AggregationResultBatch parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
AggregationResultBatch |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AggregationResultBatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResultBatch |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static AggregationResultBatch parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
AggregationResultBatch |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AggregationResultBatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResultBatch |
Type | Description |
IOException |
parseFrom(InputStream input)
public static AggregationResultBatch parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
AggregationResultBatch |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AggregationResultBatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResultBatch |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static AggregationResultBatch parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
AggregationResultBatch |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AggregationResultBatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResultBatch |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<AggregationResultBatch> parser()
Type | Description |
Parser<AggregationResultBatch> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getAggregationResults(int index)
public AggregationResult getAggregationResults(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Name | Description |
index | int |
Type | Description |
AggregationResult |
getAggregationResultsCount()
public int getAggregationResultsCount()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Type | Description |
int |
getAggregationResultsList()
public List<AggregationResult> getAggregationResultsList()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Type | Description |
List<AggregationResult> |
getAggregationResultsOrBuilder(int index)
public AggregationResultOrBuilder getAggregationResultsOrBuilder(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Name | Description |
index | int |
Type | Description |
AggregationResultOrBuilder |
getAggregationResultsOrBuilderList()
public List<? extends AggregationResultOrBuilder> getAggregationResultsOrBuilderList()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
Type | Description |
List<? extends com.google.datastore.v1.AggregationResultOrBuilder> |
getDefaultInstanceForType()
public AggregationResultBatch getDefaultInstanceForType()
Type | Description |
AggregationResultBatch |
getMoreResults()
public QueryResultBatch.MoreResultsType getMoreResults()
The state of the query after the current batch.
Only COUNT(*) aggregations are supported in the initial launch. Therefore,
expected result type is limited to NO_MORE_RESULTS
.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;
Type | Description |
QueryResultBatch.MoreResultsType | The moreResults. |
getMoreResultsValue()
public int getMoreResultsValue()
The state of the query after the current batch.
Only COUNT(*) aggregations are supported in the initial launch. Therefore,
expected result type is limited to NO_MORE_RESULTS
.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;
Type | Description |
int | The enum numeric value on the wire for moreResults. |
getParserForType()
public Parser<AggregationResultBatch> getParserForType()
Type | Description |
Parser<AggregationResultBatch> |
getReadTime()
public Timestamp getReadTime()
Read timestamp this batch was returned from. In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3;
Type | Description |
Timestamp | The readTime. |
getReadTimeOrBuilder()
public TimestampOrBuilder getReadTimeOrBuilder()
Read timestamp this batch was returned from. In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3;
Type | Description |
TimestampOrBuilder |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasReadTime()
public boolean hasReadTime()
Read timestamp this batch was returned from. In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3;
Type | Description |
boolean | Whether the readTime field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public AggregationResultBatch.Builder newBuilderForType()
Type | Description |
AggregationResultBatch.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AggregationResultBatch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
AggregationResultBatch.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public AggregationResultBatch.Builder toBuilder()
Type | Description |
AggregationResultBatch.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |