com.google.datastore.v1.RunQueryResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datastore-v1-protos Show documentation
Show all versions of datastore-v1-protos Show documentation
Protocol buffers for accessing the Google Cloud Datastore API.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/datastore/v1/datastore.proto
package com.google.datastore.v1;
/**
*
* The response for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
*
*
* Protobuf type {@code google.datastore.v1.RunQueryResponse}
*/
public final class RunQueryResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.datastore.v1.RunQueryResponse)
RunQueryResponseOrBuilder {
// Use RunQueryResponse.newBuilder() to construct.
private RunQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RunQueryResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private RunQueryResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.google.datastore.v1.QueryResultBatch.Builder subBuilder = null;
if (batch_ != null) {
subBuilder = batch_.toBuilder();
}
batch_ = input.readMessage(com.google.datastore.v1.QueryResultBatch.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(batch_);
batch_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.google.datastore.v1.Query.Builder subBuilder = null;
if (query_ != null) {
subBuilder = query_.toBuilder();
}
query_ = input.readMessage(com.google.datastore.v1.Query.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(query_);
query_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.datastore.v1.RunQueryResponse.class, com.google.datastore.v1.RunQueryResponse.Builder.class);
}
public static final int BATCH_FIELD_NUMBER = 1;
private com.google.datastore.v1.QueryResultBatch batch_;
/**
*
* A batch of query results (always present).
*
*
* optional .google.datastore.v1.QueryResultBatch batch = 1;
*/
public boolean hasBatch() {
return batch_ != null;
}
/**
*
* A batch of query results (always present).
*
*
* optional .google.datastore.v1.QueryResultBatch batch = 1;
*/
public com.google.datastore.v1.QueryResultBatch getBatch() {
return batch_ == null ? com.google.datastore.v1.QueryResultBatch.getDefaultInstance() : batch_;
}
/**
*
* A batch of query results (always present).
*
*
* optional .google.datastore.v1.QueryResultBatch batch = 1;
*/
public com.google.datastore.v1.QueryResultBatchOrBuilder getBatchOrBuilder() {
return getBatch();
}
public static final int QUERY_FIELD_NUMBER = 2;
private com.google.datastore.v1.Query query_;
/**
*
* The parsed form of the `GqlQuery` from the request, if it was set.
*
*
* optional .google.datastore.v1.Query query = 2;
*/
public boolean hasQuery() {
return query_ != null;
}
/**
*
* The parsed form of the `GqlQuery` from the request, if it was set.
*
*
* optional .google.datastore.v1.Query query = 2;
*/
public com.google.datastore.v1.Query getQuery() {
return query_ == null ? com.google.datastore.v1.Query.getDefaultInstance() : query_;
}
/**
*
* The parsed form of the `GqlQuery` from the request, if it was set.
*
*
* optional .google.datastore.v1.Query query = 2;
*/
public com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder() {
return getQuery();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (batch_ != null) {
output.writeMessage(1, getBatch());
}
if (query_ != null) {
output.writeMessage(2, getQuery());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (batch_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBatch());
}
if (query_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getQuery());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.datastore.v1.RunQueryResponse)) {
return super.equals(obj);
}
com.google.datastore.v1.RunQueryResponse other = (com.google.datastore.v1.RunQueryResponse) obj;
boolean result = true;
result = result && (hasBatch() == other.hasBatch());
if (hasBatch()) {
result = result && getBatch()
.equals(other.getBatch());
}
result = result && (hasQuery() == other.hasQuery());
if (hasQuery()) {
result = result && getQuery()
.equals(other.getQuery());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasBatch()) {
hash = (37 * hash) + BATCH_FIELD_NUMBER;
hash = (53 * hash) + getBatch().hashCode();
}
if (hasQuery()) {
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.datastore.v1.RunQueryResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.datastore.v1.RunQueryResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.datastore.v1.RunQueryResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.datastore.v1.RunQueryResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.datastore.v1.RunQueryResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.datastore.v1.RunQueryResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.datastore.v1.RunQueryResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.datastore.v1.RunQueryResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.datastore.v1.RunQueryResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.datastore.v1.RunQueryResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.datastore.v1.RunQueryResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* The response for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
*
*
* Protobuf type {@code google.datastore.v1.RunQueryResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.datastore.v1.RunQueryResponse)
com.google.datastore.v1.RunQueryResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.datastore.v1.RunQueryResponse.class, com.google.datastore.v1.RunQueryResponse.Builder.class);
}
// Construct using com.google.datastore.v1.RunQueryResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (batchBuilder_ == null) {
batch_ = null;
} else {
batch_ = null;
batchBuilder_ = null;
}
if (queryBuilder_ == null) {
query_ = null;
} else {
query_ = null;
queryBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.datastore.v1.DatastoreProto.internal_static_google_datastore_v1_RunQueryResponse_descriptor;
}
public com.google.datastore.v1.RunQueryResponse getDefaultInstanceForType() {
return com.google.datastore.v1.RunQueryResponse.getDefaultInstance();
}
public com.google.datastore.v1.RunQueryResponse build() {
com.google.datastore.v1.RunQueryResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.datastore.v1.RunQueryResponse buildPartial() {
com.google.datastore.v1.RunQueryResponse result = new com.google.datastore.v1.RunQueryResponse(this);
if (batchBuilder_ == null) {
result.batch_ = batch_;
} else {
result.batch_ = batchBuilder_.build();
}
if (queryBuilder_ == null) {
result.query_ = query_;
} else {
result.query_ = queryBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.datastore.v1.RunQueryResponse) {
return mergeFrom((com.google.datastore.v1.RunQueryResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.datastore.v1.RunQueryResponse other) {
if (other == com.google.datastore.v1.RunQueryResponse.getDefaultInstance()) return this;
if (other.hasBatch()) {
mergeBatch(other.getBatch());
}
if (other.hasQuery()) {
mergeQuery(other.getQuery());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.datastore.v1.RunQueryResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.datastore.v1.RunQueryResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.datastore.v1.QueryResultBatch batch_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.datastore.v1.QueryResultBatch, com.google.datastore.v1.QueryResultBatch.Builder, com.google.datastore.v1.QueryResultBatchOrBuilder> batchBuilder_;
/**
*
* A batch of query results (always present).
*
*
* optional .google.datastore.v1.QueryResultBatch batch = 1;
*/
public boolean hasBatch() {
return batchBuilder_ != null || batch_ != null;
}
/**
*
* A batch of query results (always present).
*
*
* optional .google.datastore.v1.QueryResultBatch batch = 1;
*/
public com.google.datastore.v1.QueryResultBatch getBatch() {
if (batchBuilder_ == null) {
return batch_ == null ? com.google.datastore.v1.QueryResultBatch.getDefaultInstance() : batch_;
} else {
return batchBuilder_.getMessage();
}
}
/**
*
* A batch of query results (always present).
*
*
* optional .google.datastore.v1.QueryResultBatch batch = 1;
*/
public Builder setBatch(com.google.datastore.v1.QueryResultBatch value) {
if (batchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
batch_ = value;
onChanged();
} else {
batchBuilder_.setMessage(value);
}
return this;
}
/**
*
* A batch of query results (always present).
*
*
* optional .google.datastore.v1.QueryResultBatch batch = 1;
*/
public Builder setBatch(
com.google.datastore.v1.QueryResultBatch.Builder builderForValue) {
if (batchBuilder_ == null) {
batch_ = builderForValue.build();
onChanged();
} else {
batchBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* A batch of query results (always present).
*
*
* optional .google.datastore.v1.QueryResultBatch batch = 1;
*/
public Builder mergeBatch(com.google.datastore.v1.QueryResultBatch value) {
if (batchBuilder_ == null) {
if (batch_ != null) {
batch_ =
com.google.datastore.v1.QueryResultBatch.newBuilder(batch_).mergeFrom(value).buildPartial();
} else {
batch_ = value;
}
onChanged();
} else {
batchBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* A batch of query results (always present).
*
*
* optional .google.datastore.v1.QueryResultBatch batch = 1;
*/
public Builder clearBatch() {
if (batchBuilder_ == null) {
batch_ = null;
onChanged();
} else {
batch_ = null;
batchBuilder_ = null;
}
return this;
}
/**
*
* A batch of query results (always present).
*
*
* optional .google.datastore.v1.QueryResultBatch batch = 1;
*/
public com.google.datastore.v1.QueryResultBatch.Builder getBatchBuilder() {
onChanged();
return getBatchFieldBuilder().getBuilder();
}
/**
*
* A batch of query results (always present).
*
*
* optional .google.datastore.v1.QueryResultBatch batch = 1;
*/
public com.google.datastore.v1.QueryResultBatchOrBuilder getBatchOrBuilder() {
if (batchBuilder_ != null) {
return batchBuilder_.getMessageOrBuilder();
} else {
return batch_ == null ?
com.google.datastore.v1.QueryResultBatch.getDefaultInstance() : batch_;
}
}
/**
*
* A batch of query results (always present).
*
*
* optional .google.datastore.v1.QueryResultBatch batch = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.datastore.v1.QueryResultBatch, com.google.datastore.v1.QueryResultBatch.Builder, com.google.datastore.v1.QueryResultBatchOrBuilder>
getBatchFieldBuilder() {
if (batchBuilder_ == null) {
batchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.datastore.v1.QueryResultBatch, com.google.datastore.v1.QueryResultBatch.Builder, com.google.datastore.v1.QueryResultBatchOrBuilder>(
getBatch(),
getParentForChildren(),
isClean());
batch_ = null;
}
return batchBuilder_;
}
private com.google.datastore.v1.Query query_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.datastore.v1.Query, com.google.datastore.v1.Query.Builder, com.google.datastore.v1.QueryOrBuilder> queryBuilder_;
/**
*
* The parsed form of the `GqlQuery` from the request, if it was set.
*
*
* optional .google.datastore.v1.Query query = 2;
*/
public boolean hasQuery() {
return queryBuilder_ != null || query_ != null;
}
/**
*
* The parsed form of the `GqlQuery` from the request, if it was set.
*
*
* optional .google.datastore.v1.Query query = 2;
*/
public com.google.datastore.v1.Query getQuery() {
if (queryBuilder_ == null) {
return query_ == null ? com.google.datastore.v1.Query.getDefaultInstance() : query_;
} else {
return queryBuilder_.getMessage();
}
}
/**
*
* The parsed form of the `GqlQuery` from the request, if it was set.
*
*
* optional .google.datastore.v1.Query query = 2;
*/
public Builder setQuery(com.google.datastore.v1.Query value) {
if (queryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
queryBuilder_.setMessage(value);
}
return this;
}
/**
*
* The parsed form of the `GqlQuery` from the request, if it was set.
*
*
* optional .google.datastore.v1.Query query = 2;
*/
public Builder setQuery(
com.google.datastore.v1.Query.Builder builderForValue) {
if (queryBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The parsed form of the `GqlQuery` from the request, if it was set.
*
*
* optional .google.datastore.v1.Query query = 2;
*/
public Builder mergeQuery(com.google.datastore.v1.Query value) {
if (queryBuilder_ == null) {
if (query_ != null) {
query_ =
com.google.datastore.v1.Query.newBuilder(query_).mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
queryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The parsed form of the `GqlQuery` from the request, if it was set.
*
*
* optional .google.datastore.v1.Query query = 2;
*/
public Builder clearQuery() {
if (queryBuilder_ == null) {
query_ = null;
onChanged();
} else {
query_ = null;
queryBuilder_ = null;
}
return this;
}
/**
*
* The parsed form of the `GqlQuery` from the request, if it was set.
*
*
* optional .google.datastore.v1.Query query = 2;
*/
public com.google.datastore.v1.Query.Builder getQueryBuilder() {
onChanged();
return getQueryFieldBuilder().getBuilder();
}
/**
*
* The parsed form of the `GqlQuery` from the request, if it was set.
*
*
* optional .google.datastore.v1.Query query = 2;
*/
public com.google.datastore.v1.QueryOrBuilder getQueryOrBuilder() {
if (queryBuilder_ != null) {
return queryBuilder_.getMessageOrBuilder();
} else {
return query_ == null ?
com.google.datastore.v1.Query.getDefaultInstance() : query_;
}
}
/**
*
* The parsed form of the `GqlQuery` from the request, if it was set.
*
*
* optional .google.datastore.v1.Query query = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.datastore.v1.Query, com.google.datastore.v1.Query.Builder, com.google.datastore.v1.QueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.datastore.v1.Query, com.google.datastore.v1.Query.Builder, com.google.datastore.v1.QueryOrBuilder>(
getQuery(),
getParentForChildren(),
isClean());
query_ = null;
}
return queryBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:google.datastore.v1.RunQueryResponse)
}
// @@protoc_insertion_point(class_scope:google.datastore.v1.RunQueryResponse)
private static final com.google.datastore.v1.RunQueryResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.datastore.v1.RunQueryResponse();
}
public static com.google.datastore.v1.RunQueryResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public RunQueryResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RunQueryResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.google.datastore.v1.RunQueryResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy