All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.apphosting.datastore.proto2api.DatastoreV3Pb Maven / Gradle / Ivy

There is a newer version: 2.0.31
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: datastore_v3.proto

package com.google.apphosting.datastore.proto2api;

public final class DatastoreV3Pb {
  private DatastoreV3Pb() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface TransactionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.Transaction)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * all possible values from 0 to 2^64 - 1 are valid handles. there is no
     * special "error" or "unset" value.
     * 
* * required fixed64 handle = 1; * @return Whether the handle field is set. */ boolean hasHandle(); /** *
     * all possible values from 0 to 2^64 - 1 are valid handles. there is no
     * special "error" or "unset" value.
     * 
* * required fixed64 handle = 1; * @return The handle. */ long getHandle(); /** *
     * id of the application e.g. "admin-console".
     * 
* * required string app = 2; * @return Whether the app field is set. */ boolean hasApp(); /** *
     * id of the application e.g. "admin-console".
     * 
* * required string app = 2; * @return The app. */ java.lang.String getApp(); /** *
     * id of the application e.g. "admin-console".
     * 
* * required string app = 2; * @return The bytes for app. */ com.google.protobuf.ByteString getAppBytes(); /** *
     * The database that this transaction is for.
     * Ignored except for rpcs Commit and Rollback.
     * 
* * optional string database_id = 6; * @return Whether the databaseId field is set. */ boolean hasDatabaseId(); /** *
     * The database that this transaction is for.
     * Ignored except for rpcs Commit and Rollback.
     * 
* * optional string database_id = 6; * @return The databaseId. */ java.lang.String getDatabaseId(); /** *
     * The database that this transaction is for.
     * Ignored except for rpcs Commit and Rollback.
     * 
* * optional string database_id = 6; * @return The bytes for databaseId. */ com.google.protobuf.ByteString getDatabaseIdBytes(); /** *
     * For each changed entity a child marker entity will be created
     * to trace the mutation.
     * Ignored except for rpc Commit.
     * 
* * optional bool mark_changes = 3 [default = false]; * @return Whether the markChanges field is set. */ boolean hasMarkChanges(); /** *
     * For each changed entity a child marker entity will be created
     * to trace the mutation.
     * Ignored except for rpc Commit.
     * 
* * optional bool mark_changes = 3 [default = false]; * @return The markChanges. */ boolean getMarkChanges(); /** *
     * All index definitions related to the transaction.
     * Ignored except for rpc Commit.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ java.util.List getCompositeIndexList(); /** *
     * All index definitions related to the transaction.
     * Ignored except for rpc Commit.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index); /** *
     * All index definitions related to the transaction.
     * Ignored except for rpc Commit.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ int getCompositeIndexCount(); /** *
     * All index definitions related to the transaction.
     * Ignored except for rpc Commit.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ java.util.List getCompositeIndexOrBuilderList(); /** *
     * All index definitions related to the transaction.
     * Ignored except for rpc Commit.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder( int index); } /** *
   * A transaction handle. See
   * http://g3doc/apphosting/g3doc/wiki-carryover/datastore_transactions.md .
   * Next tag is 7
   * 
* * Protobuf type {@code apphosting_datastore_v3.Transaction} */ public static final class Transaction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.Transaction) TransactionOrBuilder { private static final long serialVersionUID = 0L; // Use Transaction.newBuilder() to construct. private Transaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Transaction() { app_ = ""; databaseId_ = ""; compositeIndex_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Transaction(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Transaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder.class); } private int bitField0_; public static final int HANDLE_FIELD_NUMBER = 1; private long handle_ = 0L; /** *
     * all possible values from 0 to 2^64 - 1 are valid handles. there is no
     * special "error" or "unset" value.
     * 
* * required fixed64 handle = 1; * @return Whether the handle field is set. */ @java.lang.Override public boolean hasHandle() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * all possible values from 0 to 2^64 - 1 are valid handles. there is no
     * special "error" or "unset" value.
     * 
* * required fixed64 handle = 1; * @return The handle. */ @java.lang.Override public long getHandle() { return handle_; } public static final int APP_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object app_ = ""; /** *
     * id of the application e.g. "admin-console".
     * 
* * required string app = 2; * @return Whether the app field is set. */ @java.lang.Override public boolean hasApp() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * id of the application e.g. "admin-console".
     * 
* * required string app = 2; * @return The app. */ @java.lang.Override public java.lang.String getApp() { java.lang.Object ref = app_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { app_ = s; } return s; } } /** *
     * id of the application e.g. "admin-console".
     * 
* * required string app = 2; * @return The bytes for app. */ @java.lang.Override public com.google.protobuf.ByteString getAppBytes() { java.lang.Object ref = app_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); app_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATABASE_ID_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object databaseId_ = ""; /** *
     * The database that this transaction is for.
     * Ignored except for rpcs Commit and Rollback.
     * 
* * optional string database_id = 6; * @return Whether the databaseId field is set. */ @java.lang.Override public boolean hasDatabaseId() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The database that this transaction is for.
     * Ignored except for rpcs Commit and Rollback.
     * 
* * optional string database_id = 6; * @return The databaseId. */ @java.lang.Override public java.lang.String getDatabaseId() { java.lang.Object ref = databaseId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { databaseId_ = s; } return s; } } /** *
     * The database that this transaction is for.
     * Ignored except for rpcs Commit and Rollback.
     * 
* * optional string database_id = 6; * @return The bytes for databaseId. */ @java.lang.Override public com.google.protobuf.ByteString getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); databaseId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MARK_CHANGES_FIELD_NUMBER = 3; private boolean markChanges_ = false; /** *
     * For each changed entity a child marker entity will be created
     * to trace the mutation.
     * Ignored except for rpc Commit.
     * 
* * optional bool mark_changes = 3 [default = false]; * @return Whether the markChanges field is set. */ @java.lang.Override public boolean hasMarkChanges() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * For each changed entity a child marker entity will be created
     * to trace the mutation.
     * Ignored except for rpc Commit.
     * 
* * optional bool mark_changes = 3 [default = false]; * @return The markChanges. */ @java.lang.Override public boolean getMarkChanges() { return markChanges_; } public static final int COMPOSITE_INDEX_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List compositeIndex_; /** *
     * All index definitions related to the transaction.
     * Ignored except for rpc Commit.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ @java.lang.Override public java.util.List getCompositeIndexList() { return compositeIndex_; } /** *
     * All index definitions related to the transaction.
     * Ignored except for rpc Commit.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ @java.lang.Override public java.util.List getCompositeIndexOrBuilderList() { return compositeIndex_; } /** *
     * All index definitions related to the transaction.
     * Ignored except for rpc Commit.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ @java.lang.Override public int getCompositeIndexCount() { return compositeIndex_.size(); } /** *
     * All index definitions related to the transaction.
     * Ignored except for rpc Commit.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index) { return compositeIndex_.get(index); } /** *
     * All index definitions related to the transaction.
     * Ignored except for rpc Commit.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder( int index) { return compositeIndex_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasHandle()) { memoizedIsInitialized = 0; return false; } if (!hasApp()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getCompositeIndexCount(); i++) { if (!getCompositeIndex(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeFixed64(1, handle_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, app_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(3, markChanges_); } for (int i = 0; i < compositeIndex_.size(); i++) { output.writeMessage(5, compositeIndex_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, databaseId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(1, handle_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, app_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, markChanges_); } for (int i = 0; i < compositeIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, compositeIndex_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, databaseId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction) obj; if (hasHandle() != other.hasHandle()) return false; if (hasHandle()) { if (getHandle() != other.getHandle()) return false; } if (hasApp() != other.hasApp()) return false; if (hasApp()) { if (!getApp() .equals(other.getApp())) return false; } if (hasDatabaseId() != other.hasDatabaseId()) return false; if (hasDatabaseId()) { if (!getDatabaseId() .equals(other.getDatabaseId())) return false; } if (hasMarkChanges() != other.hasMarkChanges()) return false; if (hasMarkChanges()) { if (getMarkChanges() != other.getMarkChanges()) return false; } if (!getCompositeIndexList() .equals(other.getCompositeIndexList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHandle()) { hash = (37 * hash) + HANDLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHandle()); } if (hasApp()) { hash = (37 * hash) + APP_FIELD_NUMBER; hash = (53 * hash) + getApp().hashCode(); } if (hasDatabaseId()) { hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER; hash = (53 * hash) + getDatabaseId().hashCode(); } if (hasMarkChanges()) { hash = (37 * hash) + MARK_CHANGES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMarkChanges()); } if (getCompositeIndexCount() > 0) { hash = (37 * hash) + COMPOSITE_INDEX_FIELD_NUMBER; hash = (53 * hash) + getCompositeIndexList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction 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.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction 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.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction 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.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * A transaction handle. See
     * http://g3doc/apphosting/g3doc/wiki-carryover/datastore_transactions.md .
     * Next tag is 7
     * 
* * Protobuf type {@code apphosting_datastore_v3.Transaction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.Transaction) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Transaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; handle_ = 0L; app_ = ""; databaseId_ = ""; markChanges_ = false; if (compositeIndexBuilder_ == null) { compositeIndex_ = java.util.Collections.emptyList(); } else { compositeIndex_ = null; compositeIndexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Transaction_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction result) { if (compositeIndexBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { compositeIndex_ = java.util.Collections.unmodifiableList(compositeIndex_); bitField0_ = (bitField0_ & ~0x00000010); } result.compositeIndex_ = compositeIndex_; } else { result.compositeIndex_ = compositeIndexBuilder_.build(); } } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.handle_ = handle_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.app_ = app_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.databaseId_ = databaseId_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.markChanges_ = markChanges_; to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance()) return this; if (other.hasHandle()) { setHandle(other.getHandle()); } if (other.hasApp()) { app_ = other.app_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasDatabaseId()) { databaseId_ = other.databaseId_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasMarkChanges()) { setMarkChanges(other.getMarkChanges()); } if (compositeIndexBuilder_ == null) { if (!other.compositeIndex_.isEmpty()) { if (compositeIndex_.isEmpty()) { compositeIndex_ = other.compositeIndex_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureCompositeIndexIsMutable(); compositeIndex_.addAll(other.compositeIndex_); } onChanged(); } } else { if (!other.compositeIndex_.isEmpty()) { if (compositeIndexBuilder_.isEmpty()) { compositeIndexBuilder_.dispose(); compositeIndexBuilder_ = null; compositeIndex_ = other.compositeIndex_; bitField0_ = (bitField0_ & ~0x00000010); compositeIndexBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCompositeIndexFieldBuilder() : null; } else { compositeIndexBuilder_.addAllMessages(other.compositeIndex_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasHandle()) { return false; } if (!hasApp()) { return false; } for (int i = 0; i < getCompositeIndexCount(); i++) { if (!getCompositeIndex(i).isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 9: { handle_ = input.readFixed64(); bitField0_ |= 0x00000001; break; } // case 9 case 18: { app_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { markChanges_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 24 case 42: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.PARSER, extensionRegistry); if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.add(m); } else { compositeIndexBuilder_.addMessage(m); } break; } // case 42 case 50: { databaseId_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long handle_ ; /** *
       * all possible values from 0 to 2^64 - 1 are valid handles. there is no
       * special "error" or "unset" value.
       * 
* * required fixed64 handle = 1; * @return Whether the handle field is set. */ @java.lang.Override public boolean hasHandle() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * all possible values from 0 to 2^64 - 1 are valid handles. there is no
       * special "error" or "unset" value.
       * 
* * required fixed64 handle = 1; * @return The handle. */ @java.lang.Override public long getHandle() { return handle_; } /** *
       * all possible values from 0 to 2^64 - 1 are valid handles. there is no
       * special "error" or "unset" value.
       * 
* * required fixed64 handle = 1; * @param value The handle to set. * @return This builder for chaining. */ public Builder setHandle(long value) { handle_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * all possible values from 0 to 2^64 - 1 are valid handles. there is no
       * special "error" or "unset" value.
       * 
* * required fixed64 handle = 1; * @return This builder for chaining. */ public Builder clearHandle() { bitField0_ = (bitField0_ & ~0x00000001); handle_ = 0L; onChanged(); return this; } private java.lang.Object app_ = ""; /** *
       * id of the application e.g. "admin-console".
       * 
* * required string app = 2; * @return Whether the app field is set. */ public boolean hasApp() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * id of the application e.g. "admin-console".
       * 
* * required string app = 2; * @return The app. */ public java.lang.String getApp() { java.lang.Object ref = app_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { app_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * id of the application e.g. "admin-console".
       * 
* * required string app = 2; * @return The bytes for app. */ public com.google.protobuf.ByteString getAppBytes() { java.lang.Object ref = app_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); app_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * id of the application e.g. "admin-console".
       * 
* * required string app = 2; * @param value The app to set. * @return This builder for chaining. */ public Builder setApp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } app_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * id of the application e.g. "admin-console".
       * 
* * required string app = 2; * @return This builder for chaining. */ public Builder clearApp() { app_ = getDefaultInstance().getApp(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * id of the application e.g. "admin-console".
       * 
* * required string app = 2; * @param value The bytes for app to set. * @return This builder for chaining. */ public Builder setAppBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } app_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object databaseId_ = ""; /** *
       * The database that this transaction is for.
       * Ignored except for rpcs Commit and Rollback.
       * 
* * optional string database_id = 6; * @return Whether the databaseId field is set. */ public boolean hasDatabaseId() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * The database that this transaction is for.
       * Ignored except for rpcs Commit and Rollback.
       * 
* * optional string database_id = 6; * @return The databaseId. */ public java.lang.String getDatabaseId() { java.lang.Object ref = databaseId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { databaseId_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * The database that this transaction is for.
       * Ignored except for rpcs Commit and Rollback.
       * 
* * optional string database_id = 6; * @return The bytes for databaseId. */ public com.google.protobuf.ByteString getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); databaseId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The database that this transaction is for.
       * Ignored except for rpcs Commit and Rollback.
       * 
* * optional string database_id = 6; * @param value The databaseId to set. * @return This builder for chaining. */ public Builder setDatabaseId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The database that this transaction is for.
       * Ignored except for rpcs Commit and Rollback.
       * 
* * optional string database_id = 6; * @return This builder for chaining. */ public Builder clearDatabaseId() { databaseId_ = getDefaultInstance().getDatabaseId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * The database that this transaction is for.
       * Ignored except for rpcs Commit and Rollback.
       * 
* * optional string database_id = 6; * @param value The bytes for databaseId to set. * @return This builder for chaining. */ public Builder setDatabaseIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private boolean markChanges_ ; /** *
       * For each changed entity a child marker entity will be created
       * to trace the mutation.
       * Ignored except for rpc Commit.
       * 
* * optional bool mark_changes = 3 [default = false]; * @return Whether the markChanges field is set. */ @java.lang.Override public boolean hasMarkChanges() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * For each changed entity a child marker entity will be created
       * to trace the mutation.
       * Ignored except for rpc Commit.
       * 
* * optional bool mark_changes = 3 [default = false]; * @return The markChanges. */ @java.lang.Override public boolean getMarkChanges() { return markChanges_; } /** *
       * For each changed entity a child marker entity will be created
       * to trace the mutation.
       * Ignored except for rpc Commit.
       * 
* * optional bool mark_changes = 3 [default = false]; * @param value The markChanges to set. * @return This builder for chaining. */ public Builder setMarkChanges(boolean value) { markChanges_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * For each changed entity a child marker entity will be created
       * to trace the mutation.
       * Ignored except for rpc Commit.
       * 
* * optional bool mark_changes = 3 [default = false]; * @return This builder for chaining. */ public Builder clearMarkChanges() { bitField0_ = (bitField0_ & ~0x00000008); markChanges_ = false; onChanged(); return this; } private java.util.List compositeIndex_ = java.util.Collections.emptyList(); private void ensureCompositeIndexIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { compositeIndex_ = new java.util.ArrayList(compositeIndex_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder> compositeIndexBuilder_; /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public java.util.List getCompositeIndexList() { if (compositeIndexBuilder_ == null) { return java.util.Collections.unmodifiableList(compositeIndex_); } else { return compositeIndexBuilder_.getMessageList(); } } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public int getCompositeIndexCount() { if (compositeIndexBuilder_ == null) { return compositeIndex_.size(); } else { return compositeIndexBuilder_.getCount(); } } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index) { if (compositeIndexBuilder_ == null) { return compositeIndex_.get(index); } else { return compositeIndexBuilder_.getMessage(index); } } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public Builder setCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (compositeIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompositeIndexIsMutable(); compositeIndex_.set(index, value); onChanged(); } else { compositeIndexBuilder_.setMessage(index, value); } return this; } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public Builder setCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.set(index, builderForValue.build()); onChanged(); } else { compositeIndexBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public Builder addCompositeIndex(com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (compositeIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompositeIndexIsMutable(); compositeIndex_.add(value); onChanged(); } else { compositeIndexBuilder_.addMessage(value); } return this; } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public Builder addCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (compositeIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompositeIndexIsMutable(); compositeIndex_.add(index, value); onChanged(); } else { compositeIndexBuilder_.addMessage(index, value); } return this; } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public Builder addCompositeIndex( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.add(builderForValue.build()); onChanged(); } else { compositeIndexBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public Builder addCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.add(index, builderForValue.build()); onChanged(); } else { compositeIndexBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public Builder addAllCompositeIndex( java.lang.Iterable values) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, compositeIndex_); onChanged(); } else { compositeIndexBuilder_.addAllMessages(values); } return this; } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public Builder clearCompositeIndex() { if (compositeIndexBuilder_ == null) { compositeIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { compositeIndexBuilder_.clear(); } return this; } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public Builder removeCompositeIndex(int index) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.remove(index); onChanged(); } else { compositeIndexBuilder_.remove(index); } return this; } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder getCompositeIndexBuilder( int index) { return getCompositeIndexFieldBuilder().getBuilder(index); } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder( int index) { if (compositeIndexBuilder_ == null) { return compositeIndex_.get(index); } else { return compositeIndexBuilder_.getMessageOrBuilder(index); } } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public java.util.List getCompositeIndexOrBuilderList() { if (compositeIndexBuilder_ != null) { return compositeIndexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(compositeIndex_); } } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder addCompositeIndexBuilder() { return getCompositeIndexFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.getDefaultInstance()); } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder addCompositeIndexBuilder( int index) { return getCompositeIndexFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.getDefaultInstance()); } /** *
       * All index definitions related to the transaction.
       * Ignored except for rpc Commit.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 5; */ public java.util.List getCompositeIndexBuilderList() { return getCompositeIndexFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder> getCompositeIndexFieldBuilder() { if (compositeIndexBuilder_ == null) { compositeIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder>( compositeIndex_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); compositeIndex_ = null; } return compositeIndexBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.Transaction) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.Transaction) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Transaction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.Query) com.google.protobuf.MessageOrBuilder { /** *
     * Tag 39 was InternalHeader
     * 
* * required string app = 1; * @return Whether the app field is set. */ boolean hasApp(); /** *
     * Tag 39 was InternalHeader
     * 
* * required string app = 1; * @return The app. */ java.lang.String getApp(); /** *
     * Tag 39 was InternalHeader
     * 
* * required string app = 1; * @return The bytes for app. */ com.google.protobuf.ByteString getAppBytes(); /** *
     * The database that this query is for.
     * 
* * optional string database_id = 42; * @return Whether the databaseId field is set. */ boolean hasDatabaseId(); /** *
     * The database that this query is for.
     * 
* * optional string database_id = 42; * @return The databaseId. */ java.lang.String getDatabaseId(); /** *
     * The database that this query is for.
     * 
* * optional string database_id = 42; * @return The bytes for databaseId. */ com.google.protobuf.ByteString getDatabaseIdBytes(); /** *
     * name_space is to add multi tenancy support for datastore.
     * See http://go/appenginenamespace for a more in depth explanation.
     * 
* * optional string name_space = 29; * @return Whether the nameSpace field is set. */ boolean hasNameSpace(); /** *
     * name_space is to add multi tenancy support for datastore.
     * See http://go/appenginenamespace for a more in depth explanation.
     * 
* * optional string name_space = 29; * @return The nameSpace. */ java.lang.String getNameSpace(); /** *
     * name_space is to add multi tenancy support for datastore.
     * See http://go/appenginenamespace for a more in depth explanation.
     * 
* * optional string name_space = 29; * @return The bytes for nameSpace. */ com.google.protobuf.ByteString getNameSpaceBytes(); /** *
     * kind and ancestor both restrict the query results. if kind is provided,
     * only entities of that kind are returned. if ancestor is provided, only
     * entities descended from that ancestor by path, including the ancestor
     * itself, are returned. either one or both must be provided.
     * 
* * optional string kind = 3; * @return Whether the kind field is set. */ boolean hasKind(); /** *
     * kind and ancestor both restrict the query results. if kind is provided,
     * only entities of that kind are returned. if ancestor is provided, only
     * entities descended from that ancestor by path, including the ancestor
     * itself, are returned. either one or both must be provided.
     * 
* * optional string kind = 3; * @return The kind. */ java.lang.String getKind(); /** *
     * kind and ancestor both restrict the query results. if kind is provided,
     * only entities of that kind are returned. if ancestor is provided, only
     * entities descended from that ancestor by path, including the ancestor
     * itself, are returned. either one or both must be provided.
     * 
* * optional string kind = 3; * @return The bytes for kind. */ com.google.protobuf.ByteString getKindBytes(); /** * optional .storage_onestore_v3.Reference ancestor = 17; * @return Whether the ancestor field is set. */ boolean hasAncestor(); /** * optional .storage_onestore_v3.Reference ancestor = 17; * @return The ancestor. */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getAncestor(); /** * optional .storage_onestore_v3.Reference ancestor = 17; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getAncestorOrBuilder(); /** *
     * If true, the query will only return entities that are direct descendants
     * of the given ancestor, or root entities if not ancestor is set.
     * 
* * optional bool shallow = 43; * @return Whether the shallow field is set. */ boolean hasShallow(); /** *
     * If true, the query will only return entities that are direct descendants
     * of the given ancestor, or root entities if not ancestor is set.
     * 
* * optional bool shallow = 43; * @return The shallow. */ boolean getShallow(); /** * repeated group Filter = 4 { ... } */ java.util.List getFilterList(); /** * repeated group Filter = 4 { ... } */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter getFilter(int index); /** * repeated group Filter = 4 { ... } */ int getFilterCount(); /** * repeated group Filter = 4 { ... } */ java.util.List getFilterOrBuilderList(); /** * repeated group Filter = 4 { ... } */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.FilterOrBuilder getFilterOrBuilder( int index); /** *
     * TODO: Remove this field.
     * currently not implemented. eventually, when provided, this will be used
     * as a plain-text search query. ideally, it will be combined with any
     * filters, sort orders, and ancestor.
     * 
* * optional string search_query = 8; * @return Whether the searchQuery field is set. */ boolean hasSearchQuery(); /** *
     * TODO: Remove this field.
     * currently not implemented. eventually, when provided, this will be used
     * as a plain-text search query. ideally, it will be combined with any
     * filters, sort orders, and ancestor.
     * 
* * optional string search_query = 8; * @return The searchQuery. */ java.lang.String getSearchQuery(); /** *
     * TODO: Remove this field.
     * currently not implemented. eventually, when provided, this will be used
     * as a plain-text search query. ideally, it will be combined with any
     * filters, sort orders, and ancestor.
     * 
* * optional string search_query = 8; * @return The bytes for searchQuery. */ com.google.protobuf.ByteString getSearchQueryBytes(); /** * repeated group Order = 9 { ... } */ java.util.List getOrderList(); /** * repeated group Order = 9 { ... } */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order getOrder(int index); /** * repeated group Order = 9 { ... } */ int getOrderCount(); /** * repeated group Order = 9 { ... } */ java.util.List getOrderOrBuilderList(); /** * repeated group Order = 9 { ... } */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder getOrderOrBuilder( int index); /** * optional .apphosting_datastore_v3.Query.Hint hint = 18; * @return Whether the hint field is set. */ boolean hasHint(); /** * optional .apphosting_datastore_v3.Query.Hint hint = 18; * @return The hint. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint getHint(); /** *
     * An optional number of entities to try to prefetch and return in the
     * RunQuery response. If not specified the underlying datastore implementation
     * will pick.
     * 
* * optional int32 count = 23; * @return Whether the count field is set. */ boolean hasCount(); /** *
     * An optional number of entities to try to prefetch and return in the
     * RunQuery response. If not specified the underlying datastore implementation
     * will pick.
     * 
* * optional int32 count = 23; * @return The count. */ int getCount(); /** *
     * start returning results at this offset. useful for paging.
     * 
* * optional int32 offset = 12 [default = 0]; * @return Whether the offset field is set. */ boolean hasOffset(); /** *
     * start returning results at this offset. useful for paging.
     * 
* * optional int32 offset = 12 [default = 0]; * @return The offset. */ int getOffset(); /** *
     * an optional upper bound on the number of results returned for this query.
     * "count" queries are requested by setting limit to 0 and the offset to the
     * maximum number of records the user wants to count (possibly infinite).
     * 
* * optional int32 limit = 16; * @return Whether the limit field is set. */ boolean hasLimit(); /** *
     * an optional upper bound on the number of results returned for this query.
     * "count" queries are requested by setting limit to 0 and the offset to the
     * maximum number of records the user wants to count (possibly infinite).
     * 
* * optional int32 limit = 16; * @return The limit. */ int getLimit(); /** *
     * the position at which to start the query
     * TODO: choose better name when switching to plannable cursors.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30; * @return Whether the compiledCursor field is set. */ boolean hasCompiledCursor(); /** *
     * the position at which to start the query
     * TODO: choose better name when switching to plannable cursors.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30; * @return The compiledCursor. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getCompiledCursor(); /** *
     * the position at which to start the query
     * TODO: choose better name when switching to plannable cursors.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getCompiledCursorOrBuilder(); /** *
     * the position at which to end the query
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31; * @return Whether the endCompiledCursor field is set. */ boolean hasEndCompiledCursor(); /** *
     * the position at which to end the query
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31; * @return The endCompiledCursor. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getEndCompiledCursor(); /** *
     * the position at which to end the query
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getEndCompiledCursorOrBuilder(); /** *
     * the composite indexes, if any, that are available to the query planner
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ java.util.List getCompositeIndexList(); /** *
     * the composite indexes, if any, that are available to the query planner
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index); /** *
     * the composite indexes, if any, that are available to the query planner
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ int getCompositeIndexCount(); /** *
     * the composite indexes, if any, that are available to the query planner
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ java.util.List getCompositeIndexOrBuilderList(); /** *
     * the composite indexes, if any, that are available to the query planner
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder( int index); /** *
     * if true, the datastore will only run this query if there's an index or
     * set of indices that perfectly match it. if not, it will return an error.
     * 
* * optional bool require_perfect_plan = 20 [default = false]; * @return Whether the requirePerfectPlan field is set. */ boolean hasRequirePerfectPlan(); /** *
     * if true, the datastore will only run this query if there's an index or
     * set of indices that perfectly match it. if not, it will return an error.
     * 
* * optional bool require_perfect_plan = 20 [default = false]; * @return The requirePerfectPlan. */ boolean getRequirePerfectPlan(); /** *
     * if true, only return the keys of matching entities and not the whole
     * entity. this makes the query somewhat faster and a lot less expensive, in
     * terms of disk seeks, since it doesn't have to fetch each result entity.
     * note that this property indicates the _user's_ request to execute a
     * keys-only query.  The backend may also elect to perform a keys-only query
     * in order to answer a count() request, which is denoted by a limit of size
     * 0 (see above comment on limit).
     * if this is true, require_perfect_plan must also be set to true.
     * 
* * optional bool keys_only = 21 [default = false]; * @return Whether the keysOnly field is set. */ boolean hasKeysOnly(); /** *
     * if true, only return the keys of matching entities and not the whole
     * entity. this makes the query somewhat faster and a lot less expensive, in
     * terms of disk seeks, since it doesn't have to fetch each result entity.
     * note that this property indicates the _user's_ request to execute a
     * keys-only query.  The backend may also elect to perform a keys-only query
     * in order to answer a count() request, which is denoted by a limit of size
     * 0 (see above comment on limit).
     * if this is true, require_perfect_plan must also be set to true.
     * 
* * optional bool keys_only = 21 [default = false]; * @return The keysOnly. */ boolean getKeysOnly(); /** *
     * if specified, the query must be an ancestor query, and the ancestor must
     * be in the same entity group as the other operations in the transaction.
     * 
* * optional .apphosting_datastore_v3.Transaction transaction = 22; * @return Whether the transaction field is set. */ boolean hasTransaction(); /** *
     * if specified, the query must be an ancestor query, and the ancestor must
     * be in the same entity group as the other operations in the transaction.
     * 
* * optional .apphosting_datastore_v3.Transaction transaction = 22; * @return The transaction. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction(); /** *
     * if specified, the query must be an ancestor query, and the ancestor must
     * be in the same entity group as the other operations in the transaction.
     * 
* * optional .apphosting_datastore_v3.Transaction transaction = 22; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder(); /** *
     * TODO: I believe this field is ignored.  Remove it.
     * An optional argument that determines if a compiled query should be
     * returned. If true, a compiled query will be constructed such that
     * it will resume the given query immediately after the last result provided.
     * Additionally this value must be true for a NextRequest with compile == true
     * to be successful.
     * 
* * optional bool compile = 25 [default = false]; * @return Whether the compile field is set. */ boolean hasCompile(); /** *
     * TODO: I believe this field is ignored.  Remove it.
     * An optional argument that determines if a compiled query should be
     * returned. If true, a compiled query will be constructed such that
     * it will resume the given query immediately after the last result provided.
     * Additionally this value must be true for a NextRequest with compile == true
     * to be successful.
     * 
* * optional bool compile = 25 [default = false]; * @return The compile. */ boolean getCompile(); /** *
     * How long to wait on the primary replica before attempting to read from a
     * secondary, possibly stale replica. May not be set if a transaction is
     * provided.
     * NOTE: The actual value is overwritten by the datastore, setting
     * only has the effect of enabling failover in M/S.
     * 
* * optional int64 failover_ms = 26; * @return Whether the failoverMs field is set. */ boolean hasFailoverMs(); /** *
     * How long to wait on the primary replica before attempting to read from a
     * secondary, possibly stale replica. May not be set if a transaction is
     * provided.
     * NOTE: The actual value is overwritten by the datastore, setting
     * only has the effect of enabling failover in M/S.
     * 
* * optional int64 failover_ms = 26; * @return The failoverMs. */ long getFailoverMs(); /** *
     * Should Datastore use READ_CURRENT (strong reads) for this request?
     * If unset the datastore decides based on a flag that defaults to
     * READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
     * choose between low latency/eventual consistency (false) and potentially
     * higher latency/strong consistency (true). This is typically not a concern
     * with 1.0.1 replication as (false) will never return results more than one
     * job behind, but is important for paxos where (false) can return results
     * that are significantly behind.
     * 
* * optional bool strong = 32; * @return Whether the strong field is set. */ boolean hasStrong(); /** *
     * Should Datastore use READ_CURRENT (strong reads) for this request?
     * If unset the datastore decides based on a flag that defaults to
     * READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
     * choose between low latency/eventual consistency (false) and potentially
     * higher latency/strong consistency (true). This is typically not a concern
     * with 1.0.1 replication as (false) will never return results more than one
     * job behind, but is important for paxos where (false) can return results
     * that are significantly behind.
     * 
* * optional bool strong = 32; * @return The strong. */ boolean getStrong(); /** *
     * A list of property names to return. A request with this set is satisfied
     * using an index instead of looking up the full entity. As only the
     * PropertyValue is known in the index, the meaning of any property return
     * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
     * all the properties specified will be returned, i.e. there is an implied
     * existence filter on every property specified.
     * 
* * repeated string property_name = 33; * @return A list containing the propertyName. */ java.util.List getPropertyNameList(); /** *
     * A list of property names to return. A request with this set is satisfied
     * using an index instead of looking up the full entity. As only the
     * PropertyValue is known in the index, the meaning of any property return
     * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
     * all the properties specified will be returned, i.e. there is an implied
     * existence filter on every property specified.
     * 
* * repeated string property_name = 33; * @return The count of propertyName. */ int getPropertyNameCount(); /** *
     * A list of property names to return. A request with this set is satisfied
     * using an index instead of looking up the full entity. As only the
     * PropertyValue is known in the index, the meaning of any property return
     * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
     * all the properties specified will be returned, i.e. there is an implied
     * existence filter on every property specified.
     * 
* * repeated string property_name = 33; * @param index The index of the element to return. * @return The propertyName at the given index. */ java.lang.String getPropertyName(int index); /** *
     * A list of property names to return. A request with this set is satisfied
     * using an index instead of looking up the full entity. As only the
     * PropertyValue is known in the index, the meaning of any property return
     * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
     * all the properties specified will be returned, i.e. there is an implied
     * existence filter on every property specified.
     * 
* * repeated string property_name = 33; * @param index The index of the value to return. * @return The bytes of the propertyName at the given index. */ com.google.protobuf.ByteString getPropertyNameBytes(int index); /** *
     * Properties that should be included in the GROUP BY clause.
     * 
* * repeated string group_by_property_name = 34; * @return A list containing the groupByPropertyName. */ java.util.List getGroupByPropertyNameList(); /** *
     * Properties that should be included in the GROUP BY clause.
     * 
* * repeated string group_by_property_name = 34; * @return The count of groupByPropertyName. */ int getGroupByPropertyNameCount(); /** *
     * Properties that should be included in the GROUP BY clause.
     * 
* * repeated string group_by_property_name = 34; * @param index The index of the element to return. * @return The groupByPropertyName at the given index. */ java.lang.String getGroupByPropertyName(int index); /** *
     * Properties that should be included in the GROUP BY clause.
     * 
* * repeated string group_by_property_name = 34; * @param index The index of the value to return. * @return The bytes of the groupByPropertyName at the given index. */ com.google.protobuf.ByteString getGroupByPropertyNameBytes(int index); /** *
     * For a normal query, this applies to keys and defaults to true, for a query
     * with property_names, this applies to the set of properties returned and
     * defaults to false
     * 
* * optional bool distinct = 24; * @return Whether the distinct field is set. */ boolean hasDistinct(); /** *
     * For a normal query, this applies to keys and defaults to true, for a query
     * with property_names, this applies to the set of properties returned and
     * defaults to false
     * 
* * optional bool distinct = 24; * @return The distinct. */ boolean getDistinct(); /** *
     * If set, a minimum safe time required of the application's key range
     * in any Megastore table EntityGroups data replica read by the query.
     * 
* * optional int64 min_safe_time_seconds = 35; * @return Whether the minSafeTimeSeconds field is set. */ boolean hasMinSafeTimeSeconds(); /** *
     * If set, a minimum safe time required of the application's key range
     * in any Megastore table EntityGroups data replica read by the query.
     * 
* * optional int64 min_safe_time_seconds = 35; * @return The minSafeTimeSeconds. */ long getMinSafeTimeSeconds(); /** *
     * When min_safe_time_seconds is set, the app server injects the names
     * of the data replicas of our entity Megastore table for which the
     * application's key range's safe time is >= min_safe_time_seconds.
     * 
* * repeated string safe_replica_name = 36; * @return A list containing the safeReplicaName. */ java.util.List getSafeReplicaNameList(); /** *
     * When min_safe_time_seconds is set, the app server injects the names
     * of the data replicas of our entity Megastore table for which the
     * application's key range's safe time is >= min_safe_time_seconds.
     * 
* * repeated string safe_replica_name = 36; * @return The count of safeReplicaName. */ int getSafeReplicaNameCount(); /** *
     * When min_safe_time_seconds is set, the app server injects the names
     * of the data replicas of our entity Megastore table for which the
     * application's key range's safe time is >= min_safe_time_seconds.
     * 
* * repeated string safe_replica_name = 36; * @param index The index of the element to return. * @return The safeReplicaName at the given index. */ java.lang.String getSafeReplicaName(int index); /** *
     * When min_safe_time_seconds is set, the app server injects the names
     * of the data replicas of our entity Megastore table for which the
     * application's key range's safe time is >= min_safe_time_seconds.
     * 
* * repeated string safe_replica_name = 36; * @param index The index of the value to return. * @return The bytes of the safeReplicaName at the given index. */ com.google.protobuf.ByteString getSafeReplicaNameBytes(int index); /** *
     * If true, then the original offset is persisted for subsequent Next RPCs
     * and a BAD_REQUEST is raised if the NextRequest specifies an offset
     * that does not match the one from the original request.
     * NOTE: This is the only behavior supported by datastore_v4.
     * DEPRECATED: This is now always assumed to be true. Setting it has no
     * effect.
     * 
* * optional bool persist_offset = 37 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.Query.persist_offset is deprecated. * See datastore_v3.proto;l=312 * @return Whether the persistOffset field is set. */ @java.lang.Deprecated boolean hasPersistOffset(); /** *
     * If true, then the original offset is persisted for subsequent Next RPCs
     * and a BAD_REQUEST is raised if the NextRequest specifies an offset
     * that does not match the one from the original request.
     * NOTE: This is the only behavior supported by datastore_v4.
     * DEPRECATED: This is now always assumed to be true. Setting it has no
     * effect.
     * 
* * optional bool persist_offset = 37 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.Query.persist_offset is deprecated. * See datastore_v3.proto;l=312 * @return The persistOffset. */ @java.lang.Deprecated boolean getPersistOffset(); /** *
     * Only for Spanner-backed apps: Reads entities as they were at the given
     * time, represented as microseconds of UTC time since Unix epoch
     * 1970-01-01T00:00:00Z.
     * 
* * optional int64 read_time_us = 44; * @return Whether the readTimeUs field is set. */ boolean hasReadTimeUs(); /** *
     * Only for Spanner-backed apps: Reads entities as they were at the given
     * time, represented as microseconds of UTC time since Unix epoch
     * 1970-01-01T00:00:00Z.
     * 
* * optional int64 read_time_us = 44; * @return The readTimeUs. */ long getReadTimeUs(); } /** *
   * Query API. See
   * http://g3doc/apphosting/g3doc/wiki-carryover/datastore_query_planner.md .
   * Next tag is 45
   * 
* * Protobuf type {@code apphosting_datastore_v3.Query} */ public static final class Query extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.Query) QueryOrBuilder { private static final long serialVersionUID = 0L; // Use Query.newBuilder() to construct. private Query(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Query() { app_ = ""; databaseId_ = ""; nameSpace_ = ""; kind_ = ""; filter_ = java.util.Collections.emptyList(); searchQuery_ = ""; order_ = java.util.Collections.emptyList(); hint_ = 1; compositeIndex_ = java.util.Collections.emptyList(); propertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; groupByPropertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; safeReplicaName_ = com.google.protobuf.LazyStringArrayList.EMPTY; persistOffset_ = true; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Query(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Builder.class); } /** *
     * an optional hint for how to plan and execute the query. if the app knows
     * that an ancestor or filter will greatly restrict the number of results, it
     * can include a hint to help the query planner decide which to apply first.
     * note that app engine does not currently use hints.
     * the query planner honors hints sometimes, but not always. See
     * http://g3doc/apphosting/g3doc/wiki-carryover/datastore_query_planner.md#query_hint
     * be careful with hints and sort orders! they can be dangerous. if a sort
     * order is present, prometheus will default to scanning over it first, to
     * avoid fetching and sorting a large (possibly unbounded) number of results
     * in memory. in general, this is the safest bet.
     * however, if the app knows that a filter or ancestor will only match a
     * very small number of results, it can be much faster to apply that first,
     * and sort all of the results in memory. if there's even a chance of the
     * result set being large, though, this is dangerous. proceed with care!
     * TODO: support hints with composite indexes; currently composite
     * indexes will not be used if a hint is specified that can be satisfied!
     * see
     * http://g3doc/apphosting/g3doc/wiki-carryover/datastore_custom_index.md#Query_Planning
     * 
* * Protobuf enum {@code apphosting_datastore_v3.Query.Hint} */ public enum Hint implements com.google.protobuf.ProtocolMessageEnum { /** * ORDER_FIRST = 1; */ ORDER_FIRST(1), /** * ANCESTOR_FIRST = 2; */ ANCESTOR_FIRST(2), /** * FILTER_FIRST = 3; */ FILTER_FIRST(3), ; /** * ORDER_FIRST = 1; */ public static final int ORDER_FIRST_VALUE = 1; /** * ANCESTOR_FIRST = 2; */ public static final int ANCESTOR_FIRST_VALUE = 2; /** * FILTER_FIRST = 3; */ public static final int FILTER_FIRST_VALUE = 3; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Hint valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Hint forNumber(int value) { switch (value) { case 1: return ORDER_FIRST; case 2: return ANCESTOR_FIRST; case 3: return FILTER_FIRST; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Hint> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Hint findValueByNumber(int number) { return Hint.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.getDescriptor().getEnumTypes().get(0); } private static final Hint[] VALUES = values(); public static Hint valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Hint(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:apphosting_datastore_v3.Query.Hint) } public interface FilterOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.Query.Filter) com.google.protobuf.MessageOrBuilder { /** * required .apphosting_datastore_v3.Query.Filter.Operator op = 6; * @return Whether the op field is set. */ boolean hasOp(); /** * required .apphosting_datastore_v3.Query.Filter.Operator op = 6; * @return The op. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator getOp(); /** *
       * usually, for an ordered filter, the Property specifies both the
       * name of the property of interest, and the value against which
       * to compare it using the operator defined in "op", above.
       * however, for geo-spatial filters, the Property is used only to
       * convey the property name.  The value to "compare" it against
       * (using some form of geo-region containment) is specified by
       * geo_region, below.
       * 
* * repeated .storage_onestore_v3.Property property = 14; */ java.util.List getPropertyList(); /** *
       * usually, for an ordered filter, the Property specifies both the
       * name of the property of interest, and the value against which
       * to compare it using the operator defined in "op", above.
       * however, for geo-spatial filters, the Property is used only to
       * convey the property name.  The value to "compare" it against
       * (using some form of geo-region containment) is specified by
       * geo_region, below.
       * 
* * repeated .storage_onestore_v3.Property property = 14; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property getProperty(int index); /** *
       * usually, for an ordered filter, the Property specifies both the
       * name of the property of interest, and the value against which
       * to compare it using the operator defined in "op", above.
       * however, for geo-spatial filters, the Property is used only to
       * convey the property name.  The value to "compare" it against
       * (using some form of geo-region containment) is specified by
       * geo_region, below.
       * 
* * repeated .storage_onestore_v3.Property property = 14; */ int getPropertyCount(); /** *
       * usually, for an ordered filter, the Property specifies both the
       * name of the property of interest, and the value against which
       * to compare it using the operator defined in "op", above.
       * however, for geo-spatial filters, the Property is used only to
       * convey the property name.  The value to "compare" it against
       * (using some form of geo-region containment) is specified by
       * geo_region, below.
       * 
* * repeated .storage_onestore_v3.Property property = 14; */ java.util.List getPropertyOrBuilderList(); /** *
       * usually, for an ordered filter, the Property specifies both the
       * name of the property of interest, and the value against which
       * to compare it using the operator defined in "op", above.
       * however, for geo-spatial filters, the Property is used only to
       * convey the property name.  The value to "compare" it against
       * (using some form of geo-region containment) is specified by
       * geo_region, below.
       * 
* * repeated .storage_onestore_v3.Property property = 14; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyOrBuilder getPropertyOrBuilder( int index); /** *
       * used only with CONTAINED_IN_REGION: the filter evaluates to
       * true if the geo point property named by "property" is contained
       * in this geo-region.  In this case the "value" field of the
       * Property is unused (despite the fact that that field is marked
       * as "required").
       * 
* * optional .apphosting_datastore_v3.GeoRegion geo_region = 40; * @return Whether the geoRegion field is set. */ boolean hasGeoRegion(); /** *
       * used only with CONTAINED_IN_REGION: the filter evaluates to
       * true if the geo point property named by "property" is contained
       * in this geo-region.  In this case the "value" field of the
       * Property is unused (despite the fact that that field is marked
       * as "required").
       * 
* * optional .apphosting_datastore_v3.GeoRegion geo_region = 40; * @return The geoRegion. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion getGeoRegion(); /** *
       * used only with CONTAINED_IN_REGION: the filter evaluates to
       * true if the geo point property named by "property" is contained
       * in this geo-region.  In this case the "value" field of the
       * Property is unused (despite the fact that that field is marked
       * as "required").
       * 
* * optional .apphosting_datastore_v3.GeoRegion geo_region = 40; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegionOrBuilder getGeoRegionOrBuilder(); } /** *
     * filter based on property values. when a Query has multiple filters,
     * the effect is their logical conjunction. that is, they are combined
     * using a logical "AND" operation, rather than an "OR".
     * there are two types of filters: traditional "ordered" filters,
     * and geo-spatial filters.
     * for ordered filters, when they are evaluated in memory, they're
     * evaluated in the order they're provided here. you can take
     * advantage of this by putting the most restrictive filters, ie the
     * ones that match the least number of results, first.
     * geo-spatial filters may be combined with ordered filters, but only
     * those using the EQUAL operator.
     * 
* * Protobuf type {@code apphosting_datastore_v3.Query.Filter} */ public static final class Filter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.Query.Filter) FilterOrBuilder { private static final long serialVersionUID = 0L; // Use Filter.newBuilder() to construct. private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Filter() { op_ = 1; property_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Filter(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Filter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder.class); } /** * Protobuf enum {@code apphosting_datastore_v3.Query.Filter.Operator} */ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { /** * LESS_THAN = 1; */ LESS_THAN(1), /** * LESS_THAN_OR_EQUAL = 2; */ LESS_THAN_OR_EQUAL(2), /** * GREATER_THAN = 3; */ GREATER_THAN(3), /** * GREATER_THAN_OR_EQUAL = 4; */ GREATER_THAN_OR_EQUAL(4), /** * EQUAL = 5; */ EQUAL(5), /** * IN = 6; */ IN(6), /** * EXISTS = 7; */ EXISTS(7), /** * CONTAINED_IN_REGION = 8; */ CONTAINED_IN_REGION(8), /** * NOT_EQUAL = 9; */ NOT_EQUAL(9), ; /** * LESS_THAN = 1; */ public static final int LESS_THAN_VALUE = 1; /** * LESS_THAN_OR_EQUAL = 2; */ public static final int LESS_THAN_OR_EQUAL_VALUE = 2; /** * GREATER_THAN = 3; */ public static final int GREATER_THAN_VALUE = 3; /** * GREATER_THAN_OR_EQUAL = 4; */ public static final int GREATER_THAN_OR_EQUAL_VALUE = 4; /** * EQUAL = 5; */ public static final int EQUAL_VALUE = 5; /** * IN = 6; */ public static final int IN_VALUE = 6; /** * EXISTS = 7; */ public static final int EXISTS_VALUE = 7; /** * CONTAINED_IN_REGION = 8; */ public static final int CONTAINED_IN_REGION_VALUE = 8; /** * NOT_EQUAL = 9; */ public static final int NOT_EQUAL_VALUE = 9; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Operator valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Operator forNumber(int value) { switch (value) { case 1: return LESS_THAN; case 2: return LESS_THAN_OR_EQUAL; case 3: return GREATER_THAN; case 4: return GREATER_THAN_OR_EQUAL; case 5: return EQUAL; case 6: return IN; case 7: return EXISTS; case 8: return CONTAINED_IN_REGION; case 9: return NOT_EQUAL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Operator> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Operator findValueByNumber(int number) { return Operator.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.getDescriptor().getEnumTypes().get(0); } private static final Operator[] VALUES = values(); public static Operator valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Operator(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:apphosting_datastore_v3.Query.Filter.Operator) } private int bitField0_; public static final int OP_FIELD_NUMBER = 6; private int op_ = 1; /** * required .apphosting_datastore_v3.Query.Filter.Operator op = 6; * @return Whether the op field is set. */ @java.lang.Override public boolean hasOp() { return ((bitField0_ & 0x00000001) != 0); } /** * required .apphosting_datastore_v3.Query.Filter.Operator op = 6; * @return The op. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator getOp() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator.forNumber(op_); return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator.LESS_THAN : result; } public static final int PROPERTY_FIELD_NUMBER = 14; @SuppressWarnings("serial") private java.util.List property_; /** *
       * usually, for an ordered filter, the Property specifies both the
       * name of the property of interest, and the value against which
       * to compare it using the operator defined in "op", above.
       * however, for geo-spatial filters, the Property is used only to
       * convey the property name.  The value to "compare" it against
       * (using some form of geo-region containment) is specified by
       * geo_region, below.
       * 
* * repeated .storage_onestore_v3.Property property = 14; */ @java.lang.Override public java.util.List getPropertyList() { return property_; } /** *
       * usually, for an ordered filter, the Property specifies both the
       * name of the property of interest, and the value against which
       * to compare it using the operator defined in "op", above.
       * however, for geo-spatial filters, the Property is used only to
       * convey the property name.  The value to "compare" it against
       * (using some form of geo-region containment) is specified by
       * geo_region, below.
       * 
* * repeated .storage_onestore_v3.Property property = 14; */ @java.lang.Override public java.util.List getPropertyOrBuilderList() { return property_; } /** *
       * usually, for an ordered filter, the Property specifies both the
       * name of the property of interest, and the value against which
       * to compare it using the operator defined in "op", above.
       * however, for geo-spatial filters, the Property is used only to
       * convey the property name.  The value to "compare" it against
       * (using some form of geo-region containment) is specified by
       * geo_region, below.
       * 
* * repeated .storage_onestore_v3.Property property = 14; */ @java.lang.Override public int getPropertyCount() { return property_.size(); } /** *
       * usually, for an ordered filter, the Property specifies both the
       * name of the property of interest, and the value against which
       * to compare it using the operator defined in "op", above.
       * however, for geo-spatial filters, the Property is used only to
       * convey the property name.  The value to "compare" it against
       * (using some form of geo-region containment) is specified by
       * geo_region, below.
       * 
* * repeated .storage_onestore_v3.Property property = 14; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property getProperty(int index) { return property_.get(index); } /** *
       * usually, for an ordered filter, the Property specifies both the
       * name of the property of interest, and the value against which
       * to compare it using the operator defined in "op", above.
       * however, for geo-spatial filters, the Property is used only to
       * convey the property name.  The value to "compare" it against
       * (using some form of geo-region containment) is specified by
       * geo_region, below.
       * 
* * repeated .storage_onestore_v3.Property property = 14; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyOrBuilder getPropertyOrBuilder( int index) { return property_.get(index); } public static final int GEO_REGION_FIELD_NUMBER = 40; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion geoRegion_; /** *
       * used only with CONTAINED_IN_REGION: the filter evaluates to
       * true if the geo point property named by "property" is contained
       * in this geo-region.  In this case the "value" field of the
       * Property is unused (despite the fact that that field is marked
       * as "required").
       * 
* * optional .apphosting_datastore_v3.GeoRegion geo_region = 40; * @return Whether the geoRegion field is set. */ @java.lang.Override public boolean hasGeoRegion() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * used only with CONTAINED_IN_REGION: the filter evaluates to
       * true if the geo point property named by "property" is contained
       * in this geo-region.  In this case the "value" field of the
       * Property is unused (despite the fact that that field is marked
       * as "required").
       * 
* * optional .apphosting_datastore_v3.GeoRegion geo_region = 40; * @return The geoRegion. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion getGeoRegion() { return geoRegion_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.getDefaultInstance() : geoRegion_; } /** *
       * used only with CONTAINED_IN_REGION: the filter evaluates to
       * true if the geo point property named by "property" is contained
       * in this geo-region.  In this case the "value" field of the
       * Property is unused (despite the fact that that field is marked
       * as "required").
       * 
* * optional .apphosting_datastore_v3.GeoRegion geo_region = 40; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegionOrBuilder getGeoRegionOrBuilder() { return geoRegion_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.getDefaultInstance() : geoRegion_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasOp()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getPropertyCount(); i++) { if (!getProperty(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGeoRegion()) { if (!getGeoRegion().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(6, op_); } for (int i = 0; i < property_.size(); i++) { output.writeMessage(14, property_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(40, getGeoRegion()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, op_); } for (int i = 0; i < property_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, property_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(40, getGeoRegion()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter) obj; if (hasOp() != other.hasOp()) return false; if (hasOp()) { if (op_ != other.op_) return false; } if (!getPropertyList() .equals(other.getPropertyList())) return false; if (hasGeoRegion() != other.hasGeoRegion()) return false; if (hasGeoRegion()) { if (!getGeoRegion() .equals(other.getGeoRegion())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOp()) { hash = (37 * hash) + OP_FIELD_NUMBER; hash = (53 * hash) + op_; } if (getPropertyCount() > 0) { hash = (37 * hash) + PROPERTY_FIELD_NUMBER; hash = (53 * hash) + getPropertyList().hashCode(); } if (hasGeoRegion()) { hash = (37 * hash) + GEO_REGION_FIELD_NUMBER; hash = (53 * hash) + getGeoRegion().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
       * filter based on property values. when a Query has multiple filters,
       * the effect is their logical conjunction. that is, they are combined
       * using a logical "AND" operation, rather than an "OR".
       * there are two types of filters: traditional "ordered" filters,
       * and geo-spatial filters.
       * for ordered filters, when they are evaluated in memory, they're
       * evaluated in the order they're provided here. you can take
       * advantage of this by putting the most restrictive filters, ie the
       * ones that match the least number of results, first.
       * geo-spatial filters may be combined with ordered filters, but only
       * those using the EQUAL operator.
       * 
* * Protobuf type {@code apphosting_datastore_v3.Query.Filter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.Query.Filter) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.FilterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Filter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPropertyFieldBuilder(); getGeoRegionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; op_ = 1; if (propertyBuilder_ == null) { property_ = java.util.Collections.emptyList(); } else { property_ = null; propertyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); geoRegion_ = null; if (geoRegionBuilder_ != null) { geoRegionBuilder_.dispose(); geoRegionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Filter_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter result) { if (propertyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { property_ = java.util.Collections.unmodifiableList(property_); bitField0_ = (bitField0_ & ~0x00000002); } result.property_ = property_; } else { result.property_ = propertyBuilder_.build(); } } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.op_ = op_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.geoRegion_ = geoRegionBuilder_ == null ? geoRegion_ : geoRegionBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.getDefaultInstance()) return this; if (other.hasOp()) { setOp(other.getOp()); } if (propertyBuilder_ == null) { if (!other.property_.isEmpty()) { if (property_.isEmpty()) { property_ = other.property_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePropertyIsMutable(); property_.addAll(other.property_); } onChanged(); } } else { if (!other.property_.isEmpty()) { if (propertyBuilder_.isEmpty()) { propertyBuilder_.dispose(); propertyBuilder_ = null; property_ = other.property_; bitField0_ = (bitField0_ & ~0x00000002); propertyBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPropertyFieldBuilder() : null; } else { propertyBuilder_.addAllMessages(other.property_); } } } if (other.hasGeoRegion()) { mergeGeoRegion(other.getGeoRegion()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasOp()) { return false; } for (int i = 0; i < getPropertyCount(); i++) { if (!getProperty(i).isInitialized()) { return false; } } if (hasGeoRegion()) { if (!getGeoRegion().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 48: { int tmpRaw = input.readEnum(); com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator tmpValue = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(6, tmpRaw); } else { op_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 48 case 114: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property.PARSER, extensionRegistry); if (propertyBuilder_ == null) { ensurePropertyIsMutable(); property_.add(m); } else { propertyBuilder_.addMessage(m); } break; } // case 114 case 322: { input.readMessage( getGeoRegionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 322 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int op_ = 1; /** * required .apphosting_datastore_v3.Query.Filter.Operator op = 6; * @return Whether the op field is set. */ @java.lang.Override public boolean hasOp() { return ((bitField0_ & 0x00000001) != 0); } /** * required .apphosting_datastore_v3.Query.Filter.Operator op = 6; * @return The op. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator getOp() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator.forNumber(op_); return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator.LESS_THAN : result; } /** * required .apphosting_datastore_v3.Query.Filter.Operator op = 6; * @param value The op to set. * @return This builder for chaining. */ public Builder setOp(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Operator value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; op_ = value.getNumber(); onChanged(); return this; } /** * required .apphosting_datastore_v3.Query.Filter.Operator op = 6; * @return This builder for chaining. */ public Builder clearOp() { bitField0_ = (bitField0_ & ~0x00000001); op_ = 1; onChanged(); return this; } private java.util.List property_ = java.util.Collections.emptyList(); private void ensurePropertyIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { property_ = new java.util.ArrayList(property_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyOrBuilder> propertyBuilder_; /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public java.util.List getPropertyList() { if (propertyBuilder_ == null) { return java.util.Collections.unmodifiableList(property_); } else { return propertyBuilder_.getMessageList(); } } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public int getPropertyCount() { if (propertyBuilder_ == null) { return property_.size(); } else { return propertyBuilder_.getCount(); } } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property getProperty(int index) { if (propertyBuilder_ == null) { return property_.get(index); } else { return propertyBuilder_.getMessage(index); } } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public Builder setProperty( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertyIsMutable(); property_.set(index, value); onChanged(); } else { propertyBuilder_.setMessage(index, value); } return this; } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public Builder setProperty( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property.Builder builderForValue) { if (propertyBuilder_ == null) { ensurePropertyIsMutable(); property_.set(index, builderForValue.build()); onChanged(); } else { propertyBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public Builder addProperty(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertyIsMutable(); property_.add(value); onChanged(); } else { propertyBuilder_.addMessage(value); } return this; } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public Builder addProperty( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property value) { if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertyIsMutable(); property_.add(index, value); onChanged(); } else { propertyBuilder_.addMessage(index, value); } return this; } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public Builder addProperty( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property.Builder builderForValue) { if (propertyBuilder_ == null) { ensurePropertyIsMutable(); property_.add(builderForValue.build()); onChanged(); } else { propertyBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public Builder addProperty( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property.Builder builderForValue) { if (propertyBuilder_ == null) { ensurePropertyIsMutable(); property_.add(index, builderForValue.build()); onChanged(); } else { propertyBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public Builder addAllProperty( java.lang.Iterable values) { if (propertyBuilder_ == null) { ensurePropertyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, property_); onChanged(); } else { propertyBuilder_.addAllMessages(values); } return this; } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public Builder clearProperty() { if (propertyBuilder_ == null) { property_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { propertyBuilder_.clear(); } return this; } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public Builder removeProperty(int index) { if (propertyBuilder_ == null) { ensurePropertyIsMutable(); property_.remove(index); onChanged(); } else { propertyBuilder_.remove(index); } return this; } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property.Builder getPropertyBuilder( int index) { return getPropertyFieldBuilder().getBuilder(index); } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyOrBuilder getPropertyOrBuilder( int index) { if (propertyBuilder_ == null) { return property_.get(index); } else { return propertyBuilder_.getMessageOrBuilder(index); } } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public java.util.List getPropertyOrBuilderList() { if (propertyBuilder_ != null) { return propertyBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(property_); } } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property.Builder addPropertyBuilder() { return getPropertyFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property.getDefaultInstance()); } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property.Builder addPropertyBuilder( int index) { return getPropertyFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property.getDefaultInstance()); } /** *
         * usually, for an ordered filter, the Property specifies both the
         * name of the property of interest, and the value against which
         * to compare it using the operator defined in "op", above.
         * however, for geo-spatial filters, the Property is used only to
         * convey the property name.  The value to "compare" it against
         * (using some form of geo-region containment) is specified by
         * geo_region, below.
         * 
* * repeated .storage_onestore_v3.Property property = 14; */ public java.util.List getPropertyBuilderList() { return getPropertyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyOrBuilder> getPropertyFieldBuilder() { if (propertyBuilder_ == null) { propertyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Property.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyOrBuilder>( property_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); property_ = null; } return propertyBuilder_; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion geoRegion_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegionOrBuilder> geoRegionBuilder_; /** *
         * used only with CONTAINED_IN_REGION: the filter evaluates to
         * true if the geo point property named by "property" is contained
         * in this geo-region.  In this case the "value" field of the
         * Property is unused (despite the fact that that field is marked
         * as "required").
         * 
* * optional .apphosting_datastore_v3.GeoRegion geo_region = 40; * @return Whether the geoRegion field is set. */ public boolean hasGeoRegion() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * used only with CONTAINED_IN_REGION: the filter evaluates to
         * true if the geo point property named by "property" is contained
         * in this geo-region.  In this case the "value" field of the
         * Property is unused (despite the fact that that field is marked
         * as "required").
         * 
* * optional .apphosting_datastore_v3.GeoRegion geo_region = 40; * @return The geoRegion. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion getGeoRegion() { if (geoRegionBuilder_ == null) { return geoRegion_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.getDefaultInstance() : geoRegion_; } else { return geoRegionBuilder_.getMessage(); } } /** *
         * used only with CONTAINED_IN_REGION: the filter evaluates to
         * true if the geo point property named by "property" is contained
         * in this geo-region.  In this case the "value" field of the
         * Property is unused (despite the fact that that field is marked
         * as "required").
         * 
* * optional .apphosting_datastore_v3.GeoRegion geo_region = 40; */ public Builder setGeoRegion(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion value) { if (geoRegionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } geoRegion_ = value; } else { geoRegionBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * used only with CONTAINED_IN_REGION: the filter evaluates to
         * true if the geo point property named by "property" is contained
         * in this geo-region.  In this case the "value" field of the
         * Property is unused (despite the fact that that field is marked
         * as "required").
         * 
* * optional .apphosting_datastore_v3.GeoRegion geo_region = 40; */ public Builder setGeoRegion( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.Builder builderForValue) { if (geoRegionBuilder_ == null) { geoRegion_ = builderForValue.build(); } else { geoRegionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * used only with CONTAINED_IN_REGION: the filter evaluates to
         * true if the geo point property named by "property" is contained
         * in this geo-region.  In this case the "value" field of the
         * Property is unused (despite the fact that that field is marked
         * as "required").
         * 
* * optional .apphosting_datastore_v3.GeoRegion geo_region = 40; */ public Builder mergeGeoRegion(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion value) { if (geoRegionBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && geoRegion_ != null && geoRegion_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.getDefaultInstance()) { getGeoRegionBuilder().mergeFrom(value); } else { geoRegion_ = value; } } else { geoRegionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * used only with CONTAINED_IN_REGION: the filter evaluates to
         * true if the geo point property named by "property" is contained
         * in this geo-region.  In this case the "value" field of the
         * Property is unused (despite the fact that that field is marked
         * as "required").
         * 
* * optional .apphosting_datastore_v3.GeoRegion geo_region = 40; */ public Builder clearGeoRegion() { bitField0_ = (bitField0_ & ~0x00000004); geoRegion_ = null; if (geoRegionBuilder_ != null) { geoRegionBuilder_.dispose(); geoRegionBuilder_ = null; } onChanged(); return this; } /** *
         * used only with CONTAINED_IN_REGION: the filter evaluates to
         * true if the geo point property named by "property" is contained
         * in this geo-region.  In this case the "value" field of the
         * Property is unused (despite the fact that that field is marked
         * as "required").
         * 
* * optional .apphosting_datastore_v3.GeoRegion geo_region = 40; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.Builder getGeoRegionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getGeoRegionFieldBuilder().getBuilder(); } /** *
         * used only with CONTAINED_IN_REGION: the filter evaluates to
         * true if the geo point property named by "property" is contained
         * in this geo-region.  In this case the "value" field of the
         * Property is unused (despite the fact that that field is marked
         * as "required").
         * 
* * optional .apphosting_datastore_v3.GeoRegion geo_region = 40; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegionOrBuilder getGeoRegionOrBuilder() { if (geoRegionBuilder_ != null) { return geoRegionBuilder_.getMessageOrBuilder(); } else { return geoRegion_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.getDefaultInstance() : geoRegion_; } } /** *
         * used only with CONTAINED_IN_REGION: the filter evaluates to
         * true if the geo point property named by "property" is contained
         * in this geo-region.  In this case the "value" field of the
         * Property is unused (despite the fact that that field is marked
         * as "required").
         * 
* * optional .apphosting_datastore_v3.GeoRegion geo_region = 40; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegionOrBuilder> getGeoRegionFieldBuilder() { if (geoRegionBuilder_ == null) { geoRegionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegionOrBuilder>( getGeoRegion(), getParentForChildren(), isClean()); geoRegion_ = null; } return geoRegionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.Query.Filter) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.Query.Filter) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Filter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OrderOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.Query.Order) com.google.protobuf.MessageOrBuilder { /** * required string property = 10; * @return Whether the property field is set. */ boolean hasProperty(); /** * required string property = 10; * @return The property. */ java.lang.String getProperty(); /** * required string property = 10; * @return The bytes for property. */ com.google.protobuf.ByteString getPropertyBytes(); /** * optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING]; * @return Whether the direction field is set. */ boolean hasDirection(); /** * optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING]; * @return The direction. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction getDirection(); } /** *
     * these apply in the order they're added, e.g. adding ("date", DESC),
     * then adding ("rank", DESC) would sort first by date, descending, then
     * by rank, descending.
     * 
* * Protobuf type {@code apphosting_datastore_v3.Query.Order} */ public static final class Order extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.Query.Order) OrderOrBuilder { private static final long serialVersionUID = 0L; // Use Order.newBuilder() to construct. private Order(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Order() { property_ = ""; direction_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Order(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Order_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Order_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder.class); } /** *
       * These tag numbers must match the tag numbers in the
       * Index.Property.Direction enum!
       * 
* * Protobuf enum {@code apphosting_datastore_v3.Query.Order.Direction} */ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { /** * ASCENDING = 1; */ ASCENDING(1), /** * DESCENDING = 2; */ DESCENDING(2), ; /** * ASCENDING = 1; */ public static final int ASCENDING_VALUE = 1; /** * DESCENDING = 2; */ public static final int DESCENDING_VALUE = 2; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Direction valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Direction forNumber(int value) { switch (value) { case 1: return ASCENDING; case 2: return DESCENDING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Direction> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Direction findValueByNumber(int number) { return Direction.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.getDescriptor().getEnumTypes().get(0); } private static final Direction[] VALUES = values(); public static Direction valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Direction(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:apphosting_datastore_v3.Query.Order.Direction) } private int bitField0_; public static final int PROPERTY_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object property_ = ""; /** * required string property = 10; * @return Whether the property field is set. */ @java.lang.Override public boolean hasProperty() { return ((bitField0_ & 0x00000001) != 0); } /** * required string property = 10; * @return The property. */ @java.lang.Override public java.lang.String getProperty() { java.lang.Object ref = property_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { property_ = s; } return s; } } /** * required string property = 10; * @return The bytes for property. */ @java.lang.Override public com.google.protobuf.ByteString getPropertyBytes() { java.lang.Object ref = property_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); property_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DIRECTION_FIELD_NUMBER = 11; private int direction_ = 1; /** * optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING]; * @return Whether the direction field is set. */ @java.lang.Override public boolean hasDirection() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING]; * @return The direction. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction getDirection() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction.forNumber(direction_); return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction.ASCENDING : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasProperty()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, property_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(11, direction_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, property_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, direction_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order) obj; if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { if (!getProperty() .equals(other.getProperty())) return false; } if (hasDirection() != other.hasDirection()) return false; if (hasDirection()) { if (direction_ != other.direction_) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasProperty()) { hash = (37 * hash) + PROPERTY_FIELD_NUMBER; hash = (53 * hash) + getProperty().hashCode(); } if (hasDirection()) { hash = (37 * hash) + DIRECTION_FIELD_NUMBER; hash = (53 * hash) + direction_; } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
       * these apply in the order they're added, e.g. adding ("date", DESC),
       * then adding ("rank", DESC) would sort first by date, descending, then
       * by rank, descending.
       * 
* * Protobuf type {@code apphosting_datastore_v3.Query.Order} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.Query.Order) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Order_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Order_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; property_ = ""; direction_ = 1; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_Order_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.property_ = property_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.direction_ = direction_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.getDefaultInstance()) return this; if (other.hasProperty()) { property_ = other.property_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasDirection()) { setDirection(other.getDirection()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasProperty()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 82: { property_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 82 case 88: { int tmpRaw = input.readEnum(); com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction tmpValue = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(11, tmpRaw); } else { direction_ = tmpRaw; bitField0_ |= 0x00000002; } break; } // case 88 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object property_ = ""; /** * required string property = 10; * @return Whether the property field is set. */ public boolean hasProperty() { return ((bitField0_ & 0x00000001) != 0); } /** * required string property = 10; * @return The property. */ public java.lang.String getProperty() { java.lang.Object ref = property_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { property_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string property = 10; * @return The bytes for property. */ public com.google.protobuf.ByteString getPropertyBytes() { java.lang.Object ref = property_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); property_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string property = 10; * @param value The property to set. * @return This builder for chaining. */ public Builder setProperty( java.lang.String value) { if (value == null) { throw new NullPointerException(); } property_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string property = 10; * @return This builder for chaining. */ public Builder clearProperty() { property_ = getDefaultInstance().getProperty(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string property = 10; * @param value The bytes for property to set. * @return This builder for chaining. */ public Builder setPropertyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } property_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int direction_ = 1; /** * optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING]; * @return Whether the direction field is set. */ @java.lang.Override public boolean hasDirection() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING]; * @return The direction. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction getDirection() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction.forNumber(direction_); return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction.ASCENDING : result; } /** * optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING]; * @param value The direction to set. * @return This builder for chaining. */ public Builder setDirection(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Direction value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; direction_ = value.getNumber(); onChanged(); return this; } /** * optional .apphosting_datastore_v3.Query.Order.Direction direction = 11 [default = ASCENDING]; * @return This builder for chaining. */ public Builder clearDirection() { bitField0_ = (bitField0_ & ~0x00000002); direction_ = 1; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.Query.Order) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.Query.Order) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Order parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int APP_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object app_ = ""; /** *
     * Tag 39 was InternalHeader
     * 
* * required string app = 1; * @return Whether the app field is set. */ @java.lang.Override public boolean hasApp() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Tag 39 was InternalHeader
     * 
* * required string app = 1; * @return The app. */ @java.lang.Override public java.lang.String getApp() { java.lang.Object ref = app_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { app_ = s; } return s; } } /** *
     * Tag 39 was InternalHeader
     * 
* * required string app = 1; * @return The bytes for app. */ @java.lang.Override public com.google.protobuf.ByteString getAppBytes() { java.lang.Object ref = app_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); app_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATABASE_ID_FIELD_NUMBER = 42; @SuppressWarnings("serial") private volatile java.lang.Object databaseId_ = ""; /** *
     * The database that this query is for.
     * 
* * optional string database_id = 42; * @return Whether the databaseId field is set. */ @java.lang.Override public boolean hasDatabaseId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The database that this query is for.
     * 
* * optional string database_id = 42; * @return The databaseId. */ @java.lang.Override public java.lang.String getDatabaseId() { java.lang.Object ref = databaseId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { databaseId_ = s; } return s; } } /** *
     * The database that this query is for.
     * 
* * optional string database_id = 42; * @return The bytes for databaseId. */ @java.lang.Override public com.google.protobuf.ByteString getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); databaseId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_SPACE_FIELD_NUMBER = 29; @SuppressWarnings("serial") private volatile java.lang.Object nameSpace_ = ""; /** *
     * name_space is to add multi tenancy support for datastore.
     * See http://go/appenginenamespace for a more in depth explanation.
     * 
* * optional string name_space = 29; * @return Whether the nameSpace field is set. */ @java.lang.Override public boolean hasNameSpace() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * name_space is to add multi tenancy support for datastore.
     * See http://go/appenginenamespace for a more in depth explanation.
     * 
* * optional string name_space = 29; * @return The nameSpace. */ @java.lang.Override public java.lang.String getNameSpace() { java.lang.Object ref = nameSpace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { nameSpace_ = s; } return s; } } /** *
     * name_space is to add multi tenancy support for datastore.
     * See http://go/appenginenamespace for a more in depth explanation.
     * 
* * optional string name_space = 29; * @return The bytes for nameSpace. */ @java.lang.Override public com.google.protobuf.ByteString getNameSpaceBytes() { java.lang.Object ref = nameSpace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nameSpace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KIND_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object kind_ = ""; /** *
     * kind and ancestor both restrict the query results. if kind is provided,
     * only entities of that kind are returned. if ancestor is provided, only
     * entities descended from that ancestor by path, including the ancestor
     * itself, are returned. either one or both must be provided.
     * 
* * optional string kind = 3; * @return Whether the kind field is set. */ @java.lang.Override public boolean hasKind() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * kind and ancestor both restrict the query results. if kind is provided,
     * only entities of that kind are returned. if ancestor is provided, only
     * entities descended from that ancestor by path, including the ancestor
     * itself, are returned. either one or both must be provided.
     * 
* * optional string kind = 3; * @return The kind. */ @java.lang.Override public java.lang.String getKind() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { kind_ = s; } return s; } } /** *
     * kind and ancestor both restrict the query results. if kind is provided,
     * only entities of that kind are returned. if ancestor is provided, only
     * entities descended from that ancestor by path, including the ancestor
     * itself, are returned. either one or both must be provided.
     * 
* * optional string kind = 3; * @return The bytes for kind. */ @java.lang.Override public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ANCESTOR_FIELD_NUMBER = 17; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference ancestor_; /** * optional .storage_onestore_v3.Reference ancestor = 17; * @return Whether the ancestor field is set. */ @java.lang.Override public boolean hasAncestor() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .storage_onestore_v3.Reference ancestor = 17; * @return The ancestor. */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getAncestor() { return ancestor_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : ancestor_; } /** * optional .storage_onestore_v3.Reference ancestor = 17; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getAncestorOrBuilder() { return ancestor_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : ancestor_; } public static final int SHALLOW_FIELD_NUMBER = 43; private boolean shallow_ = false; /** *
     * If true, the query will only return entities that are direct descendants
     * of the given ancestor, or root entities if not ancestor is set.
     * 
* * optional bool shallow = 43; * @return Whether the shallow field is set. */ @java.lang.Override public boolean hasShallow() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * If true, the query will only return entities that are direct descendants
     * of the given ancestor, or root entities if not ancestor is set.
     * 
* * optional bool shallow = 43; * @return The shallow. */ @java.lang.Override public boolean getShallow() { return shallow_; } public static final int FILTER_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List filter_; /** * repeated group Filter = 4 { ... } */ @java.lang.Override public java.util.List getFilterList() { return filter_; } /** * repeated group Filter = 4 { ... } */ @java.lang.Override public java.util.List getFilterOrBuilderList() { return filter_; } /** * repeated group Filter = 4 { ... } */ @java.lang.Override public int getFilterCount() { return filter_.size(); } /** * repeated group Filter = 4 { ... } */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter getFilter(int index) { return filter_.get(index); } /** * repeated group Filter = 4 { ... } */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.FilterOrBuilder getFilterOrBuilder( int index) { return filter_.get(index); } public static final int SEARCH_QUERY_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object searchQuery_ = ""; /** *
     * TODO: Remove this field.
     * currently not implemented. eventually, when provided, this will be used
     * as a plain-text search query. ideally, it will be combined with any
     * filters, sort orders, and ancestor.
     * 
* * optional string search_query = 8; * @return Whether the searchQuery field is set. */ @java.lang.Override public boolean hasSearchQuery() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * TODO: Remove this field.
     * currently not implemented. eventually, when provided, this will be used
     * as a plain-text search query. ideally, it will be combined with any
     * filters, sort orders, and ancestor.
     * 
* * optional string search_query = 8; * @return The searchQuery. */ @java.lang.Override public java.lang.String getSearchQuery() { java.lang.Object ref = searchQuery_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { searchQuery_ = s; } return s; } } /** *
     * TODO: Remove this field.
     * currently not implemented. eventually, when provided, this will be used
     * as a plain-text search query. ideally, it will be combined with any
     * filters, sort orders, and ancestor.
     * 
* * optional string search_query = 8; * @return The bytes for searchQuery. */ @java.lang.Override public com.google.protobuf.ByteString getSearchQueryBytes() { java.lang.Object ref = searchQuery_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); searchQuery_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORDER_FIELD_NUMBER = 9; @SuppressWarnings("serial") private java.util.List order_; /** * repeated group Order = 9 { ... } */ @java.lang.Override public java.util.List getOrderList() { return order_; } /** * repeated group Order = 9 { ... } */ @java.lang.Override public java.util.List getOrderOrBuilderList() { return order_; } /** * repeated group Order = 9 { ... } */ @java.lang.Override public int getOrderCount() { return order_.size(); } /** * repeated group Order = 9 { ... } */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order getOrder(int index) { return order_.get(index); } /** * repeated group Order = 9 { ... } */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder getOrderOrBuilder( int index) { return order_.get(index); } public static final int HINT_FIELD_NUMBER = 18; private int hint_ = 1; /** * optional .apphosting_datastore_v3.Query.Hint hint = 18; * @return Whether the hint field is set. */ @java.lang.Override public boolean hasHint() { return ((bitField0_ & 0x00000080) != 0); } /** * optional .apphosting_datastore_v3.Query.Hint hint = 18; * @return The hint. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint getHint() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint.forNumber(hint_); return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint.ORDER_FIRST : result; } public static final int COUNT_FIELD_NUMBER = 23; private int count_ = 0; /** *
     * An optional number of entities to try to prefetch and return in the
     * RunQuery response. If not specified the underlying datastore implementation
     * will pick.
     * 
* * optional int32 count = 23; * @return Whether the count field is set. */ @java.lang.Override public boolean hasCount() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * An optional number of entities to try to prefetch and return in the
     * RunQuery response. If not specified the underlying datastore implementation
     * will pick.
     * 
* * optional int32 count = 23; * @return The count. */ @java.lang.Override public int getCount() { return count_; } public static final int OFFSET_FIELD_NUMBER = 12; private int offset_ = 0; /** *
     * start returning results at this offset. useful for paging.
     * 
* * optional int32 offset = 12 [default = 0]; * @return Whether the offset field is set. */ @java.lang.Override public boolean hasOffset() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * start returning results at this offset. useful for paging.
     * 
* * optional int32 offset = 12 [default = 0]; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } public static final int LIMIT_FIELD_NUMBER = 16; private int limit_ = 0; /** *
     * an optional upper bound on the number of results returned for this query.
     * "count" queries are requested by setting limit to 0 and the offset to the
     * maximum number of records the user wants to count (possibly infinite).
     * 
* * optional int32 limit = 16; * @return Whether the limit field is set. */ @java.lang.Override public boolean hasLimit() { return ((bitField0_ & 0x00000400) != 0); } /** *
     * an optional upper bound on the number of results returned for this query.
     * "count" queries are requested by setting limit to 0 and the offset to the
     * maximum number of records the user wants to count (possibly infinite).
     * 
* * optional int32 limit = 16; * @return The limit. */ @java.lang.Override public int getLimit() { return limit_; } public static final int COMPILED_CURSOR_FIELD_NUMBER = 30; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor compiledCursor_; /** *
     * the position at which to start the query
     * TODO: choose better name when switching to plannable cursors.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30; * @return Whether the compiledCursor field is set. */ @java.lang.Override public boolean hasCompiledCursor() { return ((bitField0_ & 0x00000800) != 0); } /** *
     * the position at which to start the query
     * TODO: choose better name when switching to plannable cursors.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30; * @return The compiledCursor. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getCompiledCursor() { return compiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : compiledCursor_; } /** *
     * the position at which to start the query
     * TODO: choose better name when switching to plannable cursors.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getCompiledCursorOrBuilder() { return compiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : compiledCursor_; } public static final int END_COMPILED_CURSOR_FIELD_NUMBER = 31; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor endCompiledCursor_; /** *
     * the position at which to end the query
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31; * @return Whether the endCompiledCursor field is set. */ @java.lang.Override public boolean hasEndCompiledCursor() { return ((bitField0_ & 0x00001000) != 0); } /** *
     * the position at which to end the query
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31; * @return The endCompiledCursor. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getEndCompiledCursor() { return endCompiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : endCompiledCursor_; } /** *
     * the position at which to end the query
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getEndCompiledCursorOrBuilder() { return endCompiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : endCompiledCursor_; } public static final int COMPOSITE_INDEX_FIELD_NUMBER = 19; @SuppressWarnings("serial") private java.util.List compositeIndex_; /** *
     * the composite indexes, if any, that are available to the query planner
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ @java.lang.Override public java.util.List getCompositeIndexList() { return compositeIndex_; } /** *
     * the composite indexes, if any, that are available to the query planner
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ @java.lang.Override public java.util.List getCompositeIndexOrBuilderList() { return compositeIndex_; } /** *
     * the composite indexes, if any, that are available to the query planner
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ @java.lang.Override public int getCompositeIndexCount() { return compositeIndex_.size(); } /** *
     * the composite indexes, if any, that are available to the query planner
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index) { return compositeIndex_.get(index); } /** *
     * the composite indexes, if any, that are available to the query planner
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder( int index) { return compositeIndex_.get(index); } public static final int REQUIRE_PERFECT_PLAN_FIELD_NUMBER = 20; private boolean requirePerfectPlan_ = false; /** *
     * if true, the datastore will only run this query if there's an index or
     * set of indices that perfectly match it. if not, it will return an error.
     * 
* * optional bool require_perfect_plan = 20 [default = false]; * @return Whether the requirePerfectPlan field is set. */ @java.lang.Override public boolean hasRequirePerfectPlan() { return ((bitField0_ & 0x00002000) != 0); } /** *
     * if true, the datastore will only run this query if there's an index or
     * set of indices that perfectly match it. if not, it will return an error.
     * 
* * optional bool require_perfect_plan = 20 [default = false]; * @return The requirePerfectPlan. */ @java.lang.Override public boolean getRequirePerfectPlan() { return requirePerfectPlan_; } public static final int KEYS_ONLY_FIELD_NUMBER = 21; private boolean keysOnly_ = false; /** *
     * if true, only return the keys of matching entities and not the whole
     * entity. this makes the query somewhat faster and a lot less expensive, in
     * terms of disk seeks, since it doesn't have to fetch each result entity.
     * note that this property indicates the _user's_ request to execute a
     * keys-only query.  The backend may also elect to perform a keys-only query
     * in order to answer a count() request, which is denoted by a limit of size
     * 0 (see above comment on limit).
     * if this is true, require_perfect_plan must also be set to true.
     * 
* * optional bool keys_only = 21 [default = false]; * @return Whether the keysOnly field is set. */ @java.lang.Override public boolean hasKeysOnly() { return ((bitField0_ & 0x00004000) != 0); } /** *
     * if true, only return the keys of matching entities and not the whole
     * entity. this makes the query somewhat faster and a lot less expensive, in
     * terms of disk seeks, since it doesn't have to fetch each result entity.
     * note that this property indicates the _user's_ request to execute a
     * keys-only query.  The backend may also elect to perform a keys-only query
     * in order to answer a count() request, which is denoted by a limit of size
     * 0 (see above comment on limit).
     * if this is true, require_perfect_plan must also be set to true.
     * 
* * optional bool keys_only = 21 [default = false]; * @return The keysOnly. */ @java.lang.Override public boolean getKeysOnly() { return keysOnly_; } public static final int TRANSACTION_FIELD_NUMBER = 22; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction transaction_; /** *
     * if specified, the query must be an ancestor query, and the ancestor must
     * be in the same entity group as the other operations in the transaction.
     * 
* * optional .apphosting_datastore_v3.Transaction transaction = 22; * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return ((bitField0_ & 0x00008000) != 0); } /** *
     * if specified, the query must be an ancestor query, and the ancestor must
     * be in the same entity group as the other operations in the transaction.
     * 
* * optional .apphosting_datastore_v3.Transaction transaction = 22; * @return The transaction. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction() { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } /** *
     * if specified, the query must be an ancestor query, and the ancestor must
     * be in the same entity group as the other operations in the transaction.
     * 
* * optional .apphosting_datastore_v3.Transaction transaction = 22; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder() { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } public static final int COMPILE_FIELD_NUMBER = 25; private boolean compile_ = false; /** *
     * TODO: I believe this field is ignored.  Remove it.
     * An optional argument that determines if a compiled query should be
     * returned. If true, a compiled query will be constructed such that
     * it will resume the given query immediately after the last result provided.
     * Additionally this value must be true for a NextRequest with compile == true
     * to be successful.
     * 
* * optional bool compile = 25 [default = false]; * @return Whether the compile field is set. */ @java.lang.Override public boolean hasCompile() { return ((bitField0_ & 0x00010000) != 0); } /** *
     * TODO: I believe this field is ignored.  Remove it.
     * An optional argument that determines if a compiled query should be
     * returned. If true, a compiled query will be constructed such that
     * it will resume the given query immediately after the last result provided.
     * Additionally this value must be true for a NextRequest with compile == true
     * to be successful.
     * 
* * optional bool compile = 25 [default = false]; * @return The compile. */ @java.lang.Override public boolean getCompile() { return compile_; } public static final int FAILOVER_MS_FIELD_NUMBER = 26; private long failoverMs_ = 0L; /** *
     * How long to wait on the primary replica before attempting to read from a
     * secondary, possibly stale replica. May not be set if a transaction is
     * provided.
     * NOTE: The actual value is overwritten by the datastore, setting
     * only has the effect of enabling failover in M/S.
     * 
* * optional int64 failover_ms = 26; * @return Whether the failoverMs field is set. */ @java.lang.Override public boolean hasFailoverMs() { return ((bitField0_ & 0x00020000) != 0); } /** *
     * How long to wait on the primary replica before attempting to read from a
     * secondary, possibly stale replica. May not be set if a transaction is
     * provided.
     * NOTE: The actual value is overwritten by the datastore, setting
     * only has the effect of enabling failover in M/S.
     * 
* * optional int64 failover_ms = 26; * @return The failoverMs. */ @java.lang.Override public long getFailoverMs() { return failoverMs_; } public static final int STRONG_FIELD_NUMBER = 32; private boolean strong_ = false; /** *
     * Should Datastore use READ_CURRENT (strong reads) for this request?
     * If unset the datastore decides based on a flag that defaults to
     * READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
     * choose between low latency/eventual consistency (false) and potentially
     * higher latency/strong consistency (true). This is typically not a concern
     * with 1.0.1 replication as (false) will never return results more than one
     * job behind, but is important for paxos where (false) can return results
     * that are significantly behind.
     * 
* * optional bool strong = 32; * @return Whether the strong field is set. */ @java.lang.Override public boolean hasStrong() { return ((bitField0_ & 0x00040000) != 0); } /** *
     * Should Datastore use READ_CURRENT (strong reads) for this request?
     * If unset the datastore decides based on a flag that defaults to
     * READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
     * choose between low latency/eventual consistency (false) and potentially
     * higher latency/strong consistency (true). This is typically not a concern
     * with 1.0.1 replication as (false) will never return results more than one
     * job behind, but is important for paxos where (false) can return results
     * that are significantly behind.
     * 
* * optional bool strong = 32; * @return The strong. */ @java.lang.Override public boolean getStrong() { return strong_; } public static final int PROPERTY_NAME_FIELD_NUMBER = 33; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList propertyName_; /** *
     * A list of property names to return. A request with this set is satisfied
     * using an index instead of looking up the full entity. As only the
     * PropertyValue is known in the index, the meaning of any property return
     * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
     * all the properties specified will be returned, i.e. there is an implied
     * existence filter on every property specified.
     * 
* * repeated string property_name = 33; * @return A list containing the propertyName. */ public com.google.protobuf.ProtocolStringList getPropertyNameList() { return propertyName_; } /** *
     * A list of property names to return. A request with this set is satisfied
     * using an index instead of looking up the full entity. As only the
     * PropertyValue is known in the index, the meaning of any property return
     * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
     * all the properties specified will be returned, i.e. there is an implied
     * existence filter on every property specified.
     * 
* * repeated string property_name = 33; * @return The count of propertyName. */ public int getPropertyNameCount() { return propertyName_.size(); } /** *
     * A list of property names to return. A request with this set is satisfied
     * using an index instead of looking up the full entity. As only the
     * PropertyValue is known in the index, the meaning of any property return
     * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
     * all the properties specified will be returned, i.e. there is an implied
     * existence filter on every property specified.
     * 
* * repeated string property_name = 33; * @param index The index of the element to return. * @return The propertyName at the given index. */ public java.lang.String getPropertyName(int index) { return propertyName_.get(index); } /** *
     * A list of property names to return. A request with this set is satisfied
     * using an index instead of looking up the full entity. As only the
     * PropertyValue is known in the index, the meaning of any property return
     * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
     * all the properties specified will be returned, i.e. there is an implied
     * existence filter on every property specified.
     * 
* * repeated string property_name = 33; * @param index The index of the value to return. * @return The bytes of the propertyName at the given index. */ public com.google.protobuf.ByteString getPropertyNameBytes(int index) { return propertyName_.getByteString(index); } public static final int GROUP_BY_PROPERTY_NAME_FIELD_NUMBER = 34; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList groupByPropertyName_; /** *
     * Properties that should be included in the GROUP BY clause.
     * 
* * repeated string group_by_property_name = 34; * @return A list containing the groupByPropertyName. */ public com.google.protobuf.ProtocolStringList getGroupByPropertyNameList() { return groupByPropertyName_; } /** *
     * Properties that should be included in the GROUP BY clause.
     * 
* * repeated string group_by_property_name = 34; * @return The count of groupByPropertyName. */ public int getGroupByPropertyNameCount() { return groupByPropertyName_.size(); } /** *
     * Properties that should be included in the GROUP BY clause.
     * 
* * repeated string group_by_property_name = 34; * @param index The index of the element to return. * @return The groupByPropertyName at the given index. */ public java.lang.String getGroupByPropertyName(int index) { return groupByPropertyName_.get(index); } /** *
     * Properties that should be included in the GROUP BY clause.
     * 
* * repeated string group_by_property_name = 34; * @param index The index of the value to return. * @return The bytes of the groupByPropertyName at the given index. */ public com.google.protobuf.ByteString getGroupByPropertyNameBytes(int index) { return groupByPropertyName_.getByteString(index); } public static final int DISTINCT_FIELD_NUMBER = 24; private boolean distinct_ = false; /** *
     * For a normal query, this applies to keys and defaults to true, for a query
     * with property_names, this applies to the set of properties returned and
     * defaults to false
     * 
* * optional bool distinct = 24; * @return Whether the distinct field is set. */ @java.lang.Override public boolean hasDistinct() { return ((bitField0_ & 0x00080000) != 0); } /** *
     * For a normal query, this applies to keys and defaults to true, for a query
     * with property_names, this applies to the set of properties returned and
     * defaults to false
     * 
* * optional bool distinct = 24; * @return The distinct. */ @java.lang.Override public boolean getDistinct() { return distinct_; } public static final int MIN_SAFE_TIME_SECONDS_FIELD_NUMBER = 35; private long minSafeTimeSeconds_ = 0L; /** *
     * If set, a minimum safe time required of the application's key range
     * in any Megastore table EntityGroups data replica read by the query.
     * 
* * optional int64 min_safe_time_seconds = 35; * @return Whether the minSafeTimeSeconds field is set. */ @java.lang.Override public boolean hasMinSafeTimeSeconds() { return ((bitField0_ & 0x00100000) != 0); } /** *
     * If set, a minimum safe time required of the application's key range
     * in any Megastore table EntityGroups data replica read by the query.
     * 
* * optional int64 min_safe_time_seconds = 35; * @return The minSafeTimeSeconds. */ @java.lang.Override public long getMinSafeTimeSeconds() { return minSafeTimeSeconds_; } public static final int SAFE_REPLICA_NAME_FIELD_NUMBER = 36; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList safeReplicaName_; /** *
     * When min_safe_time_seconds is set, the app server injects the names
     * of the data replicas of our entity Megastore table for which the
     * application's key range's safe time is >= min_safe_time_seconds.
     * 
* * repeated string safe_replica_name = 36; * @return A list containing the safeReplicaName. */ public com.google.protobuf.ProtocolStringList getSafeReplicaNameList() { return safeReplicaName_; } /** *
     * When min_safe_time_seconds is set, the app server injects the names
     * of the data replicas of our entity Megastore table for which the
     * application's key range's safe time is >= min_safe_time_seconds.
     * 
* * repeated string safe_replica_name = 36; * @return The count of safeReplicaName. */ public int getSafeReplicaNameCount() { return safeReplicaName_.size(); } /** *
     * When min_safe_time_seconds is set, the app server injects the names
     * of the data replicas of our entity Megastore table for which the
     * application's key range's safe time is >= min_safe_time_seconds.
     * 
* * repeated string safe_replica_name = 36; * @param index The index of the element to return. * @return The safeReplicaName at the given index. */ public java.lang.String getSafeReplicaName(int index) { return safeReplicaName_.get(index); } /** *
     * When min_safe_time_seconds is set, the app server injects the names
     * of the data replicas of our entity Megastore table for which the
     * application's key range's safe time is >= min_safe_time_seconds.
     * 
* * repeated string safe_replica_name = 36; * @param index The index of the value to return. * @return The bytes of the safeReplicaName at the given index. */ public com.google.protobuf.ByteString getSafeReplicaNameBytes(int index) { return safeReplicaName_.getByteString(index); } public static final int PERSIST_OFFSET_FIELD_NUMBER = 37; private boolean persistOffset_ = true; /** *
     * If true, then the original offset is persisted for subsequent Next RPCs
     * and a BAD_REQUEST is raised if the NextRequest specifies an offset
     * that does not match the one from the original request.
     * NOTE: This is the only behavior supported by datastore_v4.
     * DEPRECATED: This is now always assumed to be true. Setting it has no
     * effect.
     * 
* * optional bool persist_offset = 37 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.Query.persist_offset is deprecated. * See datastore_v3.proto;l=312 * @return Whether the persistOffset field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasPersistOffset() { return ((bitField0_ & 0x00200000) != 0); } /** *
     * If true, then the original offset is persisted for subsequent Next RPCs
     * and a BAD_REQUEST is raised if the NextRequest specifies an offset
     * that does not match the one from the original request.
     * NOTE: This is the only behavior supported by datastore_v4.
     * DEPRECATED: This is now always assumed to be true. Setting it has no
     * effect.
     * 
* * optional bool persist_offset = 37 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.Query.persist_offset is deprecated. * See datastore_v3.proto;l=312 * @return The persistOffset. */ @java.lang.Override @java.lang.Deprecated public boolean getPersistOffset() { return persistOffset_; } public static final int READ_TIME_US_FIELD_NUMBER = 44; private long readTimeUs_ = 0L; /** *
     * Only for Spanner-backed apps: Reads entities as they were at the given
     * time, represented as microseconds of UTC time since Unix epoch
     * 1970-01-01T00:00:00Z.
     * 
* * optional int64 read_time_us = 44; * @return Whether the readTimeUs field is set. */ @java.lang.Override public boolean hasReadTimeUs() { return ((bitField0_ & 0x00400000) != 0); } /** *
     * Only for Spanner-backed apps: Reads entities as they were at the given
     * time, represented as microseconds of UTC time since Unix epoch
     * 1970-01-01T00:00:00Z.
     * 
* * optional int64 read_time_us = 44; * @return The readTimeUs. */ @java.lang.Override public long getReadTimeUs() { return readTimeUs_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasApp()) { memoizedIsInitialized = 0; return false; } if (hasAncestor()) { if (!getAncestor().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getFilterCount(); i++) { if (!getFilter(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getOrderCount(); i++) { if (!getOrder(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasCompiledCursor()) { if (!getCompiledCursor().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasEndCompiledCursor()) { if (!getEndCompiledCursor().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getCompositeIndexCount(); i++) { if (!getCompositeIndex(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasTransaction()) { if (!getTransaction().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, app_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kind_); } for (int i = 0; i < filter_.size(); i++) { output.writeGroup(4, filter_.get(i)); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, searchQuery_); } for (int i = 0; i < order_.size(); i++) { output.writeGroup(9, order_.get(i)); } if (((bitField0_ & 0x00000200) != 0)) { output.writeInt32(12, offset_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeInt32(16, limit_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(17, getAncestor()); } if (((bitField0_ & 0x00000080) != 0)) { output.writeEnum(18, hint_); } for (int i = 0; i < compositeIndex_.size(); i++) { output.writeMessage(19, compositeIndex_.get(i)); } if (((bitField0_ & 0x00002000) != 0)) { output.writeBool(20, requirePerfectPlan_); } if (((bitField0_ & 0x00004000) != 0)) { output.writeBool(21, keysOnly_); } if (((bitField0_ & 0x00008000) != 0)) { output.writeMessage(22, getTransaction()); } if (((bitField0_ & 0x00000100) != 0)) { output.writeInt32(23, count_); } if (((bitField0_ & 0x00080000) != 0)) { output.writeBool(24, distinct_); } if (((bitField0_ & 0x00010000) != 0)) { output.writeBool(25, compile_); } if (((bitField0_ & 0x00020000) != 0)) { output.writeInt64(26, failoverMs_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, nameSpace_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(30, getCompiledCursor()); } if (((bitField0_ & 0x00001000) != 0)) { output.writeMessage(31, getEndCompiledCursor()); } if (((bitField0_ & 0x00040000) != 0)) { output.writeBool(32, strong_); } for (int i = 0; i < propertyName_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 33, propertyName_.getRaw(i)); } for (int i = 0; i < groupByPropertyName_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 34, groupByPropertyName_.getRaw(i)); } if (((bitField0_ & 0x00100000) != 0)) { output.writeInt64(35, minSafeTimeSeconds_); } for (int i = 0; i < safeReplicaName_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 36, safeReplicaName_.getRaw(i)); } if (((bitField0_ & 0x00200000) != 0)) { output.writeBool(37, persistOffset_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 42, databaseId_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(43, shallow_); } if (((bitField0_ & 0x00400000) != 0)) { output.writeInt64(44, readTimeUs_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, app_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kind_); } for (int i = 0; i < filter_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(4, filter_.get(i)); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, searchQuery_); } for (int i = 0; i < order_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(9, order_.get(i)); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, offset_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(16, limit_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getAncestor()); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(18, hint_); } for (int i = 0; i < compositeIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, compositeIndex_.get(i)); } if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(20, requirePerfectPlan_); } if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(21, keysOnly_); } if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, getTransaction()); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(23, count_); } if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(24, distinct_); } if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(25, compile_); } if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(26, failoverMs_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, nameSpace_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, getCompiledCursor()); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, getEndCompiledCursor()); } if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(32, strong_); } { int dataSize = 0; for (int i = 0; i < propertyName_.size(); i++) { dataSize += computeStringSizeNoTag(propertyName_.getRaw(i)); } size += dataSize; size += 2 * getPropertyNameList().size(); } { int dataSize = 0; for (int i = 0; i < groupByPropertyName_.size(); i++) { dataSize += computeStringSizeNoTag(groupByPropertyName_.getRaw(i)); } size += dataSize; size += 2 * getGroupByPropertyNameList().size(); } if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(35, minSafeTimeSeconds_); } { int dataSize = 0; for (int i = 0; i < safeReplicaName_.size(); i++) { dataSize += computeStringSizeNoTag(safeReplicaName_.getRaw(i)); } size += dataSize; size += 2 * getSafeReplicaNameList().size(); } if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(37, persistOffset_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(42, databaseId_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(43, shallow_); } if (((bitField0_ & 0x00400000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(44, readTimeUs_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query) obj; if (hasApp() != other.hasApp()) return false; if (hasApp()) { if (!getApp() .equals(other.getApp())) return false; } if (hasDatabaseId() != other.hasDatabaseId()) return false; if (hasDatabaseId()) { if (!getDatabaseId() .equals(other.getDatabaseId())) return false; } if (hasNameSpace() != other.hasNameSpace()) return false; if (hasNameSpace()) { if (!getNameSpace() .equals(other.getNameSpace())) return false; } if (hasKind() != other.hasKind()) return false; if (hasKind()) { if (!getKind() .equals(other.getKind())) return false; } if (hasAncestor() != other.hasAncestor()) return false; if (hasAncestor()) { if (!getAncestor() .equals(other.getAncestor())) return false; } if (hasShallow() != other.hasShallow()) return false; if (hasShallow()) { if (getShallow() != other.getShallow()) return false; } if (!getFilterList() .equals(other.getFilterList())) return false; if (hasSearchQuery() != other.hasSearchQuery()) return false; if (hasSearchQuery()) { if (!getSearchQuery() .equals(other.getSearchQuery())) return false; } if (!getOrderList() .equals(other.getOrderList())) return false; if (hasHint() != other.hasHint()) return false; if (hasHint()) { if (hint_ != other.hint_) return false; } if (hasCount() != other.hasCount()) return false; if (hasCount()) { if (getCount() != other.getCount()) return false; } if (hasOffset() != other.hasOffset()) return false; if (hasOffset()) { if (getOffset() != other.getOffset()) return false; } if (hasLimit() != other.hasLimit()) return false; if (hasLimit()) { if (getLimit() != other.getLimit()) return false; } if (hasCompiledCursor() != other.hasCompiledCursor()) return false; if (hasCompiledCursor()) { if (!getCompiledCursor() .equals(other.getCompiledCursor())) return false; } if (hasEndCompiledCursor() != other.hasEndCompiledCursor()) return false; if (hasEndCompiledCursor()) { if (!getEndCompiledCursor() .equals(other.getEndCompiledCursor())) return false; } if (!getCompositeIndexList() .equals(other.getCompositeIndexList())) return false; if (hasRequirePerfectPlan() != other.hasRequirePerfectPlan()) return false; if (hasRequirePerfectPlan()) { if (getRequirePerfectPlan() != other.getRequirePerfectPlan()) return false; } if (hasKeysOnly() != other.hasKeysOnly()) return false; if (hasKeysOnly()) { if (getKeysOnly() != other.getKeysOnly()) return false; } if (hasTransaction() != other.hasTransaction()) return false; if (hasTransaction()) { if (!getTransaction() .equals(other.getTransaction())) return false; } if (hasCompile() != other.hasCompile()) return false; if (hasCompile()) { if (getCompile() != other.getCompile()) return false; } if (hasFailoverMs() != other.hasFailoverMs()) return false; if (hasFailoverMs()) { if (getFailoverMs() != other.getFailoverMs()) return false; } if (hasStrong() != other.hasStrong()) return false; if (hasStrong()) { if (getStrong() != other.getStrong()) return false; } if (!getPropertyNameList() .equals(other.getPropertyNameList())) return false; if (!getGroupByPropertyNameList() .equals(other.getGroupByPropertyNameList())) return false; if (hasDistinct() != other.hasDistinct()) return false; if (hasDistinct()) { if (getDistinct() != other.getDistinct()) return false; } if (hasMinSafeTimeSeconds() != other.hasMinSafeTimeSeconds()) return false; if (hasMinSafeTimeSeconds()) { if (getMinSafeTimeSeconds() != other.getMinSafeTimeSeconds()) return false; } if (!getSafeReplicaNameList() .equals(other.getSafeReplicaNameList())) return false; if (hasPersistOffset() != other.hasPersistOffset()) return false; if (hasPersistOffset()) { if (getPersistOffset() != other.getPersistOffset()) return false; } if (hasReadTimeUs() != other.hasReadTimeUs()) return false; if (hasReadTimeUs()) { if (getReadTimeUs() != other.getReadTimeUs()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasApp()) { hash = (37 * hash) + APP_FIELD_NUMBER; hash = (53 * hash) + getApp().hashCode(); } if (hasDatabaseId()) { hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER; hash = (53 * hash) + getDatabaseId().hashCode(); } if (hasNameSpace()) { hash = (37 * hash) + NAME_SPACE_FIELD_NUMBER; hash = (53 * hash) + getNameSpace().hashCode(); } if (hasKind()) { hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); } if (hasAncestor()) { hash = (37 * hash) + ANCESTOR_FIELD_NUMBER; hash = (53 * hash) + getAncestor().hashCode(); } if (hasShallow()) { hash = (37 * hash) + SHALLOW_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getShallow()); } if (getFilterCount() > 0) { hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilterList().hashCode(); } if (hasSearchQuery()) { hash = (37 * hash) + SEARCH_QUERY_FIELD_NUMBER; hash = (53 * hash) + getSearchQuery().hashCode(); } if (getOrderCount() > 0) { hash = (37 * hash) + ORDER_FIELD_NUMBER; hash = (53 * hash) + getOrderList().hashCode(); } if (hasHint()) { hash = (37 * hash) + HINT_FIELD_NUMBER; hash = (53 * hash) + hint_; } if (hasCount()) { hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); } if (hasOffset()) { hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset(); } if (hasLimit()) { hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); } if (hasCompiledCursor()) { hash = (37 * hash) + COMPILED_CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCompiledCursor().hashCode(); } if (hasEndCompiledCursor()) { hash = (37 * hash) + END_COMPILED_CURSOR_FIELD_NUMBER; hash = (53 * hash) + getEndCompiledCursor().hashCode(); } if (getCompositeIndexCount() > 0) { hash = (37 * hash) + COMPOSITE_INDEX_FIELD_NUMBER; hash = (53 * hash) + getCompositeIndexList().hashCode(); } if (hasRequirePerfectPlan()) { hash = (37 * hash) + REQUIRE_PERFECT_PLAN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRequirePerfectPlan()); } if (hasKeysOnly()) { hash = (37 * hash) + KEYS_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getKeysOnly()); } if (hasTransaction()) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); } if (hasCompile()) { hash = (37 * hash) + COMPILE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCompile()); } if (hasFailoverMs()) { hash = (37 * hash) + FAILOVER_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFailoverMs()); } if (hasStrong()) { hash = (37 * hash) + STRONG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getStrong()); } if (getPropertyNameCount() > 0) { hash = (37 * hash) + PROPERTY_NAME_FIELD_NUMBER; hash = (53 * hash) + getPropertyNameList().hashCode(); } if (getGroupByPropertyNameCount() > 0) { hash = (37 * hash) + GROUP_BY_PROPERTY_NAME_FIELD_NUMBER; hash = (53 * hash) + getGroupByPropertyNameList().hashCode(); } if (hasDistinct()) { hash = (37 * hash) + DISTINCT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDistinct()); } if (hasMinSafeTimeSeconds()) { hash = (37 * hash) + MIN_SAFE_TIME_SECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinSafeTimeSeconds()); } if (getSafeReplicaNameCount() > 0) { hash = (37 * hash) + SAFE_REPLICA_NAME_FIELD_NUMBER; hash = (53 * hash) + getSafeReplicaNameList().hashCode(); } if (hasPersistOffset()) { hash = (37 * hash) + PERSIST_OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPersistOffset()); } if (hasReadTimeUs()) { hash = (37 * hash) + READ_TIME_US_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getReadTimeUs()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query 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.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * Query API. See
     * http://g3doc/apphosting/g3doc/wiki-carryover/datastore_query_planner.md .
     * Next tag is 45
     * 
* * Protobuf type {@code apphosting_datastore_v3.Query} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.Query) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAncestorFieldBuilder(); getFilterFieldBuilder(); getOrderFieldBuilder(); getCompiledCursorFieldBuilder(); getEndCompiledCursorFieldBuilder(); getCompositeIndexFieldBuilder(); getTransactionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; app_ = ""; databaseId_ = ""; nameSpace_ = ""; kind_ = ""; ancestor_ = null; if (ancestorBuilder_ != null) { ancestorBuilder_.dispose(); ancestorBuilder_ = null; } shallow_ = false; if (filterBuilder_ == null) { filter_ = java.util.Collections.emptyList(); } else { filter_ = null; filterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); searchQuery_ = ""; if (orderBuilder_ == null) { order_ = java.util.Collections.emptyList(); } else { order_ = null; orderBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); hint_ = 1; count_ = 0; offset_ = 0; limit_ = 0; compiledCursor_ = null; if (compiledCursorBuilder_ != null) { compiledCursorBuilder_.dispose(); compiledCursorBuilder_ = null; } endCompiledCursor_ = null; if (endCompiledCursorBuilder_ != null) { endCompiledCursorBuilder_.dispose(); endCompiledCursorBuilder_ = null; } if (compositeIndexBuilder_ == null) { compositeIndex_ = java.util.Collections.emptyList(); } else { compositeIndex_ = null; compositeIndexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00008000); requirePerfectPlan_ = false; keysOnly_ = false; transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } compile_ = false; failoverMs_ = 0L; strong_ = false; propertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00400000); groupByPropertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00800000); distinct_ = false; minSafeTimeSeconds_ = 0L; safeReplicaName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x04000000); persistOffset_ = true; readTimeUs_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Query_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query result) { if (filterBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { filter_ = java.util.Collections.unmodifiableList(filter_); bitField0_ = (bitField0_ & ~0x00000040); } result.filter_ = filter_; } else { result.filter_ = filterBuilder_.build(); } if (orderBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { order_ = java.util.Collections.unmodifiableList(order_); bitField0_ = (bitField0_ & ~0x00000100); } result.order_ = order_; } else { result.order_ = orderBuilder_.build(); } if (compositeIndexBuilder_ == null) { if (((bitField0_ & 0x00008000) != 0)) { compositeIndex_ = java.util.Collections.unmodifiableList(compositeIndex_); bitField0_ = (bitField0_ & ~0x00008000); } result.compositeIndex_ = compositeIndex_; } else { result.compositeIndex_ = compositeIndexBuilder_.build(); } if (((bitField0_ & 0x00400000) != 0)) { propertyName_ = propertyName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00400000); } result.propertyName_ = propertyName_; if (((bitField0_ & 0x00800000) != 0)) { groupByPropertyName_ = groupByPropertyName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00800000); } result.groupByPropertyName_ = groupByPropertyName_; if (((bitField0_ & 0x04000000) != 0)) { safeReplicaName_ = safeReplicaName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x04000000); } result.safeReplicaName_ = safeReplicaName_; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.app_ = app_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.databaseId_ = databaseId_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.nameSpace_ = nameSpace_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.kind_ = kind_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.ancestor_ = ancestorBuilder_ == null ? ancestor_ : ancestorBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.shallow_ = shallow_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { result.searchQuery_ = searchQuery_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000200) != 0)) { result.hint_ = hint_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000400) != 0)) { result.count_ = count_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000800) != 0)) { result.offset_ = offset_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00001000) != 0)) { result.limit_ = limit_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00002000) != 0)) { result.compiledCursor_ = compiledCursorBuilder_ == null ? compiledCursor_ : compiledCursorBuilder_.build(); to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00004000) != 0)) { result.endCompiledCursor_ = endCompiledCursorBuilder_ == null ? endCompiledCursor_ : endCompiledCursorBuilder_.build(); to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00010000) != 0)) { result.requirePerfectPlan_ = requirePerfectPlan_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00020000) != 0)) { result.keysOnly_ = keysOnly_; to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00040000) != 0)) { result.transaction_ = transactionBuilder_ == null ? transaction_ : transactionBuilder_.build(); to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00080000) != 0)) { result.compile_ = compile_; to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x00100000) != 0)) { result.failoverMs_ = failoverMs_; to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x00200000) != 0)) { result.strong_ = strong_; to_bitField0_ |= 0x00040000; } if (((from_bitField0_ & 0x01000000) != 0)) { result.distinct_ = distinct_; to_bitField0_ |= 0x00080000; } if (((from_bitField0_ & 0x02000000) != 0)) { result.minSafeTimeSeconds_ = minSafeTimeSeconds_; to_bitField0_ |= 0x00100000; } if (((from_bitField0_ & 0x08000000) != 0)) { result.persistOffset_ = persistOffset_; to_bitField0_ |= 0x00200000; } if (((from_bitField0_ & 0x10000000) != 0)) { result.readTimeUs_ = readTimeUs_; to_bitField0_ |= 0x00400000; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.getDefaultInstance()) return this; if (other.hasApp()) { app_ = other.app_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasDatabaseId()) { databaseId_ = other.databaseId_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasNameSpace()) { nameSpace_ = other.nameSpace_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasKind()) { kind_ = other.kind_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasAncestor()) { mergeAncestor(other.getAncestor()); } if (other.hasShallow()) { setShallow(other.getShallow()); } if (filterBuilder_ == null) { if (!other.filter_.isEmpty()) { if (filter_.isEmpty()) { filter_ = other.filter_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureFilterIsMutable(); filter_.addAll(other.filter_); } onChanged(); } } else { if (!other.filter_.isEmpty()) { if (filterBuilder_.isEmpty()) { filterBuilder_.dispose(); filterBuilder_ = null; filter_ = other.filter_; bitField0_ = (bitField0_ & ~0x00000040); filterBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFilterFieldBuilder() : null; } else { filterBuilder_.addAllMessages(other.filter_); } } } if (other.hasSearchQuery()) { searchQuery_ = other.searchQuery_; bitField0_ |= 0x00000080; onChanged(); } if (orderBuilder_ == null) { if (!other.order_.isEmpty()) { if (order_.isEmpty()) { order_ = other.order_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureOrderIsMutable(); order_.addAll(other.order_); } onChanged(); } } else { if (!other.order_.isEmpty()) { if (orderBuilder_.isEmpty()) { orderBuilder_.dispose(); orderBuilder_ = null; order_ = other.order_; bitField0_ = (bitField0_ & ~0x00000100); orderBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOrderFieldBuilder() : null; } else { orderBuilder_.addAllMessages(other.order_); } } } if (other.hasHint()) { setHint(other.getHint()); } if (other.hasCount()) { setCount(other.getCount()); } if (other.hasOffset()) { setOffset(other.getOffset()); } if (other.hasLimit()) { setLimit(other.getLimit()); } if (other.hasCompiledCursor()) { mergeCompiledCursor(other.getCompiledCursor()); } if (other.hasEndCompiledCursor()) { mergeEndCompiledCursor(other.getEndCompiledCursor()); } if (compositeIndexBuilder_ == null) { if (!other.compositeIndex_.isEmpty()) { if (compositeIndex_.isEmpty()) { compositeIndex_ = other.compositeIndex_; bitField0_ = (bitField0_ & ~0x00008000); } else { ensureCompositeIndexIsMutable(); compositeIndex_.addAll(other.compositeIndex_); } onChanged(); } } else { if (!other.compositeIndex_.isEmpty()) { if (compositeIndexBuilder_.isEmpty()) { compositeIndexBuilder_.dispose(); compositeIndexBuilder_ = null; compositeIndex_ = other.compositeIndex_; bitField0_ = (bitField0_ & ~0x00008000); compositeIndexBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCompositeIndexFieldBuilder() : null; } else { compositeIndexBuilder_.addAllMessages(other.compositeIndex_); } } } if (other.hasRequirePerfectPlan()) { setRequirePerfectPlan(other.getRequirePerfectPlan()); } if (other.hasKeysOnly()) { setKeysOnly(other.getKeysOnly()); } if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } if (other.hasCompile()) { setCompile(other.getCompile()); } if (other.hasFailoverMs()) { setFailoverMs(other.getFailoverMs()); } if (other.hasStrong()) { setStrong(other.getStrong()); } if (!other.propertyName_.isEmpty()) { if (propertyName_.isEmpty()) { propertyName_ = other.propertyName_; bitField0_ = (bitField0_ & ~0x00400000); } else { ensurePropertyNameIsMutable(); propertyName_.addAll(other.propertyName_); } onChanged(); } if (!other.groupByPropertyName_.isEmpty()) { if (groupByPropertyName_.isEmpty()) { groupByPropertyName_ = other.groupByPropertyName_; bitField0_ = (bitField0_ & ~0x00800000); } else { ensureGroupByPropertyNameIsMutable(); groupByPropertyName_.addAll(other.groupByPropertyName_); } onChanged(); } if (other.hasDistinct()) { setDistinct(other.getDistinct()); } if (other.hasMinSafeTimeSeconds()) { setMinSafeTimeSeconds(other.getMinSafeTimeSeconds()); } if (!other.safeReplicaName_.isEmpty()) { if (safeReplicaName_.isEmpty()) { safeReplicaName_ = other.safeReplicaName_; bitField0_ = (bitField0_ & ~0x04000000); } else { ensureSafeReplicaNameIsMutable(); safeReplicaName_.addAll(other.safeReplicaName_); } onChanged(); } if (other.hasPersistOffset()) { setPersistOffset(other.getPersistOffset()); } if (other.hasReadTimeUs()) { setReadTimeUs(other.getReadTimeUs()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasApp()) { return false; } if (hasAncestor()) { if (!getAncestor().isInitialized()) { return false; } } for (int i = 0; i < getFilterCount(); i++) { if (!getFilter(i).isInitialized()) { return false; } } for (int i = 0; i < getOrderCount(); i++) { if (!getOrder(i).isInitialized()) { return false; } } if (hasCompiledCursor()) { if (!getCompiledCursor().isInitialized()) { return false; } } if (hasEndCompiledCursor()) { if (!getEndCompiledCursor().isInitialized()) { return false; } } for (int i = 0; i < getCompositeIndexCount(); i++) { if (!getCompositeIndex(i).isInitialized()) { return false; } } if (hasTransaction()) { if (!getTransaction().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { app_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 26: { kind_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 26 case 35: { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter m = input.readGroup(4, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.PARSER, extensionRegistry); if (filterBuilder_ == null) { ensureFilterIsMutable(); filter_.add(m); } else { filterBuilder_.addMessage(m); } break; } // case 35 case 66: { searchQuery_ = input.readBytes(); bitField0_ |= 0x00000080; break; } // case 66 case 75: { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order m = input.readGroup(9, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.PARSER, extensionRegistry); if (orderBuilder_ == null) { ensureOrderIsMutable(); order_.add(m); } else { orderBuilder_.addMessage(m); } break; } // case 75 case 96: { offset_ = input.readInt32(); bitField0_ |= 0x00000800; break; } // case 96 case 128: { limit_ = input.readInt32(); bitField0_ |= 0x00001000; break; } // case 128 case 138: { input.readMessage( getAncestorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 138 case 144: { int tmpRaw = input.readEnum(); com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint tmpValue = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(18, tmpRaw); } else { hint_ = tmpRaw; bitField0_ |= 0x00000200; } break; } // case 144 case 154: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.PARSER, extensionRegistry); if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.add(m); } else { compositeIndexBuilder_.addMessage(m); } break; } // case 154 case 160: { requirePerfectPlan_ = input.readBool(); bitField0_ |= 0x00010000; break; } // case 160 case 168: { keysOnly_ = input.readBool(); bitField0_ |= 0x00020000; break; } // case 168 case 178: { input.readMessage( getTransactionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00040000; break; } // case 178 case 184: { count_ = input.readInt32(); bitField0_ |= 0x00000400; break; } // case 184 case 192: { distinct_ = input.readBool(); bitField0_ |= 0x01000000; break; } // case 192 case 200: { compile_ = input.readBool(); bitField0_ |= 0x00080000; break; } // case 200 case 208: { failoverMs_ = input.readInt64(); bitField0_ |= 0x00100000; break; } // case 208 case 234: { nameSpace_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 234 case 242: { input.readMessage( getCompiledCursorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00002000; break; } // case 242 case 250: { input.readMessage( getEndCompiledCursorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 250 case 256: { strong_ = input.readBool(); bitField0_ |= 0x00200000; break; } // case 256 case 266: { com.google.protobuf.ByteString bs = input.readBytes(); ensurePropertyNameIsMutable(); propertyName_.add(bs); break; } // case 266 case 274: { com.google.protobuf.ByteString bs = input.readBytes(); ensureGroupByPropertyNameIsMutable(); groupByPropertyName_.add(bs); break; } // case 274 case 280: { minSafeTimeSeconds_ = input.readInt64(); bitField0_ |= 0x02000000; break; } // case 280 case 290: { com.google.protobuf.ByteString bs = input.readBytes(); ensureSafeReplicaNameIsMutable(); safeReplicaName_.add(bs); break; } // case 290 case 296: { persistOffset_ = input.readBool(); bitField0_ |= 0x08000000; break; } // case 296 case 338: { databaseId_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 338 case 344: { shallow_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 344 case 352: { readTimeUs_ = input.readInt64(); bitField0_ |= 0x10000000; break; } // case 352 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object app_ = ""; /** *
       * Tag 39 was InternalHeader
       * 
* * required string app = 1; * @return Whether the app field is set. */ public boolean hasApp() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Tag 39 was InternalHeader
       * 
* * required string app = 1; * @return The app. */ public java.lang.String getApp() { java.lang.Object ref = app_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { app_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Tag 39 was InternalHeader
       * 
* * required string app = 1; * @return The bytes for app. */ public com.google.protobuf.ByteString getAppBytes() { java.lang.Object ref = app_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); app_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Tag 39 was InternalHeader
       * 
* * required string app = 1; * @param value The app to set. * @return This builder for chaining. */ public Builder setApp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } app_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Tag 39 was InternalHeader
       * 
* * required string app = 1; * @return This builder for chaining. */ public Builder clearApp() { app_ = getDefaultInstance().getApp(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Tag 39 was InternalHeader
       * 
* * required string app = 1; * @param value The bytes for app to set. * @return This builder for chaining. */ public Builder setAppBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } app_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object databaseId_ = ""; /** *
       * The database that this query is for.
       * 
* * optional string database_id = 42; * @return Whether the databaseId field is set. */ public boolean hasDatabaseId() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * The database that this query is for.
       * 
* * optional string database_id = 42; * @return The databaseId. */ public java.lang.String getDatabaseId() { java.lang.Object ref = databaseId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { databaseId_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * The database that this query is for.
       * 
* * optional string database_id = 42; * @return The bytes for databaseId. */ public com.google.protobuf.ByteString getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); databaseId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The database that this query is for.
       * 
* * optional string database_id = 42; * @param value The databaseId to set. * @return This builder for chaining. */ public Builder setDatabaseId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The database that this query is for.
       * 
* * optional string database_id = 42; * @return This builder for chaining. */ public Builder clearDatabaseId() { databaseId_ = getDefaultInstance().getDatabaseId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The database that this query is for.
       * 
* * optional string database_id = 42; * @param value The bytes for databaseId to set. * @return This builder for chaining. */ public Builder setDatabaseIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object nameSpace_ = ""; /** *
       * name_space is to add multi tenancy support for datastore.
       * See http://go/appenginenamespace for a more in depth explanation.
       * 
* * optional string name_space = 29; * @return Whether the nameSpace field is set. */ public boolean hasNameSpace() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * name_space is to add multi tenancy support for datastore.
       * See http://go/appenginenamespace for a more in depth explanation.
       * 
* * optional string name_space = 29; * @return The nameSpace. */ public java.lang.String getNameSpace() { java.lang.Object ref = nameSpace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { nameSpace_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * name_space is to add multi tenancy support for datastore.
       * See http://go/appenginenamespace for a more in depth explanation.
       * 
* * optional string name_space = 29; * @return The bytes for nameSpace. */ public com.google.protobuf.ByteString getNameSpaceBytes() { java.lang.Object ref = nameSpace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nameSpace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * name_space is to add multi tenancy support for datastore.
       * See http://go/appenginenamespace for a more in depth explanation.
       * 
* * optional string name_space = 29; * @param value The nameSpace to set. * @return This builder for chaining. */ public Builder setNameSpace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nameSpace_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * name_space is to add multi tenancy support for datastore.
       * See http://go/appenginenamespace for a more in depth explanation.
       * 
* * optional string name_space = 29; * @return This builder for chaining. */ public Builder clearNameSpace() { nameSpace_ = getDefaultInstance().getNameSpace(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * name_space is to add multi tenancy support for datastore.
       * See http://go/appenginenamespace for a more in depth explanation.
       * 
* * optional string name_space = 29; * @param value The bytes for nameSpace to set. * @return This builder for chaining. */ public Builder setNameSpaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nameSpace_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object kind_ = ""; /** *
       * kind and ancestor both restrict the query results. if kind is provided,
       * only entities of that kind are returned. if ancestor is provided, only
       * entities descended from that ancestor by path, including the ancestor
       * itself, are returned. either one or both must be provided.
       * 
* * optional string kind = 3; * @return Whether the kind field is set. */ public boolean hasKind() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * kind and ancestor both restrict the query results. if kind is provided,
       * only entities of that kind are returned. if ancestor is provided, only
       * entities descended from that ancestor by path, including the ancestor
       * itself, are returned. either one or both must be provided.
       * 
* * optional string kind = 3; * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { kind_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * kind and ancestor both restrict the query results. if kind is provided,
       * only entities of that kind are returned. if ancestor is provided, only
       * entities descended from that ancestor by path, including the ancestor
       * itself, are returned. either one or both must be provided.
       * 
* * optional string kind = 3; * @return The bytes for kind. */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * kind and ancestor both restrict the query results. if kind is provided,
       * only entities of that kind are returned. if ancestor is provided, only
       * entities descended from that ancestor by path, including the ancestor
       * itself, are returned. either one or both must be provided.
       * 
* * optional string kind = 3; * @param value The kind to set. * @return This builder for chaining. */ public Builder setKind( java.lang.String value) { if (value == null) { throw new NullPointerException(); } kind_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * kind and ancestor both restrict the query results. if kind is provided,
       * only entities of that kind are returned. if ancestor is provided, only
       * entities descended from that ancestor by path, including the ancestor
       * itself, are returned. either one or both must be provided.
       * 
* * optional string kind = 3; * @return This builder for chaining. */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * kind and ancestor both restrict the query results. if kind is provided,
       * only entities of that kind are returned. if ancestor is provided, only
       * entities descended from that ancestor by path, including the ancestor
       * itself, are returned. either one or both must be provided.
       * 
* * optional string kind = 3; * @param value The bytes for kind to set. * @return This builder for chaining. */ public Builder setKindBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } kind_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference ancestor_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> ancestorBuilder_; /** * optional .storage_onestore_v3.Reference ancestor = 17; * @return Whether the ancestor field is set. */ public boolean hasAncestor() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .storage_onestore_v3.Reference ancestor = 17; * @return The ancestor. */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getAncestor() { if (ancestorBuilder_ == null) { return ancestor_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : ancestor_; } else { return ancestorBuilder_.getMessage(); } } /** * optional .storage_onestore_v3.Reference ancestor = 17; */ public Builder setAncestor(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (ancestorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ancestor_ = value; } else { ancestorBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional .storage_onestore_v3.Reference ancestor = 17; */ public Builder setAncestor( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (ancestorBuilder_ == null) { ancestor_ = builderForValue.build(); } else { ancestorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional .storage_onestore_v3.Reference ancestor = 17; */ public Builder mergeAncestor(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (ancestorBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && ancestor_ != null && ancestor_ != com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()) { getAncestorBuilder().mergeFrom(value); } else { ancestor_ = value; } } else { ancestorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional .storage_onestore_v3.Reference ancestor = 17; */ public Builder clearAncestor() { bitField0_ = (bitField0_ & ~0x00000010); ancestor_ = null; if (ancestorBuilder_ != null) { ancestorBuilder_.dispose(); ancestorBuilder_ = null; } onChanged(); return this; } /** * optional .storage_onestore_v3.Reference ancestor = 17; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder getAncestorBuilder() { bitField0_ |= 0x00000010; onChanged(); return getAncestorFieldBuilder().getBuilder(); } /** * optional .storage_onestore_v3.Reference ancestor = 17; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getAncestorOrBuilder() { if (ancestorBuilder_ != null) { return ancestorBuilder_.getMessageOrBuilder(); } else { return ancestor_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : ancestor_; } } /** * optional .storage_onestore_v3.Reference ancestor = 17; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> getAncestorFieldBuilder() { if (ancestorBuilder_ == null) { ancestorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>( getAncestor(), getParentForChildren(), isClean()); ancestor_ = null; } return ancestorBuilder_; } private boolean shallow_ ; /** *
       * If true, the query will only return entities that are direct descendants
       * of the given ancestor, or root entities if not ancestor is set.
       * 
* * optional bool shallow = 43; * @return Whether the shallow field is set. */ @java.lang.Override public boolean hasShallow() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * If true, the query will only return entities that are direct descendants
       * of the given ancestor, or root entities if not ancestor is set.
       * 
* * optional bool shallow = 43; * @return The shallow. */ @java.lang.Override public boolean getShallow() { return shallow_; } /** *
       * If true, the query will only return entities that are direct descendants
       * of the given ancestor, or root entities if not ancestor is set.
       * 
* * optional bool shallow = 43; * @param value The shallow to set. * @return This builder for chaining. */ public Builder setShallow(boolean value) { shallow_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * If true, the query will only return entities that are direct descendants
       * of the given ancestor, or root entities if not ancestor is set.
       * 
* * optional bool shallow = 43; * @return This builder for chaining. */ public Builder clearShallow() { bitField0_ = (bitField0_ & ~0x00000020); shallow_ = false; onChanged(); return this; } private java.util.List filter_ = java.util.Collections.emptyList(); private void ensureFilterIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { filter_ = new java.util.ArrayList(filter_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.FilterOrBuilder> filterBuilder_; /** * repeated group Filter = 4 { ... } */ public java.util.List getFilterList() { if (filterBuilder_ == null) { return java.util.Collections.unmodifiableList(filter_); } else { return filterBuilder_.getMessageList(); } } /** * repeated group Filter = 4 { ... } */ public int getFilterCount() { if (filterBuilder_ == null) { return filter_.size(); } else { return filterBuilder_.getCount(); } } /** * repeated group Filter = 4 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter getFilter(int index) { if (filterBuilder_ == null) { return filter_.get(index); } else { return filterBuilder_.getMessage(index); } } /** * repeated group Filter = 4 { ... } */ public Builder setFilter( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter value) { if (filterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilterIsMutable(); filter_.set(index, value); onChanged(); } else { filterBuilder_.setMessage(index, value); } return this; } /** * repeated group Filter = 4 { ... } */ public Builder setFilter( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder builderForValue) { if (filterBuilder_ == null) { ensureFilterIsMutable(); filter_.set(index, builderForValue.build()); onChanged(); } else { filterBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated group Filter = 4 { ... } */ public Builder addFilter(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter value) { if (filterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilterIsMutable(); filter_.add(value); onChanged(); } else { filterBuilder_.addMessage(value); } return this; } /** * repeated group Filter = 4 { ... } */ public Builder addFilter( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter value) { if (filterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilterIsMutable(); filter_.add(index, value); onChanged(); } else { filterBuilder_.addMessage(index, value); } return this; } /** * repeated group Filter = 4 { ... } */ public Builder addFilter( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder builderForValue) { if (filterBuilder_ == null) { ensureFilterIsMutable(); filter_.add(builderForValue.build()); onChanged(); } else { filterBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated group Filter = 4 { ... } */ public Builder addFilter( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder builderForValue) { if (filterBuilder_ == null) { ensureFilterIsMutable(); filter_.add(index, builderForValue.build()); onChanged(); } else { filterBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated group Filter = 4 { ... } */ public Builder addAllFilter( java.lang.Iterable values) { if (filterBuilder_ == null) { ensureFilterIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, filter_); onChanged(); } else { filterBuilder_.addAllMessages(values); } return this; } /** * repeated group Filter = 4 { ... } */ public Builder clearFilter() { if (filterBuilder_ == null) { filter_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { filterBuilder_.clear(); } return this; } /** * repeated group Filter = 4 { ... } */ public Builder removeFilter(int index) { if (filterBuilder_ == null) { ensureFilterIsMutable(); filter_.remove(index); onChanged(); } else { filterBuilder_.remove(index); } return this; } /** * repeated group Filter = 4 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder getFilterBuilder( int index) { return getFilterFieldBuilder().getBuilder(index); } /** * repeated group Filter = 4 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.FilterOrBuilder getFilterOrBuilder( int index) { if (filterBuilder_ == null) { return filter_.get(index); } else { return filterBuilder_.getMessageOrBuilder(index); } } /** * repeated group Filter = 4 { ... } */ public java.util.List getFilterOrBuilderList() { if (filterBuilder_ != null) { return filterBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(filter_); } } /** * repeated group Filter = 4 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder addFilterBuilder() { return getFilterFieldBuilder().addBuilder( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.getDefaultInstance()); } /** * repeated group Filter = 4 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder addFilterBuilder( int index) { return getFilterFieldBuilder().addBuilder( index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.getDefaultInstance()); } /** * repeated group Filter = 4 { ... } */ public java.util.List getFilterBuilderList() { return getFilterFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.FilterOrBuilder> getFilterFieldBuilder() { if (filterBuilder_ == null) { filterBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Filter.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.FilterOrBuilder>( filter_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); filter_ = null; } return filterBuilder_; } private java.lang.Object searchQuery_ = ""; /** *
       * TODO: Remove this field.
       * currently not implemented. eventually, when provided, this will be used
       * as a plain-text search query. ideally, it will be combined with any
       * filters, sort orders, and ancestor.
       * 
* * optional string search_query = 8; * @return Whether the searchQuery field is set. */ public boolean hasSearchQuery() { return ((bitField0_ & 0x00000080) != 0); } /** *
       * TODO: Remove this field.
       * currently not implemented. eventually, when provided, this will be used
       * as a plain-text search query. ideally, it will be combined with any
       * filters, sort orders, and ancestor.
       * 
* * optional string search_query = 8; * @return The searchQuery. */ public java.lang.String getSearchQuery() { java.lang.Object ref = searchQuery_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { searchQuery_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * TODO: Remove this field.
       * currently not implemented. eventually, when provided, this will be used
       * as a plain-text search query. ideally, it will be combined with any
       * filters, sort orders, and ancestor.
       * 
* * optional string search_query = 8; * @return The bytes for searchQuery. */ public com.google.protobuf.ByteString getSearchQueryBytes() { java.lang.Object ref = searchQuery_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); searchQuery_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * TODO: Remove this field.
       * currently not implemented. eventually, when provided, this will be used
       * as a plain-text search query. ideally, it will be combined with any
       * filters, sort orders, and ancestor.
       * 
* * optional string search_query = 8; * @param value The searchQuery to set. * @return This builder for chaining. */ public Builder setSearchQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } searchQuery_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * TODO: Remove this field.
       * currently not implemented. eventually, when provided, this will be used
       * as a plain-text search query. ideally, it will be combined with any
       * filters, sort orders, and ancestor.
       * 
* * optional string search_query = 8; * @return This builder for chaining. */ public Builder clearSearchQuery() { searchQuery_ = getDefaultInstance().getSearchQuery(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** *
       * TODO: Remove this field.
       * currently not implemented. eventually, when provided, this will be used
       * as a plain-text search query. ideally, it will be combined with any
       * filters, sort orders, and ancestor.
       * 
* * optional string search_query = 8; * @param value The bytes for searchQuery to set. * @return This builder for chaining. */ public Builder setSearchQueryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } searchQuery_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private java.util.List order_ = java.util.Collections.emptyList(); private void ensureOrderIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { order_ = new java.util.ArrayList(order_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder> orderBuilder_; /** * repeated group Order = 9 { ... } */ public java.util.List getOrderList() { if (orderBuilder_ == null) { return java.util.Collections.unmodifiableList(order_); } else { return orderBuilder_.getMessageList(); } } /** * repeated group Order = 9 { ... } */ public int getOrderCount() { if (orderBuilder_ == null) { return order_.size(); } else { return orderBuilder_.getCount(); } } /** * repeated group Order = 9 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order getOrder(int index) { if (orderBuilder_ == null) { return order_.get(index); } else { return orderBuilder_.getMessage(index); } } /** * repeated group Order = 9 { ... } */ public Builder setOrder( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order value) { if (orderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrderIsMutable(); order_.set(index, value); onChanged(); } else { orderBuilder_.setMessage(index, value); } return this; } /** * repeated group Order = 9 { ... } */ public Builder setOrder( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder builderForValue) { if (orderBuilder_ == null) { ensureOrderIsMutable(); order_.set(index, builderForValue.build()); onChanged(); } else { orderBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated group Order = 9 { ... } */ public Builder addOrder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order value) { if (orderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrderIsMutable(); order_.add(value); onChanged(); } else { orderBuilder_.addMessage(value); } return this; } /** * repeated group Order = 9 { ... } */ public Builder addOrder( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order value) { if (orderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrderIsMutable(); order_.add(index, value); onChanged(); } else { orderBuilder_.addMessage(index, value); } return this; } /** * repeated group Order = 9 { ... } */ public Builder addOrder( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder builderForValue) { if (orderBuilder_ == null) { ensureOrderIsMutable(); order_.add(builderForValue.build()); onChanged(); } else { orderBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated group Order = 9 { ... } */ public Builder addOrder( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder builderForValue) { if (orderBuilder_ == null) { ensureOrderIsMutable(); order_.add(index, builderForValue.build()); onChanged(); } else { orderBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated group Order = 9 { ... } */ public Builder addAllOrder( java.lang.Iterable values) { if (orderBuilder_ == null) { ensureOrderIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, order_); onChanged(); } else { orderBuilder_.addAllMessages(values); } return this; } /** * repeated group Order = 9 { ... } */ public Builder clearOrder() { if (orderBuilder_ == null) { order_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { orderBuilder_.clear(); } return this; } /** * repeated group Order = 9 { ... } */ public Builder removeOrder(int index) { if (orderBuilder_ == null) { ensureOrderIsMutable(); order_.remove(index); onChanged(); } else { orderBuilder_.remove(index); } return this; } /** * repeated group Order = 9 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder getOrderBuilder( int index) { return getOrderFieldBuilder().getBuilder(index); } /** * repeated group Order = 9 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder getOrderOrBuilder( int index) { if (orderBuilder_ == null) { return order_.get(index); } else { return orderBuilder_.getMessageOrBuilder(index); } } /** * repeated group Order = 9 { ... } */ public java.util.List getOrderOrBuilderList() { if (orderBuilder_ != null) { return orderBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(order_); } } /** * repeated group Order = 9 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder addOrderBuilder() { return getOrderFieldBuilder().addBuilder( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.getDefaultInstance()); } /** * repeated group Order = 9 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder addOrderBuilder( int index) { return getOrderFieldBuilder().addBuilder( index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.getDefaultInstance()); } /** * repeated group Order = 9 { ... } */ public java.util.List getOrderBuilderList() { return getOrderFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder> getOrderFieldBuilder() { if (orderBuilder_ == null) { orderBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Order.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.OrderOrBuilder>( order_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); order_ = null; } return orderBuilder_; } private int hint_ = 1; /** * optional .apphosting_datastore_v3.Query.Hint hint = 18; * @return Whether the hint field is set. */ @java.lang.Override public boolean hasHint() { return ((bitField0_ & 0x00000200) != 0); } /** * optional .apphosting_datastore_v3.Query.Hint hint = 18; * @return The hint. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint getHint() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint.forNumber(hint_); return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint.ORDER_FIRST : result; } /** * optional .apphosting_datastore_v3.Query.Hint hint = 18; * @param value The hint to set. * @return This builder for chaining. */ public Builder setHint(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query.Hint value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; hint_ = value.getNumber(); onChanged(); return this; } /** * optional .apphosting_datastore_v3.Query.Hint hint = 18; * @return This builder for chaining. */ public Builder clearHint() { bitField0_ = (bitField0_ & ~0x00000200); hint_ = 1; onChanged(); return this; } private int count_ ; /** *
       * An optional number of entities to try to prefetch and return in the
       * RunQuery response. If not specified the underlying datastore implementation
       * will pick.
       * 
* * optional int32 count = 23; * @return Whether the count field is set. */ @java.lang.Override public boolean hasCount() { return ((bitField0_ & 0x00000400) != 0); } /** *
       * An optional number of entities to try to prefetch and return in the
       * RunQuery response. If not specified the underlying datastore implementation
       * will pick.
       * 
* * optional int32 count = 23; * @return The count. */ @java.lang.Override public int getCount() { return count_; } /** *
       * An optional number of entities to try to prefetch and return in the
       * RunQuery response. If not specified the underlying datastore implementation
       * will pick.
       * 
* * optional int32 count = 23; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(int value) { count_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
       * An optional number of entities to try to prefetch and return in the
       * RunQuery response. If not specified the underlying datastore implementation
       * will pick.
       * 
* * optional int32 count = 23; * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000400); count_ = 0; onChanged(); return this; } private int offset_ ; /** *
       * start returning results at this offset. useful for paging.
       * 
* * optional int32 offset = 12 [default = 0]; * @return Whether the offset field is set. */ @java.lang.Override public boolean hasOffset() { return ((bitField0_ & 0x00000800) != 0); } /** *
       * start returning results at this offset. useful for paging.
       * 
* * optional int32 offset = 12 [default = 0]; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } /** *
       * start returning results at this offset. useful for paging.
       * 
* * optional int32 offset = 12 [default = 0]; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(int value) { offset_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
       * start returning results at this offset. useful for paging.
       * 
* * optional int32 offset = 12 [default = 0]; * @return This builder for chaining. */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000800); offset_ = 0; onChanged(); return this; } private int limit_ ; /** *
       * an optional upper bound on the number of results returned for this query.
       * "count" queries are requested by setting limit to 0 and the offset to the
       * maximum number of records the user wants to count (possibly infinite).
       * 
* * optional int32 limit = 16; * @return Whether the limit field is set. */ @java.lang.Override public boolean hasLimit() { return ((bitField0_ & 0x00001000) != 0); } /** *
       * an optional upper bound on the number of results returned for this query.
       * "count" queries are requested by setting limit to 0 and the offset to the
       * maximum number of records the user wants to count (possibly infinite).
       * 
* * optional int32 limit = 16; * @return The limit. */ @java.lang.Override public int getLimit() { return limit_; } /** *
       * an optional upper bound on the number of results returned for this query.
       * "count" queries are requested by setting limit to 0 and the offset to the
       * maximum number of records the user wants to count (possibly infinite).
       * 
* * optional int32 limit = 16; * @param value The limit to set. * @return This builder for chaining. */ public Builder setLimit(int value) { limit_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
       * an optional upper bound on the number of results returned for this query.
       * "count" queries are requested by setting limit to 0 and the offset to the
       * maximum number of records the user wants to count (possibly infinite).
       * 
* * optional int32 limit = 16; * @return This builder for chaining. */ public Builder clearLimit() { bitField0_ = (bitField0_ & ~0x00001000); limit_ = 0; onChanged(); return this; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor compiledCursor_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder> compiledCursorBuilder_; /** *
       * the position at which to start the query
       * TODO: choose better name when switching to plannable cursors.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30; * @return Whether the compiledCursor field is set. */ public boolean hasCompiledCursor() { return ((bitField0_ & 0x00002000) != 0); } /** *
       * the position at which to start the query
       * TODO: choose better name when switching to plannable cursors.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30; * @return The compiledCursor. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getCompiledCursor() { if (compiledCursorBuilder_ == null) { return compiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : compiledCursor_; } else { return compiledCursorBuilder_.getMessage(); } } /** *
       * the position at which to start the query
       * TODO: choose better name when switching to plannable cursors.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30; */ public Builder setCompiledCursor(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor value) { if (compiledCursorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } compiledCursor_ = value; } else { compiledCursorBuilder_.setMessage(value); } bitField0_ |= 0x00002000; onChanged(); return this; } /** *
       * the position at which to start the query
       * TODO: choose better name when switching to plannable cursors.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30; */ public Builder setCompiledCursor( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder builderForValue) { if (compiledCursorBuilder_ == null) { compiledCursor_ = builderForValue.build(); } else { compiledCursorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; onChanged(); return this; } /** *
       * the position at which to start the query
       * TODO: choose better name when switching to plannable cursors.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30; */ public Builder mergeCompiledCursor(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor value) { if (compiledCursorBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0) && compiledCursor_ != null && compiledCursor_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance()) { getCompiledCursorBuilder().mergeFrom(value); } else { compiledCursor_ = value; } } else { compiledCursorBuilder_.mergeFrom(value); } bitField0_ |= 0x00002000; onChanged(); return this; } /** *
       * the position at which to start the query
       * TODO: choose better name when switching to plannable cursors.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30; */ public Builder clearCompiledCursor() { bitField0_ = (bitField0_ & ~0x00002000); compiledCursor_ = null; if (compiledCursorBuilder_ != null) { compiledCursorBuilder_.dispose(); compiledCursorBuilder_ = null; } onChanged(); return this; } /** *
       * the position at which to start the query
       * TODO: choose better name when switching to plannable cursors.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder getCompiledCursorBuilder() { bitField0_ |= 0x00002000; onChanged(); return getCompiledCursorFieldBuilder().getBuilder(); } /** *
       * the position at which to start the query
       * TODO: choose better name when switching to plannable cursors.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getCompiledCursorOrBuilder() { if (compiledCursorBuilder_ != null) { return compiledCursorBuilder_.getMessageOrBuilder(); } else { return compiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : compiledCursor_; } } /** *
       * the position at which to start the query
       * TODO: choose better name when switching to plannable cursors.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 30; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder> getCompiledCursorFieldBuilder() { if (compiledCursorBuilder_ == null) { compiledCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder>( getCompiledCursor(), getParentForChildren(), isClean()); compiledCursor_ = null; } return compiledCursorBuilder_; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor endCompiledCursor_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder> endCompiledCursorBuilder_; /** *
       * the position at which to end the query
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31; * @return Whether the endCompiledCursor field is set. */ public boolean hasEndCompiledCursor() { return ((bitField0_ & 0x00004000) != 0); } /** *
       * the position at which to end the query
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31; * @return The endCompiledCursor. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getEndCompiledCursor() { if (endCompiledCursorBuilder_ == null) { return endCompiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : endCompiledCursor_; } else { return endCompiledCursorBuilder_.getMessage(); } } /** *
       * the position at which to end the query
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31; */ public Builder setEndCompiledCursor(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor value) { if (endCompiledCursorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } endCompiledCursor_ = value; } else { endCompiledCursorBuilder_.setMessage(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
       * the position at which to end the query
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31; */ public Builder setEndCompiledCursor( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder builderForValue) { if (endCompiledCursorBuilder_ == null) { endCompiledCursor_ = builderForValue.build(); } else { endCompiledCursorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
       * the position at which to end the query
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31; */ public Builder mergeEndCompiledCursor(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor value) { if (endCompiledCursorBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0) && endCompiledCursor_ != null && endCompiledCursor_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance()) { getEndCompiledCursorBuilder().mergeFrom(value); } else { endCompiledCursor_ = value; } } else { endCompiledCursorBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
       * the position at which to end the query
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31; */ public Builder clearEndCompiledCursor() { bitField0_ = (bitField0_ & ~0x00004000); endCompiledCursor_ = null; if (endCompiledCursorBuilder_ != null) { endCompiledCursorBuilder_.dispose(); endCompiledCursorBuilder_ = null; } onChanged(); return this; } /** *
       * the position at which to end the query
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder getEndCompiledCursorBuilder() { bitField0_ |= 0x00004000; onChanged(); return getEndCompiledCursorFieldBuilder().getBuilder(); } /** *
       * the position at which to end the query
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getEndCompiledCursorOrBuilder() { if (endCompiledCursorBuilder_ != null) { return endCompiledCursorBuilder_.getMessageOrBuilder(); } else { return endCompiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : endCompiledCursor_; } } /** *
       * the position at which to end the query
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor end_compiled_cursor = 31; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder> getEndCompiledCursorFieldBuilder() { if (endCompiledCursorBuilder_ == null) { endCompiledCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder>( getEndCompiledCursor(), getParentForChildren(), isClean()); endCompiledCursor_ = null; } return endCompiledCursorBuilder_; } private java.util.List compositeIndex_ = java.util.Collections.emptyList(); private void ensureCompositeIndexIsMutable() { if (!((bitField0_ & 0x00008000) != 0)) { compositeIndex_ = new java.util.ArrayList(compositeIndex_); bitField0_ |= 0x00008000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder> compositeIndexBuilder_; /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public java.util.List getCompositeIndexList() { if (compositeIndexBuilder_ == null) { return java.util.Collections.unmodifiableList(compositeIndex_); } else { return compositeIndexBuilder_.getMessageList(); } } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public int getCompositeIndexCount() { if (compositeIndexBuilder_ == null) { return compositeIndex_.size(); } else { return compositeIndexBuilder_.getCount(); } } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index) { if (compositeIndexBuilder_ == null) { return compositeIndex_.get(index); } else { return compositeIndexBuilder_.getMessage(index); } } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public Builder setCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (compositeIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompositeIndexIsMutable(); compositeIndex_.set(index, value); onChanged(); } else { compositeIndexBuilder_.setMessage(index, value); } return this; } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public Builder setCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.set(index, builderForValue.build()); onChanged(); } else { compositeIndexBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public Builder addCompositeIndex(com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (compositeIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompositeIndexIsMutable(); compositeIndex_.add(value); onChanged(); } else { compositeIndexBuilder_.addMessage(value); } return this; } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public Builder addCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (compositeIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompositeIndexIsMutable(); compositeIndex_.add(index, value); onChanged(); } else { compositeIndexBuilder_.addMessage(index, value); } return this; } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public Builder addCompositeIndex( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.add(builderForValue.build()); onChanged(); } else { compositeIndexBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public Builder addCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.add(index, builderForValue.build()); onChanged(); } else { compositeIndexBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public Builder addAllCompositeIndex( java.lang.Iterable values) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, compositeIndex_); onChanged(); } else { compositeIndexBuilder_.addAllMessages(values); } return this; } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public Builder clearCompositeIndex() { if (compositeIndexBuilder_ == null) { compositeIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { compositeIndexBuilder_.clear(); } return this; } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public Builder removeCompositeIndex(int index) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.remove(index); onChanged(); } else { compositeIndexBuilder_.remove(index); } return this; } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder getCompositeIndexBuilder( int index) { return getCompositeIndexFieldBuilder().getBuilder(index); } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder( int index) { if (compositeIndexBuilder_ == null) { return compositeIndex_.get(index); } else { return compositeIndexBuilder_.getMessageOrBuilder(index); } } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public java.util.List getCompositeIndexOrBuilderList() { if (compositeIndexBuilder_ != null) { return compositeIndexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(compositeIndex_); } } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder addCompositeIndexBuilder() { return getCompositeIndexFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.getDefaultInstance()); } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder addCompositeIndexBuilder( int index) { return getCompositeIndexFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.getDefaultInstance()); } /** *
       * the composite indexes, if any, that are available to the query planner
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 19; */ public java.util.List getCompositeIndexBuilderList() { return getCompositeIndexFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder> getCompositeIndexFieldBuilder() { if (compositeIndexBuilder_ == null) { compositeIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder>( compositeIndex_, ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); compositeIndex_ = null; } return compositeIndexBuilder_; } private boolean requirePerfectPlan_ ; /** *
       * if true, the datastore will only run this query if there's an index or
       * set of indices that perfectly match it. if not, it will return an error.
       * 
* * optional bool require_perfect_plan = 20 [default = false]; * @return Whether the requirePerfectPlan field is set. */ @java.lang.Override public boolean hasRequirePerfectPlan() { return ((bitField0_ & 0x00010000) != 0); } /** *
       * if true, the datastore will only run this query if there's an index or
       * set of indices that perfectly match it. if not, it will return an error.
       * 
* * optional bool require_perfect_plan = 20 [default = false]; * @return The requirePerfectPlan. */ @java.lang.Override public boolean getRequirePerfectPlan() { return requirePerfectPlan_; } /** *
       * if true, the datastore will only run this query if there's an index or
       * set of indices that perfectly match it. if not, it will return an error.
       * 
* * optional bool require_perfect_plan = 20 [default = false]; * @param value The requirePerfectPlan to set. * @return This builder for chaining. */ public Builder setRequirePerfectPlan(boolean value) { requirePerfectPlan_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** *
       * if true, the datastore will only run this query if there's an index or
       * set of indices that perfectly match it. if not, it will return an error.
       * 
* * optional bool require_perfect_plan = 20 [default = false]; * @return This builder for chaining. */ public Builder clearRequirePerfectPlan() { bitField0_ = (bitField0_ & ~0x00010000); requirePerfectPlan_ = false; onChanged(); return this; } private boolean keysOnly_ ; /** *
       * if true, only return the keys of matching entities and not the whole
       * entity. this makes the query somewhat faster and a lot less expensive, in
       * terms of disk seeks, since it doesn't have to fetch each result entity.
       * note that this property indicates the _user's_ request to execute a
       * keys-only query.  The backend may also elect to perform a keys-only query
       * in order to answer a count() request, which is denoted by a limit of size
       * 0 (see above comment on limit).
       * if this is true, require_perfect_plan must also be set to true.
       * 
* * optional bool keys_only = 21 [default = false]; * @return Whether the keysOnly field is set. */ @java.lang.Override public boolean hasKeysOnly() { return ((bitField0_ & 0x00020000) != 0); } /** *
       * if true, only return the keys of matching entities and not the whole
       * entity. this makes the query somewhat faster and a lot less expensive, in
       * terms of disk seeks, since it doesn't have to fetch each result entity.
       * note that this property indicates the _user's_ request to execute a
       * keys-only query.  The backend may also elect to perform a keys-only query
       * in order to answer a count() request, which is denoted by a limit of size
       * 0 (see above comment on limit).
       * if this is true, require_perfect_plan must also be set to true.
       * 
* * optional bool keys_only = 21 [default = false]; * @return The keysOnly. */ @java.lang.Override public boolean getKeysOnly() { return keysOnly_; } /** *
       * if true, only return the keys of matching entities and not the whole
       * entity. this makes the query somewhat faster and a lot less expensive, in
       * terms of disk seeks, since it doesn't have to fetch each result entity.
       * note that this property indicates the _user's_ request to execute a
       * keys-only query.  The backend may also elect to perform a keys-only query
       * in order to answer a count() request, which is denoted by a limit of size
       * 0 (see above comment on limit).
       * if this is true, require_perfect_plan must also be set to true.
       * 
* * optional bool keys_only = 21 [default = false]; * @param value The keysOnly to set. * @return This builder for chaining. */ public Builder setKeysOnly(boolean value) { keysOnly_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } /** *
       * if true, only return the keys of matching entities and not the whole
       * entity. this makes the query somewhat faster and a lot less expensive, in
       * terms of disk seeks, since it doesn't have to fetch each result entity.
       * note that this property indicates the _user's_ request to execute a
       * keys-only query.  The backend may also elect to perform a keys-only query
       * in order to answer a count() request, which is denoted by a limit of size
       * 0 (see above comment on limit).
       * if this is true, require_perfect_plan must also be set to true.
       * 
* * optional bool keys_only = 21 [default = false]; * @return This builder for chaining. */ public Builder clearKeysOnly() { bitField0_ = (bitField0_ & ~0x00020000); keysOnly_ = false; onChanged(); return this; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction transaction_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder> transactionBuilder_; /** *
       * if specified, the query must be an ancestor query, and the ancestor must
       * be in the same entity group as the other operations in the transaction.
       * 
* * optional .apphosting_datastore_v3.Transaction transaction = 22; * @return Whether the transaction field is set. */ public boolean hasTransaction() { return ((bitField0_ & 0x00040000) != 0); } /** *
       * if specified, the query must be an ancestor query, and the ancestor must
       * be in the same entity group as the other operations in the transaction.
       * 
* * optional .apphosting_datastore_v3.Transaction transaction = 22; * @return The transaction. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** *
       * if specified, the query must be an ancestor query, and the ancestor must
       * be in the same entity group as the other operations in the transaction.
       * 
* * optional .apphosting_datastore_v3.Transaction transaction = 22; */ public Builder setTransaction(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; } else { transactionBuilder_.setMessage(value); } bitField0_ |= 0x00040000; onChanged(); return this; } /** *
       * if specified, the query must be an ancestor query, and the ancestor must
       * be in the same entity group as the other operations in the transaction.
       * 
* * optional .apphosting_datastore_v3.Transaction transaction = 22; */ public Builder setTransaction( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); } else { transactionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00040000; onChanged(); return this; } /** *
       * if specified, the query must be an ancestor query, and the ancestor must
       * be in the same entity group as the other operations in the transaction.
       * 
* * optional .apphosting_datastore_v3.Transaction transaction = 22; */ public Builder mergeTransaction(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction value) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00040000) != 0) && transaction_ != null && transaction_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance()) { getTransactionBuilder().mergeFrom(value); } else { transaction_ = value; } } else { transactionBuilder_.mergeFrom(value); } bitField0_ |= 0x00040000; onChanged(); return this; } /** *
       * if specified, the query must be an ancestor query, and the ancestor must
       * be in the same entity group as the other operations in the transaction.
       * 
* * optional .apphosting_datastore_v3.Transaction transaction = 22; */ public Builder clearTransaction() { bitField0_ = (bitField0_ & ~0x00040000); transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } onChanged(); return this; } /** *
       * if specified, the query must be an ancestor query, and the ancestor must
       * be in the same entity group as the other operations in the transaction.
       * 
* * optional .apphosting_datastore_v3.Transaction transaction = 22; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder getTransactionBuilder() { bitField0_ |= 0x00040000; onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** *
       * if specified, the query must be an ancestor query, and the ancestor must
       * be in the same entity group as the other operations in the transaction.
       * 
* * optional .apphosting_datastore_v3.Transaction transaction = 22; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } } /** *
       * if specified, the query must be an ancestor query, and the ancestor must
       * be in the same entity group as the other operations in the transaction.
       * 
* * optional .apphosting_datastore_v3.Transaction transaction = 22; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder>( getTransaction(), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } private boolean compile_ ; /** *
       * TODO: I believe this field is ignored.  Remove it.
       * An optional argument that determines if a compiled query should be
       * returned. If true, a compiled query will be constructed such that
       * it will resume the given query immediately after the last result provided.
       * Additionally this value must be true for a NextRequest with compile == true
       * to be successful.
       * 
* * optional bool compile = 25 [default = false]; * @return Whether the compile field is set. */ @java.lang.Override public boolean hasCompile() { return ((bitField0_ & 0x00080000) != 0); } /** *
       * TODO: I believe this field is ignored.  Remove it.
       * An optional argument that determines if a compiled query should be
       * returned. If true, a compiled query will be constructed such that
       * it will resume the given query immediately after the last result provided.
       * Additionally this value must be true for a NextRequest with compile == true
       * to be successful.
       * 
* * optional bool compile = 25 [default = false]; * @return The compile. */ @java.lang.Override public boolean getCompile() { return compile_; } /** *
       * TODO: I believe this field is ignored.  Remove it.
       * An optional argument that determines if a compiled query should be
       * returned. If true, a compiled query will be constructed such that
       * it will resume the given query immediately after the last result provided.
       * Additionally this value must be true for a NextRequest with compile == true
       * to be successful.
       * 
* * optional bool compile = 25 [default = false]; * @param value The compile to set. * @return This builder for chaining. */ public Builder setCompile(boolean value) { compile_ = value; bitField0_ |= 0x00080000; onChanged(); return this; } /** *
       * TODO: I believe this field is ignored.  Remove it.
       * An optional argument that determines if a compiled query should be
       * returned. If true, a compiled query will be constructed such that
       * it will resume the given query immediately after the last result provided.
       * Additionally this value must be true for a NextRequest with compile == true
       * to be successful.
       * 
* * optional bool compile = 25 [default = false]; * @return This builder for chaining. */ public Builder clearCompile() { bitField0_ = (bitField0_ & ~0x00080000); compile_ = false; onChanged(); return this; } private long failoverMs_ ; /** *
       * How long to wait on the primary replica before attempting to read from a
       * secondary, possibly stale replica. May not be set if a transaction is
       * provided.
       * NOTE: The actual value is overwritten by the datastore, setting
       * only has the effect of enabling failover in M/S.
       * 
* * optional int64 failover_ms = 26; * @return Whether the failoverMs field is set. */ @java.lang.Override public boolean hasFailoverMs() { return ((bitField0_ & 0x00100000) != 0); } /** *
       * How long to wait on the primary replica before attempting to read from a
       * secondary, possibly stale replica. May not be set if a transaction is
       * provided.
       * NOTE: The actual value is overwritten by the datastore, setting
       * only has the effect of enabling failover in M/S.
       * 
* * optional int64 failover_ms = 26; * @return The failoverMs. */ @java.lang.Override public long getFailoverMs() { return failoverMs_; } /** *
       * How long to wait on the primary replica before attempting to read from a
       * secondary, possibly stale replica. May not be set if a transaction is
       * provided.
       * NOTE: The actual value is overwritten by the datastore, setting
       * only has the effect of enabling failover in M/S.
       * 
* * optional int64 failover_ms = 26; * @param value The failoverMs to set. * @return This builder for chaining. */ public Builder setFailoverMs(long value) { failoverMs_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** *
       * How long to wait on the primary replica before attempting to read from a
       * secondary, possibly stale replica. May not be set if a transaction is
       * provided.
       * NOTE: The actual value is overwritten by the datastore, setting
       * only has the effect of enabling failover in M/S.
       * 
* * optional int64 failover_ms = 26; * @return This builder for chaining. */ public Builder clearFailoverMs() { bitField0_ = (bitField0_ & ~0x00100000); failoverMs_ = 0L; onChanged(); return this; } private boolean strong_ ; /** *
       * Should Datastore use READ_CURRENT (strong reads) for this request?
       * If unset the datastore decides based on a flag that defaults to
       * READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
       * choose between low latency/eventual consistency (false) and potentially
       * higher latency/strong consistency (true). This is typically not a concern
       * with 1.0.1 replication as (false) will never return results more than one
       * job behind, but is important for paxos where (false) can return results
       * that are significantly behind.
       * 
* * optional bool strong = 32; * @return Whether the strong field is set. */ @java.lang.Override public boolean hasStrong() { return ((bitField0_ & 0x00200000) != 0); } /** *
       * Should Datastore use READ_CURRENT (strong reads) for this request?
       * If unset the datastore decides based on a flag that defaults to
       * READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
       * choose between low latency/eventual consistency (false) and potentially
       * higher latency/strong consistency (true). This is typically not a concern
       * with 1.0.1 replication as (false) will never return results more than one
       * job behind, but is important for paxos where (false) can return results
       * that are significantly behind.
       * 
* * optional bool strong = 32; * @return The strong. */ @java.lang.Override public boolean getStrong() { return strong_; } /** *
       * Should Datastore use READ_CURRENT (strong reads) for this request?
       * If unset the datastore decides based on a flag that defaults to
       * READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
       * choose between low latency/eventual consistency (false) and potentially
       * higher latency/strong consistency (true). This is typically not a concern
       * with 1.0.1 replication as (false) will never return results more than one
       * job behind, but is important for paxos where (false) can return results
       * that are significantly behind.
       * 
* * optional bool strong = 32; * @param value The strong to set. * @return This builder for chaining. */ public Builder setStrong(boolean value) { strong_ = value; bitField0_ |= 0x00200000; onChanged(); return this; } /** *
       * Should Datastore use READ_CURRENT (strong reads) for this request?
       * If unset the datastore decides based on a flag that defaults to
       * READ_CONSISTENT. Only applies to ancestor queries. This lets the caller
       * choose between low latency/eventual consistency (false) and potentially
       * higher latency/strong consistency (true). This is typically not a concern
       * with 1.0.1 replication as (false) will never return results more than one
       * job behind, but is important for paxos where (false) can return results
       * that are significantly behind.
       * 
* * optional bool strong = 32; * @return This builder for chaining. */ public Builder clearStrong() { bitField0_ = (bitField0_ & ~0x00200000); strong_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringList propertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePropertyNameIsMutable() { if (!((bitField0_ & 0x00400000) != 0)) { propertyName_ = new com.google.protobuf.LazyStringArrayList(propertyName_); bitField0_ |= 0x00400000; } } /** *
       * A list of property names to return. A request with this set is satisfied
       * using an index instead of looking up the full entity. As only the
       * PropertyValue is known in the index, the meaning of any property return
       * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
       * all the properties specified will be returned, i.e. there is an implied
       * existence filter on every property specified.
       * 
* * repeated string property_name = 33; * @return A list containing the propertyName. */ public com.google.protobuf.ProtocolStringList getPropertyNameList() { return propertyName_.getUnmodifiableView(); } /** *
       * A list of property names to return. A request with this set is satisfied
       * using an index instead of looking up the full entity. As only the
       * PropertyValue is known in the index, the meaning of any property return
       * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
       * all the properties specified will be returned, i.e. there is an implied
       * existence filter on every property specified.
       * 
* * repeated string property_name = 33; * @return The count of propertyName. */ public int getPropertyNameCount() { return propertyName_.size(); } /** *
       * A list of property names to return. A request with this set is satisfied
       * using an index instead of looking up the full entity. As only the
       * PropertyValue is known in the index, the meaning of any property return
       * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
       * all the properties specified will be returned, i.e. there is an implied
       * existence filter on every property specified.
       * 
* * repeated string property_name = 33; * @param index The index of the element to return. * @return The propertyName at the given index. */ public java.lang.String getPropertyName(int index) { return propertyName_.get(index); } /** *
       * A list of property names to return. A request with this set is satisfied
       * using an index instead of looking up the full entity. As only the
       * PropertyValue is known in the index, the meaning of any property return
       * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
       * all the properties specified will be returned, i.e. there is an implied
       * existence filter on every property specified.
       * 
* * repeated string property_name = 33; * @param index The index of the value to return. * @return The bytes of the propertyName at the given index. */ public com.google.protobuf.ByteString getPropertyNameBytes(int index) { return propertyName_.getByteString(index); } /** *
       * A list of property names to return. A request with this set is satisfied
       * using an index instead of looking up the full entity. As only the
       * PropertyValue is known in the index, the meaning of any property return
       * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
       * all the properties specified will be returned, i.e. there is an implied
       * existence filter on every property specified.
       * 
* * repeated string property_name = 33; * @param index The index to set the value at. * @param value The propertyName to set. * @return This builder for chaining. */ public Builder setPropertyName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePropertyNameIsMutable(); propertyName_.set(index, value); onChanged(); return this; } /** *
       * A list of property names to return. A request with this set is satisfied
       * using an index instead of looking up the full entity. As only the
       * PropertyValue is known in the index, the meaning of any property return
       * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
       * all the properties specified will be returned, i.e. there is an implied
       * existence filter on every property specified.
       * 
* * repeated string property_name = 33; * @param value The propertyName to add. * @return This builder for chaining. */ public Builder addPropertyName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePropertyNameIsMutable(); propertyName_.add(value); onChanged(); return this; } /** *
       * A list of property names to return. A request with this set is satisfied
       * using an index instead of looking up the full entity. As only the
       * PropertyValue is known in the index, the meaning of any property return
       * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
       * all the properties specified will be returned, i.e. there is an implied
       * existence filter on every property specified.
       * 
* * repeated string property_name = 33; * @param values The propertyName to add. * @return This builder for chaining. */ public Builder addAllPropertyName( java.lang.Iterable values) { ensurePropertyNameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, propertyName_); onChanged(); return this; } /** *
       * A list of property names to return. A request with this set is satisfied
       * using an index instead of looking up the full entity. As only the
       * PropertyValue is known in the index, the meaning of any property return
       * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
       * all the properties specified will be returned, i.e. there is an implied
       * existence filter on every property specified.
       * 
* * repeated string property_name = 33; * @return This builder for chaining. */ public Builder clearPropertyName() { propertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } /** *
       * A list of property names to return. A request with this set is satisfied
       * using an index instead of looking up the full entity. As only the
       * PropertyValue is known in the index, the meaning of any property return
       * is set to Property.Meaning.INDEX_VALUE. Additionally, only entities with
       * all the properties specified will be returned, i.e. there is an implied
       * existence filter on every property specified.
       * 
* * repeated string property_name = 33; * @param value The bytes of the propertyName to add. * @return This builder for chaining. */ public Builder addPropertyNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePropertyNameIsMutable(); propertyName_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList groupByPropertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureGroupByPropertyNameIsMutable() { if (!((bitField0_ & 0x00800000) != 0)) { groupByPropertyName_ = new com.google.protobuf.LazyStringArrayList(groupByPropertyName_); bitField0_ |= 0x00800000; } } /** *
       * Properties that should be included in the GROUP BY clause.
       * 
* * repeated string group_by_property_name = 34; * @return A list containing the groupByPropertyName. */ public com.google.protobuf.ProtocolStringList getGroupByPropertyNameList() { return groupByPropertyName_.getUnmodifiableView(); } /** *
       * Properties that should be included in the GROUP BY clause.
       * 
* * repeated string group_by_property_name = 34; * @return The count of groupByPropertyName. */ public int getGroupByPropertyNameCount() { return groupByPropertyName_.size(); } /** *
       * Properties that should be included in the GROUP BY clause.
       * 
* * repeated string group_by_property_name = 34; * @param index The index of the element to return. * @return The groupByPropertyName at the given index. */ public java.lang.String getGroupByPropertyName(int index) { return groupByPropertyName_.get(index); } /** *
       * Properties that should be included in the GROUP BY clause.
       * 
* * repeated string group_by_property_name = 34; * @param index The index of the value to return. * @return The bytes of the groupByPropertyName at the given index. */ public com.google.protobuf.ByteString getGroupByPropertyNameBytes(int index) { return groupByPropertyName_.getByteString(index); } /** *
       * Properties that should be included in the GROUP BY clause.
       * 
* * repeated string group_by_property_name = 34; * @param index The index to set the value at. * @param value The groupByPropertyName to set. * @return This builder for chaining. */ public Builder setGroupByPropertyName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureGroupByPropertyNameIsMutable(); groupByPropertyName_.set(index, value); onChanged(); return this; } /** *
       * Properties that should be included in the GROUP BY clause.
       * 
* * repeated string group_by_property_name = 34; * @param value The groupByPropertyName to add. * @return This builder for chaining. */ public Builder addGroupByPropertyName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureGroupByPropertyNameIsMutable(); groupByPropertyName_.add(value); onChanged(); return this; } /** *
       * Properties that should be included in the GROUP BY clause.
       * 
* * repeated string group_by_property_name = 34; * @param values The groupByPropertyName to add. * @return This builder for chaining. */ public Builder addAllGroupByPropertyName( java.lang.Iterable values) { ensureGroupByPropertyNameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, groupByPropertyName_); onChanged(); return this; } /** *
       * Properties that should be included in the GROUP BY clause.
       * 
* * repeated string group_by_property_name = 34; * @return This builder for chaining. */ public Builder clearGroupByPropertyName() { groupByPropertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } /** *
       * Properties that should be included in the GROUP BY clause.
       * 
* * repeated string group_by_property_name = 34; * @param value The bytes of the groupByPropertyName to add. * @return This builder for chaining. */ public Builder addGroupByPropertyNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureGroupByPropertyNameIsMutable(); groupByPropertyName_.add(value); onChanged(); return this; } private boolean distinct_ ; /** *
       * For a normal query, this applies to keys and defaults to true, for a query
       * with property_names, this applies to the set of properties returned and
       * defaults to false
       * 
* * optional bool distinct = 24; * @return Whether the distinct field is set. */ @java.lang.Override public boolean hasDistinct() { return ((bitField0_ & 0x01000000) != 0); } /** *
       * For a normal query, this applies to keys and defaults to true, for a query
       * with property_names, this applies to the set of properties returned and
       * defaults to false
       * 
* * optional bool distinct = 24; * @return The distinct. */ @java.lang.Override public boolean getDistinct() { return distinct_; } /** *
       * For a normal query, this applies to keys and defaults to true, for a query
       * with property_names, this applies to the set of properties returned and
       * defaults to false
       * 
* * optional bool distinct = 24; * @param value The distinct to set. * @return This builder for chaining. */ public Builder setDistinct(boolean value) { distinct_ = value; bitField0_ |= 0x01000000; onChanged(); return this; } /** *
       * For a normal query, this applies to keys and defaults to true, for a query
       * with property_names, this applies to the set of properties returned and
       * defaults to false
       * 
* * optional bool distinct = 24; * @return This builder for chaining. */ public Builder clearDistinct() { bitField0_ = (bitField0_ & ~0x01000000); distinct_ = false; onChanged(); return this; } private long minSafeTimeSeconds_ ; /** *
       * If set, a minimum safe time required of the application's key range
       * in any Megastore table EntityGroups data replica read by the query.
       * 
* * optional int64 min_safe_time_seconds = 35; * @return Whether the minSafeTimeSeconds field is set. */ @java.lang.Override public boolean hasMinSafeTimeSeconds() { return ((bitField0_ & 0x02000000) != 0); } /** *
       * If set, a minimum safe time required of the application's key range
       * in any Megastore table EntityGroups data replica read by the query.
       * 
* * optional int64 min_safe_time_seconds = 35; * @return The minSafeTimeSeconds. */ @java.lang.Override public long getMinSafeTimeSeconds() { return minSafeTimeSeconds_; } /** *
       * If set, a minimum safe time required of the application's key range
       * in any Megastore table EntityGroups data replica read by the query.
       * 
* * optional int64 min_safe_time_seconds = 35; * @param value The minSafeTimeSeconds to set. * @return This builder for chaining. */ public Builder setMinSafeTimeSeconds(long value) { minSafeTimeSeconds_ = value; bitField0_ |= 0x02000000; onChanged(); return this; } /** *
       * If set, a minimum safe time required of the application's key range
       * in any Megastore table EntityGroups data replica read by the query.
       * 
* * optional int64 min_safe_time_seconds = 35; * @return This builder for chaining. */ public Builder clearMinSafeTimeSeconds() { bitField0_ = (bitField0_ & ~0x02000000); minSafeTimeSeconds_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringList safeReplicaName_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSafeReplicaNameIsMutable() { if (!((bitField0_ & 0x04000000) != 0)) { safeReplicaName_ = new com.google.protobuf.LazyStringArrayList(safeReplicaName_); bitField0_ |= 0x04000000; } } /** *
       * When min_safe_time_seconds is set, the app server injects the names
       * of the data replicas of our entity Megastore table for which the
       * application's key range's safe time is >= min_safe_time_seconds.
       * 
* * repeated string safe_replica_name = 36; * @return A list containing the safeReplicaName. */ public com.google.protobuf.ProtocolStringList getSafeReplicaNameList() { return safeReplicaName_.getUnmodifiableView(); } /** *
       * When min_safe_time_seconds is set, the app server injects the names
       * of the data replicas of our entity Megastore table for which the
       * application's key range's safe time is >= min_safe_time_seconds.
       * 
* * repeated string safe_replica_name = 36; * @return The count of safeReplicaName. */ public int getSafeReplicaNameCount() { return safeReplicaName_.size(); } /** *
       * When min_safe_time_seconds is set, the app server injects the names
       * of the data replicas of our entity Megastore table for which the
       * application's key range's safe time is >= min_safe_time_seconds.
       * 
* * repeated string safe_replica_name = 36; * @param index The index of the element to return. * @return The safeReplicaName at the given index. */ public java.lang.String getSafeReplicaName(int index) { return safeReplicaName_.get(index); } /** *
       * When min_safe_time_seconds is set, the app server injects the names
       * of the data replicas of our entity Megastore table for which the
       * application's key range's safe time is >= min_safe_time_seconds.
       * 
* * repeated string safe_replica_name = 36; * @param index The index of the value to return. * @return The bytes of the safeReplicaName at the given index. */ public com.google.protobuf.ByteString getSafeReplicaNameBytes(int index) { return safeReplicaName_.getByteString(index); } /** *
       * When min_safe_time_seconds is set, the app server injects the names
       * of the data replicas of our entity Megastore table for which the
       * application's key range's safe time is >= min_safe_time_seconds.
       * 
* * repeated string safe_replica_name = 36; * @param index The index to set the value at. * @param value The safeReplicaName to set. * @return This builder for chaining. */ public Builder setSafeReplicaName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSafeReplicaNameIsMutable(); safeReplicaName_.set(index, value); onChanged(); return this; } /** *
       * When min_safe_time_seconds is set, the app server injects the names
       * of the data replicas of our entity Megastore table for which the
       * application's key range's safe time is >= min_safe_time_seconds.
       * 
* * repeated string safe_replica_name = 36; * @param value The safeReplicaName to add. * @return This builder for chaining. */ public Builder addSafeReplicaName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSafeReplicaNameIsMutable(); safeReplicaName_.add(value); onChanged(); return this; } /** *
       * When min_safe_time_seconds is set, the app server injects the names
       * of the data replicas of our entity Megastore table for which the
       * application's key range's safe time is >= min_safe_time_seconds.
       * 
* * repeated string safe_replica_name = 36; * @param values The safeReplicaName to add. * @return This builder for chaining. */ public Builder addAllSafeReplicaName( java.lang.Iterable values) { ensureSafeReplicaNameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, safeReplicaName_); onChanged(); return this; } /** *
       * When min_safe_time_seconds is set, the app server injects the names
       * of the data replicas of our entity Megastore table for which the
       * application's key range's safe time is >= min_safe_time_seconds.
       * 
* * repeated string safe_replica_name = 36; * @return This builder for chaining. */ public Builder clearSafeReplicaName() { safeReplicaName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x04000000); onChanged(); return this; } /** *
       * When min_safe_time_seconds is set, the app server injects the names
       * of the data replicas of our entity Megastore table for which the
       * application's key range's safe time is >= min_safe_time_seconds.
       * 
* * repeated string safe_replica_name = 36; * @param value The bytes of the safeReplicaName to add. * @return This builder for chaining. */ public Builder addSafeReplicaNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSafeReplicaNameIsMutable(); safeReplicaName_.add(value); onChanged(); return this; } private boolean persistOffset_ = true; /** *
       * If true, then the original offset is persisted for subsequent Next RPCs
       * and a BAD_REQUEST is raised if the NextRequest specifies an offset
       * that does not match the one from the original request.
       * NOTE: This is the only behavior supported by datastore_v4.
       * DEPRECATED: This is now always assumed to be true. Setting it has no
       * effect.
       * 
* * optional bool persist_offset = 37 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.Query.persist_offset is deprecated. * See datastore_v3.proto;l=312 * @return Whether the persistOffset field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasPersistOffset() { return ((bitField0_ & 0x08000000) != 0); } /** *
       * If true, then the original offset is persisted for subsequent Next RPCs
       * and a BAD_REQUEST is raised if the NextRequest specifies an offset
       * that does not match the one from the original request.
       * NOTE: This is the only behavior supported by datastore_v4.
       * DEPRECATED: This is now always assumed to be true. Setting it has no
       * effect.
       * 
* * optional bool persist_offset = 37 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.Query.persist_offset is deprecated. * See datastore_v3.proto;l=312 * @return The persistOffset. */ @java.lang.Override @java.lang.Deprecated public boolean getPersistOffset() { return persistOffset_; } /** *
       * If true, then the original offset is persisted for subsequent Next RPCs
       * and a BAD_REQUEST is raised if the NextRequest specifies an offset
       * that does not match the one from the original request.
       * NOTE: This is the only behavior supported by datastore_v4.
       * DEPRECATED: This is now always assumed to be true. Setting it has no
       * effect.
       * 
* * optional bool persist_offset = 37 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.Query.persist_offset is deprecated. * See datastore_v3.proto;l=312 * @param value The persistOffset to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setPersistOffset(boolean value) { persistOffset_ = value; bitField0_ |= 0x08000000; onChanged(); return this; } /** *
       * If true, then the original offset is persisted for subsequent Next RPCs
       * and a BAD_REQUEST is raised if the NextRequest specifies an offset
       * that does not match the one from the original request.
       * NOTE: This is the only behavior supported by datastore_v4.
       * DEPRECATED: This is now always assumed to be true. Setting it has no
       * effect.
       * 
* * optional bool persist_offset = 37 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.Query.persist_offset is deprecated. * See datastore_v3.proto;l=312 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearPersistOffset() { bitField0_ = (bitField0_ & ~0x08000000); persistOffset_ = true; onChanged(); return this; } private long readTimeUs_ ; /** *
       * Only for Spanner-backed apps: Reads entities as they were at the given
       * time, represented as microseconds of UTC time since Unix epoch
       * 1970-01-01T00:00:00Z.
       * 
* * optional int64 read_time_us = 44; * @return Whether the readTimeUs field is set. */ @java.lang.Override public boolean hasReadTimeUs() { return ((bitField0_ & 0x10000000) != 0); } /** *
       * Only for Spanner-backed apps: Reads entities as they were at the given
       * time, represented as microseconds of UTC time since Unix epoch
       * 1970-01-01T00:00:00Z.
       * 
* * optional int64 read_time_us = 44; * @return The readTimeUs. */ @java.lang.Override public long getReadTimeUs() { return readTimeUs_; } /** *
       * Only for Spanner-backed apps: Reads entities as they were at the given
       * time, represented as microseconds of UTC time since Unix epoch
       * 1970-01-01T00:00:00Z.
       * 
* * optional int64 read_time_us = 44; * @param value The readTimeUs to set. * @return This builder for chaining. */ public Builder setReadTimeUs(long value) { readTimeUs_ = value; bitField0_ |= 0x10000000; onChanged(); return this; } /** *
       * Only for Spanner-backed apps: Reads entities as they were at the given
       * time, represented as microseconds of UTC time since Unix epoch
       * 1970-01-01T00:00:00Z.
       * 
* * optional int64 read_time_us = 44; * @return This builder for chaining. */ public Builder clearReadTimeUs() { bitField0_ = (bitField0_ & ~0x10000000); readTimeUs_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.Query) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.Query) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Query parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Query getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegionPointOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.RegionPoint) com.google.protobuf.MessageOrBuilder { /** * required double latitude = 1; * @return Whether the latitude field is set. */ boolean hasLatitude(); /** * required double latitude = 1; * @return The latitude. */ double getLatitude(); /** * required double longitude = 2; * @return Whether the longitude field is set. */ boolean hasLongitude(); /** * required double longitude = 2; * @return The longitude. */ double getLongitude(); } /** *
   * There is no real difference between a RegionPoint and the
   * PointValue within storage_onestore_v3.PropertyValue.  But because
   * of compatibility concerns we cannot get rid of PointValue, yet
   * unfortunately we cannot reuse it for the bounding regions (because
   * this type of reuse is not supported for "Groups").
   * 
* * Protobuf type {@code apphosting_datastore_v3.RegionPoint} */ public static final class RegionPoint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.RegionPoint) RegionPointOrBuilder { private static final long serialVersionUID = 0L; // Use RegionPoint.newBuilder() to construct. private RegionPoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegionPoint() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RegionPoint(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RegionPoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RegionPoint_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder.class); } private int bitField0_; public static final int LATITUDE_FIELD_NUMBER = 1; private double latitude_ = 0D; /** * required double latitude = 1; * @return Whether the latitude field is set. */ @java.lang.Override public boolean hasLatitude() { return ((bitField0_ & 0x00000001) != 0); } /** * required double latitude = 1; * @return The latitude. */ @java.lang.Override public double getLatitude() { return latitude_; } public static final int LONGITUDE_FIELD_NUMBER = 2; private double longitude_ = 0D; /** * required double longitude = 2; * @return Whether the longitude field is set. */ @java.lang.Override public boolean hasLongitude() { return ((bitField0_ & 0x00000002) != 0); } /** * required double longitude = 2; * @return The longitude. */ @java.lang.Override public double getLongitude() { return longitude_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasLatitude()) { memoizedIsInitialized = 0; return false; } if (!hasLongitude()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeDouble(1, latitude_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeDouble(2, longitude_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, latitude_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, longitude_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint) obj; if (hasLatitude() != other.hasLatitude()) return false; if (hasLatitude()) { if (java.lang.Double.doubleToLongBits(getLatitude()) != java.lang.Double.doubleToLongBits( other.getLatitude())) return false; } if (hasLongitude() != other.hasLongitude()) return false; if (hasLongitude()) { if (java.lang.Double.doubleToLongBits(getLongitude()) != java.lang.Double.doubleToLongBits( other.getLongitude())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasLatitude()) { hash = (37 * hash) + LATITUDE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getLatitude())); } if (hasLongitude()) { hash = (37 * hash) + LONGITUDE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getLongitude())); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint 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.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint 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.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint 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.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * There is no real difference between a RegionPoint and the
     * PointValue within storage_onestore_v3.PropertyValue.  But because
     * of compatibility concerns we cannot get rid of PointValue, yet
     * unfortunately we cannot reuse it for the bounding regions (because
     * this type of reuse is not supported for "Groups").
     * 
* * Protobuf type {@code apphosting_datastore_v3.RegionPoint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.RegionPoint) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RegionPoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RegionPoint_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; latitude_ = 0D; longitude_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RegionPoint_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.latitude_ = latitude_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.longitude_ = longitude_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance()) return this; if (other.hasLatitude()) { setLatitude(other.getLatitude()); } if (other.hasLongitude()) { setLongitude(other.getLongitude()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasLatitude()) { return false; } if (!hasLongitude()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 9: { latitude_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 9 case 17: { longitude_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 17 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private double latitude_ ; /** * required double latitude = 1; * @return Whether the latitude field is set. */ @java.lang.Override public boolean hasLatitude() { return ((bitField0_ & 0x00000001) != 0); } /** * required double latitude = 1; * @return The latitude. */ @java.lang.Override public double getLatitude() { return latitude_; } /** * required double latitude = 1; * @param value The latitude to set. * @return This builder for chaining. */ public Builder setLatitude(double value) { latitude_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * required double latitude = 1; * @return This builder for chaining. */ public Builder clearLatitude() { bitField0_ = (bitField0_ & ~0x00000001); latitude_ = 0D; onChanged(); return this; } private double longitude_ ; /** * required double longitude = 2; * @return Whether the longitude field is set. */ @java.lang.Override public boolean hasLongitude() { return ((bitField0_ & 0x00000002) != 0); } /** * required double longitude = 2; * @return The longitude. */ @java.lang.Override public double getLongitude() { return longitude_; } /** * required double longitude = 2; * @param value The longitude to set. * @return This builder for chaining. */ public Builder setLongitude(double value) { longitude_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * required double longitude = 2; * @return This builder for chaining. */ public Builder clearLongitude() { bitField0_ = (bitField0_ & ~0x00000002); longitude_ = 0D; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.RegionPoint) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.RegionPoint) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RegionPoint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CircleRegionOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CircleRegion) com.google.protobuf.MessageOrBuilder { /** * required .apphosting_datastore_v3.RegionPoint center = 1; * @return Whether the center field is set. */ boolean hasCenter(); /** * required .apphosting_datastore_v3.RegionPoint center = 1; * @return The center. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getCenter(); /** * required .apphosting_datastore_v3.RegionPoint center = 1; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getCenterOrBuilder(); /** * required double radius_meters = 2; * @return Whether the radiusMeters field is set. */ boolean hasRadiusMeters(); /** * required double radius_meters = 2; * @return The radiusMeters. */ double getRadiusMeters(); } /** * Protobuf type {@code apphosting_datastore_v3.CircleRegion} */ public static final class CircleRegion extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CircleRegion) CircleRegionOrBuilder { private static final long serialVersionUID = 0L; // Use CircleRegion.newBuilder() to construct. private CircleRegion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CircleRegion() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CircleRegion(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CircleRegion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CircleRegion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.Builder.class); } private int bitField0_; public static final int CENTER_FIELD_NUMBER = 1; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint center_; /** * required .apphosting_datastore_v3.RegionPoint center = 1; * @return Whether the center field is set. */ @java.lang.Override public boolean hasCenter() { return ((bitField0_ & 0x00000001) != 0); } /** * required .apphosting_datastore_v3.RegionPoint center = 1; * @return The center. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getCenter() { return center_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : center_; } /** * required .apphosting_datastore_v3.RegionPoint center = 1; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getCenterOrBuilder() { return center_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : center_; } public static final int RADIUS_METERS_FIELD_NUMBER = 2; private double radiusMeters_ = 0D; /** * required double radius_meters = 2; * @return Whether the radiusMeters field is set. */ @java.lang.Override public boolean hasRadiusMeters() { return ((bitField0_ & 0x00000002) != 0); } /** * required double radius_meters = 2; * @return The radiusMeters. */ @java.lang.Override public double getRadiusMeters() { return radiusMeters_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasCenter()) { memoizedIsInitialized = 0; return false; } if (!hasRadiusMeters()) { memoizedIsInitialized = 0; return false; } if (!getCenter().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCenter()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeDouble(2, radiusMeters_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCenter()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, radiusMeters_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion) obj; if (hasCenter() != other.hasCenter()) return false; if (hasCenter()) { if (!getCenter() .equals(other.getCenter())) return false; } if (hasRadiusMeters() != other.hasRadiusMeters()) return false; if (hasRadiusMeters()) { if (java.lang.Double.doubleToLongBits(getRadiusMeters()) != java.lang.Double.doubleToLongBits( other.getRadiusMeters())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCenter()) { hash = (37 * hash) + CENTER_FIELD_NUMBER; hash = (53 * hash) + getCenter().hashCode(); } if (hasRadiusMeters()) { hash = (37 * hash) + RADIUS_METERS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getRadiusMeters())); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.CircleRegion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CircleRegion) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CircleRegion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CircleRegion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCenterFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; center_ = null; if (centerBuilder_ != null) { centerBuilder_.dispose(); centerBuilder_ = null; } radiusMeters_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CircleRegion_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.center_ = centerBuilder_ == null ? center_ : centerBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.radiusMeters_ = radiusMeters_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.getDefaultInstance()) return this; if (other.hasCenter()) { mergeCenter(other.getCenter()); } if (other.hasRadiusMeters()) { setRadiusMeters(other.getRadiusMeters()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasCenter()) { return false; } if (!hasRadiusMeters()) { return false; } if (!getCenter().isInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getCenterFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 17: { radiusMeters_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 17 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint center_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder> centerBuilder_; /** * required .apphosting_datastore_v3.RegionPoint center = 1; * @return Whether the center field is set. */ public boolean hasCenter() { return ((bitField0_ & 0x00000001) != 0); } /** * required .apphosting_datastore_v3.RegionPoint center = 1; * @return The center. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getCenter() { if (centerBuilder_ == null) { return center_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : center_; } else { return centerBuilder_.getMessage(); } } /** * required .apphosting_datastore_v3.RegionPoint center = 1; */ public Builder setCenter(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint value) { if (centerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } center_ = value; } else { centerBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .apphosting_datastore_v3.RegionPoint center = 1; */ public Builder setCenter( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder builderForValue) { if (centerBuilder_ == null) { center_ = builderForValue.build(); } else { centerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .apphosting_datastore_v3.RegionPoint center = 1; */ public Builder mergeCenter(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint value) { if (centerBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && center_ != null && center_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance()) { getCenterBuilder().mergeFrom(value); } else { center_ = value; } } else { centerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .apphosting_datastore_v3.RegionPoint center = 1; */ public Builder clearCenter() { bitField0_ = (bitField0_ & ~0x00000001); center_ = null; if (centerBuilder_ != null) { centerBuilder_.dispose(); centerBuilder_ = null; } onChanged(); return this; } /** * required .apphosting_datastore_v3.RegionPoint center = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder getCenterBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCenterFieldBuilder().getBuilder(); } /** * required .apphosting_datastore_v3.RegionPoint center = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getCenterOrBuilder() { if (centerBuilder_ != null) { return centerBuilder_.getMessageOrBuilder(); } else { return center_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : center_; } } /** * required .apphosting_datastore_v3.RegionPoint center = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder> getCenterFieldBuilder() { if (centerBuilder_ == null) { centerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder>( getCenter(), getParentForChildren(), isClean()); center_ = null; } return centerBuilder_; } private double radiusMeters_ ; /** * required double radius_meters = 2; * @return Whether the radiusMeters field is set. */ @java.lang.Override public boolean hasRadiusMeters() { return ((bitField0_ & 0x00000002) != 0); } /** * required double radius_meters = 2; * @return The radiusMeters. */ @java.lang.Override public double getRadiusMeters() { return radiusMeters_; } /** * required double radius_meters = 2; * @param value The radiusMeters to set. * @return This builder for chaining. */ public Builder setRadiusMeters(double value) { radiusMeters_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * required double radius_meters = 2; * @return This builder for chaining. */ public Builder clearRadiusMeters() { bitField0_ = (bitField0_ & ~0x00000002); radiusMeters_ = 0D; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.CircleRegion) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CircleRegion) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CircleRegion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RectangleRegionOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.RectangleRegion) com.google.protobuf.MessageOrBuilder { /** * required .apphosting_datastore_v3.RegionPoint southwest = 1; * @return Whether the southwest field is set. */ boolean hasSouthwest(); /** * required .apphosting_datastore_v3.RegionPoint southwest = 1; * @return The southwest. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getSouthwest(); /** * required .apphosting_datastore_v3.RegionPoint southwest = 1; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getSouthwestOrBuilder(); /** * required .apphosting_datastore_v3.RegionPoint northeast = 2; * @return Whether the northeast field is set. */ boolean hasNortheast(); /** * required .apphosting_datastore_v3.RegionPoint northeast = 2; * @return The northeast. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getNortheast(); /** * required .apphosting_datastore_v3.RegionPoint northeast = 2; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getNortheastOrBuilder(); } /** * Protobuf type {@code apphosting_datastore_v3.RectangleRegion} */ public static final class RectangleRegion extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.RectangleRegion) RectangleRegionOrBuilder { private static final long serialVersionUID = 0L; // Use RectangleRegion.newBuilder() to construct. private RectangleRegion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RectangleRegion() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RectangleRegion(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RectangleRegion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RectangleRegion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.Builder.class); } private int bitField0_; public static final int SOUTHWEST_FIELD_NUMBER = 1; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint southwest_; /** * required .apphosting_datastore_v3.RegionPoint southwest = 1; * @return Whether the southwest field is set. */ @java.lang.Override public boolean hasSouthwest() { return ((bitField0_ & 0x00000001) != 0); } /** * required .apphosting_datastore_v3.RegionPoint southwest = 1; * @return The southwest. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getSouthwest() { return southwest_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : southwest_; } /** * required .apphosting_datastore_v3.RegionPoint southwest = 1; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getSouthwestOrBuilder() { return southwest_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : southwest_; } public static final int NORTHEAST_FIELD_NUMBER = 2; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint northeast_; /** * required .apphosting_datastore_v3.RegionPoint northeast = 2; * @return Whether the northeast field is set. */ @java.lang.Override public boolean hasNortheast() { return ((bitField0_ & 0x00000002) != 0); } /** * required .apphosting_datastore_v3.RegionPoint northeast = 2; * @return The northeast. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getNortheast() { return northeast_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : northeast_; } /** * required .apphosting_datastore_v3.RegionPoint northeast = 2; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getNortheastOrBuilder() { return northeast_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : northeast_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasSouthwest()) { memoizedIsInitialized = 0; return false; } if (!hasNortheast()) { memoizedIsInitialized = 0; return false; } if (!getSouthwest().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getNortheast().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSouthwest()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getNortheast()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSouthwest()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getNortheast()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion) obj; if (hasSouthwest() != other.hasSouthwest()) return false; if (hasSouthwest()) { if (!getSouthwest() .equals(other.getSouthwest())) return false; } if (hasNortheast() != other.hasNortheast()) return false; if (hasNortheast()) { if (!getNortheast() .equals(other.getNortheast())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSouthwest()) { hash = (37 * hash) + SOUTHWEST_FIELD_NUMBER; hash = (53 * hash) + getSouthwest().hashCode(); } if (hasNortheast()) { hash = (37 * hash) + NORTHEAST_FIELD_NUMBER; hash = (53 * hash) + getNortheast().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.RectangleRegion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.RectangleRegion) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RectangleRegion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RectangleRegion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSouthwestFieldBuilder(); getNortheastFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; southwest_ = null; if (southwestBuilder_ != null) { southwestBuilder_.dispose(); southwestBuilder_ = null; } northeast_ = null; if (northeastBuilder_ != null) { northeastBuilder_.dispose(); northeastBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_RectangleRegion_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.southwest_ = southwestBuilder_ == null ? southwest_ : southwestBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.northeast_ = northeastBuilder_ == null ? northeast_ : northeastBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.getDefaultInstance()) return this; if (other.hasSouthwest()) { mergeSouthwest(other.getSouthwest()); } if (other.hasNortheast()) { mergeNortheast(other.getNortheast()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasSouthwest()) { return false; } if (!hasNortheast()) { return false; } if (!getSouthwest().isInitialized()) { return false; } if (!getNortheast().isInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getSouthwestFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getNortheastFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint southwest_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder> southwestBuilder_; /** * required .apphosting_datastore_v3.RegionPoint southwest = 1; * @return Whether the southwest field is set. */ public boolean hasSouthwest() { return ((bitField0_ & 0x00000001) != 0); } /** * required .apphosting_datastore_v3.RegionPoint southwest = 1; * @return The southwest. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getSouthwest() { if (southwestBuilder_ == null) { return southwest_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : southwest_; } else { return southwestBuilder_.getMessage(); } } /** * required .apphosting_datastore_v3.RegionPoint southwest = 1; */ public Builder setSouthwest(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint value) { if (southwestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } southwest_ = value; } else { southwestBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .apphosting_datastore_v3.RegionPoint southwest = 1; */ public Builder setSouthwest( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder builderForValue) { if (southwestBuilder_ == null) { southwest_ = builderForValue.build(); } else { southwestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .apphosting_datastore_v3.RegionPoint southwest = 1; */ public Builder mergeSouthwest(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint value) { if (southwestBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && southwest_ != null && southwest_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance()) { getSouthwestBuilder().mergeFrom(value); } else { southwest_ = value; } } else { southwestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .apphosting_datastore_v3.RegionPoint southwest = 1; */ public Builder clearSouthwest() { bitField0_ = (bitField0_ & ~0x00000001); southwest_ = null; if (southwestBuilder_ != null) { southwestBuilder_.dispose(); southwestBuilder_ = null; } onChanged(); return this; } /** * required .apphosting_datastore_v3.RegionPoint southwest = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder getSouthwestBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSouthwestFieldBuilder().getBuilder(); } /** * required .apphosting_datastore_v3.RegionPoint southwest = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getSouthwestOrBuilder() { if (southwestBuilder_ != null) { return southwestBuilder_.getMessageOrBuilder(); } else { return southwest_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : southwest_; } } /** * required .apphosting_datastore_v3.RegionPoint southwest = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder> getSouthwestFieldBuilder() { if (southwestBuilder_ == null) { southwestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder>( getSouthwest(), getParentForChildren(), isClean()); southwest_ = null; } return southwestBuilder_; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint northeast_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder> northeastBuilder_; /** * required .apphosting_datastore_v3.RegionPoint northeast = 2; * @return Whether the northeast field is set. */ public boolean hasNortheast() { return ((bitField0_ & 0x00000002) != 0); } /** * required .apphosting_datastore_v3.RegionPoint northeast = 2; * @return The northeast. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint getNortheast() { if (northeastBuilder_ == null) { return northeast_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : northeast_; } else { return northeastBuilder_.getMessage(); } } /** * required .apphosting_datastore_v3.RegionPoint northeast = 2; */ public Builder setNortheast(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint value) { if (northeastBuilder_ == null) { if (value == null) { throw new NullPointerException(); } northeast_ = value; } else { northeastBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * required .apphosting_datastore_v3.RegionPoint northeast = 2; */ public Builder setNortheast( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder builderForValue) { if (northeastBuilder_ == null) { northeast_ = builderForValue.build(); } else { northeastBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * required .apphosting_datastore_v3.RegionPoint northeast = 2; */ public Builder mergeNortheast(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint value) { if (northeastBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && northeast_ != null && northeast_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance()) { getNortheastBuilder().mergeFrom(value); } else { northeast_ = value; } } else { northeastBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * required .apphosting_datastore_v3.RegionPoint northeast = 2; */ public Builder clearNortheast() { bitField0_ = (bitField0_ & ~0x00000002); northeast_ = null; if (northeastBuilder_ != null) { northeastBuilder_.dispose(); northeastBuilder_ = null; } onChanged(); return this; } /** * required .apphosting_datastore_v3.RegionPoint northeast = 2; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder getNortheastBuilder() { bitField0_ |= 0x00000002; onChanged(); return getNortheastFieldBuilder().getBuilder(); } /** * required .apphosting_datastore_v3.RegionPoint northeast = 2; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder getNortheastOrBuilder() { if (northeastBuilder_ != null) { return northeastBuilder_.getMessageOrBuilder(); } else { return northeast_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.getDefaultInstance() : northeast_; } } /** * required .apphosting_datastore_v3.RegionPoint northeast = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder> getNortheastFieldBuilder() { if (northeastBuilder_ == null) { northeastBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPoint.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RegionPointOrBuilder>( getNortheast(), getParentForChildren(), isClean()); northeast_ = null; } return northeastBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.RectangleRegion) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.RectangleRegion) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RectangleRegion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GeoRegionOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.GeoRegion) com.google.protobuf.MessageOrBuilder { /** *
     * Exactly one of the following should be set.
     * 
* * optional .apphosting_datastore_v3.CircleRegion circle = 1; * @return Whether the circle field is set. */ boolean hasCircle(); /** *
     * Exactly one of the following should be set.
     * 
* * optional .apphosting_datastore_v3.CircleRegion circle = 1; * @return The circle. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion getCircle(); /** *
     * Exactly one of the following should be set.
     * 
* * optional .apphosting_datastore_v3.CircleRegion circle = 1; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegionOrBuilder getCircleOrBuilder(); /** * optional .apphosting_datastore_v3.RectangleRegion rectangle = 2; * @return Whether the rectangle field is set. */ boolean hasRectangle(); /** * optional .apphosting_datastore_v3.RectangleRegion rectangle = 2; * @return The rectangle. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion getRectangle(); /** * optional .apphosting_datastore_v3.RectangleRegion rectangle = 2; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegionOrBuilder getRectangleOrBuilder(); } /** * Protobuf type {@code apphosting_datastore_v3.GeoRegion} */ public static final class GeoRegion extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.GeoRegion) GeoRegionOrBuilder { private static final long serialVersionUID = 0L; // Use GeoRegion.newBuilder() to construct. private GeoRegion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GeoRegion() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GeoRegion(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GeoRegion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GeoRegion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.Builder.class); } private int bitField0_; public static final int CIRCLE_FIELD_NUMBER = 1; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion circle_; /** *
     * Exactly one of the following should be set.
     * 
* * optional .apphosting_datastore_v3.CircleRegion circle = 1; * @return Whether the circle field is set. */ @java.lang.Override public boolean hasCircle() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Exactly one of the following should be set.
     * 
* * optional .apphosting_datastore_v3.CircleRegion circle = 1; * @return The circle. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion getCircle() { return circle_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.getDefaultInstance() : circle_; } /** *
     * Exactly one of the following should be set.
     * 
* * optional .apphosting_datastore_v3.CircleRegion circle = 1; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegionOrBuilder getCircleOrBuilder() { return circle_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.getDefaultInstance() : circle_; } public static final int RECTANGLE_FIELD_NUMBER = 2; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion rectangle_; /** * optional .apphosting_datastore_v3.RectangleRegion rectangle = 2; * @return Whether the rectangle field is set. */ @java.lang.Override public boolean hasRectangle() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .apphosting_datastore_v3.RectangleRegion rectangle = 2; * @return The rectangle. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion getRectangle() { return rectangle_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.getDefaultInstance() : rectangle_; } /** * optional .apphosting_datastore_v3.RectangleRegion rectangle = 2; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegionOrBuilder getRectangleOrBuilder() { return rectangle_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.getDefaultInstance() : rectangle_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasCircle()) { if (!getCircle().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasRectangle()) { if (!getRectangle().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCircle()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getRectangle()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCircle()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRectangle()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion) obj; if (hasCircle() != other.hasCircle()) return false; if (hasCircle()) { if (!getCircle() .equals(other.getCircle())) return false; } if (hasRectangle() != other.hasRectangle()) return false; if (hasRectangle()) { if (!getRectangle() .equals(other.getRectangle())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCircle()) { hash = (37 * hash) + CIRCLE_FIELD_NUMBER; hash = (53 * hash) + getCircle().hashCode(); } if (hasRectangle()) { hash = (37 * hash) + RECTANGLE_FIELD_NUMBER; hash = (53 * hash) + getRectangle().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion 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.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.GeoRegion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.GeoRegion) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GeoRegion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GeoRegion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCircleFieldBuilder(); getRectangleFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; circle_ = null; if (circleBuilder_ != null) { circleBuilder_.dispose(); circleBuilder_ = null; } rectangle_ = null; if (rectangleBuilder_ != null) { rectangleBuilder_.dispose(); rectangleBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GeoRegion_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.circle_ = circleBuilder_ == null ? circle_ : circleBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.rectangle_ = rectangleBuilder_ == null ? rectangle_ : rectangleBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion.getDefaultInstance()) return this; if (other.hasCircle()) { mergeCircle(other.getCircle()); } if (other.hasRectangle()) { mergeRectangle(other.getRectangle()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasCircle()) { if (!getCircle().isInitialized()) { return false; } } if (hasRectangle()) { if (!getRectangle().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getCircleFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getRectangleFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion circle_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegionOrBuilder> circleBuilder_; /** *
       * Exactly one of the following should be set.
       * 
* * optional .apphosting_datastore_v3.CircleRegion circle = 1; * @return Whether the circle field is set. */ public boolean hasCircle() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Exactly one of the following should be set.
       * 
* * optional .apphosting_datastore_v3.CircleRegion circle = 1; * @return The circle. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion getCircle() { if (circleBuilder_ == null) { return circle_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.getDefaultInstance() : circle_; } else { return circleBuilder_.getMessage(); } } /** *
       * Exactly one of the following should be set.
       * 
* * optional .apphosting_datastore_v3.CircleRegion circle = 1; */ public Builder setCircle(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion value) { if (circleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } circle_ = value; } else { circleBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Exactly one of the following should be set.
       * 
* * optional .apphosting_datastore_v3.CircleRegion circle = 1; */ public Builder setCircle( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.Builder builderForValue) { if (circleBuilder_ == null) { circle_ = builderForValue.build(); } else { circleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Exactly one of the following should be set.
       * 
* * optional .apphosting_datastore_v3.CircleRegion circle = 1; */ public Builder mergeCircle(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion value) { if (circleBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && circle_ != null && circle_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.getDefaultInstance()) { getCircleBuilder().mergeFrom(value); } else { circle_ = value; } } else { circleBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Exactly one of the following should be set.
       * 
* * optional .apphosting_datastore_v3.CircleRegion circle = 1; */ public Builder clearCircle() { bitField0_ = (bitField0_ & ~0x00000001); circle_ = null; if (circleBuilder_ != null) { circleBuilder_.dispose(); circleBuilder_ = null; } onChanged(); return this; } /** *
       * Exactly one of the following should be set.
       * 
* * optional .apphosting_datastore_v3.CircleRegion circle = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.Builder getCircleBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCircleFieldBuilder().getBuilder(); } /** *
       * Exactly one of the following should be set.
       * 
* * optional .apphosting_datastore_v3.CircleRegion circle = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegionOrBuilder getCircleOrBuilder() { if (circleBuilder_ != null) { return circleBuilder_.getMessageOrBuilder(); } else { return circle_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.getDefaultInstance() : circle_; } } /** *
       * Exactly one of the following should be set.
       * 
* * optional .apphosting_datastore_v3.CircleRegion circle = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegionOrBuilder> getCircleFieldBuilder() { if (circleBuilder_ == null) { circleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegion.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CircleRegionOrBuilder>( getCircle(), getParentForChildren(), isClean()); circle_ = null; } return circleBuilder_; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion rectangle_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegionOrBuilder> rectangleBuilder_; /** * optional .apphosting_datastore_v3.RectangleRegion rectangle = 2; * @return Whether the rectangle field is set. */ public boolean hasRectangle() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .apphosting_datastore_v3.RectangleRegion rectangle = 2; * @return The rectangle. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion getRectangle() { if (rectangleBuilder_ == null) { return rectangle_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.getDefaultInstance() : rectangle_; } else { return rectangleBuilder_.getMessage(); } } /** * optional .apphosting_datastore_v3.RectangleRegion rectangle = 2; */ public Builder setRectangle(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion value) { if (rectangleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rectangle_ = value; } else { rectangleBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.RectangleRegion rectangle = 2; */ public Builder setRectangle( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.Builder builderForValue) { if (rectangleBuilder_ == null) { rectangle_ = builderForValue.build(); } else { rectangleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.RectangleRegion rectangle = 2; */ public Builder mergeRectangle(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion value) { if (rectangleBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && rectangle_ != null && rectangle_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.getDefaultInstance()) { getRectangleBuilder().mergeFrom(value); } else { rectangle_ = value; } } else { rectangleBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.RectangleRegion rectangle = 2; */ public Builder clearRectangle() { bitField0_ = (bitField0_ & ~0x00000002); rectangle_ = null; if (rectangleBuilder_ != null) { rectangleBuilder_.dispose(); rectangleBuilder_ = null; } onChanged(); return this; } /** * optional .apphosting_datastore_v3.RectangleRegion rectangle = 2; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.Builder getRectangleBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRectangleFieldBuilder().getBuilder(); } /** * optional .apphosting_datastore_v3.RectangleRegion rectangle = 2; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegionOrBuilder getRectangleOrBuilder() { if (rectangleBuilder_ != null) { return rectangleBuilder_.getMessageOrBuilder(); } else { return rectangle_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.getDefaultInstance() : rectangle_; } } /** * optional .apphosting_datastore_v3.RectangleRegion rectangle = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegionOrBuilder> getRectangleFieldBuilder() { if (rectangleBuilder_ == null) { rectangleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegion.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.RectangleRegionOrBuilder>( getRectangle(), getParentForChildren(), isClean()); rectangle_ = null; } return rectangleBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.GeoRegion) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.GeoRegion) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GeoRegion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GeoRegion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CompiledQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CompiledQuery) com.google.protobuf.MessageOrBuilder { /** * required group PrimaryScan = 1 { ... } * @return Whether the primaryscan field is set. */ boolean hasPrimaryScan(); /** * required group PrimaryScan = 1 { ... } * @return The primaryscan. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan getPrimaryScan(); /** * required group PrimaryScan = 1 { ... } */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScanOrBuilder getPrimaryScanOrBuilder(); /** * repeated group MergeJoinScan = 7 { ... } */ java.util.List getMergeJoinScanList(); /** * repeated group MergeJoinScan = 7 { ... } */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan getMergeJoinScan(int index); /** * repeated group MergeJoinScan = 7 { ... } */ int getMergeJoinScanCount(); /** * repeated group MergeJoinScan = 7 { ... } */ java.util.List getMergeJoinScanOrBuilderList(); /** * repeated group MergeJoinScan = 7 { ... } */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScanOrBuilder getMergeJoinScanOrBuilder( int index); /** *
     * The index definition to use when decoding the composite index data for a
     * result. Only set for scans on a composite index
     * 
* * optional .storage_onestore_v3.Index index_def = 21; * @return Whether the indexDef field is set. */ boolean hasIndexDef(); /** *
     * The index definition to use when decoding the composite index data for a
     * result. Only set for scans on a composite index
     * 
* * optional .storage_onestore_v3.Index index_def = 21; * @return The indexDef. */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index getIndexDef(); /** *
     * The index definition to use when decoding the composite index data for a
     * result. Only set for scans on a composite index
     * 
* * optional .storage_onestore_v3.Index index_def = 21; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexOrBuilder getIndexDefOrBuilder(); /** *
     * the native or in memory offset associated with this query
     * 
* * optional int32 offset = 10 [default = 0]; * @return Whether the offset field is set. */ boolean hasOffset(); /** *
     * the native or in memory offset associated with this query
     * 
* * optional int32 offset = 10 [default = 0]; * @return The offset. */ int getOffset(); /** *
     * the native or in memory limit associated with this query
     * 
* * optional int32 limit = 11; * @return Whether the limit field is set. */ boolean hasLimit(); /** *
     * the native or in memory limit associated with this query
     * 
* * optional int32 limit = 11; * @return The limit. */ int getLimit(); /** *
     * if true, only return keys. See Query.keys_only for discussion.
     * 
* * required bool keys_only = 12; * @return Whether the keysOnly field is set. */ boolean hasKeysOnly(); /** *
     * if true, only return keys. See Query.keys_only for discussion.
     * 
* * required bool keys_only = 12; * @return The keysOnly. */ boolean getKeysOnly(); /** *
     * see property_name on Query
     * 
* * repeated string property_name = 24; * @return A list containing the propertyName. */ java.util.List getPropertyNameList(); /** *
     * see property_name on Query
     * 
* * repeated string property_name = 24; * @return The count of propertyName. */ int getPropertyNameCount(); /** *
     * see property_name on Query
     * 
* * repeated string property_name = 24; * @param index The index of the element to return. * @return The propertyName at the given index. */ java.lang.String getPropertyName(int index); /** *
     * see property_name on Query
     * 
* * repeated string property_name = 24; * @param index The index of the value to return. * @return The bytes of the propertyName at the given index. */ com.google.protobuf.ByteString getPropertyNameBytes(int index); /** *
     * the number of postfix properties that should be distinct
     * 
* * optional int32 distinct_infix_size = 25; * @return Whether the distinctInfixSize field is set. */ boolean hasDistinctInfixSize(); /** *
     * the number of postfix properties that should be distinct
     * 
* * optional int32 distinct_infix_size = 25; * @return The distinctInfixSize. */ int getDistinctInfixSize(); /** *
     * the number of key path elements that results must have
     * 
* * optional int32 key_path_length = 27; * @return Whether the keyPathLength field is set. */ boolean hasKeyPathLength(); /** *
     * the number of key path elements that results must have
     * 
* * optional int32 key_path_length = 27; * @return The keyPathLength. */ int getKeyPathLength(); /** * optional group EntityFilter = 13 { ... } * @return Whether the entityfilter field is set. */ boolean hasEntityFilter(); /** * optional group EntityFilter = 13 { ... } * @return The entityfilter. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter getEntityFilter(); /** * optional group EntityFilter = 13 { ... } */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilterOrBuilder getEntityFilterOrBuilder(); /** * optional string plan_label = 26; * @return Whether the planLabel field is set. */ boolean hasPlanLabel(); /** * optional string plan_label = 26; * @return The planLabel. */ java.lang.String getPlanLabel(); /** * optional string plan_label = 26; * @return The bytes for planLabel. */ com.google.protobuf.ByteString getPlanLabelBytes(); } /** *
   * A query that has been compiled down into a set of bigtable scans.
   * NOTE: support for in memory filters is limited so most non-perfect
   * plans are not supported.
   * 
* * Protobuf type {@code apphosting_datastore_v3.CompiledQuery} */ public static final class CompiledQuery extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CompiledQuery) CompiledQueryOrBuilder { private static final long serialVersionUID = 0L; // Use CompiledQuery.newBuilder() to construct. private CompiledQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CompiledQuery() { mergeJoinScan_ = java.util.Collections.emptyList(); propertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; planLabel_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CompiledQuery(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.Builder.class); } public interface PrimaryScanOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CompiledQuery.PrimaryScan) com.google.protobuf.MessageOrBuilder { /** *
       * If unset, scan is assumed to be against the primary_key index. If
       * accompanied by MergeJoinScans this must be unset.
       * 
* * optional string index_name = 2; * @return Whether the indexName field is set. */ boolean hasIndexName(); /** *
       * If unset, scan is assumed to be against the primary_key index. If
       * accompanied by MergeJoinScans this must be unset.
       * 
* * optional string index_name = 2; * @return The indexName. */ java.lang.String getIndexName(); /** *
       * If unset, scan is assumed to be against the primary_key index. If
       * accompanied by MergeJoinScans this must be unset.
       * 
* * optional string index_name = 2; * @return The bytes for indexName. */ com.google.protobuf.ByteString getIndexNameBytes(); /** *
       * Encoded key range. If index_name is set these are index keys.
       * Otherwise these are encoded primary keys.
       * 
* * optional string start_key = 3; * @return Whether the startKey field is set. */ boolean hasStartKey(); /** *
       * Encoded key range. If index_name is set these are index keys.
       * Otherwise these are encoded primary keys.
       * 
* * optional string start_key = 3; * @return The startKey. */ java.lang.String getStartKey(); /** *
       * Encoded key range. If index_name is set these are index keys.
       * Otherwise these are encoded primary keys.
       * 
* * optional string start_key = 3; * @return The bytes for startKey. */ com.google.protobuf.ByteString getStartKeyBytes(); /** * optional bool start_inclusive = 4; * @return Whether the startInclusive field is set. */ boolean hasStartInclusive(); /** * optional bool start_inclusive = 4; * @return The startInclusive. */ boolean getStartInclusive(); /** *
       * May contain arbitrary bytes.
       * 
* * optional string end_key = 5; * @return Whether the endKey field is set. */ boolean hasEndKey(); /** *
       * May contain arbitrary bytes.
       * 
* * optional string end_key = 5; * @return The endKey. */ java.lang.String getEndKey(); /** *
       * May contain arbitrary bytes.
       * 
* * optional string end_key = 5; * @return The bytes for endKey. */ com.google.protobuf.ByteString getEndKeyBytes(); /** * optional bool end_inclusive = 6; * @return Whether the endInclusive field is set. */ boolean hasEndInclusive(); /** * optional bool end_inclusive = 6; * @return The endInclusive. */ boolean getEndInclusive(); /** *
       * Merge join postfix constraints
       * 
* * repeated string start_postfix_value = 22; * @return A list containing the startPostfixValue. */ java.util.List getStartPostfixValueList(); /** *
       * Merge join postfix constraints
       * 
* * repeated string start_postfix_value = 22; * @return The count of startPostfixValue. */ int getStartPostfixValueCount(); /** *
       * Merge join postfix constraints
       * 
* * repeated string start_postfix_value = 22; * @param index The index of the element to return. * @return The startPostfixValue at the given index. */ java.lang.String getStartPostfixValue(int index); /** *
       * Merge join postfix constraints
       * 
* * repeated string start_postfix_value = 22; * @param index The index of the value to return. * @return The bytes of the startPostfixValue at the given index. */ com.google.protobuf.ByteString getStartPostfixValueBytes(int index); /** *
       * May contain arbitrary bytes.
       * 
* * repeated string end_postfix_value = 23; * @return A list containing the endPostfixValue. */ java.util.List getEndPostfixValueList(); /** *
       * May contain arbitrary bytes.
       * 
* * repeated string end_postfix_value = 23; * @return The count of endPostfixValue. */ int getEndPostfixValueCount(); /** *
       * May contain arbitrary bytes.
       * 
* * repeated string end_postfix_value = 23; * @param index The index of the element to return. * @return The endPostfixValue at the given index. */ java.lang.String getEndPostfixValue(int index); /** *
       * May contain arbitrary bytes.
       * 
* * repeated string end_postfix_value = 23; * @param index The index of the value to return. * @return The bytes of the endPostfixValue at the given index. */ com.google.protobuf.ByteString getEndPostfixValueBytes(int index); /** *
       * This field is set for a special groomer query only. It sets the maximum
       * timestamp of an unfinished transaction.
       * 
* * optional int64 end_unapplied_log_timestamp_us = 19; * @return Whether the endUnappliedLogTimestampUs field is set. */ boolean hasEndUnappliedLogTimestampUs(); /** *
       * This field is set for a special groomer query only. It sets the maximum
       * timestamp of an unfinished transaction.
       * 
* * optional int64 end_unapplied_log_timestamp_us = 19; * @return The endUnappliedLogTimestampUs. */ long getEndUnappliedLogTimestampUs(); } /** *
     * The primary scan. In the case of mergejoin this is used to specify a
     * primary key range.
     * 
* * Protobuf type {@code apphosting_datastore_v3.CompiledQuery.PrimaryScan} */ public static final class PrimaryScan extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CompiledQuery.PrimaryScan) PrimaryScanOrBuilder { private static final long serialVersionUID = 0L; // Use PrimaryScan.newBuilder() to construct. private PrimaryScan(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrimaryScan() { indexName_ = ""; startKey_ = ""; endKey_ = ""; startPostfixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; endPostfixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PrimaryScan(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_PrimaryScan_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_PrimaryScan_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.Builder.class); } private int bitField0_; public static final int INDEX_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object indexName_ = ""; /** *
       * If unset, scan is assumed to be against the primary_key index. If
       * accompanied by MergeJoinScans this must be unset.
       * 
* * optional string index_name = 2; * @return Whether the indexName field is set. */ @java.lang.Override public boolean hasIndexName() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * If unset, scan is assumed to be against the primary_key index. If
       * accompanied by MergeJoinScans this must be unset.
       * 
* * optional string index_name = 2; * @return The indexName. */ @java.lang.Override public java.lang.String getIndexName() { java.lang.Object ref = indexName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { indexName_ = s; } return s; } } /** *
       * If unset, scan is assumed to be against the primary_key index. If
       * accompanied by MergeJoinScans this must be unset.
       * 
* * optional string index_name = 2; * @return The bytes for indexName. */ @java.lang.Override public com.google.protobuf.ByteString getIndexNameBytes() { java.lang.Object ref = indexName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); indexName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int START_KEY_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object startKey_ = ""; /** *
       * Encoded key range. If index_name is set these are index keys.
       * Otherwise these are encoded primary keys.
       * 
* * optional string start_key = 3; * @return Whether the startKey field is set. */ @java.lang.Override public boolean hasStartKey() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Encoded key range. If index_name is set these are index keys.
       * Otherwise these are encoded primary keys.
       * 
* * optional string start_key = 3; * @return The startKey. */ @java.lang.Override public java.lang.String getStartKey() { java.lang.Object ref = startKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { startKey_ = s; } return s; } } /** *
       * Encoded key range. If index_name is set these are index keys.
       * Otherwise these are encoded primary keys.
       * 
* * optional string start_key = 3; * @return The bytes for startKey. */ @java.lang.Override public com.google.protobuf.ByteString getStartKeyBytes() { java.lang.Object ref = startKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); startKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int START_INCLUSIVE_FIELD_NUMBER = 4; private boolean startInclusive_ = false; /** * optional bool start_inclusive = 4; * @return Whether the startInclusive field is set. */ @java.lang.Override public boolean hasStartInclusive() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bool start_inclusive = 4; * @return The startInclusive. */ @java.lang.Override public boolean getStartInclusive() { return startInclusive_; } public static final int END_KEY_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object endKey_ = ""; /** *
       * May contain arbitrary bytes.
       * 
* * optional string end_key = 5; * @return Whether the endKey field is set. */ @java.lang.Override public boolean hasEndKey() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * May contain arbitrary bytes.
       * 
* * optional string end_key = 5; * @return The endKey. */ @java.lang.Override public java.lang.String getEndKey() { java.lang.Object ref = endKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { endKey_ = s; } return s; } } /** *
       * May contain arbitrary bytes.
       * 
* * optional string end_key = 5; * @return The bytes for endKey. */ @java.lang.Override public com.google.protobuf.ByteString getEndKeyBytes() { java.lang.Object ref = endKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int END_INCLUSIVE_FIELD_NUMBER = 6; private boolean endInclusive_ = false; /** * optional bool end_inclusive = 6; * @return Whether the endInclusive field is set. */ @java.lang.Override public boolean hasEndInclusive() { return ((bitField0_ & 0x00000010) != 0); } /** * optional bool end_inclusive = 6; * @return The endInclusive. */ @java.lang.Override public boolean getEndInclusive() { return endInclusive_; } public static final int START_POSTFIX_VALUE_FIELD_NUMBER = 22; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList startPostfixValue_; /** *
       * Merge join postfix constraints
       * 
* * repeated string start_postfix_value = 22; * @return A list containing the startPostfixValue. */ public com.google.protobuf.ProtocolStringList getStartPostfixValueList() { return startPostfixValue_; } /** *
       * Merge join postfix constraints
       * 
* * repeated string start_postfix_value = 22; * @return The count of startPostfixValue. */ public int getStartPostfixValueCount() { return startPostfixValue_.size(); } /** *
       * Merge join postfix constraints
       * 
* * repeated string start_postfix_value = 22; * @param index The index of the element to return. * @return The startPostfixValue at the given index. */ public java.lang.String getStartPostfixValue(int index) { return startPostfixValue_.get(index); } /** *
       * Merge join postfix constraints
       * 
* * repeated string start_postfix_value = 22; * @param index The index of the value to return. * @return The bytes of the startPostfixValue at the given index. */ public com.google.protobuf.ByteString getStartPostfixValueBytes(int index) { return startPostfixValue_.getByteString(index); } public static final int END_POSTFIX_VALUE_FIELD_NUMBER = 23; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList endPostfixValue_; /** *
       * May contain arbitrary bytes.
       * 
* * repeated string end_postfix_value = 23; * @return A list containing the endPostfixValue. */ public com.google.protobuf.ProtocolStringList getEndPostfixValueList() { return endPostfixValue_; } /** *
       * May contain arbitrary bytes.
       * 
* * repeated string end_postfix_value = 23; * @return The count of endPostfixValue. */ public int getEndPostfixValueCount() { return endPostfixValue_.size(); } /** *
       * May contain arbitrary bytes.
       * 
* * repeated string end_postfix_value = 23; * @param index The index of the element to return. * @return The endPostfixValue at the given index. */ public java.lang.String getEndPostfixValue(int index) { return endPostfixValue_.get(index); } /** *
       * May contain arbitrary bytes.
       * 
* * repeated string end_postfix_value = 23; * @param index The index of the value to return. * @return The bytes of the endPostfixValue at the given index. */ public com.google.protobuf.ByteString getEndPostfixValueBytes(int index) { return endPostfixValue_.getByteString(index); } public static final int END_UNAPPLIED_LOG_TIMESTAMP_US_FIELD_NUMBER = 19; private long endUnappliedLogTimestampUs_ = 0L; /** *
       * This field is set for a special groomer query only. It sets the maximum
       * timestamp of an unfinished transaction.
       * 
* * optional int64 end_unapplied_log_timestamp_us = 19; * @return Whether the endUnappliedLogTimestampUs field is set. */ @java.lang.Override public boolean hasEndUnappliedLogTimestampUs() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * This field is set for a special groomer query only. It sets the maximum
       * timestamp of an unfinished transaction.
       * 
* * optional int64 end_unapplied_log_timestamp_us = 19; * @return The endUnappliedLogTimestampUs. */ @java.lang.Override public long getEndUnappliedLogTimestampUs() { return endUnappliedLogTimestampUs_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, indexName_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, startKey_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(4, startInclusive_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, endKey_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(6, endInclusive_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeInt64(19, endUnappliedLogTimestampUs_); } for (int i = 0; i < startPostfixValue_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 22, startPostfixValue_.getRaw(i)); } for (int i = 0; i < endPostfixValue_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 23, endPostfixValue_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, indexName_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, startKey_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, startInclusive_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, endKey_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, endInclusive_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(19, endUnappliedLogTimestampUs_); } { int dataSize = 0; for (int i = 0; i < startPostfixValue_.size(); i++) { dataSize += computeStringSizeNoTag(startPostfixValue_.getRaw(i)); } size += dataSize; size += 2 * getStartPostfixValueList().size(); } { int dataSize = 0; for (int i = 0; i < endPostfixValue_.size(); i++) { dataSize += computeStringSizeNoTag(endPostfixValue_.getRaw(i)); } size += dataSize; size += 2 * getEndPostfixValueList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan) obj; if (hasIndexName() != other.hasIndexName()) return false; if (hasIndexName()) { if (!getIndexName() .equals(other.getIndexName())) return false; } if (hasStartKey() != other.hasStartKey()) return false; if (hasStartKey()) { if (!getStartKey() .equals(other.getStartKey())) return false; } if (hasStartInclusive() != other.hasStartInclusive()) return false; if (hasStartInclusive()) { if (getStartInclusive() != other.getStartInclusive()) return false; } if (hasEndKey() != other.hasEndKey()) return false; if (hasEndKey()) { if (!getEndKey() .equals(other.getEndKey())) return false; } if (hasEndInclusive() != other.hasEndInclusive()) return false; if (hasEndInclusive()) { if (getEndInclusive() != other.getEndInclusive()) return false; } if (!getStartPostfixValueList() .equals(other.getStartPostfixValueList())) return false; if (!getEndPostfixValueList() .equals(other.getEndPostfixValueList())) return false; if (hasEndUnappliedLogTimestampUs() != other.hasEndUnappliedLogTimestampUs()) return false; if (hasEndUnappliedLogTimestampUs()) { if (getEndUnappliedLogTimestampUs() != other.getEndUnappliedLogTimestampUs()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasIndexName()) { hash = (37 * hash) + INDEX_NAME_FIELD_NUMBER; hash = (53 * hash) + getIndexName().hashCode(); } if (hasStartKey()) { hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); } if (hasStartInclusive()) { hash = (37 * hash) + START_INCLUSIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getStartInclusive()); } if (hasEndKey()) { hash = (37 * hash) + END_KEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); } if (hasEndInclusive()) { hash = (37 * hash) + END_INCLUSIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEndInclusive()); } if (getStartPostfixValueCount() > 0) { hash = (37 * hash) + START_POSTFIX_VALUE_FIELD_NUMBER; hash = (53 * hash) + getStartPostfixValueList().hashCode(); } if (getEndPostfixValueCount() > 0) { hash = (37 * hash) + END_POSTFIX_VALUE_FIELD_NUMBER; hash = (53 * hash) + getEndPostfixValueList().hashCode(); } if (hasEndUnappliedLogTimestampUs()) { hash = (37 * hash) + END_UNAPPLIED_LOG_TIMESTAMP_US_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndUnappliedLogTimestampUs()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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 primary scan. In the case of mergejoin this is used to specify a
       * primary key range.
       * 
* * Protobuf type {@code apphosting_datastore_v3.CompiledQuery.PrimaryScan} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CompiledQuery.PrimaryScan) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScanOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_PrimaryScan_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_PrimaryScan_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; indexName_ = ""; startKey_ = ""; startInclusive_ = false; endKey_ = ""; endInclusive_ = false; startPostfixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); endPostfixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); endUnappliedLogTimestampUs_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_PrimaryScan_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan result) { if (((bitField0_ & 0x00000020) != 0)) { startPostfixValue_ = startPostfixValue_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000020); } result.startPostfixValue_ = startPostfixValue_; if (((bitField0_ & 0x00000040) != 0)) { endPostfixValue_ = endPostfixValue_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000040); } result.endPostfixValue_ = endPostfixValue_; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.indexName_ = indexName_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.startKey_ = startKey_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.startInclusive_ = startInclusive_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.endKey_ = endKey_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.endInclusive_ = endInclusive_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { result.endUnappliedLogTimestampUs_ = endUnappliedLogTimestampUs_; to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.getDefaultInstance()) return this; if (other.hasIndexName()) { indexName_ = other.indexName_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasStartKey()) { startKey_ = other.startKey_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasStartInclusive()) { setStartInclusive(other.getStartInclusive()); } if (other.hasEndKey()) { endKey_ = other.endKey_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasEndInclusive()) { setEndInclusive(other.getEndInclusive()); } if (!other.startPostfixValue_.isEmpty()) { if (startPostfixValue_.isEmpty()) { startPostfixValue_ = other.startPostfixValue_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureStartPostfixValueIsMutable(); startPostfixValue_.addAll(other.startPostfixValue_); } onChanged(); } if (!other.endPostfixValue_.isEmpty()) { if (endPostfixValue_.isEmpty()) { endPostfixValue_ = other.endPostfixValue_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureEndPostfixValueIsMutable(); endPostfixValue_.addAll(other.endPostfixValue_); } onChanged(); } if (other.hasEndUnappliedLogTimestampUs()) { setEndUnappliedLogTimestampUs(other.getEndUnappliedLogTimestampUs()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 18: { indexName_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 18 case 26: { startKey_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 26 case 32: { startInclusive_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 32 case 42: { endKey_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 42 case 48: { endInclusive_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 48 case 152: { endUnappliedLogTimestampUs_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 152 case 178: { com.google.protobuf.ByteString bs = input.readBytes(); ensureStartPostfixValueIsMutable(); startPostfixValue_.add(bs); break; } // case 178 case 186: { com.google.protobuf.ByteString bs = input.readBytes(); ensureEndPostfixValueIsMutable(); endPostfixValue_.add(bs); break; } // case 186 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object indexName_ = ""; /** *
         * If unset, scan is assumed to be against the primary_key index. If
         * accompanied by MergeJoinScans this must be unset.
         * 
* * optional string index_name = 2; * @return Whether the indexName field is set. */ public boolean hasIndexName() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * If unset, scan is assumed to be against the primary_key index. If
         * accompanied by MergeJoinScans this must be unset.
         * 
* * optional string index_name = 2; * @return The indexName. */ public java.lang.String getIndexName() { java.lang.Object ref = indexName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { indexName_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * If unset, scan is assumed to be against the primary_key index. If
         * accompanied by MergeJoinScans this must be unset.
         * 
* * optional string index_name = 2; * @return The bytes for indexName. */ public com.google.protobuf.ByteString getIndexNameBytes() { java.lang.Object ref = indexName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); indexName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * If unset, scan is assumed to be against the primary_key index. If
         * accompanied by MergeJoinScans this must be unset.
         * 
* * optional string index_name = 2; * @param value The indexName to set. * @return This builder for chaining. */ public Builder setIndexName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } indexName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * If unset, scan is assumed to be against the primary_key index. If
         * accompanied by MergeJoinScans this must be unset.
         * 
* * optional string index_name = 2; * @return This builder for chaining. */ public Builder clearIndexName() { indexName_ = getDefaultInstance().getIndexName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * If unset, scan is assumed to be against the primary_key index. If
         * accompanied by MergeJoinScans this must be unset.
         * 
* * optional string index_name = 2; * @param value The bytes for indexName to set. * @return This builder for chaining. */ public Builder setIndexNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } indexName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object startKey_ = ""; /** *
         * Encoded key range. If index_name is set these are index keys.
         * Otherwise these are encoded primary keys.
         * 
* * optional string start_key = 3; * @return Whether the startKey field is set. */ public boolean hasStartKey() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Encoded key range. If index_name is set these are index keys.
         * Otherwise these are encoded primary keys.
         * 
* * optional string start_key = 3; * @return The startKey. */ public java.lang.String getStartKey() { java.lang.Object ref = startKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { startKey_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * Encoded key range. If index_name is set these are index keys.
         * Otherwise these are encoded primary keys.
         * 
* * optional string start_key = 3; * @return The bytes for startKey. */ public com.google.protobuf.ByteString getStartKeyBytes() { java.lang.Object ref = startKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); startKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Encoded key range. If index_name is set these are index keys.
         * Otherwise these are encoded primary keys.
         * 
* * optional string start_key = 3; * @param value The startKey to set. * @return This builder for chaining. */ public Builder setStartKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Encoded key range. If index_name is set these are index keys.
         * Otherwise these are encoded primary keys.
         * 
* * optional string start_key = 3; * @return This builder for chaining. */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
         * Encoded key range. If index_name is set these are index keys.
         * Otherwise these are encoded primary keys.
         * 
* * optional string start_key = 3; * @param value The bytes for startKey to set. * @return This builder for chaining. */ public Builder setStartKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private boolean startInclusive_ ; /** * optional bool start_inclusive = 4; * @return Whether the startInclusive field is set. */ @java.lang.Override public boolean hasStartInclusive() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bool start_inclusive = 4; * @return The startInclusive. */ @java.lang.Override public boolean getStartInclusive() { return startInclusive_; } /** * optional bool start_inclusive = 4; * @param value The startInclusive to set. * @return This builder for chaining. */ public Builder setStartInclusive(boolean value) { startInclusive_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional bool start_inclusive = 4; * @return This builder for chaining. */ public Builder clearStartInclusive() { bitField0_ = (bitField0_ & ~0x00000004); startInclusive_ = false; onChanged(); return this; } private java.lang.Object endKey_ = ""; /** *
         * May contain arbitrary bytes.
         * 
* * optional string end_key = 5; * @return Whether the endKey field is set. */ public boolean hasEndKey() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * May contain arbitrary bytes.
         * 
* * optional string end_key = 5; * @return The endKey. */ public java.lang.String getEndKey() { java.lang.Object ref = endKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { endKey_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * May contain arbitrary bytes.
         * 
* * optional string end_key = 5; * @return The bytes for endKey. */ public com.google.protobuf.ByteString getEndKeyBytes() { java.lang.Object ref = endKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * May contain arbitrary bytes.
         * 
* * optional string end_key = 5; * @param value The endKey to set. * @return This builder for chaining. */ public Builder setEndKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * May contain arbitrary bytes.
         * 
* * optional string end_key = 5; * @return This builder for chaining. */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
         * May contain arbitrary bytes.
         * 
* * optional string end_key = 5; * @param value The bytes for endKey to set. * @return This builder for chaining. */ public Builder setEndKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private boolean endInclusive_ ; /** * optional bool end_inclusive = 6; * @return Whether the endInclusive field is set. */ @java.lang.Override public boolean hasEndInclusive() { return ((bitField0_ & 0x00000010) != 0); } /** * optional bool end_inclusive = 6; * @return The endInclusive. */ @java.lang.Override public boolean getEndInclusive() { return endInclusive_; } /** * optional bool end_inclusive = 6; * @param value The endInclusive to set. * @return This builder for chaining. */ public Builder setEndInclusive(boolean value) { endInclusive_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional bool end_inclusive = 6; * @return This builder for chaining. */ public Builder clearEndInclusive() { bitField0_ = (bitField0_ & ~0x00000010); endInclusive_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringList startPostfixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStartPostfixValueIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { startPostfixValue_ = new com.google.protobuf.LazyStringArrayList(startPostfixValue_); bitField0_ |= 0x00000020; } } /** *
         * Merge join postfix constraints
         * 
* * repeated string start_postfix_value = 22; * @return A list containing the startPostfixValue. */ public com.google.protobuf.ProtocolStringList getStartPostfixValueList() { return startPostfixValue_.getUnmodifiableView(); } /** *
         * Merge join postfix constraints
         * 
* * repeated string start_postfix_value = 22; * @return The count of startPostfixValue. */ public int getStartPostfixValueCount() { return startPostfixValue_.size(); } /** *
         * Merge join postfix constraints
         * 
* * repeated string start_postfix_value = 22; * @param index The index of the element to return. * @return The startPostfixValue at the given index. */ public java.lang.String getStartPostfixValue(int index) { return startPostfixValue_.get(index); } /** *
         * Merge join postfix constraints
         * 
* * repeated string start_postfix_value = 22; * @param index The index of the value to return. * @return The bytes of the startPostfixValue at the given index. */ public com.google.protobuf.ByteString getStartPostfixValueBytes(int index) { return startPostfixValue_.getByteString(index); } /** *
         * Merge join postfix constraints
         * 
* * repeated string start_postfix_value = 22; * @param index The index to set the value at. * @param value The startPostfixValue to set. * @return This builder for chaining. */ public Builder setStartPostfixValue( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStartPostfixValueIsMutable(); startPostfixValue_.set(index, value); onChanged(); return this; } /** *
         * Merge join postfix constraints
         * 
* * repeated string start_postfix_value = 22; * @param value The startPostfixValue to add. * @return This builder for chaining. */ public Builder addStartPostfixValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStartPostfixValueIsMutable(); startPostfixValue_.add(value); onChanged(); return this; } /** *
         * Merge join postfix constraints
         * 
* * repeated string start_postfix_value = 22; * @param values The startPostfixValue to add. * @return This builder for chaining. */ public Builder addAllStartPostfixValue( java.lang.Iterable values) { ensureStartPostfixValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, startPostfixValue_); onChanged(); return this; } /** *
         * Merge join postfix constraints
         * 
* * repeated string start_postfix_value = 22; * @return This builder for chaining. */ public Builder clearStartPostfixValue() { startPostfixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
         * Merge join postfix constraints
         * 
* * repeated string start_postfix_value = 22; * @param value The bytes of the startPostfixValue to add. * @return This builder for chaining. */ public Builder addStartPostfixValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureStartPostfixValueIsMutable(); startPostfixValue_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList endPostfixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEndPostfixValueIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { endPostfixValue_ = new com.google.protobuf.LazyStringArrayList(endPostfixValue_); bitField0_ |= 0x00000040; } } /** *
         * May contain arbitrary bytes.
         * 
* * repeated string end_postfix_value = 23; * @return A list containing the endPostfixValue. */ public com.google.protobuf.ProtocolStringList getEndPostfixValueList() { return endPostfixValue_.getUnmodifiableView(); } /** *
         * May contain arbitrary bytes.
         * 
* * repeated string end_postfix_value = 23; * @return The count of endPostfixValue. */ public int getEndPostfixValueCount() { return endPostfixValue_.size(); } /** *
         * May contain arbitrary bytes.
         * 
* * repeated string end_postfix_value = 23; * @param index The index of the element to return. * @return The endPostfixValue at the given index. */ public java.lang.String getEndPostfixValue(int index) { return endPostfixValue_.get(index); } /** *
         * May contain arbitrary bytes.
         * 
* * repeated string end_postfix_value = 23; * @param index The index of the value to return. * @return The bytes of the endPostfixValue at the given index. */ public com.google.protobuf.ByteString getEndPostfixValueBytes(int index) { return endPostfixValue_.getByteString(index); } /** *
         * May contain arbitrary bytes.
         * 
* * repeated string end_postfix_value = 23; * @param index The index to set the value at. * @param value The endPostfixValue to set. * @return This builder for chaining. */ public Builder setEndPostfixValue( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEndPostfixValueIsMutable(); endPostfixValue_.set(index, value); onChanged(); return this; } /** *
         * May contain arbitrary bytes.
         * 
* * repeated string end_postfix_value = 23; * @param value The endPostfixValue to add. * @return This builder for chaining. */ public Builder addEndPostfixValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEndPostfixValueIsMutable(); endPostfixValue_.add(value); onChanged(); return this; } /** *
         * May contain arbitrary bytes.
         * 
* * repeated string end_postfix_value = 23; * @param values The endPostfixValue to add. * @return This builder for chaining. */ public Builder addAllEndPostfixValue( java.lang.Iterable values) { ensureEndPostfixValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, endPostfixValue_); onChanged(); return this; } /** *
         * May contain arbitrary bytes.
         * 
* * repeated string end_postfix_value = 23; * @return This builder for chaining. */ public Builder clearEndPostfixValue() { endPostfixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
         * May contain arbitrary bytes.
         * 
* * repeated string end_postfix_value = 23; * @param value The bytes of the endPostfixValue to add. * @return This builder for chaining. */ public Builder addEndPostfixValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureEndPostfixValueIsMutable(); endPostfixValue_.add(value); onChanged(); return this; } private long endUnappliedLogTimestampUs_ ; /** *
         * This field is set for a special groomer query only. It sets the maximum
         * timestamp of an unfinished transaction.
         * 
* * optional int64 end_unapplied_log_timestamp_us = 19; * @return Whether the endUnappliedLogTimestampUs field is set. */ @java.lang.Override public boolean hasEndUnappliedLogTimestampUs() { return ((bitField0_ & 0x00000080) != 0); } /** *
         * This field is set for a special groomer query only. It sets the maximum
         * timestamp of an unfinished transaction.
         * 
* * optional int64 end_unapplied_log_timestamp_us = 19; * @return The endUnappliedLogTimestampUs. */ @java.lang.Override public long getEndUnappliedLogTimestampUs() { return endUnappliedLogTimestampUs_; } /** *
         * This field is set for a special groomer query only. It sets the maximum
         * timestamp of an unfinished transaction.
         * 
* * optional int64 end_unapplied_log_timestamp_us = 19; * @param value The endUnappliedLogTimestampUs to set. * @return This builder for chaining. */ public Builder setEndUnappliedLogTimestampUs(long value) { endUnappliedLogTimestampUs_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
         * This field is set for a special groomer query only. It sets the maximum
         * timestamp of an unfinished transaction.
         * 
* * optional int64 end_unapplied_log_timestamp_us = 19; * @return This builder for chaining. */ public Builder clearEndUnappliedLogTimestampUs() { bitField0_ = (bitField0_ & ~0x00000080); endUnappliedLogTimestampUs_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.CompiledQuery.PrimaryScan) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CompiledQuery.PrimaryScan) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PrimaryScan parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MergeJoinScanOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CompiledQuery.MergeJoinScan) com.google.protobuf.MessageOrBuilder { /** *
       * These scans must be on a secondary index (as primary index scans should
       * be merged into the primary scan).
       * 
* * required string index_name = 8; * @return Whether the indexName field is set. */ boolean hasIndexName(); /** *
       * These scans must be on a secondary index (as primary index scans should
       * be merged into the primary scan).
       * 
* * required string index_name = 8; * @return The indexName. */ java.lang.String getIndexName(); /** *
       * These scans must be on a secondary index (as primary index scans should
       * be merged into the primary scan).
       * 
* * required string index_name = 8; * @return The bytes for indexName. */ com.google.protobuf.ByteString getIndexNameBytes(); /** *
       * NOTE: prefix values must be stored separately and are
       * encoded/decoded by the associated megastore property type. This is
       * needed as only a fully specified key can be split into its individual
       * values through Key.getValue().
       * 
* * repeated string prefix_value = 9; * @return A list containing the prefixValue. */ java.util.List getPrefixValueList(); /** *
       * NOTE: prefix values must be stored separately and are
       * encoded/decoded by the associated megastore property type. This is
       * needed as only a fully specified key can be split into its individual
       * values through Key.getValue().
       * 
* * repeated string prefix_value = 9; * @return The count of prefixValue. */ int getPrefixValueCount(); /** *
       * NOTE: prefix values must be stored separately and are
       * encoded/decoded by the associated megastore property type. This is
       * needed as only a fully specified key can be split into its individual
       * values through Key.getValue().
       * 
* * repeated string prefix_value = 9; * @param index The index of the element to return. * @return The prefixValue at the given index. */ java.lang.String getPrefixValue(int index); /** *
       * NOTE: prefix values must be stored separately and are
       * encoded/decoded by the associated megastore property type. This is
       * needed as only a fully specified key can be split into its individual
       * values through Key.getValue().
       * 
* * repeated string prefix_value = 9; * @param index The index of the value to return. * @return The bytes of the prefixValue at the given index. */ com.google.protobuf.ByteString getPrefixValueBytes(int index); /** *
       * If the specified prefix is a value prefix (last component is a prefix of
       * the value for that field).
       * 
* * optional bool value_prefix = 20 [default = false]; * @return Whether the valuePrefix field is set. */ boolean hasValuePrefix(); /** *
       * If the specified prefix is a value prefix (last component is a prefix of
       * the value for that field).
       * 
* * optional bool value_prefix = 20 [default = false]; * @return The valuePrefix. */ boolean getValuePrefix(); } /** *
     * The constraints imposed through a merge join.
     * NOTE: MergeJoin queries require at least two merge join scans
     * If only one is specified an error is thrown as a primary scan can satisfy
     * the request.
     * 
* * Protobuf type {@code apphosting_datastore_v3.CompiledQuery.MergeJoinScan} */ public static final class MergeJoinScan extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CompiledQuery.MergeJoinScan) MergeJoinScanOrBuilder { private static final long serialVersionUID = 0L; // Use MergeJoinScan.newBuilder() to construct. private MergeJoinScan(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MergeJoinScan() { indexName_ = ""; prefixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MergeJoinScan(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_MergeJoinScan_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_MergeJoinScan_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder.class); } private int bitField0_; public static final int INDEX_NAME_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object indexName_ = ""; /** *
       * These scans must be on a secondary index (as primary index scans should
       * be merged into the primary scan).
       * 
* * required string index_name = 8; * @return Whether the indexName field is set. */ @java.lang.Override public boolean hasIndexName() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * These scans must be on a secondary index (as primary index scans should
       * be merged into the primary scan).
       * 
* * required string index_name = 8; * @return The indexName. */ @java.lang.Override public java.lang.String getIndexName() { java.lang.Object ref = indexName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { indexName_ = s; } return s; } } /** *
       * These scans must be on a secondary index (as primary index scans should
       * be merged into the primary scan).
       * 
* * required string index_name = 8; * @return The bytes for indexName. */ @java.lang.Override public com.google.protobuf.ByteString getIndexNameBytes() { java.lang.Object ref = indexName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); indexName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PREFIX_VALUE_FIELD_NUMBER = 9; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList prefixValue_; /** *
       * NOTE: prefix values must be stored separately and are
       * encoded/decoded by the associated megastore property type. This is
       * needed as only a fully specified key can be split into its individual
       * values through Key.getValue().
       * 
* * repeated string prefix_value = 9; * @return A list containing the prefixValue. */ public com.google.protobuf.ProtocolStringList getPrefixValueList() { return prefixValue_; } /** *
       * NOTE: prefix values must be stored separately and are
       * encoded/decoded by the associated megastore property type. This is
       * needed as only a fully specified key can be split into its individual
       * values through Key.getValue().
       * 
* * repeated string prefix_value = 9; * @return The count of prefixValue. */ public int getPrefixValueCount() { return prefixValue_.size(); } /** *
       * NOTE: prefix values must be stored separately and are
       * encoded/decoded by the associated megastore property type. This is
       * needed as only a fully specified key can be split into its individual
       * values through Key.getValue().
       * 
* * repeated string prefix_value = 9; * @param index The index of the element to return. * @return The prefixValue at the given index. */ public java.lang.String getPrefixValue(int index) { return prefixValue_.get(index); } /** *
       * NOTE: prefix values must be stored separately and are
       * encoded/decoded by the associated megastore property type. This is
       * needed as only a fully specified key can be split into its individual
       * values through Key.getValue().
       * 
* * repeated string prefix_value = 9; * @param index The index of the value to return. * @return The bytes of the prefixValue at the given index. */ public com.google.protobuf.ByteString getPrefixValueBytes(int index) { return prefixValue_.getByteString(index); } public static final int VALUE_PREFIX_FIELD_NUMBER = 20; private boolean valuePrefix_ = false; /** *
       * If the specified prefix is a value prefix (last component is a prefix of
       * the value for that field).
       * 
* * optional bool value_prefix = 20 [default = false]; * @return Whether the valuePrefix field is set. */ @java.lang.Override public boolean hasValuePrefix() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * If the specified prefix is a value prefix (last component is a prefix of
       * the value for that field).
       * 
* * optional bool value_prefix = 20 [default = false]; * @return The valuePrefix. */ @java.lang.Override public boolean getValuePrefix() { return valuePrefix_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasIndexName()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, indexName_); } for (int i = 0; i < prefixValue_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, prefixValue_.getRaw(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(20, valuePrefix_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, indexName_); } { int dataSize = 0; for (int i = 0; i < prefixValue_.size(); i++) { dataSize += computeStringSizeNoTag(prefixValue_.getRaw(i)); } size += dataSize; size += 1 * getPrefixValueList().size(); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(20, valuePrefix_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan) obj; if (hasIndexName() != other.hasIndexName()) return false; if (hasIndexName()) { if (!getIndexName() .equals(other.getIndexName())) return false; } if (!getPrefixValueList() .equals(other.getPrefixValueList())) return false; if (hasValuePrefix() != other.hasValuePrefix()) return false; if (hasValuePrefix()) { if (getValuePrefix() != other.getValuePrefix()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasIndexName()) { hash = (37 * hash) + INDEX_NAME_FIELD_NUMBER; hash = (53 * hash) + getIndexName().hashCode(); } if (getPrefixValueCount() > 0) { hash = (37 * hash) + PREFIX_VALUE_FIELD_NUMBER; hash = (53 * hash) + getPrefixValueList().hashCode(); } if (hasValuePrefix()) { hash = (37 * hash) + VALUE_PREFIX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getValuePrefix()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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 constraints imposed through a merge join.
       * NOTE: MergeJoin queries require at least two merge join scans
       * If only one is specified an error is thrown as a primary scan can satisfy
       * the request.
       * 
* * Protobuf type {@code apphosting_datastore_v3.CompiledQuery.MergeJoinScan} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CompiledQuery.MergeJoinScan) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScanOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_MergeJoinScan_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_MergeJoinScan_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; indexName_ = ""; prefixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); valuePrefix_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_MergeJoinScan_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan result) { if (((bitField0_ & 0x00000002) != 0)) { prefixValue_ = prefixValue_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.prefixValue_ = prefixValue_; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.indexName_ = indexName_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.valuePrefix_ = valuePrefix_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.getDefaultInstance()) return this; if (other.hasIndexName()) { indexName_ = other.indexName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.prefixValue_.isEmpty()) { if (prefixValue_.isEmpty()) { prefixValue_ = other.prefixValue_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePrefixValueIsMutable(); prefixValue_.addAll(other.prefixValue_); } onChanged(); } if (other.hasValuePrefix()) { setValuePrefix(other.getValuePrefix()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasIndexName()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 66: { indexName_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 66 case 74: { com.google.protobuf.ByteString bs = input.readBytes(); ensurePrefixValueIsMutable(); prefixValue_.add(bs); break; } // case 74 case 160: { valuePrefix_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 160 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object indexName_ = ""; /** *
         * These scans must be on a secondary index (as primary index scans should
         * be merged into the primary scan).
         * 
* * required string index_name = 8; * @return Whether the indexName field is set. */ public boolean hasIndexName() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * These scans must be on a secondary index (as primary index scans should
         * be merged into the primary scan).
         * 
* * required string index_name = 8; * @return The indexName. */ public java.lang.String getIndexName() { java.lang.Object ref = indexName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { indexName_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * These scans must be on a secondary index (as primary index scans should
         * be merged into the primary scan).
         * 
* * required string index_name = 8; * @return The bytes for indexName. */ public com.google.protobuf.ByteString getIndexNameBytes() { java.lang.Object ref = indexName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); indexName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * These scans must be on a secondary index (as primary index scans should
         * be merged into the primary scan).
         * 
* * required string index_name = 8; * @param value The indexName to set. * @return This builder for chaining. */ public Builder setIndexName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } indexName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * These scans must be on a secondary index (as primary index scans should
         * be merged into the primary scan).
         * 
* * required string index_name = 8; * @return This builder for chaining. */ public Builder clearIndexName() { indexName_ = getDefaultInstance().getIndexName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * These scans must be on a secondary index (as primary index scans should
         * be merged into the primary scan).
         * 
* * required string index_name = 8; * @param value The bytes for indexName to set. * @return This builder for chaining. */ public Builder setIndexNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } indexName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringList prefixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePrefixValueIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { prefixValue_ = new com.google.protobuf.LazyStringArrayList(prefixValue_); bitField0_ |= 0x00000002; } } /** *
         * NOTE: prefix values must be stored separately and are
         * encoded/decoded by the associated megastore property type. This is
         * needed as only a fully specified key can be split into its individual
         * values through Key.getValue().
         * 
* * repeated string prefix_value = 9; * @return A list containing the prefixValue. */ public com.google.protobuf.ProtocolStringList getPrefixValueList() { return prefixValue_.getUnmodifiableView(); } /** *
         * NOTE: prefix values must be stored separately and are
         * encoded/decoded by the associated megastore property type. This is
         * needed as only a fully specified key can be split into its individual
         * values through Key.getValue().
         * 
* * repeated string prefix_value = 9; * @return The count of prefixValue. */ public int getPrefixValueCount() { return prefixValue_.size(); } /** *
         * NOTE: prefix values must be stored separately and are
         * encoded/decoded by the associated megastore property type. This is
         * needed as only a fully specified key can be split into its individual
         * values through Key.getValue().
         * 
* * repeated string prefix_value = 9; * @param index The index of the element to return. * @return The prefixValue at the given index. */ public java.lang.String getPrefixValue(int index) { return prefixValue_.get(index); } /** *
         * NOTE: prefix values must be stored separately and are
         * encoded/decoded by the associated megastore property type. This is
         * needed as only a fully specified key can be split into its individual
         * values through Key.getValue().
         * 
* * repeated string prefix_value = 9; * @param index The index of the value to return. * @return The bytes of the prefixValue at the given index. */ public com.google.protobuf.ByteString getPrefixValueBytes(int index) { return prefixValue_.getByteString(index); } /** *
         * NOTE: prefix values must be stored separately and are
         * encoded/decoded by the associated megastore property type. This is
         * needed as only a fully specified key can be split into its individual
         * values through Key.getValue().
         * 
* * repeated string prefix_value = 9; * @param index The index to set the value at. * @param value The prefixValue to set. * @return This builder for chaining. */ public Builder setPrefixValue( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePrefixValueIsMutable(); prefixValue_.set(index, value); onChanged(); return this; } /** *
         * NOTE: prefix values must be stored separately and are
         * encoded/decoded by the associated megastore property type. This is
         * needed as only a fully specified key can be split into its individual
         * values through Key.getValue().
         * 
* * repeated string prefix_value = 9; * @param value The prefixValue to add. * @return This builder for chaining. */ public Builder addPrefixValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePrefixValueIsMutable(); prefixValue_.add(value); onChanged(); return this; } /** *
         * NOTE: prefix values must be stored separately and are
         * encoded/decoded by the associated megastore property type. This is
         * needed as only a fully specified key can be split into its individual
         * values through Key.getValue().
         * 
* * repeated string prefix_value = 9; * @param values The prefixValue to add. * @return This builder for chaining. */ public Builder addAllPrefixValue( java.lang.Iterable values) { ensurePrefixValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, prefixValue_); onChanged(); return this; } /** *
         * NOTE: prefix values must be stored separately and are
         * encoded/decoded by the associated megastore property type. This is
         * needed as only a fully specified key can be split into its individual
         * values through Key.getValue().
         * 
* * repeated string prefix_value = 9; * @return This builder for chaining. */ public Builder clearPrefixValue() { prefixValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
         * NOTE: prefix values must be stored separately and are
         * encoded/decoded by the associated megastore property type. This is
         * needed as only a fully specified key can be split into its individual
         * values through Key.getValue().
         * 
* * repeated string prefix_value = 9; * @param value The bytes of the prefixValue to add. * @return This builder for chaining. */ public Builder addPrefixValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePrefixValueIsMutable(); prefixValue_.add(value); onChanged(); return this; } private boolean valuePrefix_ ; /** *
         * If the specified prefix is a value prefix (last component is a prefix of
         * the value for that field).
         * 
* * optional bool value_prefix = 20 [default = false]; * @return Whether the valuePrefix field is set. */ @java.lang.Override public boolean hasValuePrefix() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * If the specified prefix is a value prefix (last component is a prefix of
         * the value for that field).
         * 
* * optional bool value_prefix = 20 [default = false]; * @return The valuePrefix. */ @java.lang.Override public boolean getValuePrefix() { return valuePrefix_; } /** *
         * If the specified prefix is a value prefix (last component is a prefix of
         * the value for that field).
         * 
* * optional bool value_prefix = 20 [default = false]; * @param value The valuePrefix to set. * @return This builder for chaining. */ public Builder setValuePrefix(boolean value) { valuePrefix_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * If the specified prefix is a value prefix (last component is a prefix of
         * the value for that field).
         * 
* * optional bool value_prefix = 20 [default = false]; * @return This builder for chaining. */ public Builder clearValuePrefix() { bitField0_ = (bitField0_ & ~0x00000004); valuePrefix_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.CompiledQuery.MergeJoinScan) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CompiledQuery.MergeJoinScan) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MergeJoinScan parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EntityFilterOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CompiledQuery.EntityFilter) com.google.protobuf.MessageOrBuilder { /** * optional bool distinct = 14 [default = false]; * @return Whether the distinct field is set. */ boolean hasDistinct(); /** * optional bool distinct = 14 [default = false]; * @return The distinct. */ boolean getDistinct(); /** * optional string kind = 17; * @return Whether the kind field is set. */ boolean hasKind(); /** * optional string kind = 17; * @return The kind. */ java.lang.String getKind(); /** * optional string kind = 17; * @return The bytes for kind. */ com.google.protobuf.ByteString getKindBytes(); /** * optional .storage_onestore_v3.Reference ancestor = 18; * @return Whether the ancestor field is set. */ boolean hasAncestor(); /** * optional .storage_onestore_v3.Reference ancestor = 18; * @return The ancestor. */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getAncestor(); /** * optional .storage_onestore_v3.Reference ancestor = 18; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getAncestorOrBuilder(); } /** *
     * In memory entity filters that must be re-applied (this can be needed even
     * on perfect plans).
     * 
* * Protobuf type {@code apphosting_datastore_v3.CompiledQuery.EntityFilter} */ public static final class EntityFilter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CompiledQuery.EntityFilter) EntityFilterOrBuilder { private static final long serialVersionUID = 0L; // Use EntityFilter.newBuilder() to construct. private EntityFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EntityFilter() { kind_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EntityFilter(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_EntityFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_EntityFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.Builder.class); } private int bitField0_; public static final int DISTINCT_FIELD_NUMBER = 14; private boolean distinct_ = false; /** * optional bool distinct = 14 [default = false]; * @return Whether the distinct field is set. */ @java.lang.Override public boolean hasDistinct() { return ((bitField0_ & 0x00000001) != 0); } /** * optional bool distinct = 14 [default = false]; * @return The distinct. */ @java.lang.Override public boolean getDistinct() { return distinct_; } public static final int KIND_FIELD_NUMBER = 17; @SuppressWarnings("serial") private volatile java.lang.Object kind_ = ""; /** * optional string kind = 17; * @return Whether the kind field is set. */ @java.lang.Override public boolean hasKind() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string kind = 17; * @return The kind. */ @java.lang.Override public java.lang.String getKind() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { kind_ = s; } return s; } } /** * optional string kind = 17; * @return The bytes for kind. */ @java.lang.Override public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ANCESTOR_FIELD_NUMBER = 18; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference ancestor_; /** * optional .storage_onestore_v3.Reference ancestor = 18; * @return Whether the ancestor field is set. */ @java.lang.Override public boolean hasAncestor() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .storage_onestore_v3.Reference ancestor = 18; * @return The ancestor. */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getAncestor() { return ancestor_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : ancestor_; } /** * optional .storage_onestore_v3.Reference ancestor = 18; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getAncestorOrBuilder() { return ancestor_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : ancestor_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasAncestor()) { if (!getAncestor().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(14, distinct_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, kind_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(18, getAncestor()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, distinct_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, kind_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getAncestor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter) obj; if (hasDistinct() != other.hasDistinct()) return false; if (hasDistinct()) { if (getDistinct() != other.getDistinct()) return false; } if (hasKind() != other.hasKind()) return false; if (hasKind()) { if (!getKind() .equals(other.getKind())) return false; } if (hasAncestor() != other.hasAncestor()) return false; if (hasAncestor()) { if (!getAncestor() .equals(other.getAncestor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDistinct()) { hash = (37 * hash) + DISTINCT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDistinct()); } if (hasKind()) { hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); } if (hasAncestor()) { hash = (37 * hash) + ANCESTOR_FIELD_NUMBER; hash = (53 * hash) + getAncestor().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
       * In memory entity filters that must be re-applied (this can be needed even
       * on perfect plans).
       * 
* * Protobuf type {@code apphosting_datastore_v3.CompiledQuery.EntityFilter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CompiledQuery.EntityFilter) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_EntityFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_EntityFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAncestorFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; distinct_ = false; kind_ = ""; ancestor_ = null; if (ancestorBuilder_ != null) { ancestorBuilder_.dispose(); ancestorBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_EntityFilter_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.distinct_ = distinct_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.kind_ = kind_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.ancestor_ = ancestorBuilder_ == null ? ancestor_ : ancestorBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.getDefaultInstance()) return this; if (other.hasDistinct()) { setDistinct(other.getDistinct()); } if (other.hasKind()) { kind_ = other.kind_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasAncestor()) { mergeAncestor(other.getAncestor()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasAncestor()) { if (!getAncestor().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 112: { distinct_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 112 case 138: { kind_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 138 case 146: { input.readMessage( getAncestorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private boolean distinct_ ; /** * optional bool distinct = 14 [default = false]; * @return Whether the distinct field is set. */ @java.lang.Override public boolean hasDistinct() { return ((bitField0_ & 0x00000001) != 0); } /** * optional bool distinct = 14 [default = false]; * @return The distinct. */ @java.lang.Override public boolean getDistinct() { return distinct_; } /** * optional bool distinct = 14 [default = false]; * @param value The distinct to set. * @return This builder for chaining. */ public Builder setDistinct(boolean value) { distinct_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional bool distinct = 14 [default = false]; * @return This builder for chaining. */ public Builder clearDistinct() { bitField0_ = (bitField0_ & ~0x00000001); distinct_ = false; onChanged(); return this; } private java.lang.Object kind_ = ""; /** * optional string kind = 17; * @return Whether the kind field is set. */ public boolean hasKind() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string kind = 17; * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { kind_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string kind = 17; * @return The bytes for kind. */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string kind = 17; * @param value The kind to set. * @return This builder for chaining. */ public Builder setKind( java.lang.String value) { if (value == null) { throw new NullPointerException(); } kind_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string kind = 17; * @return This builder for chaining. */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string kind = 17; * @param value The bytes for kind to set. * @return This builder for chaining. */ public Builder setKindBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } kind_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference ancestor_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> ancestorBuilder_; /** * optional .storage_onestore_v3.Reference ancestor = 18; * @return Whether the ancestor field is set. */ public boolean hasAncestor() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .storage_onestore_v3.Reference ancestor = 18; * @return The ancestor. */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getAncestor() { if (ancestorBuilder_ == null) { return ancestor_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : ancestor_; } else { return ancestorBuilder_.getMessage(); } } /** * optional .storage_onestore_v3.Reference ancestor = 18; */ public Builder setAncestor(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (ancestorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ancestor_ = value; } else { ancestorBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .storage_onestore_v3.Reference ancestor = 18; */ public Builder setAncestor( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (ancestorBuilder_ == null) { ancestor_ = builderForValue.build(); } else { ancestorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .storage_onestore_v3.Reference ancestor = 18; */ public Builder mergeAncestor(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (ancestorBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && ancestor_ != null && ancestor_ != com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()) { getAncestorBuilder().mergeFrom(value); } else { ancestor_ = value; } } else { ancestorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .storage_onestore_v3.Reference ancestor = 18; */ public Builder clearAncestor() { bitField0_ = (bitField0_ & ~0x00000004); ancestor_ = null; if (ancestorBuilder_ != null) { ancestorBuilder_.dispose(); ancestorBuilder_ = null; } onChanged(); return this; } /** * optional .storage_onestore_v3.Reference ancestor = 18; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder getAncestorBuilder() { bitField0_ |= 0x00000004; onChanged(); return getAncestorFieldBuilder().getBuilder(); } /** * optional .storage_onestore_v3.Reference ancestor = 18; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getAncestorOrBuilder() { if (ancestorBuilder_ != null) { return ancestorBuilder_.getMessageOrBuilder(); } else { return ancestor_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : ancestor_; } } /** * optional .storage_onestore_v3.Reference ancestor = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> getAncestorFieldBuilder() { if (ancestorBuilder_ == null) { ancestorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>( getAncestor(), getParentForChildren(), isClean()); ancestor_ = null; } return ancestorBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.CompiledQuery.EntityFilter) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CompiledQuery.EntityFilter) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EntityFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int PRIMARYSCAN_FIELD_NUMBER = 1; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan primaryScan_; /** * required group PrimaryScan = 1 { ... } * @return Whether the primaryscan field is set. */ @java.lang.Override public boolean hasPrimaryScan() { return ((bitField0_ & 0x00000001) != 0); } /** * required group PrimaryScan = 1 { ... } * @return The primaryscan. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan getPrimaryScan() { return primaryScan_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.getDefaultInstance() : primaryScan_; } /** * required group PrimaryScan = 1 { ... } */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScanOrBuilder getPrimaryScanOrBuilder() { return primaryScan_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.getDefaultInstance() : primaryScan_; } public static final int MERGEJOINSCAN_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List mergeJoinScan_; /** * repeated group MergeJoinScan = 7 { ... } */ @java.lang.Override public java.util.List getMergeJoinScanList() { return mergeJoinScan_; } /** * repeated group MergeJoinScan = 7 { ... } */ @java.lang.Override public java.util.List getMergeJoinScanOrBuilderList() { return mergeJoinScan_; } /** * repeated group MergeJoinScan = 7 { ... } */ @java.lang.Override public int getMergeJoinScanCount() { return mergeJoinScan_.size(); } /** * repeated group MergeJoinScan = 7 { ... } */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan getMergeJoinScan(int index) { return mergeJoinScan_.get(index); } /** * repeated group MergeJoinScan = 7 { ... } */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScanOrBuilder getMergeJoinScanOrBuilder( int index) { return mergeJoinScan_.get(index); } public static final int INDEX_DEF_FIELD_NUMBER = 21; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index indexDef_; /** *
     * The index definition to use when decoding the composite index data for a
     * result. Only set for scans on a composite index
     * 
* * optional .storage_onestore_v3.Index index_def = 21; * @return Whether the indexDef field is set. */ @java.lang.Override public boolean hasIndexDef() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The index definition to use when decoding the composite index data for a
     * result. Only set for scans on a composite index
     * 
* * optional .storage_onestore_v3.Index index_def = 21; * @return The indexDef. */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index getIndexDef() { return indexDef_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index.getDefaultInstance() : indexDef_; } /** *
     * The index definition to use when decoding the composite index data for a
     * result. Only set for scans on a composite index
     * 
* * optional .storage_onestore_v3.Index index_def = 21; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexOrBuilder getIndexDefOrBuilder() { return indexDef_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index.getDefaultInstance() : indexDef_; } public static final int OFFSET_FIELD_NUMBER = 10; private int offset_ = 0; /** *
     * the native or in memory offset associated with this query
     * 
* * optional int32 offset = 10 [default = 0]; * @return Whether the offset field is set. */ @java.lang.Override public boolean hasOffset() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * the native or in memory offset associated with this query
     * 
* * optional int32 offset = 10 [default = 0]; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } public static final int LIMIT_FIELD_NUMBER = 11; private int limit_ = 0; /** *
     * the native or in memory limit associated with this query
     * 
* * optional int32 limit = 11; * @return Whether the limit field is set. */ @java.lang.Override public boolean hasLimit() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * the native or in memory limit associated with this query
     * 
* * optional int32 limit = 11; * @return The limit. */ @java.lang.Override public int getLimit() { return limit_; } public static final int KEYS_ONLY_FIELD_NUMBER = 12; private boolean keysOnly_ = false; /** *
     * if true, only return keys. See Query.keys_only for discussion.
     * 
* * required bool keys_only = 12; * @return Whether the keysOnly field is set. */ @java.lang.Override public boolean hasKeysOnly() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * if true, only return keys. See Query.keys_only for discussion.
     * 
* * required bool keys_only = 12; * @return The keysOnly. */ @java.lang.Override public boolean getKeysOnly() { return keysOnly_; } public static final int PROPERTY_NAME_FIELD_NUMBER = 24; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList propertyName_; /** *
     * see property_name on Query
     * 
* * repeated string property_name = 24; * @return A list containing the propertyName. */ public com.google.protobuf.ProtocolStringList getPropertyNameList() { return propertyName_; } /** *
     * see property_name on Query
     * 
* * repeated string property_name = 24; * @return The count of propertyName. */ public int getPropertyNameCount() { return propertyName_.size(); } /** *
     * see property_name on Query
     * 
* * repeated string property_name = 24; * @param index The index of the element to return. * @return The propertyName at the given index. */ public java.lang.String getPropertyName(int index) { return propertyName_.get(index); } /** *
     * see property_name on Query
     * 
* * repeated string property_name = 24; * @param index The index of the value to return. * @return The bytes of the propertyName at the given index. */ public com.google.protobuf.ByteString getPropertyNameBytes(int index) { return propertyName_.getByteString(index); } public static final int DISTINCT_INFIX_SIZE_FIELD_NUMBER = 25; private int distinctInfixSize_ = 0; /** *
     * the number of postfix properties that should be distinct
     * 
* * optional int32 distinct_infix_size = 25; * @return Whether the distinctInfixSize field is set. */ @java.lang.Override public boolean hasDistinctInfixSize() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * the number of postfix properties that should be distinct
     * 
* * optional int32 distinct_infix_size = 25; * @return The distinctInfixSize. */ @java.lang.Override public int getDistinctInfixSize() { return distinctInfixSize_; } public static final int KEY_PATH_LENGTH_FIELD_NUMBER = 27; private int keyPathLength_ = 0; /** *
     * the number of key path elements that results must have
     * 
* * optional int32 key_path_length = 27; * @return Whether the keyPathLength field is set. */ @java.lang.Override public boolean hasKeyPathLength() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * the number of key path elements that results must have
     * 
* * optional int32 key_path_length = 27; * @return The keyPathLength. */ @java.lang.Override public int getKeyPathLength() { return keyPathLength_; } public static final int ENTITYFILTER_FIELD_NUMBER = 13; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter entityFilter_; /** * optional group EntityFilter = 13 { ... } * @return Whether the entityfilter field is set. */ @java.lang.Override public boolean hasEntityFilter() { return ((bitField0_ & 0x00000080) != 0); } /** * optional group EntityFilter = 13 { ... } * @return The entityfilter. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter getEntityFilter() { return entityFilter_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.getDefaultInstance() : entityFilter_; } /** * optional group EntityFilter = 13 { ... } */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilterOrBuilder getEntityFilterOrBuilder() { return entityFilter_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.getDefaultInstance() : entityFilter_; } public static final int PLAN_LABEL_FIELD_NUMBER = 26; @SuppressWarnings("serial") private volatile java.lang.Object planLabel_ = ""; /** * optional string plan_label = 26; * @return Whether the planLabel field is set. */ @java.lang.Override public boolean hasPlanLabel() { return ((bitField0_ & 0x00000100) != 0); } /** * optional string plan_label = 26; * @return The planLabel. */ @java.lang.Override public java.lang.String getPlanLabel() { java.lang.Object ref = planLabel_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { planLabel_ = s; } return s; } } /** * optional string plan_label = 26; * @return The bytes for planLabel. */ @java.lang.Override public com.google.protobuf.ByteString getPlanLabelBytes() { java.lang.Object ref = planLabel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); planLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPrimaryScan()) { memoizedIsInitialized = 0; return false; } if (!hasKeysOnly()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getMergeJoinScanCount(); i++) { if (!getMergeJoinScan(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasIndexDef()) { if (!getIndexDef().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasEntityFilter()) { if (!getEntityFilter().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeGroup(1, getPrimaryScan()); } for (int i = 0; i < mergeJoinScan_.size(); i++) { output.writeGroup(7, mergeJoinScan_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(10, offset_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(11, limit_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(12, keysOnly_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeGroup(13, getEntityFilter()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(21, getIndexDef()); } for (int i = 0; i < propertyName_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 24, propertyName_.getRaw(i)); } if (((bitField0_ & 0x00000020) != 0)) { output.writeInt32(25, distinctInfixSize_); } if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, planLabel_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeInt32(27, keyPathLength_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(1, getPrimaryScan()); } for (int i = 0; i < mergeJoinScan_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(7, mergeJoinScan_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, offset_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, limit_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, keysOnly_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(13, getEntityFilter()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, getIndexDef()); } { int dataSize = 0; for (int i = 0; i < propertyName_.size(); i++) { dataSize += computeStringSizeNoTag(propertyName_.getRaw(i)); } size += dataSize; size += 2 * getPropertyNameList().size(); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(25, distinctInfixSize_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, planLabel_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(27, keyPathLength_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery) obj; if (hasPrimaryScan() != other.hasPrimaryScan()) return false; if (hasPrimaryScan()) { if (!getPrimaryScan() .equals(other.getPrimaryScan())) return false; } if (!getMergeJoinScanList() .equals(other.getMergeJoinScanList())) return false; if (hasIndexDef() != other.hasIndexDef()) return false; if (hasIndexDef()) { if (!getIndexDef() .equals(other.getIndexDef())) return false; } if (hasOffset() != other.hasOffset()) return false; if (hasOffset()) { if (getOffset() != other.getOffset()) return false; } if (hasLimit() != other.hasLimit()) return false; if (hasLimit()) { if (getLimit() != other.getLimit()) return false; } if (hasKeysOnly() != other.hasKeysOnly()) return false; if (hasKeysOnly()) { if (getKeysOnly() != other.getKeysOnly()) return false; } if (!getPropertyNameList() .equals(other.getPropertyNameList())) return false; if (hasDistinctInfixSize() != other.hasDistinctInfixSize()) return false; if (hasDistinctInfixSize()) { if (getDistinctInfixSize() != other.getDistinctInfixSize()) return false; } if (hasKeyPathLength() != other.hasKeyPathLength()) return false; if (hasKeyPathLength()) { if (getKeyPathLength() != other.getKeyPathLength()) return false; } if (hasEntityFilter() != other.hasEntityFilter()) return false; if (hasEntityFilter()) { if (!getEntityFilter() .equals(other.getEntityFilter())) return false; } if (hasPlanLabel() != other.hasPlanLabel()) return false; if (hasPlanLabel()) { if (!getPlanLabel() .equals(other.getPlanLabel())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPrimaryScan()) { hash = (37 * hash) + PRIMARYSCAN_FIELD_NUMBER; hash = (53 * hash) + getPrimaryScan().hashCode(); } if (getMergeJoinScanCount() > 0) { hash = (37 * hash) + MERGEJOINSCAN_FIELD_NUMBER; hash = (53 * hash) + getMergeJoinScanList().hashCode(); } if (hasIndexDef()) { hash = (37 * hash) + INDEX_DEF_FIELD_NUMBER; hash = (53 * hash) + getIndexDef().hashCode(); } if (hasOffset()) { hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset(); } if (hasLimit()) { hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); } if (hasKeysOnly()) { hash = (37 * hash) + KEYS_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getKeysOnly()); } if (getPropertyNameCount() > 0) { hash = (37 * hash) + PROPERTY_NAME_FIELD_NUMBER; hash = (53 * hash) + getPropertyNameList().hashCode(); } if (hasDistinctInfixSize()) { hash = (37 * hash) + DISTINCT_INFIX_SIZE_FIELD_NUMBER; hash = (53 * hash) + getDistinctInfixSize(); } if (hasKeyPathLength()) { hash = (37 * hash) + KEY_PATH_LENGTH_FIELD_NUMBER; hash = (53 * hash) + getKeyPathLength(); } if (hasEntityFilter()) { hash = (37 * hash) + ENTITYFILTER_FIELD_NUMBER; hash = (53 * hash) + getEntityFilter().hashCode(); } if (hasPlanLabel()) { hash = (37 * hash) + PLAN_LABEL_FIELD_NUMBER; hash = (53 * hash) + getPlanLabel().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * A query that has been compiled down into a set of bigtable scans.
     * NOTE: support for in memory filters is limited so most non-perfect
     * plans are not supported.
     * 
* * Protobuf type {@code apphosting_datastore_v3.CompiledQuery} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CompiledQuery) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQueryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPrimaryScanFieldBuilder(); getMergeJoinScanFieldBuilder(); getIndexDefFieldBuilder(); getEntityFilterFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; primaryScan_ = null; if (primaryScanBuilder_ != null) { primaryScanBuilder_.dispose(); primaryScanBuilder_ = null; } if (mergeJoinScanBuilder_ == null) { mergeJoinScan_ = java.util.Collections.emptyList(); } else { mergeJoinScan_ = null; mergeJoinScanBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); indexDef_ = null; if (indexDefBuilder_ != null) { indexDefBuilder_.dispose(); indexDefBuilder_ = null; } offset_ = 0; limit_ = 0; keysOnly_ = false; propertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); distinctInfixSize_ = 0; keyPathLength_ = 0; entityFilter_ = null; if (entityFilterBuilder_ != null) { entityFilterBuilder_.dispose(); entityFilterBuilder_ = null; } planLabel_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledQuery_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery result) { if (mergeJoinScanBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { mergeJoinScan_ = java.util.Collections.unmodifiableList(mergeJoinScan_); bitField0_ = (bitField0_ & ~0x00000002); } result.mergeJoinScan_ = mergeJoinScan_; } else { result.mergeJoinScan_ = mergeJoinScanBuilder_.build(); } if (((bitField0_ & 0x00000040) != 0)) { propertyName_ = propertyName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000040); } result.propertyName_ = propertyName_; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.primaryScan_ = primaryScanBuilder_ == null ? primaryScan_ : primaryScanBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.indexDef_ = indexDefBuilder_ == null ? indexDef_ : indexDefBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.offset_ = offset_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.limit_ = limit_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.keysOnly_ = keysOnly_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { result.distinctInfixSize_ = distinctInfixSize_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000100) != 0)) { result.keyPathLength_ = keyPathLength_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000200) != 0)) { result.entityFilter_ = entityFilterBuilder_ == null ? entityFilter_ : entityFilterBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000400) != 0)) { result.planLabel_ = planLabel_; to_bitField0_ |= 0x00000100; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.getDefaultInstance()) return this; if (other.hasPrimaryScan()) { mergePrimaryScan(other.getPrimaryScan()); } if (mergeJoinScanBuilder_ == null) { if (!other.mergeJoinScan_.isEmpty()) { if (mergeJoinScan_.isEmpty()) { mergeJoinScan_ = other.mergeJoinScan_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMergeJoinScanIsMutable(); mergeJoinScan_.addAll(other.mergeJoinScan_); } onChanged(); } } else { if (!other.mergeJoinScan_.isEmpty()) { if (mergeJoinScanBuilder_.isEmpty()) { mergeJoinScanBuilder_.dispose(); mergeJoinScanBuilder_ = null; mergeJoinScan_ = other.mergeJoinScan_; bitField0_ = (bitField0_ & ~0x00000002); mergeJoinScanBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMergeJoinScanFieldBuilder() : null; } else { mergeJoinScanBuilder_.addAllMessages(other.mergeJoinScan_); } } } if (other.hasIndexDef()) { mergeIndexDef(other.getIndexDef()); } if (other.hasOffset()) { setOffset(other.getOffset()); } if (other.hasLimit()) { setLimit(other.getLimit()); } if (other.hasKeysOnly()) { setKeysOnly(other.getKeysOnly()); } if (!other.propertyName_.isEmpty()) { if (propertyName_.isEmpty()) { propertyName_ = other.propertyName_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensurePropertyNameIsMutable(); propertyName_.addAll(other.propertyName_); } onChanged(); } if (other.hasDistinctInfixSize()) { setDistinctInfixSize(other.getDistinctInfixSize()); } if (other.hasKeyPathLength()) { setKeyPathLength(other.getKeyPathLength()); } if (other.hasEntityFilter()) { mergeEntityFilter(other.getEntityFilter()); } if (other.hasPlanLabel()) { planLabel_ = other.planLabel_; bitField0_ |= 0x00000400; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasPrimaryScan()) { return false; } if (!hasKeysOnly()) { return false; } for (int i = 0; i < getMergeJoinScanCount(); i++) { if (!getMergeJoinScan(i).isInitialized()) { return false; } } if (hasIndexDef()) { if (!getIndexDef().isInitialized()) { return false; } } if (hasEntityFilter()) { if (!getEntityFilter().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 11: { input.readGroup(1, getPrimaryScanFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 11 case 59: { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan m = input.readGroup(7, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.PARSER, extensionRegistry); if (mergeJoinScanBuilder_ == null) { ensureMergeJoinScanIsMutable(); mergeJoinScan_.add(m); } else { mergeJoinScanBuilder_.addMessage(m); } break; } // case 59 case 80: { offset_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 80 case 88: { limit_ = input.readInt32(); bitField0_ |= 0x00000010; break; } // case 88 case 96: { keysOnly_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 96 case 107: { input.readGroup(13, getEntityFilterFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 107 case 170: { input.readMessage( getIndexDefFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 170 case 194: { com.google.protobuf.ByteString bs = input.readBytes(); ensurePropertyNameIsMutable(); propertyName_.add(bs); break; } // case 194 case 200: { distinctInfixSize_ = input.readInt32(); bitField0_ |= 0x00000080; break; } // case 200 case 210: { planLabel_ = input.readBytes(); bitField0_ |= 0x00000400; break; } // case 210 case 216: { keyPathLength_ = input.readInt32(); bitField0_ |= 0x00000100; break; } // case 216 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan primaryScan_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScanOrBuilder> primaryScanBuilder_; /** * required group PrimaryScan = 1 { ... } * @return Whether the primaryscan field is set. */ public boolean hasPrimaryScan() { return ((bitField0_ & 0x00000001) != 0); } /** * required group PrimaryScan = 1 { ... } * @return The primaryscan. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan getPrimaryScan() { if (primaryScanBuilder_ == null) { return primaryScan_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.getDefaultInstance() : primaryScan_; } else { return primaryScanBuilder_.getMessage(); } } /** * required group PrimaryScan = 1 { ... } */ public Builder setPrimaryScan(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan value) { if (primaryScanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } primaryScan_ = value; } else { primaryScanBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required group PrimaryScan = 1 { ... } */ public Builder setPrimaryScan( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.Builder builderForValue) { if (primaryScanBuilder_ == null) { primaryScan_ = builderForValue.build(); } else { primaryScanBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required group PrimaryScan = 1 { ... } */ public Builder mergePrimaryScan(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan value) { if (primaryScanBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && primaryScan_ != null && primaryScan_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.getDefaultInstance()) { getPrimaryScanBuilder().mergeFrom(value); } else { primaryScan_ = value; } } else { primaryScanBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required group PrimaryScan = 1 { ... } */ public Builder clearPrimaryScan() { bitField0_ = (bitField0_ & ~0x00000001); primaryScan_ = null; if (primaryScanBuilder_ != null) { primaryScanBuilder_.dispose(); primaryScanBuilder_ = null; } onChanged(); return this; } /** * required group PrimaryScan = 1 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.Builder getPrimaryScanBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPrimaryScanFieldBuilder().getBuilder(); } /** * required group PrimaryScan = 1 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScanOrBuilder getPrimaryScanOrBuilder() { if (primaryScanBuilder_ != null) { return primaryScanBuilder_.getMessageOrBuilder(); } else { return primaryScan_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.getDefaultInstance() : primaryScan_; } } /** * required group PrimaryScan = 1 { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScanOrBuilder> getPrimaryScanFieldBuilder() { if (primaryScanBuilder_ == null) { primaryScanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScan.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.PrimaryScanOrBuilder>( getPrimaryScan(), getParentForChildren(), isClean()); primaryScan_ = null; } return primaryScanBuilder_; } private java.util.List mergeJoinScan_ = java.util.Collections.emptyList(); private void ensureMergeJoinScanIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { mergeJoinScan_ = new java.util.ArrayList(mergeJoinScan_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScanOrBuilder> mergeJoinScanBuilder_; /** * repeated group MergeJoinScan = 7 { ... } */ public java.util.List getMergeJoinScanList() { if (mergeJoinScanBuilder_ == null) { return java.util.Collections.unmodifiableList(mergeJoinScan_); } else { return mergeJoinScanBuilder_.getMessageList(); } } /** * repeated group MergeJoinScan = 7 { ... } */ public int getMergeJoinScanCount() { if (mergeJoinScanBuilder_ == null) { return mergeJoinScan_.size(); } else { return mergeJoinScanBuilder_.getCount(); } } /** * repeated group MergeJoinScan = 7 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan getMergeJoinScan(int index) { if (mergeJoinScanBuilder_ == null) { return mergeJoinScan_.get(index); } else { return mergeJoinScanBuilder_.getMessage(index); } } /** * repeated group MergeJoinScan = 7 { ... } */ public Builder setMergeJoinScan( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan value) { if (mergeJoinScanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMergeJoinScanIsMutable(); mergeJoinScan_.set(index, value); onChanged(); } else { mergeJoinScanBuilder_.setMessage(index, value); } return this; } /** * repeated group MergeJoinScan = 7 { ... } */ public Builder setMergeJoinScan( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder builderForValue) { if (mergeJoinScanBuilder_ == null) { ensureMergeJoinScanIsMutable(); mergeJoinScan_.set(index, builderForValue.build()); onChanged(); } else { mergeJoinScanBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated group MergeJoinScan = 7 { ... } */ public Builder addMergeJoinScan(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan value) { if (mergeJoinScanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMergeJoinScanIsMutable(); mergeJoinScan_.add(value); onChanged(); } else { mergeJoinScanBuilder_.addMessage(value); } return this; } /** * repeated group MergeJoinScan = 7 { ... } */ public Builder addMergeJoinScan( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan value) { if (mergeJoinScanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMergeJoinScanIsMutable(); mergeJoinScan_.add(index, value); onChanged(); } else { mergeJoinScanBuilder_.addMessage(index, value); } return this; } /** * repeated group MergeJoinScan = 7 { ... } */ public Builder addMergeJoinScan( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder builderForValue) { if (mergeJoinScanBuilder_ == null) { ensureMergeJoinScanIsMutable(); mergeJoinScan_.add(builderForValue.build()); onChanged(); } else { mergeJoinScanBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated group MergeJoinScan = 7 { ... } */ public Builder addMergeJoinScan( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder builderForValue) { if (mergeJoinScanBuilder_ == null) { ensureMergeJoinScanIsMutable(); mergeJoinScan_.add(index, builderForValue.build()); onChanged(); } else { mergeJoinScanBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated group MergeJoinScan = 7 { ... } */ public Builder addAllMergeJoinScan( java.lang.Iterable values) { if (mergeJoinScanBuilder_ == null) { ensureMergeJoinScanIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, mergeJoinScan_); onChanged(); } else { mergeJoinScanBuilder_.addAllMessages(values); } return this; } /** * repeated group MergeJoinScan = 7 { ... } */ public Builder clearMergeJoinScan() { if (mergeJoinScanBuilder_ == null) { mergeJoinScan_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { mergeJoinScanBuilder_.clear(); } return this; } /** * repeated group MergeJoinScan = 7 { ... } */ public Builder removeMergeJoinScan(int index) { if (mergeJoinScanBuilder_ == null) { ensureMergeJoinScanIsMutable(); mergeJoinScan_.remove(index); onChanged(); } else { mergeJoinScanBuilder_.remove(index); } return this; } /** * repeated group MergeJoinScan = 7 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder getMergeJoinScanBuilder( int index) { return getMergeJoinScanFieldBuilder().getBuilder(index); } /** * repeated group MergeJoinScan = 7 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScanOrBuilder getMergeJoinScanOrBuilder( int index) { if (mergeJoinScanBuilder_ == null) { return mergeJoinScan_.get(index); } else { return mergeJoinScanBuilder_.getMessageOrBuilder(index); } } /** * repeated group MergeJoinScan = 7 { ... } */ public java.util.List getMergeJoinScanOrBuilderList() { if (mergeJoinScanBuilder_ != null) { return mergeJoinScanBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(mergeJoinScan_); } } /** * repeated group MergeJoinScan = 7 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder addMergeJoinScanBuilder() { return getMergeJoinScanFieldBuilder().addBuilder( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.getDefaultInstance()); } /** * repeated group MergeJoinScan = 7 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder addMergeJoinScanBuilder( int index) { return getMergeJoinScanFieldBuilder().addBuilder( index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.getDefaultInstance()); } /** * repeated group MergeJoinScan = 7 { ... } */ public java.util.List getMergeJoinScanBuilderList() { return getMergeJoinScanFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScanOrBuilder> getMergeJoinScanFieldBuilder() { if (mergeJoinScanBuilder_ == null) { mergeJoinScanBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScan.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.MergeJoinScanOrBuilder>( mergeJoinScan_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); mergeJoinScan_ = null; } return mergeJoinScanBuilder_; } private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index indexDef_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexOrBuilder> indexDefBuilder_; /** *
       * The index definition to use when decoding the composite index data for a
       * result. Only set for scans on a composite index
       * 
* * optional .storage_onestore_v3.Index index_def = 21; * @return Whether the indexDef field is set. */ public boolean hasIndexDef() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * The index definition to use when decoding the composite index data for a
       * result. Only set for scans on a composite index
       * 
* * optional .storage_onestore_v3.Index index_def = 21; * @return The indexDef. */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index getIndexDef() { if (indexDefBuilder_ == null) { return indexDef_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index.getDefaultInstance() : indexDef_; } else { return indexDefBuilder_.getMessage(); } } /** *
       * The index definition to use when decoding the composite index data for a
       * result. Only set for scans on a composite index
       * 
* * optional .storage_onestore_v3.Index index_def = 21; */ public Builder setIndexDef(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index value) { if (indexDefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } indexDef_ = value; } else { indexDefBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The index definition to use when decoding the composite index data for a
       * result. Only set for scans on a composite index
       * 
* * optional .storage_onestore_v3.Index index_def = 21; */ public Builder setIndexDef( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index.Builder builderForValue) { if (indexDefBuilder_ == null) { indexDef_ = builderForValue.build(); } else { indexDefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The index definition to use when decoding the composite index data for a
       * result. Only set for scans on a composite index
       * 
* * optional .storage_onestore_v3.Index index_def = 21; */ public Builder mergeIndexDef(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index value) { if (indexDefBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && indexDef_ != null && indexDef_ != com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index.getDefaultInstance()) { getIndexDefBuilder().mergeFrom(value); } else { indexDef_ = value; } } else { indexDefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The index definition to use when decoding the composite index data for a
       * result. Only set for scans on a composite index
       * 
* * optional .storage_onestore_v3.Index index_def = 21; */ public Builder clearIndexDef() { bitField0_ = (bitField0_ & ~0x00000004); indexDef_ = null; if (indexDefBuilder_ != null) { indexDefBuilder_.dispose(); indexDefBuilder_ = null; } onChanged(); return this; } /** *
       * The index definition to use when decoding the composite index data for a
       * result. Only set for scans on a composite index
       * 
* * optional .storage_onestore_v3.Index index_def = 21; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index.Builder getIndexDefBuilder() { bitField0_ |= 0x00000004; onChanged(); return getIndexDefFieldBuilder().getBuilder(); } /** *
       * The index definition to use when decoding the composite index data for a
       * result. Only set for scans on a composite index
       * 
* * optional .storage_onestore_v3.Index index_def = 21; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexOrBuilder getIndexDefOrBuilder() { if (indexDefBuilder_ != null) { return indexDefBuilder_.getMessageOrBuilder(); } else { return indexDef_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index.getDefaultInstance() : indexDef_; } } /** *
       * The index definition to use when decoding the composite index data for a
       * result. Only set for scans on a composite index
       * 
* * optional .storage_onestore_v3.Index index_def = 21; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexOrBuilder> getIndexDefFieldBuilder() { if (indexDefBuilder_ == null) { indexDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Index.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexOrBuilder>( getIndexDef(), getParentForChildren(), isClean()); indexDef_ = null; } return indexDefBuilder_; } private int offset_ ; /** *
       * the native or in memory offset associated with this query
       * 
* * optional int32 offset = 10 [default = 0]; * @return Whether the offset field is set. */ @java.lang.Override public boolean hasOffset() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * the native or in memory offset associated with this query
       * 
* * optional int32 offset = 10 [default = 0]; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } /** *
       * the native or in memory offset associated with this query
       * 
* * optional int32 offset = 10 [default = 0]; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(int value) { offset_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * the native or in memory offset associated with this query
       * 
* * optional int32 offset = 10 [default = 0]; * @return This builder for chaining. */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000008); offset_ = 0; onChanged(); return this; } private int limit_ ; /** *
       * the native or in memory limit associated with this query
       * 
* * optional int32 limit = 11; * @return Whether the limit field is set. */ @java.lang.Override public boolean hasLimit() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * the native or in memory limit associated with this query
       * 
* * optional int32 limit = 11; * @return The limit. */ @java.lang.Override public int getLimit() { return limit_; } /** *
       * the native or in memory limit associated with this query
       * 
* * optional int32 limit = 11; * @param value The limit to set. * @return This builder for chaining. */ public Builder setLimit(int value) { limit_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * the native or in memory limit associated with this query
       * 
* * optional int32 limit = 11; * @return This builder for chaining. */ public Builder clearLimit() { bitField0_ = (bitField0_ & ~0x00000010); limit_ = 0; onChanged(); return this; } private boolean keysOnly_ ; /** *
       * if true, only return keys. See Query.keys_only for discussion.
       * 
* * required bool keys_only = 12; * @return Whether the keysOnly field is set. */ @java.lang.Override public boolean hasKeysOnly() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * if true, only return keys. See Query.keys_only for discussion.
       * 
* * required bool keys_only = 12; * @return The keysOnly. */ @java.lang.Override public boolean getKeysOnly() { return keysOnly_; } /** *
       * if true, only return keys. See Query.keys_only for discussion.
       * 
* * required bool keys_only = 12; * @param value The keysOnly to set. * @return This builder for chaining. */ public Builder setKeysOnly(boolean value) { keysOnly_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * if true, only return keys. See Query.keys_only for discussion.
       * 
* * required bool keys_only = 12; * @return This builder for chaining. */ public Builder clearKeysOnly() { bitField0_ = (bitField0_ & ~0x00000020); keysOnly_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringList propertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePropertyNameIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { propertyName_ = new com.google.protobuf.LazyStringArrayList(propertyName_); bitField0_ |= 0x00000040; } } /** *
       * see property_name on Query
       * 
* * repeated string property_name = 24; * @return A list containing the propertyName. */ public com.google.protobuf.ProtocolStringList getPropertyNameList() { return propertyName_.getUnmodifiableView(); } /** *
       * see property_name on Query
       * 
* * repeated string property_name = 24; * @return The count of propertyName. */ public int getPropertyNameCount() { return propertyName_.size(); } /** *
       * see property_name on Query
       * 
* * repeated string property_name = 24; * @param index The index of the element to return. * @return The propertyName at the given index. */ public java.lang.String getPropertyName(int index) { return propertyName_.get(index); } /** *
       * see property_name on Query
       * 
* * repeated string property_name = 24; * @param index The index of the value to return. * @return The bytes of the propertyName at the given index. */ public com.google.protobuf.ByteString getPropertyNameBytes(int index) { return propertyName_.getByteString(index); } /** *
       * see property_name on Query
       * 
* * repeated string property_name = 24; * @param index The index to set the value at. * @param value The propertyName to set. * @return This builder for chaining. */ public Builder setPropertyName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePropertyNameIsMutable(); propertyName_.set(index, value); onChanged(); return this; } /** *
       * see property_name on Query
       * 
* * repeated string property_name = 24; * @param value The propertyName to add. * @return This builder for chaining. */ public Builder addPropertyName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePropertyNameIsMutable(); propertyName_.add(value); onChanged(); return this; } /** *
       * see property_name on Query
       * 
* * repeated string property_name = 24; * @param values The propertyName to add. * @return This builder for chaining. */ public Builder addAllPropertyName( java.lang.Iterable values) { ensurePropertyNameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, propertyName_); onChanged(); return this; } /** *
       * see property_name on Query
       * 
* * repeated string property_name = 24; * @return This builder for chaining. */ public Builder clearPropertyName() { propertyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
       * see property_name on Query
       * 
* * repeated string property_name = 24; * @param value The bytes of the propertyName to add. * @return This builder for chaining. */ public Builder addPropertyNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePropertyNameIsMutable(); propertyName_.add(value); onChanged(); return this; } private int distinctInfixSize_ ; /** *
       * the number of postfix properties that should be distinct
       * 
* * optional int32 distinct_infix_size = 25; * @return Whether the distinctInfixSize field is set. */ @java.lang.Override public boolean hasDistinctInfixSize() { return ((bitField0_ & 0x00000080) != 0); } /** *
       * the number of postfix properties that should be distinct
       * 
* * optional int32 distinct_infix_size = 25; * @return The distinctInfixSize. */ @java.lang.Override public int getDistinctInfixSize() { return distinctInfixSize_; } /** *
       * the number of postfix properties that should be distinct
       * 
* * optional int32 distinct_infix_size = 25; * @param value The distinctInfixSize to set. * @return This builder for chaining. */ public Builder setDistinctInfixSize(int value) { distinctInfixSize_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * the number of postfix properties that should be distinct
       * 
* * optional int32 distinct_infix_size = 25; * @return This builder for chaining. */ public Builder clearDistinctInfixSize() { bitField0_ = (bitField0_ & ~0x00000080); distinctInfixSize_ = 0; onChanged(); return this; } private int keyPathLength_ ; /** *
       * the number of key path elements that results must have
       * 
* * optional int32 key_path_length = 27; * @return Whether the keyPathLength field is set. */ @java.lang.Override public boolean hasKeyPathLength() { return ((bitField0_ & 0x00000100) != 0); } /** *
       * the number of key path elements that results must have
       * 
* * optional int32 key_path_length = 27; * @return The keyPathLength. */ @java.lang.Override public int getKeyPathLength() { return keyPathLength_; } /** *
       * the number of key path elements that results must have
       * 
* * optional int32 key_path_length = 27; * @param value The keyPathLength to set. * @return This builder for chaining. */ public Builder setKeyPathLength(int value) { keyPathLength_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * the number of key path elements that results must have
       * 
* * optional int32 key_path_length = 27; * @return This builder for chaining. */ public Builder clearKeyPathLength() { bitField0_ = (bitField0_ & ~0x00000100); keyPathLength_ = 0; onChanged(); return this; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter entityFilter_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilterOrBuilder> entityFilterBuilder_; /** * optional group EntityFilter = 13 { ... } * @return Whether the entityfilter field is set. */ public boolean hasEntityFilter() { return ((bitField0_ & 0x00000200) != 0); } /** * optional group EntityFilter = 13 { ... } * @return The entityfilter. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter getEntityFilter() { if (entityFilterBuilder_ == null) { return entityFilter_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.getDefaultInstance() : entityFilter_; } else { return entityFilterBuilder_.getMessage(); } } /** * optional group EntityFilter = 13 { ... } */ public Builder setEntityFilter(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter value) { if (entityFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entityFilter_ = value; } else { entityFilterBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * optional group EntityFilter = 13 { ... } */ public Builder setEntityFilter( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.Builder builderForValue) { if (entityFilterBuilder_ == null) { entityFilter_ = builderForValue.build(); } else { entityFilterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * optional group EntityFilter = 13 { ... } */ public Builder mergeEntityFilter(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter value) { if (entityFilterBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && entityFilter_ != null && entityFilter_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.getDefaultInstance()) { getEntityFilterBuilder().mergeFrom(value); } else { entityFilter_ = value; } } else { entityFilterBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * optional group EntityFilter = 13 { ... } */ public Builder clearEntityFilter() { bitField0_ = (bitField0_ & ~0x00000200); entityFilter_ = null; if (entityFilterBuilder_ != null) { entityFilterBuilder_.dispose(); entityFilterBuilder_ = null; } onChanged(); return this; } /** * optional group EntityFilter = 13 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.Builder getEntityFilterBuilder() { bitField0_ |= 0x00000200; onChanged(); return getEntityFilterFieldBuilder().getBuilder(); } /** * optional group EntityFilter = 13 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilterOrBuilder getEntityFilterOrBuilder() { if (entityFilterBuilder_ != null) { return entityFilterBuilder_.getMessageOrBuilder(); } else { return entityFilter_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.getDefaultInstance() : entityFilter_; } } /** * optional group EntityFilter = 13 { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilterOrBuilder> getEntityFilterFieldBuilder() { if (entityFilterBuilder_ == null) { entityFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilter.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.EntityFilterOrBuilder>( getEntityFilter(), getParentForChildren(), isClean()); entityFilter_ = null; } return entityFilterBuilder_; } private java.lang.Object planLabel_ = ""; /** * optional string plan_label = 26; * @return Whether the planLabel field is set. */ public boolean hasPlanLabel() { return ((bitField0_ & 0x00000400) != 0); } /** * optional string plan_label = 26; * @return The planLabel. */ public java.lang.String getPlanLabel() { java.lang.Object ref = planLabel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { planLabel_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string plan_label = 26; * @return The bytes for planLabel. */ public com.google.protobuf.ByteString getPlanLabelBytes() { java.lang.Object ref = planLabel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); planLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string plan_label = 26; * @param value The planLabel to set. * @return This builder for chaining. */ public Builder setPlanLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } planLabel_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * optional string plan_label = 26; * @return This builder for chaining. */ public Builder clearPlanLabel() { planLabel_ = getDefaultInstance().getPlanLabel(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * optional string plan_label = 26; * @param value The bytes for planLabel to set. * @return This builder for chaining. */ public Builder setPlanLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } planLabel_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.CompiledQuery) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CompiledQuery) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CompiledQuery parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CompiledCursorOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CompiledCursor) com.google.protobuf.MessageOrBuilder { /** * optional group Position = 2 [deprecated = true] { ... } * @deprecated apphosting_datastore_v3.CompiledCursor.position is deprecated. * See datastore_v3.proto;l=453 * @return Whether the position field is set. */ @java.lang.Deprecated boolean hasPosition(); /** * optional group Position = 2 [deprecated = true] { ... } * @deprecated apphosting_datastore_v3.CompiledCursor.position is deprecated. * See datastore_v3.proto;l=453 * @return The position. */ @java.lang.Deprecated com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position getPosition(); /** * optional group Position = 2 [deprecated = true] { ... } */ @java.lang.Deprecated com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.PositionOrBuilder getPositionOrBuilder(); /** *
     * If specified, this is a plannable cursor.
     * 
* * optional .storage_onestore_v3.IndexPostfix postfix_position = 1; * @return Whether the postfixPosition field is set. */ boolean hasPostfixPosition(); /** *
     * If specified, this is a plannable cursor.
     * 
* * optional .storage_onestore_v3.IndexPostfix postfix_position = 1; * @return The postfixPosition. */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix getPostfixPosition(); /** *
     * If specified, this is a plannable cursor.
     * 
* * optional .storage_onestore_v3.IndexPostfix postfix_position = 1; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfixOrBuilder getPostfixPositionOrBuilder(); /** *
     * If specified, this is an encoded cursor.
     * 
* * optional .storage_onestore_v3.IndexPosition absolute_position = 3; * @return Whether the absolutePosition field is set. */ boolean hasAbsolutePosition(); /** *
     * If specified, this is an encoded cursor.
     * 
* * optional .storage_onestore_v3.IndexPosition absolute_position = 3; * @return The absolutePosition. */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition getAbsolutePosition(); /** *
     * If specified, this is an encoded cursor.
     * 
* * optional .storage_onestore_v3.IndexPosition absolute_position = 3; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPositionOrBuilder getAbsolutePositionOrBuilder(); } /** *
   * A message that represents a compiled query cursor.
   * Cursors returned by the backend populate at most one of postfix_position
   * (for plannable positions) or absolute_position (for encoded positions).
   * The position group can encode either a plannable or encoded positions (as
   * described in detail below), but it is accepted for backwards compatibility
   * only and is cleared during normalization.
   * 
* * Protobuf type {@code apphosting_datastore_v3.CompiledCursor} */ public static final class CompiledCursor extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CompiledCursor) CompiledCursorOrBuilder { private static final long serialVersionUID = 0L; // Use CompiledCursor.newBuilder() to construct. private CompiledCursor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CompiledCursor() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CompiledCursor(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder.class); } public interface PositionOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CompiledCursor.Position) com.google.protobuf.MessageOrBuilder { /** *
       * The encoded key to which this cursor position refers to. This is an
       * encoded index or primary key.
       * TODO: rename to "encoded_key"
       * TODO: consider removing after 1.4.5
       * 
* * optional string start_key = 27 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated. * See datastore_v3.proto;l=458 * @return Whether the startKey field is set. */ @java.lang.Deprecated boolean hasStartKey(); /** *
       * The encoded key to which this cursor position refers to. This is an
       * encoded index or primary key.
       * TODO: rename to "encoded_key"
       * TODO: consider removing after 1.4.5
       * 
* * optional string start_key = 27 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated. * See datastore_v3.proto;l=458 * @return The startKey. */ @java.lang.Deprecated java.lang.String getStartKey(); /** *
       * The encoded key to which this cursor position refers to. This is an
       * encoded index or primary key.
       * TODO: rename to "encoded_key"
       * TODO: consider removing after 1.4.5
       * 
* * optional string start_key = 27 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated. * See datastore_v3.proto;l=458 * @return The bytes for startKey. */ @java.lang.Deprecated com.google.protobuf.ByteString getStartKeyBytes(); /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated java.util.List getIndexValueList(); /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue getIndexValue(int index); /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated int getIndexValueCount(); /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated java.util.List getIndexValueOrBuilderList(); /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValueOrBuilder getIndexValueOrBuilder( int index); /** * optional .storage_onestore_v3.Reference key = 32 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.key is deprecated. * See datastore_v3.proto;l=465 * @return Whether the key field is set. */ @java.lang.Deprecated boolean hasKey(); /** * optional .storage_onestore_v3.Reference key = 32 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.key is deprecated. * See datastore_v3.proto;l=465 * @return The key. */ @java.lang.Deprecated com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(); /** * optional .storage_onestore_v3.Reference key = 32 [deprecated = true]; */ @java.lang.Deprecated com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder(); /** *
       * If the position is inclusive when used as the start for a query. If used
       * as an end position this value will be inverted by the datastore before
       * applying it to a query. For example if a cursor points to the position
       * between 'B' and 'C' in 'ABCD' that position is encoded either as B
       * exclusive or C inclusive. Using either one of these as a start position
       * will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
       * position of the cursor needs to be B inclusive or C exclusive.
       * 
* * optional bool start_inclusive = 28 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_inclusive is deprecated. * See datastore_v3.proto;l=474 * @return Whether the startInclusive field is set. */ @java.lang.Deprecated boolean hasStartInclusive(); /** *
       * If the position is inclusive when used as the start for a query. If used
       * as an end position this value will be inverted by the datastore before
       * applying it to a query. For example if a cursor points to the position
       * between 'B' and 'C' in 'ABCD' that position is encoded either as B
       * exclusive or C inclusive. Using either one of these as a start position
       * will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
       * position of the cursor needs to be B inclusive or C exclusive.
       * 
* * optional bool start_inclusive = 28 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_inclusive is deprecated. * See datastore_v3.proto;l=474 * @return The startInclusive. */ @java.lang.Deprecated boolean getStartInclusive(); /** *
       * If true, and the first sort order direction from the query is ascending,
       * this cursor points to immediately before the position it contains. If
       * false, or the first sort order from the query is descending, it points
       * to immediately after the position it contains.
       *   before_ascending | sort order | before/after
       *   --------------------------------------------
       *   true               ASC          before
       *   true               DESC         after
       *   false              ASC          after
       *   false              DESC         before
       * Ultimately, all non-empty cursors returned by the backend will
       * populate this field, and all non-empty cursors received by the backend
       * will be upconverted to contain it before query execution.
       * This field will ultimately replace start_inclusive.
       * 
* * optional bool before_ascending = 33 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated. * See datastore_v3.proto;l=493 * @return Whether the beforeAscending field is set. */ @java.lang.Deprecated boolean hasBeforeAscending(); /** *
       * If true, and the first sort order direction from the query is ascending,
       * this cursor points to immediately before the position it contains. If
       * false, or the first sort order from the query is descending, it points
       * to immediately after the position it contains.
       *   before_ascending | sort order | before/after
       *   --------------------------------------------
       *   true               ASC          before
       *   true               DESC         after
       *   false              ASC          after
       *   false              DESC         before
       * Ultimately, all non-empty cursors returned by the backend will
       * populate this field, and all non-empty cursors received by the backend
       * will be upconverted to contain it before query execution.
       * This field will ultimately replace start_inclusive.
       * 
* * optional bool before_ascending = 33 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated. * See datastore_v3.proto;l=493 * @return The beforeAscending. */ @java.lang.Deprecated boolean getBeforeAscending(); } /** *
     * The position for the given query.
     * If no position is provided or the position is empty this is a valid cursor
     * that points to the first element of the given result set.
     * The position can be encoded in one of two ways. If IndexValues or key is
     * specified then this is a "plannable" position that can be used regardless
     * of how the query is planned. If start_key is specified then it is a
     * "compiled" or "encoded" position which can only be used on the exact same
     * scan that it was generated from. Both start_key and key/IndexValue cannot
     * be specified in a single position.
     * NOTE: All fields have been marked deprecated because the
     * deprecation annotations aren't well-supported on groups.
     * 
* * Protobuf type {@code apphosting_datastore_v3.CompiledCursor.Position} */ public static final class Position extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CompiledCursor.Position) PositionOrBuilder { private static final long serialVersionUID = 0L; // Use Position.newBuilder() to construct. private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Position() { startKey_ = ""; indexValue_ = java.util.Collections.emptyList(); startInclusive_ = true; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Position(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.Builder.class); } public interface IndexValueOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CompiledCursor.Position.IndexValue) com.google.protobuf.MessageOrBuilder { /** * optional string property = 30 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated. * See datastore_v3.proto;l=461 * @return Whether the property field is set. */ @java.lang.Deprecated boolean hasProperty(); /** * optional string property = 30 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated. * See datastore_v3.proto;l=461 * @return The property. */ @java.lang.Deprecated java.lang.String getProperty(); /** * optional string property = 30 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated. * See datastore_v3.proto;l=461 * @return The bytes for property. */ @java.lang.Deprecated com.google.protobuf.ByteString getPropertyBytes(); /** * required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.value is deprecated. * See datastore_v3.proto;l=462 * @return Whether the value field is set. */ @java.lang.Deprecated boolean hasValue(); /** * required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.value is deprecated. * See datastore_v3.proto;l=462 * @return The value. */ @java.lang.Deprecated com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue getValue(); /** * required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true]; */ @java.lang.Deprecated com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValueOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code apphosting_datastore_v3.CompiledCursor.Position.IndexValue} */ public static final class IndexValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CompiledCursor.Position.IndexValue) IndexValueOrBuilder { private static final long serialVersionUID = 0L; // Use IndexValue.newBuilder() to construct. private IndexValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IndexValue() { property_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IndexValue(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_IndexValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_IndexValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.Builder.class); } private int bitField0_; public static final int PROPERTY_FIELD_NUMBER = 30; @SuppressWarnings("serial") private volatile java.lang.Object property_ = ""; /** * optional string property = 30 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated. * See datastore_v3.proto;l=461 * @return Whether the property field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasProperty() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string property = 30 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated. * See datastore_v3.proto;l=461 * @return The property. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getProperty() { java.lang.Object ref = property_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { property_ = s; } return s; } } /** * optional string property = 30 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated. * See datastore_v3.proto;l=461 * @return The bytes for property. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getPropertyBytes() { java.lang.Object ref = property_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); property_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 31; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue value_; /** * required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.value is deprecated. * See datastore_v3.proto;l=462 * @return Whether the value field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** * required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.value is deprecated. * See datastore_v3.proto;l=462 * @return The value. */ @java.lang.Override @java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue getValue() { return value_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.getDefaultInstance() : value_; } /** * required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValueOrBuilder getValueOrBuilder() { return value_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.getDefaultInstance() : value_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasValue()) { memoizedIsInitialized = 0; return false; } if (!getValue().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 30, property_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(31, getValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, property_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, getValue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue) obj; if (hasProperty() != other.hasProperty()) return false; if (hasProperty()) { if (!getProperty() .equals(other.getProperty())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasProperty()) { hash = (37 * hash) + PROPERTY_FIELD_NUMBER; hash = (53 * hash) + getProperty().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.CompiledCursor.Position.IndexValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CompiledCursor.Position.IndexValue) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_IndexValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_IndexValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; property_ = ""; value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_IndexValue_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.property_ = property_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.getDefaultInstance()) return this; if (other.hasProperty()) { property_ = other.property_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasValue()) { mergeValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasValue()) { return false; } if (!getValue().isInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 242: { property_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 242 case 250: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 250 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object property_ = ""; /** * optional string property = 30 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated. * See datastore_v3.proto;l=461 * @return Whether the property field is set. */ @java.lang.Deprecated public boolean hasProperty() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string property = 30 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated. * See datastore_v3.proto;l=461 * @return The property. */ @java.lang.Deprecated public java.lang.String getProperty() { java.lang.Object ref = property_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { property_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string property = 30 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated. * See datastore_v3.proto;l=461 * @return The bytes for property. */ @java.lang.Deprecated public com.google.protobuf.ByteString getPropertyBytes() { java.lang.Object ref = property_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); property_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string property = 30 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated. * See datastore_v3.proto;l=461 * @param value The property to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProperty( java.lang.String value) { if (value == null) { throw new NullPointerException(); } property_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string property = 30 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated. * See datastore_v3.proto;l=461 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProperty() { property_ = getDefaultInstance().getProperty(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string property = 30 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.property is deprecated. * See datastore_v3.proto;l=461 * @param value The bytes for property to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setPropertyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } property_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue value_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValueOrBuilder> valueBuilder_; /** * required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.value is deprecated. * See datastore_v3.proto;l=462 * @return Whether the value field is set. */ @java.lang.Deprecated public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** * required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.IndexValue.value is deprecated. * See datastore_v3.proto;l=462 * @return The value. */ @java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue getValue() { if (valueBuilder_ == null) { return value_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true]; */ @java.lang.Deprecated public Builder setValue(com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true]; */ @java.lang.Deprecated public Builder setValue( com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeValue(com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && value_ != null && value_ != com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true]; */ @java.lang.Deprecated public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** * required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true]; */ @java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.Builder getValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } /** * required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true]; */ @java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.getDefaultInstance() : value_; } } /** * required .storage_onestore_v3.PropertyValue value = 31 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValue.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.PropertyValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.CompiledCursor.Position.IndexValue) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CompiledCursor.Position.IndexValue) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IndexValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int START_KEY_FIELD_NUMBER = 27; @SuppressWarnings("serial") private volatile java.lang.Object startKey_ = ""; /** *
       * The encoded key to which this cursor position refers to. This is an
       * encoded index or primary key.
       * TODO: rename to "encoded_key"
       * TODO: consider removing after 1.4.5
       * 
* * optional string start_key = 27 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated. * See datastore_v3.proto;l=458 * @return Whether the startKey field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasStartKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The encoded key to which this cursor position refers to. This is an
       * encoded index or primary key.
       * TODO: rename to "encoded_key"
       * TODO: consider removing after 1.4.5
       * 
* * optional string start_key = 27 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated. * See datastore_v3.proto;l=458 * @return The startKey. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getStartKey() { java.lang.Object ref = startKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { startKey_ = s; } return s; } } /** *
       * The encoded key to which this cursor position refers to. This is an
       * encoded index or primary key.
       * TODO: rename to "encoded_key"
       * TODO: consider removing after 1.4.5
       * 
* * optional string start_key = 27 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated. * See datastore_v3.proto;l=458 * @return The bytes for startKey. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getStartKeyBytes() { java.lang.Object ref = startKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); startKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INDEXVALUE_FIELD_NUMBER = 29; @SuppressWarnings("serial") private java.util.List indexValue_; /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Override @java.lang.Deprecated public java.util.List getIndexValueList() { return indexValue_; } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Override @java.lang.Deprecated public java.util.List getIndexValueOrBuilderList() { return indexValue_; } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Override @java.lang.Deprecated public int getIndexValueCount() { return indexValue_.size(); } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Override @java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue getIndexValue(int index) { return indexValue_.get(index); } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Override @java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValueOrBuilder getIndexValueOrBuilder( int index) { return indexValue_.get(index); } public static final int KEY_FIELD_NUMBER = 32; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference key_; /** * optional .storage_onestore_v3.Reference key = 32 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.key is deprecated. * See datastore_v3.proto;l=465 * @return Whether the key field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasKey() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .storage_onestore_v3.Reference key = 32 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.key is deprecated. * See datastore_v3.proto;l=465 * @return The key. */ @java.lang.Override @java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey() { return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_; } /** * optional .storage_onestore_v3.Reference key = 32 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder() { return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_; } public static final int START_INCLUSIVE_FIELD_NUMBER = 28; private boolean startInclusive_ = true; /** *
       * If the position is inclusive when used as the start for a query. If used
       * as an end position this value will be inverted by the datastore before
       * applying it to a query. For example if a cursor points to the position
       * between 'B' and 'C' in 'ABCD' that position is encoded either as B
       * exclusive or C inclusive. Using either one of these as a start position
       * will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
       * position of the cursor needs to be B inclusive or C exclusive.
       * 
* * optional bool start_inclusive = 28 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_inclusive is deprecated. * See datastore_v3.proto;l=474 * @return Whether the startInclusive field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasStartInclusive() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * If the position is inclusive when used as the start for a query. If used
       * as an end position this value will be inverted by the datastore before
       * applying it to a query. For example if a cursor points to the position
       * between 'B' and 'C' in 'ABCD' that position is encoded either as B
       * exclusive or C inclusive. Using either one of these as a start position
       * will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
       * position of the cursor needs to be B inclusive or C exclusive.
       * 
* * optional bool start_inclusive = 28 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_inclusive is deprecated. * See datastore_v3.proto;l=474 * @return The startInclusive. */ @java.lang.Override @java.lang.Deprecated public boolean getStartInclusive() { return startInclusive_; } public static final int BEFORE_ASCENDING_FIELD_NUMBER = 33; private boolean beforeAscending_ = false; /** *
       * If true, and the first sort order direction from the query is ascending,
       * this cursor points to immediately before the position it contains. If
       * false, or the first sort order from the query is descending, it points
       * to immediately after the position it contains.
       *   before_ascending | sort order | before/after
       *   --------------------------------------------
       *   true               ASC          before
       *   true               DESC         after
       *   false              ASC          after
       *   false              DESC         before
       * Ultimately, all non-empty cursors returned by the backend will
       * populate this field, and all non-empty cursors received by the backend
       * will be upconverted to contain it before query execution.
       * This field will ultimately replace start_inclusive.
       * 
* * optional bool before_ascending = 33 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated. * See datastore_v3.proto;l=493 * @return Whether the beforeAscending field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasBeforeAscending() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * If true, and the first sort order direction from the query is ascending,
       * this cursor points to immediately before the position it contains. If
       * false, or the first sort order from the query is descending, it points
       * to immediately after the position it contains.
       *   before_ascending | sort order | before/after
       *   --------------------------------------------
       *   true               ASC          before
       *   true               DESC         after
       *   false              ASC          after
       *   false              DESC         before
       * Ultimately, all non-empty cursors returned by the backend will
       * populate this field, and all non-empty cursors received by the backend
       * will be upconverted to contain it before query execution.
       * This field will ultimately replace start_inclusive.
       * 
* * optional bool before_ascending = 33 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated. * See datastore_v3.proto;l=493 * @return The beforeAscending. */ @java.lang.Override @java.lang.Deprecated public boolean getBeforeAscending() { return beforeAscending_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getIndexValueCount(); i++) { if (!getIndexValue(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasKey()) { if (!getKey().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, startKey_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(28, startInclusive_); } for (int i = 0; i < indexValue_.size(); i++) { output.writeGroup(29, indexValue_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(32, getKey()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(33, beforeAscending_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, startKey_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(28, startInclusive_); } for (int i = 0; i < indexValue_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(29, indexValue_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, getKey()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(33, beforeAscending_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position) obj; if (hasStartKey() != other.hasStartKey()) return false; if (hasStartKey()) { if (!getStartKey() .equals(other.getStartKey())) return false; } if (!getIndexValueList() .equals(other.getIndexValueList())) return false; if (hasKey() != other.hasKey()) return false; if (hasKey()) { if (!getKey() .equals(other.getKey())) return false; } if (hasStartInclusive() != other.hasStartInclusive()) return false; if (hasStartInclusive()) { if (getStartInclusive() != other.getStartInclusive()) return false; } if (hasBeforeAscending() != other.hasBeforeAscending()) return false; if (hasBeforeAscending()) { if (getBeforeAscending() != other.getBeforeAscending()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStartKey()) { hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); } if (getIndexValueCount() > 0) { hash = (37 * hash) + INDEXVALUE_FIELD_NUMBER; hash = (53 * hash) + getIndexValueList().hashCode(); } if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasStartInclusive()) { hash = (37 * hash) + START_INCLUSIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getStartInclusive()); } if (hasBeforeAscending()) { hash = (37 * hash) + BEFORE_ASCENDING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBeforeAscending()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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 position for the given query.
       * If no position is provided or the position is empty this is a valid cursor
       * that points to the first element of the given result set.
       * The position can be encoded in one of two ways. If IndexValues or key is
       * specified then this is a "plannable" position that can be used regardless
       * of how the query is planned. If start_key is specified then it is a
       * "compiled" or "encoded" position which can only be used on the exact same
       * scan that it was generated from. Both start_key and key/IndexValue cannot
       * be specified in a single position.
       * NOTE: All fields have been marked deprecated because the
       * deprecation annotations aren't well-supported on groups.
       * 
* * Protobuf type {@code apphosting_datastore_v3.CompiledCursor.Position} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CompiledCursor.Position) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.PositionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIndexValueFieldBuilder(); getKeyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; startKey_ = ""; if (indexValueBuilder_ == null) { indexValue_ = java.util.Collections.emptyList(); } else { indexValue_ = null; indexValueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } startInclusive_ = true; beforeAscending_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_Position_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position result) { if (indexValueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { indexValue_ = java.util.Collections.unmodifiableList(indexValue_); bitField0_ = (bitField0_ & ~0x00000002); } result.indexValue_ = indexValue_; } else { result.indexValue_ = indexValueBuilder_.build(); } } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.startKey_ = startKey_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.key_ = keyBuilder_ == null ? key_ : keyBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.startInclusive_ = startInclusive_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.beforeAscending_ = beforeAscending_; to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.getDefaultInstance()) return this; if (other.hasStartKey()) { startKey_ = other.startKey_; bitField0_ |= 0x00000001; onChanged(); } if (indexValueBuilder_ == null) { if (!other.indexValue_.isEmpty()) { if (indexValue_.isEmpty()) { indexValue_ = other.indexValue_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureIndexValueIsMutable(); indexValue_.addAll(other.indexValue_); } onChanged(); } } else { if (!other.indexValue_.isEmpty()) { if (indexValueBuilder_.isEmpty()) { indexValueBuilder_.dispose(); indexValueBuilder_ = null; indexValue_ = other.indexValue_; bitField0_ = (bitField0_ & ~0x00000002); indexValueBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIndexValueFieldBuilder() : null; } else { indexValueBuilder_.addAllMessages(other.indexValue_); } } } if (other.hasKey()) { mergeKey(other.getKey()); } if (other.hasStartInclusive()) { setStartInclusive(other.getStartInclusive()); } if (other.hasBeforeAscending()) { setBeforeAscending(other.getBeforeAscending()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getIndexValueCount(); i++) { if (!getIndexValue(i).isInitialized()) { return false; } } if (hasKey()) { if (!getKey().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 218: { startKey_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 218 case 224: { startInclusive_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 224 case 235: { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue m = input.readGroup(29, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.PARSER, extensionRegistry); if (indexValueBuilder_ == null) { ensureIndexValueIsMutable(); indexValue_.add(m); } else { indexValueBuilder_.addMessage(m); } break; } // case 235 case 258: { input.readMessage( getKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 258 case 264: { beforeAscending_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 264 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object startKey_ = ""; /** *
         * The encoded key to which this cursor position refers to. This is an
         * encoded index or primary key.
         * TODO: rename to "encoded_key"
         * TODO: consider removing after 1.4.5
         * 
* * optional string start_key = 27 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated. * See datastore_v3.proto;l=458 * @return Whether the startKey field is set. */ @java.lang.Deprecated public boolean hasStartKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * The encoded key to which this cursor position refers to. This is an
         * encoded index or primary key.
         * TODO: rename to "encoded_key"
         * TODO: consider removing after 1.4.5
         * 
* * optional string start_key = 27 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated. * See datastore_v3.proto;l=458 * @return The startKey. */ @java.lang.Deprecated public java.lang.String getStartKey() { java.lang.Object ref = startKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { startKey_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * The encoded key to which this cursor position refers to. This is an
         * encoded index or primary key.
         * TODO: rename to "encoded_key"
         * TODO: consider removing after 1.4.5
         * 
* * optional string start_key = 27 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated. * See datastore_v3.proto;l=458 * @return The bytes for startKey. */ @java.lang.Deprecated public com.google.protobuf.ByteString getStartKeyBytes() { java.lang.Object ref = startKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); startKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The encoded key to which this cursor position refers to. This is an
         * encoded index or primary key.
         * TODO: rename to "encoded_key"
         * TODO: consider removing after 1.4.5
         * 
* * optional string start_key = 27 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated. * See datastore_v3.proto;l=458 * @param value The startKey to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setStartKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * The encoded key to which this cursor position refers to. This is an
         * encoded index or primary key.
         * TODO: rename to "encoded_key"
         * TODO: consider removing after 1.4.5
         * 
* * optional string start_key = 27 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated. * See datastore_v3.proto;l=458 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * The encoded key to which this cursor position refers to. This is an
         * encoded index or primary key.
         * TODO: rename to "encoded_key"
         * TODO: consider removing after 1.4.5
         * 
* * optional string start_key = 27 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_key is deprecated. * See datastore_v3.proto;l=458 * @param value The bytes for startKey to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setStartKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List indexValue_ = java.util.Collections.emptyList(); private void ensureIndexValueIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { indexValue_ = new java.util.ArrayList(indexValue_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValueOrBuilder> indexValueBuilder_; /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public java.util.List getIndexValueList() { if (indexValueBuilder_ == null) { return java.util.Collections.unmodifiableList(indexValue_); } else { return indexValueBuilder_.getMessageList(); } } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public int getIndexValueCount() { if (indexValueBuilder_ == null) { return indexValue_.size(); } else { return indexValueBuilder_.getCount(); } } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue getIndexValue(int index) { if (indexValueBuilder_ == null) { return indexValue_.get(index); } else { return indexValueBuilder_.getMessage(index); } } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public Builder setIndexValue( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue value) { if (indexValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexValueIsMutable(); indexValue_.set(index, value); onChanged(); } else { indexValueBuilder_.setMessage(index, value); } return this; } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public Builder setIndexValue( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.Builder builderForValue) { if (indexValueBuilder_ == null) { ensureIndexValueIsMutable(); indexValue_.set(index, builderForValue.build()); onChanged(); } else { indexValueBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public Builder addIndexValue(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue value) { if (indexValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexValueIsMutable(); indexValue_.add(value); onChanged(); } else { indexValueBuilder_.addMessage(value); } return this; } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public Builder addIndexValue( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue value) { if (indexValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexValueIsMutable(); indexValue_.add(index, value); onChanged(); } else { indexValueBuilder_.addMessage(index, value); } return this; } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public Builder addIndexValue( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.Builder builderForValue) { if (indexValueBuilder_ == null) { ensureIndexValueIsMutable(); indexValue_.add(builderForValue.build()); onChanged(); } else { indexValueBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public Builder addIndexValue( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.Builder builderForValue) { if (indexValueBuilder_ == null) { ensureIndexValueIsMutable(); indexValue_.add(index, builderForValue.build()); onChanged(); } else { indexValueBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public Builder addAllIndexValue( java.lang.Iterable values) { if (indexValueBuilder_ == null) { ensureIndexValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, indexValue_); onChanged(); } else { indexValueBuilder_.addAllMessages(values); } return this; } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public Builder clearIndexValue() { if (indexValueBuilder_ == null) { indexValue_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { indexValueBuilder_.clear(); } return this; } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public Builder removeIndexValue(int index) { if (indexValueBuilder_ == null) { ensureIndexValueIsMutable(); indexValue_.remove(index); onChanged(); } else { indexValueBuilder_.remove(index); } return this; } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.Builder getIndexValueBuilder( int index) { return getIndexValueFieldBuilder().getBuilder(index); } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValueOrBuilder getIndexValueOrBuilder( int index) { if (indexValueBuilder_ == null) { return indexValue_.get(index); } else { return indexValueBuilder_.getMessageOrBuilder(index); } } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public java.util.List getIndexValueOrBuilderList() { if (indexValueBuilder_ != null) { return indexValueBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(indexValue_); } } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.Builder addIndexValueBuilder() { return getIndexValueFieldBuilder().addBuilder( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.getDefaultInstance()); } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.Builder addIndexValueBuilder( int index) { return getIndexValueFieldBuilder().addBuilder( index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.getDefaultInstance()); } /** * repeated group IndexValue = 29 [deprecated = true] { ... } */ @java.lang.Deprecated public java.util.List getIndexValueBuilderList() { return getIndexValueFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValueOrBuilder> getIndexValueFieldBuilder() { if (indexValueBuilder_ == null) { indexValueBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValue.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.IndexValueOrBuilder>( indexValue_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); indexValue_ = null; } return indexValueBuilder_; } private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference key_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> keyBuilder_; /** * optional .storage_onestore_v3.Reference key = 32 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.key is deprecated. * See datastore_v3.proto;l=465 * @return Whether the key field is set. */ @java.lang.Deprecated public boolean hasKey() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .storage_onestore_v3.Reference key = 32 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.key is deprecated. * See datastore_v3.proto;l=465 * @return The key. */ @java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey() { if (keyBuilder_ == null) { return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** * optional .storage_onestore_v3.Reference key = 32 [deprecated = true]; */ @java.lang.Deprecated public Builder setKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; } else { keyBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .storage_onestore_v3.Reference key = 32 [deprecated = true]; */ @java.lang.Deprecated public Builder setKey( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); } else { keyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .storage_onestore_v3.Reference key = 32 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && key_ != null && key_ != com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; } } else { keyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .storage_onestore_v3.Reference key = 32 [deprecated = true]; */ @java.lang.Deprecated public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000004); key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } onChanged(); return this; } /** * optional .storage_onestore_v3.Reference key = 32 [deprecated = true]; */ @java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder getKeyBuilder() { bitField0_ |= 0x00000004; onChanged(); return getKeyFieldBuilder().getBuilder(); } /** * optional .storage_onestore_v3.Reference key = 32 [deprecated = true]; */ @java.lang.Deprecated public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_; } } /** * optional .storage_onestore_v3.Reference key = 32 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private boolean startInclusive_ = true; /** *
         * If the position is inclusive when used as the start for a query. If used
         * as an end position this value will be inverted by the datastore before
         * applying it to a query. For example if a cursor points to the position
         * between 'B' and 'C' in 'ABCD' that position is encoded either as B
         * exclusive or C inclusive. Using either one of these as a start position
         * will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
         * position of the cursor needs to be B inclusive or C exclusive.
         * 
* * optional bool start_inclusive = 28 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_inclusive is deprecated. * See datastore_v3.proto;l=474 * @return Whether the startInclusive field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasStartInclusive() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * If the position is inclusive when used as the start for a query. If used
         * as an end position this value will be inverted by the datastore before
         * applying it to a query. For example if a cursor points to the position
         * between 'B' and 'C' in 'ABCD' that position is encoded either as B
         * exclusive or C inclusive. Using either one of these as a start position
         * will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
         * position of the cursor needs to be B inclusive or C exclusive.
         * 
* * optional bool start_inclusive = 28 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_inclusive is deprecated. * See datastore_v3.proto;l=474 * @return The startInclusive. */ @java.lang.Override @java.lang.Deprecated public boolean getStartInclusive() { return startInclusive_; } /** *
         * If the position is inclusive when used as the start for a query. If used
         * as an end position this value will be inverted by the datastore before
         * applying it to a query. For example if a cursor points to the position
         * between 'B' and 'C' in 'ABCD' that position is encoded either as B
         * exclusive or C inclusive. Using either one of these as a start position
         * will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
         * position of the cursor needs to be B inclusive or C exclusive.
         * 
* * optional bool start_inclusive = 28 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_inclusive is deprecated. * See datastore_v3.proto;l=474 * @param value The startInclusive to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setStartInclusive(boolean value) { startInclusive_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * If the position is inclusive when used as the start for a query. If used
         * as an end position this value will be inverted by the datastore before
         * applying it to a query. For example if a cursor points to the position
         * between 'B' and 'C' in 'ABCD' that position is encoded either as B
         * exclusive or C inclusive. Using either one of these as a start position
         * will give 'CD'. If I want to use this as an end cursor (to get 'AB') the
         * position of the cursor needs to be B inclusive or C exclusive.
         * 
* * optional bool start_inclusive = 28 [default = true, deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.start_inclusive is deprecated. * See datastore_v3.proto;l=474 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearStartInclusive() { bitField0_ = (bitField0_ & ~0x00000008); startInclusive_ = true; onChanged(); return this; } private boolean beforeAscending_ ; /** *
         * If true, and the first sort order direction from the query is ascending,
         * this cursor points to immediately before the position it contains. If
         * false, or the first sort order from the query is descending, it points
         * to immediately after the position it contains.
         *   before_ascending | sort order | before/after
         *   --------------------------------------------
         *   true               ASC          before
         *   true               DESC         after
         *   false              ASC          after
         *   false              DESC         before
         * Ultimately, all non-empty cursors returned by the backend will
         * populate this field, and all non-empty cursors received by the backend
         * will be upconverted to contain it before query execution.
         * This field will ultimately replace start_inclusive.
         * 
* * optional bool before_ascending = 33 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated. * See datastore_v3.proto;l=493 * @return Whether the beforeAscending field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasBeforeAscending() { return ((bitField0_ & 0x00000010) != 0); } /** *
         * If true, and the first sort order direction from the query is ascending,
         * this cursor points to immediately before the position it contains. If
         * false, or the first sort order from the query is descending, it points
         * to immediately after the position it contains.
         *   before_ascending | sort order | before/after
         *   --------------------------------------------
         *   true               ASC          before
         *   true               DESC         after
         *   false              ASC          after
         *   false              DESC         before
         * Ultimately, all non-empty cursors returned by the backend will
         * populate this field, and all non-empty cursors received by the backend
         * will be upconverted to contain it before query execution.
         * This field will ultimately replace start_inclusive.
         * 
* * optional bool before_ascending = 33 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated. * See datastore_v3.proto;l=493 * @return The beforeAscending. */ @java.lang.Override @java.lang.Deprecated public boolean getBeforeAscending() { return beforeAscending_; } /** *
         * If true, and the first sort order direction from the query is ascending,
         * this cursor points to immediately before the position it contains. If
         * false, or the first sort order from the query is descending, it points
         * to immediately after the position it contains.
         *   before_ascending | sort order | before/after
         *   --------------------------------------------
         *   true               ASC          before
         *   true               DESC         after
         *   false              ASC          after
         *   false              DESC         before
         * Ultimately, all non-empty cursors returned by the backend will
         * populate this field, and all non-empty cursors received by the backend
         * will be upconverted to contain it before query execution.
         * This field will ultimately replace start_inclusive.
         * 
* * optional bool before_ascending = 33 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated. * See datastore_v3.proto;l=493 * @param value The beforeAscending to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setBeforeAscending(boolean value) { beforeAscending_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
         * If true, and the first sort order direction from the query is ascending,
         * this cursor points to immediately before the position it contains. If
         * false, or the first sort order from the query is descending, it points
         * to immediately after the position it contains.
         *   before_ascending | sort order | before/after
         *   --------------------------------------------
         *   true               ASC          before
         *   true               DESC         after
         *   false              ASC          after
         *   false              DESC         before
         * Ultimately, all non-empty cursors returned by the backend will
         * populate this field, and all non-empty cursors received by the backend
         * will be upconverted to contain it before query execution.
         * This field will ultimately replace start_inclusive.
         * 
* * optional bool before_ascending = 33 [deprecated = true]; * @deprecated apphosting_datastore_v3.CompiledCursor.Position.before_ascending is deprecated. * See datastore_v3.proto;l=493 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearBeforeAscending() { bitField0_ = (bitField0_ & ~0x00000010); beforeAscending_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.CompiledCursor.Position) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CompiledCursor.Position) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Position parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int POSITION_FIELD_NUMBER = 2; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position position_; /** * optional group Position = 2 [deprecated = true] { ... } * @deprecated apphosting_datastore_v3.CompiledCursor.position is deprecated. * See datastore_v3.proto;l=453 * @return Whether the position field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasPosition() { return ((bitField0_ & 0x00000001) != 0); } /** * optional group Position = 2 [deprecated = true] { ... } * @deprecated apphosting_datastore_v3.CompiledCursor.position is deprecated. * See datastore_v3.proto;l=453 * @return The position. */ @java.lang.Override @java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position getPosition() { return position_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.getDefaultInstance() : position_; } /** * optional group Position = 2 [deprecated = true] { ... } */ @java.lang.Override @java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.PositionOrBuilder getPositionOrBuilder() { return position_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.getDefaultInstance() : position_; } public static final int POSTFIX_POSITION_FIELD_NUMBER = 1; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix postfixPosition_; /** *
     * If specified, this is a plannable cursor.
     * 
* * optional .storage_onestore_v3.IndexPostfix postfix_position = 1; * @return Whether the postfixPosition field is set. */ @java.lang.Override public boolean hasPostfixPosition() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * If specified, this is a plannable cursor.
     * 
* * optional .storage_onestore_v3.IndexPostfix postfix_position = 1; * @return The postfixPosition. */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix getPostfixPosition() { return postfixPosition_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix.getDefaultInstance() : postfixPosition_; } /** *
     * If specified, this is a plannable cursor.
     * 
* * optional .storage_onestore_v3.IndexPostfix postfix_position = 1; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfixOrBuilder getPostfixPositionOrBuilder() { return postfixPosition_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix.getDefaultInstance() : postfixPosition_; } public static final int ABSOLUTE_POSITION_FIELD_NUMBER = 3; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition absolutePosition_; /** *
     * If specified, this is an encoded cursor.
     * 
* * optional .storage_onestore_v3.IndexPosition absolute_position = 3; * @return Whether the absolutePosition field is set. */ @java.lang.Override public boolean hasAbsolutePosition() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * If specified, this is an encoded cursor.
     * 
* * optional .storage_onestore_v3.IndexPosition absolute_position = 3; * @return The absolutePosition. */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition getAbsolutePosition() { return absolutePosition_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition.getDefaultInstance() : absolutePosition_; } /** *
     * If specified, this is an encoded cursor.
     * 
* * optional .storage_onestore_v3.IndexPosition absolute_position = 3; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPositionOrBuilder getAbsolutePositionOrBuilder() { return absolutePosition_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition.getDefaultInstance() : absolutePosition_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasPosition()) { if (!getPosition().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasPostfixPosition()) { if (!getPostfixPosition().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(1, getPostfixPosition()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeGroup(2, getPosition()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getAbsolutePosition()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPostfixPosition()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(2, getPosition()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getAbsolutePosition()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor) obj; if (hasPosition() != other.hasPosition()) return false; if (hasPosition()) { if (!getPosition() .equals(other.getPosition())) return false; } if (hasPostfixPosition() != other.hasPostfixPosition()) return false; if (hasPostfixPosition()) { if (!getPostfixPosition() .equals(other.getPostfixPosition())) return false; } if (hasAbsolutePosition() != other.hasAbsolutePosition()) return false; if (hasAbsolutePosition()) { if (!getAbsolutePosition() .equals(other.getAbsolutePosition())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPosition()) { hash = (37 * hash) + POSITION_FIELD_NUMBER; hash = (53 * hash) + getPosition().hashCode(); } if (hasPostfixPosition()) { hash = (37 * hash) + POSTFIX_POSITION_FIELD_NUMBER; hash = (53 * hash) + getPostfixPosition().hashCode(); } if (hasAbsolutePosition()) { hash = (37 * hash) + ABSOLUTE_POSITION_FIELD_NUMBER; hash = (53 * hash) + getAbsolutePosition().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * A message that represents a compiled query cursor.
     * Cursors returned by the backend populate at most one of postfix_position
     * (for plannable positions) or absolute_position (for encoded positions).
     * The position group can encode either a plannable or encoded positions (as
     * described in detail below), but it is accepted for backwards compatibility
     * only and is cleared during normalization.
     * 
* * Protobuf type {@code apphosting_datastore_v3.CompiledCursor} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CompiledCursor) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPositionFieldBuilder(); getPostfixPositionFieldBuilder(); getAbsolutePositionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; position_ = null; if (positionBuilder_ != null) { positionBuilder_.dispose(); positionBuilder_ = null; } postfixPosition_ = null; if (postfixPositionBuilder_ != null) { postfixPositionBuilder_.dispose(); postfixPositionBuilder_ = null; } absolutePosition_ = null; if (absolutePositionBuilder_ != null) { absolutePositionBuilder_.dispose(); absolutePositionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompiledCursor_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.position_ = positionBuilder_ == null ? position_ : positionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.postfixPosition_ = postfixPositionBuilder_ == null ? postfixPosition_ : postfixPositionBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.absolutePosition_ = absolutePositionBuilder_ == null ? absolutePosition_ : absolutePositionBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance()) return this; if (other.hasPosition()) { mergePosition(other.getPosition()); } if (other.hasPostfixPosition()) { mergePostfixPosition(other.getPostfixPosition()); } if (other.hasAbsolutePosition()) { mergeAbsolutePosition(other.getAbsolutePosition()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasPosition()) { if (!getPosition().isInitialized()) { return false; } } if (hasPostfixPosition()) { if (!getPostfixPosition().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getPostfixPositionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 10 case 19: { input.readGroup(2, getPositionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 19 case 26: { input.readMessage( getAbsolutePositionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position position_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.PositionOrBuilder> positionBuilder_; /** * optional group Position = 2 [deprecated = true] { ... } * @deprecated apphosting_datastore_v3.CompiledCursor.position is deprecated. * See datastore_v3.proto;l=453 * @return Whether the position field is set. */ @java.lang.Deprecated public boolean hasPosition() { return ((bitField0_ & 0x00000001) != 0); } /** * optional group Position = 2 [deprecated = true] { ... } * @deprecated apphosting_datastore_v3.CompiledCursor.position is deprecated. * See datastore_v3.proto;l=453 * @return The position. */ @java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position getPosition() { if (positionBuilder_ == null) { return position_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.getDefaultInstance() : position_; } else { return positionBuilder_.getMessage(); } } /** * optional group Position = 2 [deprecated = true] { ... } */ @java.lang.Deprecated public Builder setPosition(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position value) { if (positionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } position_ = value; } else { positionBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional group Position = 2 [deprecated = true] { ... } */ @java.lang.Deprecated public Builder setPosition( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.Builder builderForValue) { if (positionBuilder_ == null) { position_ = builderForValue.build(); } else { positionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional group Position = 2 [deprecated = true] { ... } */ @java.lang.Deprecated public Builder mergePosition(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position value) { if (positionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && position_ != null && position_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.getDefaultInstance()) { getPositionBuilder().mergeFrom(value); } else { position_ = value; } } else { positionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional group Position = 2 [deprecated = true] { ... } */ @java.lang.Deprecated public Builder clearPosition() { bitField0_ = (bitField0_ & ~0x00000001); position_ = null; if (positionBuilder_ != null) { positionBuilder_.dispose(); positionBuilder_ = null; } onChanged(); return this; } /** * optional group Position = 2 [deprecated = true] { ... } */ @java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.Builder getPositionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPositionFieldBuilder().getBuilder(); } /** * optional group Position = 2 [deprecated = true] { ... } */ @java.lang.Deprecated public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.PositionOrBuilder getPositionOrBuilder() { if (positionBuilder_ != null) { return positionBuilder_.getMessageOrBuilder(); } else { return position_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.getDefaultInstance() : position_; } } /** * optional group Position = 2 [deprecated = true] { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.PositionOrBuilder> getPositionFieldBuilder() { if (positionBuilder_ == null) { positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Position.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.PositionOrBuilder>( getPosition(), getParentForChildren(), isClean()); position_ = null; } return positionBuilder_; } private com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix postfixPosition_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfixOrBuilder> postfixPositionBuilder_; /** *
       * If specified, this is a plannable cursor.
       * 
* * optional .storage_onestore_v3.IndexPostfix postfix_position = 1; * @return Whether the postfixPosition field is set. */ public boolean hasPostfixPosition() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * If specified, this is a plannable cursor.
       * 
* * optional .storage_onestore_v3.IndexPostfix postfix_position = 1; * @return The postfixPosition. */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix getPostfixPosition() { if (postfixPositionBuilder_ == null) { return postfixPosition_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix.getDefaultInstance() : postfixPosition_; } else { return postfixPositionBuilder_.getMessage(); } } /** *
       * If specified, this is a plannable cursor.
       * 
* * optional .storage_onestore_v3.IndexPostfix postfix_position = 1; */ public Builder setPostfixPosition(com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix value) { if (postfixPositionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } postfixPosition_ = value; } else { postfixPositionBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * If specified, this is a plannable cursor.
       * 
* * optional .storage_onestore_v3.IndexPostfix postfix_position = 1; */ public Builder setPostfixPosition( com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix.Builder builderForValue) { if (postfixPositionBuilder_ == null) { postfixPosition_ = builderForValue.build(); } else { postfixPositionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * If specified, this is a plannable cursor.
       * 
* * optional .storage_onestore_v3.IndexPostfix postfix_position = 1; */ public Builder mergePostfixPosition(com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix value) { if (postfixPositionBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && postfixPosition_ != null && postfixPosition_ != com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix.getDefaultInstance()) { getPostfixPositionBuilder().mergeFrom(value); } else { postfixPosition_ = value; } } else { postfixPositionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * If specified, this is a plannable cursor.
       * 
* * optional .storage_onestore_v3.IndexPostfix postfix_position = 1; */ public Builder clearPostfixPosition() { bitField0_ = (bitField0_ & ~0x00000002); postfixPosition_ = null; if (postfixPositionBuilder_ != null) { postfixPositionBuilder_.dispose(); postfixPositionBuilder_ = null; } onChanged(); return this; } /** *
       * If specified, this is a plannable cursor.
       * 
* * optional .storage_onestore_v3.IndexPostfix postfix_position = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix.Builder getPostfixPositionBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPostfixPositionFieldBuilder().getBuilder(); } /** *
       * If specified, this is a plannable cursor.
       * 
* * optional .storage_onestore_v3.IndexPostfix postfix_position = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfixOrBuilder getPostfixPositionOrBuilder() { if (postfixPositionBuilder_ != null) { return postfixPositionBuilder_.getMessageOrBuilder(); } else { return postfixPosition_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix.getDefaultInstance() : postfixPosition_; } } /** *
       * If specified, this is a plannable cursor.
       * 
* * optional .storage_onestore_v3.IndexPostfix postfix_position = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfixOrBuilder> getPostfixPositionFieldBuilder() { if (postfixPositionBuilder_ == null) { postfixPositionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfix.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPostfixOrBuilder>( getPostfixPosition(), getParentForChildren(), isClean()); postfixPosition_ = null; } return postfixPositionBuilder_; } private com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition absolutePosition_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPositionOrBuilder> absolutePositionBuilder_; /** *
       * If specified, this is an encoded cursor.
       * 
* * optional .storage_onestore_v3.IndexPosition absolute_position = 3; * @return Whether the absolutePosition field is set. */ public boolean hasAbsolutePosition() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * If specified, this is an encoded cursor.
       * 
* * optional .storage_onestore_v3.IndexPosition absolute_position = 3; * @return The absolutePosition. */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition getAbsolutePosition() { if (absolutePositionBuilder_ == null) { return absolutePosition_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition.getDefaultInstance() : absolutePosition_; } else { return absolutePositionBuilder_.getMessage(); } } /** *
       * If specified, this is an encoded cursor.
       * 
* * optional .storage_onestore_v3.IndexPosition absolute_position = 3; */ public Builder setAbsolutePosition(com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition value) { if (absolutePositionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } absolutePosition_ = value; } else { absolutePositionBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * If specified, this is an encoded cursor.
       * 
* * optional .storage_onestore_v3.IndexPosition absolute_position = 3; */ public Builder setAbsolutePosition( com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition.Builder builderForValue) { if (absolutePositionBuilder_ == null) { absolutePosition_ = builderForValue.build(); } else { absolutePositionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * If specified, this is an encoded cursor.
       * 
* * optional .storage_onestore_v3.IndexPosition absolute_position = 3; */ public Builder mergeAbsolutePosition(com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition value) { if (absolutePositionBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && absolutePosition_ != null && absolutePosition_ != com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition.getDefaultInstance()) { getAbsolutePositionBuilder().mergeFrom(value); } else { absolutePosition_ = value; } } else { absolutePositionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * If specified, this is an encoded cursor.
       * 
* * optional .storage_onestore_v3.IndexPosition absolute_position = 3; */ public Builder clearAbsolutePosition() { bitField0_ = (bitField0_ & ~0x00000004); absolutePosition_ = null; if (absolutePositionBuilder_ != null) { absolutePositionBuilder_.dispose(); absolutePositionBuilder_ = null; } onChanged(); return this; } /** *
       * If specified, this is an encoded cursor.
       * 
* * optional .storage_onestore_v3.IndexPosition absolute_position = 3; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition.Builder getAbsolutePositionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getAbsolutePositionFieldBuilder().getBuilder(); } /** *
       * If specified, this is an encoded cursor.
       * 
* * optional .storage_onestore_v3.IndexPosition absolute_position = 3; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPositionOrBuilder getAbsolutePositionOrBuilder() { if (absolutePositionBuilder_ != null) { return absolutePositionBuilder_.getMessageOrBuilder(); } else { return absolutePosition_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition.getDefaultInstance() : absolutePosition_; } } /** *
       * If specified, this is an encoded cursor.
       * 
* * optional .storage_onestore_v3.IndexPosition absolute_position = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPositionOrBuilder> getAbsolutePositionFieldBuilder() { if (absolutePositionBuilder_ == null) { absolutePositionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPosition.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.IndexPositionOrBuilder>( getAbsolutePosition(), getParentForChildren(), isClean()); absolutePosition_ = null; } return absolutePositionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.CompiledCursor) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CompiledCursor) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CompiledCursor parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CursorOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.Cursor) com.google.protobuf.MessageOrBuilder { /** *
     * all possible values from 0 to 2^64 - 1 are valid cursors. there is no
     * special "error" or "unset" value.
     * 
* * required fixed64 cursor = 1; * @return Whether the cursor field is set. */ boolean hasCursor(); /** *
     * all possible values from 0 to 2^64 - 1 are valid cursors. there is no
     * special "error" or "unset" value.
     * 
* * required fixed64 cursor = 1; * @return The cursor. */ long getCursor(); /** *
     * The app id
     * 
* * optional string app = 2; * @return Whether the app field is set. */ boolean hasApp(); /** *
     * The app id
     * 
* * optional string app = 2; * @return The app. */ java.lang.String getApp(); /** *
     * The app id
     * 
* * optional string app = 2; * @return The bytes for app. */ com.google.protobuf.ByteString getAppBytes(); /** *
     * the database
     * 
* * optional string database_id = 3; * @return Whether the databaseId field is set. */ boolean hasDatabaseId(); /** *
     * the database
     * 
* * optional string database_id = 3; * @return The databaseId. */ java.lang.String getDatabaseId(); /** *
     * the database
     * 
* * optional string database_id = 3; * @return The bytes for databaseId. */ com.google.protobuf.ByteString getDatabaseIdBytes(); } /** *
   * A query cursor.
   * Next tag: 4
   * 
* * Protobuf type {@code apphosting_datastore_v3.Cursor} */ public static final class Cursor extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.Cursor) CursorOrBuilder { private static final long serialVersionUID = 0L; // Use Cursor.newBuilder() to construct. private Cursor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Cursor() { app_ = ""; databaseId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Cursor(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cursor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.Builder.class); } private int bitField0_; public static final int CURSOR_FIELD_NUMBER = 1; private long cursor_ = 0L; /** *
     * all possible values from 0 to 2^64 - 1 are valid cursors. there is no
     * special "error" or "unset" value.
     * 
* * required fixed64 cursor = 1; * @return Whether the cursor field is set. */ @java.lang.Override public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * all possible values from 0 to 2^64 - 1 are valid cursors. there is no
     * special "error" or "unset" value.
     * 
* * required fixed64 cursor = 1; * @return The cursor. */ @java.lang.Override public long getCursor() { return cursor_; } public static final int APP_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object app_ = ""; /** *
     * The app id
     * 
* * optional string app = 2; * @return Whether the app field is set. */ @java.lang.Override public boolean hasApp() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The app id
     * 
* * optional string app = 2; * @return The app. */ @java.lang.Override public java.lang.String getApp() { java.lang.Object ref = app_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { app_ = s; } return s; } } /** *
     * The app id
     * 
* * optional string app = 2; * @return The bytes for app. */ @java.lang.Override public com.google.protobuf.ByteString getAppBytes() { java.lang.Object ref = app_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); app_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATABASE_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object databaseId_ = ""; /** *
     * the database
     * 
* * optional string database_id = 3; * @return Whether the databaseId field is set. */ @java.lang.Override public boolean hasDatabaseId() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * the database
     * 
* * optional string database_id = 3; * @return The databaseId. */ @java.lang.Override public java.lang.String getDatabaseId() { java.lang.Object ref = databaseId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { databaseId_ = s; } return s; } } /** *
     * the database
     * 
* * optional string database_id = 3; * @return The bytes for databaseId. */ @java.lang.Override public com.google.protobuf.ByteString getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); databaseId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasCursor()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeFixed64(1, cursor_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, app_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, databaseId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(1, cursor_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, app_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, databaseId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor) obj; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { if (getCursor() != other.getCursor()) return false; } if (hasApp() != other.hasApp()) return false; if (hasApp()) { if (!getApp() .equals(other.getApp())) return false; } if (hasDatabaseId() != other.hasDatabaseId()) return false; if (hasDatabaseId()) { if (!getDatabaseId() .equals(other.getDatabaseId())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCursor()) { hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCursor()); } if (hasApp()) { hash = (37 * hash) + APP_FIELD_NUMBER; hash = (53 * hash) + getApp().hashCode(); } if (hasDatabaseId()) { hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER; hash = (53 * hash) + getDatabaseId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * A query cursor.
     * Next tag: 4
     * 
* * Protobuf type {@code apphosting_datastore_v3.Cursor} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.Cursor) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CursorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cursor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; cursor_ = 0L; app_ = ""; databaseId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cursor_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.cursor_ = cursor_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.app_ = app_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.databaseId_ = databaseId_; to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.getDefaultInstance()) return this; if (other.hasCursor()) { setCursor(other.getCursor()); } if (other.hasApp()) { app_ = other.app_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasDatabaseId()) { databaseId_ = other.databaseId_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasCursor()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 9: { cursor_ = input.readFixed64(); bitField0_ |= 0x00000001; break; } // case 9 case 18: { app_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { databaseId_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long cursor_ ; /** *
       * all possible values from 0 to 2^64 - 1 are valid cursors. there is no
       * special "error" or "unset" value.
       * 
* * required fixed64 cursor = 1; * @return Whether the cursor field is set. */ @java.lang.Override public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * all possible values from 0 to 2^64 - 1 are valid cursors. there is no
       * special "error" or "unset" value.
       * 
* * required fixed64 cursor = 1; * @return The cursor. */ @java.lang.Override public long getCursor() { return cursor_; } /** *
       * all possible values from 0 to 2^64 - 1 are valid cursors. there is no
       * special "error" or "unset" value.
       * 
* * required fixed64 cursor = 1; * @param value The cursor to set. * @return This builder for chaining. */ public Builder setCursor(long value) { cursor_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * all possible values from 0 to 2^64 - 1 are valid cursors. there is no
       * special "error" or "unset" value.
       * 
* * required fixed64 cursor = 1; * @return This builder for chaining. */ public Builder clearCursor() { bitField0_ = (bitField0_ & ~0x00000001); cursor_ = 0L; onChanged(); return this; } private java.lang.Object app_ = ""; /** *
       * The app id
       * 
* * optional string app = 2; * @return Whether the app field is set. */ public boolean hasApp() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * The app id
       * 
* * optional string app = 2; * @return The app. */ public java.lang.String getApp() { java.lang.Object ref = app_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { app_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * The app id
       * 
* * optional string app = 2; * @return The bytes for app. */ public com.google.protobuf.ByteString getAppBytes() { java.lang.Object ref = app_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); app_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The app id
       * 
* * optional string app = 2; * @param value The app to set. * @return This builder for chaining. */ public Builder setApp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } app_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The app id
       * 
* * optional string app = 2; * @return This builder for chaining. */ public Builder clearApp() { app_ = getDefaultInstance().getApp(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The app id
       * 
* * optional string app = 2; * @param value The bytes for app to set. * @return This builder for chaining. */ public Builder setAppBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } app_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object databaseId_ = ""; /** *
       * the database
       * 
* * optional string database_id = 3; * @return Whether the databaseId field is set. */ public boolean hasDatabaseId() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * the database
       * 
* * optional string database_id = 3; * @return The databaseId. */ public java.lang.String getDatabaseId() { java.lang.Object ref = databaseId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { databaseId_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * the database
       * 
* * optional string database_id = 3; * @return The bytes for databaseId. */ public com.google.protobuf.ByteString getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); databaseId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * the database
       * 
* * optional string database_id = 3; * @param value The databaseId to set. * @return This builder for chaining. */ public Builder setDatabaseId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * the database
       * 
* * optional string database_id = 3; * @return This builder for chaining. */ public Builder clearDatabaseId() { databaseId_ = getDefaultInstance().getDatabaseId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * the database
       * 
* * optional string database_id = 3; * @param value The bytes for databaseId to set. * @return This builder for chaining. */ public Builder setDatabaseIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.Cursor) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.Cursor) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Cursor parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.Error) com.google.protobuf.MessageOrBuilder { } /** *
   * RPC request and response objects, along with response error codes for error
   * handling. Prometheus uses Stubby's application error reporting mechanism, and
   * always sets an error detail message. However, in the case of internal errors,
   * these messages should not be reported to users.
   * 
* * Protobuf type {@code apphosting_datastore_v3.Error} */ public static final class Error extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.Error) ErrorOrBuilder { private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Error() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Error(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error.Builder.class); } /** *
     * If you add a new error code here, then also add it to the list of
     * tunneled datastore error codes in taskqueue.
     * LINT.IfChange
     * 
* * Protobuf enum {@code apphosting_datastore_v3.Error.ErrorCode} */ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { /** *
       * NOTE: Keep in sync with datastore_v4.proto.
       * 
* * BAD_REQUEST = 1; */ BAD_REQUEST(1), /** * CONCURRENT_TRANSACTION = 2; */ CONCURRENT_TRANSACTION(2), /** * INTERNAL_ERROR = 3; */ INTERNAL_ERROR(3), /** * NEED_INDEX = 4; */ NEED_INDEX(4), /** * TIMEOUT = 5; */ TIMEOUT(5), /** * PERMISSION_DENIED = 6; */ PERMISSION_DENIED(6), /** * BIGTABLE_ERROR = 7; */ BIGTABLE_ERROR(7), /** * COMMITTED_BUT_STILL_APPLYING = 8; */ COMMITTED_BUT_STILL_APPLYING(8), /** * CAPABILITY_DISABLED = 9; */ CAPABILITY_DISABLED(9), /** * TRY_ALTERNATE_BACKEND = 10; */ TRY_ALTERNATE_BACKEND(10), /** * SAFE_TIME_TOO_OLD = 11; */ SAFE_TIME_TOO_OLD(11), /** * RESOURCE_EXHAUSTED = 12; */ RESOURCE_EXHAUSTED(12), /** *
       * Each error code's default log level is specified in
       * DatastoreException.DEFAULT_LOG_LEVELS.
       * 
* * SNAPSHOT_VERSION_TOO_OLD = 18; */ SNAPSHOT_VERSION_TOO_OLD(18), /** *
       * Codes that are never returned by this service but which are used
       * internally because they correspond to canonical error codes.
       * 
* * NOT_FOUND = 13; */ NOT_FOUND(13), /** * ALREADY_EXISTS = 14; */ ALREADY_EXISTS(14), /** * FAILED_PRECONDITION = 15; */ FAILED_PRECONDITION(15), /** * UNAUTHENTICATED = 16; */ UNAUTHENTICATED(16), /** * ABORTED = 17; */ ABORTED(17), ; /** *
       * NOTE: Keep in sync with datastore_v4.proto.
       * 
* * BAD_REQUEST = 1; */ public static final int BAD_REQUEST_VALUE = 1; /** * CONCURRENT_TRANSACTION = 2; */ public static final int CONCURRENT_TRANSACTION_VALUE = 2; /** * INTERNAL_ERROR = 3; */ public static final int INTERNAL_ERROR_VALUE = 3; /** * NEED_INDEX = 4; */ public static final int NEED_INDEX_VALUE = 4; /** * TIMEOUT = 5; */ public static final int TIMEOUT_VALUE = 5; /** * PERMISSION_DENIED = 6; */ public static final int PERMISSION_DENIED_VALUE = 6; /** * BIGTABLE_ERROR = 7; */ public static final int BIGTABLE_ERROR_VALUE = 7; /** * COMMITTED_BUT_STILL_APPLYING = 8; */ public static final int COMMITTED_BUT_STILL_APPLYING_VALUE = 8; /** * CAPABILITY_DISABLED = 9; */ public static final int CAPABILITY_DISABLED_VALUE = 9; /** * TRY_ALTERNATE_BACKEND = 10; */ public static final int TRY_ALTERNATE_BACKEND_VALUE = 10; /** * SAFE_TIME_TOO_OLD = 11; */ public static final int SAFE_TIME_TOO_OLD_VALUE = 11; /** * RESOURCE_EXHAUSTED = 12; */ public static final int RESOURCE_EXHAUSTED_VALUE = 12; /** *
       * Each error code's default log level is specified in
       * DatastoreException.DEFAULT_LOG_LEVELS.
       * 
* * SNAPSHOT_VERSION_TOO_OLD = 18; */ public static final int SNAPSHOT_VERSION_TOO_OLD_VALUE = 18; /** *
       * Codes that are never returned by this service but which are used
       * internally because they correspond to canonical error codes.
       * 
* * NOT_FOUND = 13; */ public static final int NOT_FOUND_VALUE = 13; /** * ALREADY_EXISTS = 14; */ public static final int ALREADY_EXISTS_VALUE = 14; /** * FAILED_PRECONDITION = 15; */ public static final int FAILED_PRECONDITION_VALUE = 15; /** * UNAUTHENTICATED = 16; */ public static final int UNAUTHENTICATED_VALUE = 16; /** * ABORTED = 17; */ public static final int ABORTED_VALUE = 17; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ErrorCode valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ErrorCode forNumber(int value) { switch (value) { case 1: return BAD_REQUEST; case 2: return CONCURRENT_TRANSACTION; case 3: return INTERNAL_ERROR; case 4: return NEED_INDEX; case 5: return TIMEOUT; case 6: return PERMISSION_DENIED; case 7: return BIGTABLE_ERROR; case 8: return COMMITTED_BUT_STILL_APPLYING; case 9: return CAPABILITY_DISABLED; case 10: return TRY_ALTERNATE_BACKEND; case 11: return SAFE_TIME_TOO_OLD; case 12: return RESOURCE_EXHAUSTED; case 18: return SNAPSHOT_VERSION_TOO_OLD; case 13: return NOT_FOUND; case 14: return ALREADY_EXISTS; case 15: return FAILED_PRECONDITION; case 16: return UNAUTHENTICATED; case 17: return ABORTED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ErrorCode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ErrorCode findValueByNumber(int number) { return ErrorCode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error.getDescriptor().getEnumTypes().get(0); } private static final ErrorCode[] VALUES = values(); public static ErrorCode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private ErrorCode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:apphosting_datastore_v3.Error.ErrorCode) } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error 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.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error 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.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error 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.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * RPC request and response objects, along with response error codes for error
     * handling. Prometheus uses Stubby's application error reporting mechanism, and
     * always sets an error detail message. However, in the case of internal errors,
     * these messages should not be reported to users.
     * 
* * Protobuf type {@code apphosting_datastore_v3.Error} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.Error) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.ErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Error_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.Error) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.Error) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Error parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CostOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.Cost) com.google.protobuf.MessageOrBuilder { /** * optional int32 index_writes = 1; * @return Whether the indexWrites field is set. */ boolean hasIndexWrites(); /** * optional int32 index_writes = 1; * @return The indexWrites. */ int getIndexWrites(); /** *
     * Deprecated
     * 
* * optional int32 index_write_bytes = 2; * @return Whether the indexWriteBytes field is set. */ boolean hasIndexWriteBytes(); /** *
     * Deprecated
     * 
* * optional int32 index_write_bytes = 2; * @return The indexWriteBytes. */ int getIndexWriteBytes(); /** * optional int32 entity_writes = 3; * @return Whether the entityWrites field is set. */ boolean hasEntityWrites(); /** * optional int32 entity_writes = 3; * @return The entityWrites. */ int getEntityWrites(); /** *
     * Deprecated
     * 
* * optional int32 entity_write_bytes = 4; * @return Whether the entityWriteBytes field is set. */ boolean hasEntityWriteBytes(); /** *
     * Deprecated
     * 
* * optional int32 entity_write_bytes = 4; * @return The entityWriteBytes. */ int getEntityWriteBytes(); /** * optional group CommitCost = 5 { ... } * @return Whether the commitcost field is set. */ boolean hasCommitCost(); /** * optional group CommitCost = 5 { ... } * @return The commitcost. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost getCommitCost(); /** * optional group CommitCost = 5 { ... } */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCostOrBuilder getCommitCostOrBuilder(); /** * optional int32 approximate_storage_delta = 8; * @return Whether the approximateStorageDelta field is set. */ boolean hasApproximateStorageDelta(); /** * optional int32 approximate_storage_delta = 8; * @return The approximateStorageDelta. */ int getApproximateStorageDelta(); /** *
     * Number of times any id sequence was updated as a result of the request.
     * 
* * optional int32 id_sequence_updates = 9; * @return Whether the idSequenceUpdates field is set. */ boolean hasIdSequenceUpdates(); /** *
     * Number of times any id sequence was updated as a result of the request.
     * 
* * optional int32 id_sequence_updates = 9; * @return The idSequenceUpdates. */ int getIdSequenceUpdates(); } /** * Protobuf type {@code apphosting_datastore_v3.Cost} */ public static final class Cost extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.Cost) CostOrBuilder { private static final long serialVersionUID = 0L; // Use Cost.newBuilder() to construct. private Cost(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Cost() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Cost(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder.class); } public interface CommitCostOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.Cost.CommitCost) com.google.protobuf.MessageOrBuilder { /** * optional int32 requested_entity_puts = 6; * @return Whether the requestedEntityPuts field is set. */ boolean hasRequestedEntityPuts(); /** * optional int32 requested_entity_puts = 6; * @return The requestedEntityPuts. */ int getRequestedEntityPuts(); /** * optional int32 requested_entity_deletes = 7; * @return Whether the requestedEntityDeletes field is set. */ boolean hasRequestedEntityDeletes(); /** * optional int32 requested_entity_deletes = 7; * @return The requestedEntityDeletes. */ int getRequestedEntityDeletes(); } /** *
     * Used in the Commit response so we know how many put and delete ops to
     * charge for (we charge based on the number of puts and deletes requested,
     * not the number of puts and deletes actually performed).
     * 
* * Protobuf type {@code apphosting_datastore_v3.Cost.CommitCost} */ public static final class CommitCost extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.Cost.CommitCost) CommitCostOrBuilder { private static final long serialVersionUID = 0L; // Use CommitCost.newBuilder() to construct. private CommitCost(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitCost() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommitCost(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_CommitCost_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_CommitCost_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.Builder.class); } private int bitField0_; public static final int REQUESTED_ENTITY_PUTS_FIELD_NUMBER = 6; private int requestedEntityPuts_ = 0; /** * optional int32 requested_entity_puts = 6; * @return Whether the requestedEntityPuts field is set. */ @java.lang.Override public boolean hasRequestedEntityPuts() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 requested_entity_puts = 6; * @return The requestedEntityPuts. */ @java.lang.Override public int getRequestedEntityPuts() { return requestedEntityPuts_; } public static final int REQUESTED_ENTITY_DELETES_FIELD_NUMBER = 7; private int requestedEntityDeletes_ = 0; /** * optional int32 requested_entity_deletes = 7; * @return Whether the requestedEntityDeletes field is set. */ @java.lang.Override public boolean hasRequestedEntityDeletes() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 requested_entity_deletes = 7; * @return The requestedEntityDeletes. */ @java.lang.Override public int getRequestedEntityDeletes() { return requestedEntityDeletes_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(6, requestedEntityPuts_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(7, requestedEntityDeletes_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, requestedEntityPuts_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, requestedEntityDeletes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost) obj; if (hasRequestedEntityPuts() != other.hasRequestedEntityPuts()) return false; if (hasRequestedEntityPuts()) { if (getRequestedEntityPuts() != other.getRequestedEntityPuts()) return false; } if (hasRequestedEntityDeletes() != other.hasRequestedEntityDeletes()) return false; if (hasRequestedEntityDeletes()) { if (getRequestedEntityDeletes() != other.getRequestedEntityDeletes()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRequestedEntityPuts()) { hash = (37 * hash) + REQUESTED_ENTITY_PUTS_FIELD_NUMBER; hash = (53 * hash) + getRequestedEntityPuts(); } if (hasRequestedEntityDeletes()) { hash = (37 * hash) + REQUESTED_ENTITY_DELETES_FIELD_NUMBER; hash = (53 * hash) + getRequestedEntityDeletes(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
       * Used in the Commit response so we know how many put and delete ops to
       * charge for (we charge based on the number of puts and deletes requested,
       * not the number of puts and deletes actually performed).
       * 
* * Protobuf type {@code apphosting_datastore_v3.Cost.CommitCost} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.Cost.CommitCost) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCostOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_CommitCost_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_CommitCost_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; requestedEntityPuts_ = 0; requestedEntityDeletes_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_CommitCost_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.requestedEntityPuts_ = requestedEntityPuts_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.requestedEntityDeletes_ = requestedEntityDeletes_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.getDefaultInstance()) return this; if (other.hasRequestedEntityPuts()) { setRequestedEntityPuts(other.getRequestedEntityPuts()); } if (other.hasRequestedEntityDeletes()) { setRequestedEntityDeletes(other.getRequestedEntityDeletes()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 48: { requestedEntityPuts_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 48 case 56: { requestedEntityDeletes_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int requestedEntityPuts_ ; /** * optional int32 requested_entity_puts = 6; * @return Whether the requestedEntityPuts field is set. */ @java.lang.Override public boolean hasRequestedEntityPuts() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 requested_entity_puts = 6; * @return The requestedEntityPuts. */ @java.lang.Override public int getRequestedEntityPuts() { return requestedEntityPuts_; } /** * optional int32 requested_entity_puts = 6; * @param value The requestedEntityPuts to set. * @return This builder for chaining. */ public Builder setRequestedEntityPuts(int value) { requestedEntityPuts_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 requested_entity_puts = 6; * @return This builder for chaining. */ public Builder clearRequestedEntityPuts() { bitField0_ = (bitField0_ & ~0x00000001); requestedEntityPuts_ = 0; onChanged(); return this; } private int requestedEntityDeletes_ ; /** * optional int32 requested_entity_deletes = 7; * @return Whether the requestedEntityDeletes field is set. */ @java.lang.Override public boolean hasRequestedEntityDeletes() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 requested_entity_deletes = 7; * @return The requestedEntityDeletes. */ @java.lang.Override public int getRequestedEntityDeletes() { return requestedEntityDeletes_; } /** * optional int32 requested_entity_deletes = 7; * @param value The requestedEntityDeletes to set. * @return This builder for chaining. */ public Builder setRequestedEntityDeletes(int value) { requestedEntityDeletes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional int32 requested_entity_deletes = 7; * @return This builder for chaining. */ public Builder clearRequestedEntityDeletes() { bitField0_ = (bitField0_ & ~0x00000002); requestedEntityDeletes_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.Cost.CommitCost) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.Cost.CommitCost) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommitCost parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int INDEX_WRITES_FIELD_NUMBER = 1; private int indexWrites_ = 0; /** * optional int32 index_writes = 1; * @return Whether the indexWrites field is set. */ @java.lang.Override public boolean hasIndexWrites() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 index_writes = 1; * @return The indexWrites. */ @java.lang.Override public int getIndexWrites() { return indexWrites_; } public static final int INDEX_WRITE_BYTES_FIELD_NUMBER = 2; private int indexWriteBytes_ = 0; /** *
     * Deprecated
     * 
* * optional int32 index_write_bytes = 2; * @return Whether the indexWriteBytes field is set. */ @java.lang.Override public boolean hasIndexWriteBytes() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Deprecated
     * 
* * optional int32 index_write_bytes = 2; * @return The indexWriteBytes. */ @java.lang.Override public int getIndexWriteBytes() { return indexWriteBytes_; } public static final int ENTITY_WRITES_FIELD_NUMBER = 3; private int entityWrites_ = 0; /** * optional int32 entity_writes = 3; * @return Whether the entityWrites field is set. */ @java.lang.Override public boolean hasEntityWrites() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int32 entity_writes = 3; * @return The entityWrites. */ @java.lang.Override public int getEntityWrites() { return entityWrites_; } public static final int ENTITY_WRITE_BYTES_FIELD_NUMBER = 4; private int entityWriteBytes_ = 0; /** *
     * Deprecated
     * 
* * optional int32 entity_write_bytes = 4; * @return Whether the entityWriteBytes field is set. */ @java.lang.Override public boolean hasEntityWriteBytes() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Deprecated
     * 
* * optional int32 entity_write_bytes = 4; * @return The entityWriteBytes. */ @java.lang.Override public int getEntityWriteBytes() { return entityWriteBytes_; } public static final int COMMITCOST_FIELD_NUMBER = 5; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost commitCost_; /** * optional group CommitCost = 5 { ... } * @return Whether the commitcost field is set. */ @java.lang.Override public boolean hasCommitCost() { return ((bitField0_ & 0x00000010) != 0); } /** * optional group CommitCost = 5 { ... } * @return The commitcost. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost getCommitCost() { return commitCost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.getDefaultInstance() : commitCost_; } /** * optional group CommitCost = 5 { ... } */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCostOrBuilder getCommitCostOrBuilder() { return commitCost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.getDefaultInstance() : commitCost_; } public static final int APPROXIMATE_STORAGE_DELTA_FIELD_NUMBER = 8; private int approximateStorageDelta_ = 0; /** * optional int32 approximate_storage_delta = 8; * @return Whether the approximateStorageDelta field is set. */ @java.lang.Override public boolean hasApproximateStorageDelta() { return ((bitField0_ & 0x00000020) != 0); } /** * optional int32 approximate_storage_delta = 8; * @return The approximateStorageDelta. */ @java.lang.Override public int getApproximateStorageDelta() { return approximateStorageDelta_; } public static final int ID_SEQUENCE_UPDATES_FIELD_NUMBER = 9; private int idSequenceUpdates_ = 0; /** *
     * Number of times any id sequence was updated as a result of the request.
     * 
* * optional int32 id_sequence_updates = 9; * @return Whether the idSequenceUpdates field is set. */ @java.lang.Override public boolean hasIdSequenceUpdates() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Number of times any id sequence was updated as a result of the request.
     * 
* * optional int32 id_sequence_updates = 9; * @return The idSequenceUpdates. */ @java.lang.Override public int getIdSequenceUpdates() { return idSequenceUpdates_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, indexWrites_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, indexWriteBytes_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(3, entityWrites_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(4, entityWriteBytes_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeGroup(5, getCommitCost()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeInt32(8, approximateStorageDelta_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeInt32(9, idSequenceUpdates_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, indexWrites_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, indexWriteBytes_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, entityWrites_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, entityWriteBytes_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(5, getCommitCost()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, approximateStorageDelta_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, idSequenceUpdates_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost) obj; if (hasIndexWrites() != other.hasIndexWrites()) return false; if (hasIndexWrites()) { if (getIndexWrites() != other.getIndexWrites()) return false; } if (hasIndexWriteBytes() != other.hasIndexWriteBytes()) return false; if (hasIndexWriteBytes()) { if (getIndexWriteBytes() != other.getIndexWriteBytes()) return false; } if (hasEntityWrites() != other.hasEntityWrites()) return false; if (hasEntityWrites()) { if (getEntityWrites() != other.getEntityWrites()) return false; } if (hasEntityWriteBytes() != other.hasEntityWriteBytes()) return false; if (hasEntityWriteBytes()) { if (getEntityWriteBytes() != other.getEntityWriteBytes()) return false; } if (hasCommitCost() != other.hasCommitCost()) return false; if (hasCommitCost()) { if (!getCommitCost() .equals(other.getCommitCost())) return false; } if (hasApproximateStorageDelta() != other.hasApproximateStorageDelta()) return false; if (hasApproximateStorageDelta()) { if (getApproximateStorageDelta() != other.getApproximateStorageDelta()) return false; } if (hasIdSequenceUpdates() != other.hasIdSequenceUpdates()) return false; if (hasIdSequenceUpdates()) { if (getIdSequenceUpdates() != other.getIdSequenceUpdates()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasIndexWrites()) { hash = (37 * hash) + INDEX_WRITES_FIELD_NUMBER; hash = (53 * hash) + getIndexWrites(); } if (hasIndexWriteBytes()) { hash = (37 * hash) + INDEX_WRITE_BYTES_FIELD_NUMBER; hash = (53 * hash) + getIndexWriteBytes(); } if (hasEntityWrites()) { hash = (37 * hash) + ENTITY_WRITES_FIELD_NUMBER; hash = (53 * hash) + getEntityWrites(); } if (hasEntityWriteBytes()) { hash = (37 * hash) + ENTITY_WRITE_BYTES_FIELD_NUMBER; hash = (53 * hash) + getEntityWriteBytes(); } if (hasCommitCost()) { hash = (37 * hash) + COMMITCOST_FIELD_NUMBER; hash = (53 * hash) + getCommitCost().hashCode(); } if (hasApproximateStorageDelta()) { hash = (37 * hash) + APPROXIMATE_STORAGE_DELTA_FIELD_NUMBER; hash = (53 * hash) + getApproximateStorageDelta(); } if (hasIdSequenceUpdates()) { hash = (37 * hash) + ID_SEQUENCE_UPDATES_FIELD_NUMBER; hash = (53 * hash) + getIdSequenceUpdates(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost 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.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.Cost} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.Cost) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCommitCostFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; indexWrites_ = 0; indexWriteBytes_ = 0; entityWrites_ = 0; entityWriteBytes_ = 0; commitCost_ = null; if (commitCostBuilder_ != null) { commitCostBuilder_.dispose(); commitCostBuilder_ = null; } approximateStorageDelta_ = 0; idSequenceUpdates_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_Cost_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.indexWrites_ = indexWrites_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.indexWriteBytes_ = indexWriteBytes_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.entityWrites_ = entityWrites_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.entityWriteBytes_ = entityWriteBytes_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.commitCost_ = commitCostBuilder_ == null ? commitCost_ : commitCostBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.approximateStorageDelta_ = approximateStorageDelta_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.idSequenceUpdates_ = idSequenceUpdates_; to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance()) return this; if (other.hasIndexWrites()) { setIndexWrites(other.getIndexWrites()); } if (other.hasIndexWriteBytes()) { setIndexWriteBytes(other.getIndexWriteBytes()); } if (other.hasEntityWrites()) { setEntityWrites(other.getEntityWrites()); } if (other.hasEntityWriteBytes()) { setEntityWriteBytes(other.getEntityWriteBytes()); } if (other.hasCommitCost()) { mergeCommitCost(other.getCommitCost()); } if (other.hasApproximateStorageDelta()) { setApproximateStorageDelta(other.getApproximateStorageDelta()); } if (other.hasIdSequenceUpdates()) { setIdSequenceUpdates(other.getIdSequenceUpdates()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { indexWrites_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { indexWriteBytes_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { entityWrites_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { entityWriteBytes_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 43: { input.readGroup(5, getCommitCostFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 43 case 64: { approximateStorageDelta_ = input.readInt32(); bitField0_ |= 0x00000020; break; } // case 64 case 72: { idSequenceUpdates_ = input.readInt32(); bitField0_ |= 0x00000040; break; } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int indexWrites_ ; /** * optional int32 index_writes = 1; * @return Whether the indexWrites field is set. */ @java.lang.Override public boolean hasIndexWrites() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 index_writes = 1; * @return The indexWrites. */ @java.lang.Override public int getIndexWrites() { return indexWrites_; } /** * optional int32 index_writes = 1; * @param value The indexWrites to set. * @return This builder for chaining. */ public Builder setIndexWrites(int value) { indexWrites_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 index_writes = 1; * @return This builder for chaining. */ public Builder clearIndexWrites() { bitField0_ = (bitField0_ & ~0x00000001); indexWrites_ = 0; onChanged(); return this; } private int indexWriteBytes_ ; /** *
       * Deprecated
       * 
* * optional int32 index_write_bytes = 2; * @return Whether the indexWriteBytes field is set. */ @java.lang.Override public boolean hasIndexWriteBytes() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Deprecated
       * 
* * optional int32 index_write_bytes = 2; * @return The indexWriteBytes. */ @java.lang.Override public int getIndexWriteBytes() { return indexWriteBytes_; } /** *
       * Deprecated
       * 
* * optional int32 index_write_bytes = 2; * @param value The indexWriteBytes to set. * @return This builder for chaining. */ public Builder setIndexWriteBytes(int value) { indexWriteBytes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Deprecated
       * 
* * optional int32 index_write_bytes = 2; * @return This builder for chaining. */ public Builder clearIndexWriteBytes() { bitField0_ = (bitField0_ & ~0x00000002); indexWriteBytes_ = 0; onChanged(); return this; } private int entityWrites_ ; /** * optional int32 entity_writes = 3; * @return Whether the entityWrites field is set. */ @java.lang.Override public boolean hasEntityWrites() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int32 entity_writes = 3; * @return The entityWrites. */ @java.lang.Override public int getEntityWrites() { return entityWrites_; } /** * optional int32 entity_writes = 3; * @param value The entityWrites to set. * @return This builder for chaining. */ public Builder setEntityWrites(int value) { entityWrites_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional int32 entity_writes = 3; * @return This builder for chaining. */ public Builder clearEntityWrites() { bitField0_ = (bitField0_ & ~0x00000004); entityWrites_ = 0; onChanged(); return this; } private int entityWriteBytes_ ; /** *
       * Deprecated
       * 
* * optional int32 entity_write_bytes = 4; * @return Whether the entityWriteBytes field is set. */ @java.lang.Override public boolean hasEntityWriteBytes() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Deprecated
       * 
* * optional int32 entity_write_bytes = 4; * @return The entityWriteBytes. */ @java.lang.Override public int getEntityWriteBytes() { return entityWriteBytes_; } /** *
       * Deprecated
       * 
* * optional int32 entity_write_bytes = 4; * @param value The entityWriteBytes to set. * @return This builder for chaining. */ public Builder setEntityWriteBytes(int value) { entityWriteBytes_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Deprecated
       * 
* * optional int32 entity_write_bytes = 4; * @return This builder for chaining. */ public Builder clearEntityWriteBytes() { bitField0_ = (bitField0_ & ~0x00000008); entityWriteBytes_ = 0; onChanged(); return this; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost commitCost_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCostOrBuilder> commitCostBuilder_; /** * optional group CommitCost = 5 { ... } * @return Whether the commitcost field is set. */ public boolean hasCommitCost() { return ((bitField0_ & 0x00000010) != 0); } /** * optional group CommitCost = 5 { ... } * @return The commitcost. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost getCommitCost() { if (commitCostBuilder_ == null) { return commitCost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.getDefaultInstance() : commitCost_; } else { return commitCostBuilder_.getMessage(); } } /** * optional group CommitCost = 5 { ... } */ public Builder setCommitCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost value) { if (commitCostBuilder_ == null) { if (value == null) { throw new NullPointerException(); } commitCost_ = value; } else { commitCostBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional group CommitCost = 5 { ... } */ public Builder setCommitCost( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.Builder builderForValue) { if (commitCostBuilder_ == null) { commitCost_ = builderForValue.build(); } else { commitCostBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional group CommitCost = 5 { ... } */ public Builder mergeCommitCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost value) { if (commitCostBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && commitCost_ != null && commitCost_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.getDefaultInstance()) { getCommitCostBuilder().mergeFrom(value); } else { commitCost_ = value; } } else { commitCostBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional group CommitCost = 5 { ... } */ public Builder clearCommitCost() { bitField0_ = (bitField0_ & ~0x00000010); commitCost_ = null; if (commitCostBuilder_ != null) { commitCostBuilder_.dispose(); commitCostBuilder_ = null; } onChanged(); return this; } /** * optional group CommitCost = 5 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.Builder getCommitCostBuilder() { bitField0_ |= 0x00000010; onChanged(); return getCommitCostFieldBuilder().getBuilder(); } /** * optional group CommitCost = 5 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCostOrBuilder getCommitCostOrBuilder() { if (commitCostBuilder_ != null) { return commitCostBuilder_.getMessageOrBuilder(); } else { return commitCost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.getDefaultInstance() : commitCost_; } } /** * optional group CommitCost = 5 { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCostOrBuilder> getCommitCostFieldBuilder() { if (commitCostBuilder_ == null) { commitCostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.CommitCostOrBuilder>( getCommitCost(), getParentForChildren(), isClean()); commitCost_ = null; } return commitCostBuilder_; } private int approximateStorageDelta_ ; /** * optional int32 approximate_storage_delta = 8; * @return Whether the approximateStorageDelta field is set. */ @java.lang.Override public boolean hasApproximateStorageDelta() { return ((bitField0_ & 0x00000020) != 0); } /** * optional int32 approximate_storage_delta = 8; * @return The approximateStorageDelta. */ @java.lang.Override public int getApproximateStorageDelta() { return approximateStorageDelta_; } /** * optional int32 approximate_storage_delta = 8; * @param value The approximateStorageDelta to set. * @return This builder for chaining. */ public Builder setApproximateStorageDelta(int value) { approximateStorageDelta_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional int32 approximate_storage_delta = 8; * @return This builder for chaining. */ public Builder clearApproximateStorageDelta() { bitField0_ = (bitField0_ & ~0x00000020); approximateStorageDelta_ = 0; onChanged(); return this; } private int idSequenceUpdates_ ; /** *
       * Number of times any id sequence was updated as a result of the request.
       * 
* * optional int32 id_sequence_updates = 9; * @return Whether the idSequenceUpdates field is set. */ @java.lang.Override public boolean hasIdSequenceUpdates() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * Number of times any id sequence was updated as a result of the request.
       * 
* * optional int32 id_sequence_updates = 9; * @return The idSequenceUpdates. */ @java.lang.Override public int getIdSequenceUpdates() { return idSequenceUpdates_; } /** *
       * Number of times any id sequence was updated as a result of the request.
       * 
* * optional int32 id_sequence_updates = 9; * @param value The idSequenceUpdates to set. * @return This builder for chaining. */ public Builder setIdSequenceUpdates(int value) { idSequenceUpdates_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * Number of times any id sequence was updated as a result of the request.
       * 
* * optional int32 id_sequence_updates = 9; * @return This builder for chaining. */ public Builder clearIdSequenceUpdates() { bitField0_ = (bitField0_ & ~0x00000040); idSequenceUpdates_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.Cost) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.Cost) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Cost parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.GetRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Tag 6 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ java.util.List getKeyList(); /** *
     * Tag 6 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(int index); /** *
     * Tag 6 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ int getKeyCount(); /** *
     * Tag 6 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ java.util.List getKeyOrBuilderList(); /** *
     * Tag 6 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder( int index); /** * optional .apphosting_datastore_v3.Transaction transaction = 2; * @return Whether the transaction field is set. */ boolean hasTransaction(); /** * optional .apphosting_datastore_v3.Transaction transaction = 2; * @return The transaction. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction(); /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder(); /** *
     * How long to wait on the primary replica before attempting to read from a
     * secondary, possibly stale replica. May not be set if a transaction is
     * provided.
     * NOTE: The actual value is overwritten by the datastore, setting
     * only has the effect of enabling failover in M/S.
     * 
* * optional int64 failover_ms = 3; * @return Whether the failoverMs field is set. */ boolean hasFailoverMs(); /** *
     * How long to wait on the primary replica before attempting to read from a
     * secondary, possibly stale replica. May not be set if a transaction is
     * provided.
     * NOTE: The actual value is overwritten by the datastore, setting
     * only has the effect of enabling failover in M/S.
     * 
* * optional int64 failover_ms = 3; * @return The failoverMs. */ long getFailoverMs(); /** *
     * Should Datastore use READ_CURRENT (strong reads) for this request?
     * If unset the datastore decides based on a flag that defaults to
     * READ_CONSISTENT. This lets the caller choose between low latency/eventual
     * consistency (false) and potentially higher latency/strong consistency
     * (true). This is typically not a concern with 1.0.1 replication as (false)
     * will never return results more than one job behind, but is important for
     * paxos where (false) can return results that are significantly behind.
     * 
* * optional bool strong = 4; * @return Whether the strong field is set. */ boolean hasStrong(); /** *
     * Should Datastore use READ_CURRENT (strong reads) for this request?
     * If unset the datastore decides based on a flag that defaults to
     * READ_CONSISTENT. This lets the caller choose between low latency/eventual
     * consistency (false) and potentially higher latency/strong consistency
     * (true). This is typically not a concern with 1.0.1 replication as (false)
     * will never return results more than one job behind, but is important for
     * paxos where (false) can return results that are significantly behind.
     * 
* * optional bool strong = 4; * @return The strong. */ boolean getStrong(); /** *
     * This flag allows the datastore to defer fetching some of the requested
     * keys. If set, results may not be returned in the same order as requested,
     * and the deferred field will be populated with any keys that were not
     * fetched. If not set, the datastore may throw an exception instead of
     * fetching all the requested entities to protect itself from running out of
     * memory.
     * 
* * optional bool allow_deferred = 5 [default = false]; * @return Whether the allowDeferred field is set. */ boolean hasAllowDeferred(); /** *
     * This flag allows the datastore to defer fetching some of the requested
     * keys. If set, results may not be returned in the same order as requested,
     * and the deferred field will be populated with any keys that were not
     * fetched. If not set, the datastore may throw an exception instead of
     * fetching all the requested entities to protect itself from running out of
     * memory.
     * 
* * optional bool allow_deferred = 5 [default = false]; * @return The allowDeferred. */ boolean getAllowDeferred(); } /** * Protobuf type {@code apphosting_datastore_v3.GetRequest} */ public static final class GetRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.GetRequest) GetRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetRequest.newBuilder() to construct. private GetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetRequest() { key_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List key_; /** *
     * Tag 6 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ @java.lang.Override public java.util.List getKeyList() { return key_; } /** *
     * Tag 6 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ @java.lang.Override public java.util.List getKeyOrBuilderList() { return key_; } /** *
     * Tag 6 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ @java.lang.Override public int getKeyCount() { return key_.size(); } /** *
     * Tag 6 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(int index) { return key_.get(index); } /** *
     * Tag 6 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder( int index) { return key_.get(index); } public static final int TRANSACTION_FIELD_NUMBER = 2; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction transaction_; /** * optional .apphosting_datastore_v3.Transaction transaction = 2; * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; * @return The transaction. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction() { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder() { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } public static final int FAILOVER_MS_FIELD_NUMBER = 3; private long failoverMs_ = 0L; /** *
     * How long to wait on the primary replica before attempting to read from a
     * secondary, possibly stale replica. May not be set if a transaction is
     * provided.
     * NOTE: The actual value is overwritten by the datastore, setting
     * only has the effect of enabling failover in M/S.
     * 
* * optional int64 failover_ms = 3; * @return Whether the failoverMs field is set. */ @java.lang.Override public boolean hasFailoverMs() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * How long to wait on the primary replica before attempting to read from a
     * secondary, possibly stale replica. May not be set if a transaction is
     * provided.
     * NOTE: The actual value is overwritten by the datastore, setting
     * only has the effect of enabling failover in M/S.
     * 
* * optional int64 failover_ms = 3; * @return The failoverMs. */ @java.lang.Override public long getFailoverMs() { return failoverMs_; } public static final int STRONG_FIELD_NUMBER = 4; private boolean strong_ = false; /** *
     * Should Datastore use READ_CURRENT (strong reads) for this request?
     * If unset the datastore decides based on a flag that defaults to
     * READ_CONSISTENT. This lets the caller choose between low latency/eventual
     * consistency (false) and potentially higher latency/strong consistency
     * (true). This is typically not a concern with 1.0.1 replication as (false)
     * will never return results more than one job behind, but is important for
     * paxos where (false) can return results that are significantly behind.
     * 
* * optional bool strong = 4; * @return Whether the strong field is set. */ @java.lang.Override public boolean hasStrong() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Should Datastore use READ_CURRENT (strong reads) for this request?
     * If unset the datastore decides based on a flag that defaults to
     * READ_CONSISTENT. This lets the caller choose between low latency/eventual
     * consistency (false) and potentially higher latency/strong consistency
     * (true). This is typically not a concern with 1.0.1 replication as (false)
     * will never return results more than one job behind, but is important for
     * paxos where (false) can return results that are significantly behind.
     * 
* * optional bool strong = 4; * @return The strong. */ @java.lang.Override public boolean getStrong() { return strong_; } public static final int ALLOW_DEFERRED_FIELD_NUMBER = 5; private boolean allowDeferred_ = false; /** *
     * This flag allows the datastore to defer fetching some of the requested
     * keys. If set, results may not be returned in the same order as requested,
     * and the deferred field will be populated with any keys that were not
     * fetched. If not set, the datastore may throw an exception instead of
     * fetching all the requested entities to protect itself from running out of
     * memory.
     * 
* * optional bool allow_deferred = 5 [default = false]; * @return Whether the allowDeferred field is set. */ @java.lang.Override public boolean hasAllowDeferred() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * This flag allows the datastore to defer fetching some of the requested
     * keys. If set, results may not be returned in the same order as requested,
     * and the deferred field will be populated with any keys that were not
     * fetched. If not set, the datastore may throw an exception instead of
     * fetching all the requested entities to protect itself from running out of
     * memory.
     * 
* * optional bool allow_deferred = 5 [default = false]; * @return The allowDeferred. */ @java.lang.Override public boolean getAllowDeferred() { return allowDeferred_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getKeyCount(); i++) { if (!getKey(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasTransaction()) { if (!getTransaction().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < key_.size(); i++) { output.writeMessage(1, key_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTransaction()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(3, failoverMs_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(4, strong_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(5, allowDeferred_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < key_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, key_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTransaction()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, failoverMs_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, strong_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, allowDeferred_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest) obj; if (!getKeyList() .equals(other.getKeyList())) return false; if (hasTransaction() != other.hasTransaction()) return false; if (hasTransaction()) { if (!getTransaction() .equals(other.getTransaction())) return false; } if (hasFailoverMs() != other.hasFailoverMs()) return false; if (hasFailoverMs()) { if (getFailoverMs() != other.getFailoverMs()) return false; } if (hasStrong() != other.hasStrong()) return false; if (hasStrong()) { if (getStrong() != other.getStrong()) return false; } if (hasAllowDeferred() != other.hasAllowDeferred()) return false; if (hasAllowDeferred()) { if (getAllowDeferred() != other.getAllowDeferred()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getKeyCount() > 0) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKeyList().hashCode(); } if (hasTransaction()) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); } if (hasFailoverMs()) { hash = (37 * hash) + FAILOVER_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFailoverMs()); } if (hasStrong()) { hash = (37 * hash) + STRONG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getStrong()); } if (hasAllowDeferred()) { hash = (37 * hash) + ALLOW_DEFERRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowDeferred()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.GetRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.GetRequest) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getKeyFieldBuilder(); getTransactionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (keyBuilder_ == null) { key_ = java.util.Collections.emptyList(); } else { key_ = null; keyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } failoverMs_ = 0L; strong_ = false; allowDeferred_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetRequest_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest result) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { key_ = java.util.Collections.unmodifiableList(key_); bitField0_ = (bitField0_ & ~0x00000001); } result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.transaction_ = transactionBuilder_ == null ? transaction_ : transactionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.failoverMs_ = failoverMs_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.strong_ = strong_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.allowDeferred_ = allowDeferred_; to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest.getDefaultInstance()) return this; if (keyBuilder_ == null) { if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } } else { if (!other.key_.isEmpty()) { if (keyBuilder_.isEmpty()) { keyBuilder_.dispose(); keyBuilder_ = null; key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); keyBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKeyFieldBuilder() : null; } else { keyBuilder_.addAllMessages(other.key_); } } } if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } if (other.hasFailoverMs()) { setFailoverMs(other.getFailoverMs()); } if (other.hasStrong()) { setStrong(other.getStrong()); } if (other.hasAllowDeferred()) { setAllowDeferred(other.getAllowDeferred()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getKeyCount(); i++) { if (!getKey(i).isInitialized()) { return false; } } if (hasTransaction()) { if (!getTransaction().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.PARSER, extensionRegistry); if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.add(m); } else { keyBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getTransactionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { failoverMs_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { strong_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { allowDeferred_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List key_ = java.util.Collections.emptyList(); private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { key_ = new java.util.ArrayList(key_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> keyBuilder_; /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public java.util.List getKeyList() { if (keyBuilder_ == null) { return java.util.Collections.unmodifiableList(key_); } else { return keyBuilder_.getMessageList(); } } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public int getKeyCount() { if (keyBuilder_ == null) { return key_.size(); } else { return keyBuilder_.getCount(); } } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(int index) { if (keyBuilder_ == null) { return key_.get(index); } else { return keyBuilder_.getMessage(index); } } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder setKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); } else { keyBuilder_.setMessage(index, value); } return this; } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder setKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.set(index, builderForValue.build()); onChanged(); } else { keyBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder addKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); } else { keyBuilder_.addMessage(value); } return this; } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder addKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(index, value); onChanged(); } else { keyBuilder_.addMessage(index, value); } return this; } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder addKey( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.add(builderForValue.build()); onChanged(); } else { keyBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder addKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.add(index, builderForValue.build()); onChanged(); } else { keyBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder addAllKey( java.lang.Iterable values) { if (keyBuilder_ == null) { ensureKeyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, key_); onChanged(); } else { keyBuilder_.addAllMessages(values); } return this; } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { keyBuilder_.clear(); } return this; } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder removeKey(int index) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.remove(index); onChanged(); } else { keyBuilder_.remove(index); } return this; } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder getKeyBuilder( int index) { return getKeyFieldBuilder().getBuilder(index); } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder( int index) { if (keyBuilder_ == null) { return key_.get(index); } else { return keyBuilder_.getMessageOrBuilder(index); } } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public java.util.List getKeyOrBuilderList() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(key_); } } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder addKeyBuilder() { return getKeyFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()); } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder addKeyBuilder( int index) { return getKeyFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()); } /** *
       * Tag 6 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public java.util.List getKeyBuilderList() { return getKeyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>( key_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction transaction_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder> transactionBuilder_; /** * optional .apphosting_datastore_v3.Transaction transaction = 2; * @return Whether the transaction field is set. */ public boolean hasTransaction() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; * @return The transaction. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ public Builder setTransaction(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; } else { transactionBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ public Builder setTransaction( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); } else { transactionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ public Builder mergeTransaction(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction value) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && transaction_ != null && transaction_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance()) { getTransactionBuilder().mergeFrom(value); } else { transaction_ = value; } } else { transactionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ public Builder clearTransaction() { bitField0_ = (bitField0_ & ~0x00000002); transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } onChanged(); return this; } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder getTransactionBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder>( getTransaction(), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } private long failoverMs_ ; /** *
       * How long to wait on the primary replica before attempting to read from a
       * secondary, possibly stale replica. May not be set if a transaction is
       * provided.
       * NOTE: The actual value is overwritten by the datastore, setting
       * only has the effect of enabling failover in M/S.
       * 
* * optional int64 failover_ms = 3; * @return Whether the failoverMs field is set. */ @java.lang.Override public boolean hasFailoverMs() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * How long to wait on the primary replica before attempting to read from a
       * secondary, possibly stale replica. May not be set if a transaction is
       * provided.
       * NOTE: The actual value is overwritten by the datastore, setting
       * only has the effect of enabling failover in M/S.
       * 
* * optional int64 failover_ms = 3; * @return The failoverMs. */ @java.lang.Override public long getFailoverMs() { return failoverMs_; } /** *
       * How long to wait on the primary replica before attempting to read from a
       * secondary, possibly stale replica. May not be set if a transaction is
       * provided.
       * NOTE: The actual value is overwritten by the datastore, setting
       * only has the effect of enabling failover in M/S.
       * 
* * optional int64 failover_ms = 3; * @param value The failoverMs to set. * @return This builder for chaining. */ public Builder setFailoverMs(long value) { failoverMs_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * How long to wait on the primary replica before attempting to read from a
       * secondary, possibly stale replica. May not be set if a transaction is
       * provided.
       * NOTE: The actual value is overwritten by the datastore, setting
       * only has the effect of enabling failover in M/S.
       * 
* * optional int64 failover_ms = 3; * @return This builder for chaining. */ public Builder clearFailoverMs() { bitField0_ = (bitField0_ & ~0x00000004); failoverMs_ = 0L; onChanged(); return this; } private boolean strong_ ; /** *
       * Should Datastore use READ_CURRENT (strong reads) for this request?
       * If unset the datastore decides based on a flag that defaults to
       * READ_CONSISTENT. This lets the caller choose between low latency/eventual
       * consistency (false) and potentially higher latency/strong consistency
       * (true). This is typically not a concern with 1.0.1 replication as (false)
       * will never return results more than one job behind, but is important for
       * paxos where (false) can return results that are significantly behind.
       * 
* * optional bool strong = 4; * @return Whether the strong field is set. */ @java.lang.Override public boolean hasStrong() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Should Datastore use READ_CURRENT (strong reads) for this request?
       * If unset the datastore decides based on a flag that defaults to
       * READ_CONSISTENT. This lets the caller choose between low latency/eventual
       * consistency (false) and potentially higher latency/strong consistency
       * (true). This is typically not a concern with 1.0.1 replication as (false)
       * will never return results more than one job behind, but is important for
       * paxos where (false) can return results that are significantly behind.
       * 
* * optional bool strong = 4; * @return The strong. */ @java.lang.Override public boolean getStrong() { return strong_; } /** *
       * Should Datastore use READ_CURRENT (strong reads) for this request?
       * If unset the datastore decides based on a flag that defaults to
       * READ_CONSISTENT. This lets the caller choose between low latency/eventual
       * consistency (false) and potentially higher latency/strong consistency
       * (true). This is typically not a concern with 1.0.1 replication as (false)
       * will never return results more than one job behind, but is important for
       * paxos where (false) can return results that are significantly behind.
       * 
* * optional bool strong = 4; * @param value The strong to set. * @return This builder for chaining. */ public Builder setStrong(boolean value) { strong_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Should Datastore use READ_CURRENT (strong reads) for this request?
       * If unset the datastore decides based on a flag that defaults to
       * READ_CONSISTENT. This lets the caller choose between low latency/eventual
       * consistency (false) and potentially higher latency/strong consistency
       * (true). This is typically not a concern with 1.0.1 replication as (false)
       * will never return results more than one job behind, but is important for
       * paxos where (false) can return results that are significantly behind.
       * 
* * optional bool strong = 4; * @return This builder for chaining. */ public Builder clearStrong() { bitField0_ = (bitField0_ & ~0x00000008); strong_ = false; onChanged(); return this; } private boolean allowDeferred_ ; /** *
       * This flag allows the datastore to defer fetching some of the requested
       * keys. If set, results may not be returned in the same order as requested,
       * and the deferred field will be populated with any keys that were not
       * fetched. If not set, the datastore may throw an exception instead of
       * fetching all the requested entities to protect itself from running out of
       * memory.
       * 
* * optional bool allow_deferred = 5 [default = false]; * @return Whether the allowDeferred field is set. */ @java.lang.Override public boolean hasAllowDeferred() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * This flag allows the datastore to defer fetching some of the requested
       * keys. If set, results may not be returned in the same order as requested,
       * and the deferred field will be populated with any keys that were not
       * fetched. If not set, the datastore may throw an exception instead of
       * fetching all the requested entities to protect itself from running out of
       * memory.
       * 
* * optional bool allow_deferred = 5 [default = false]; * @return The allowDeferred. */ @java.lang.Override public boolean getAllowDeferred() { return allowDeferred_; } /** *
       * This flag allows the datastore to defer fetching some of the requested
       * keys. If set, results may not be returned in the same order as requested,
       * and the deferred field will be populated with any keys that were not
       * fetched. If not set, the datastore may throw an exception instead of
       * fetching all the requested entities to protect itself from running out of
       * memory.
       * 
* * optional bool allow_deferred = 5 [default = false]; * @param value The allowDeferred to set. * @return This builder for chaining. */ public Builder setAllowDeferred(boolean value) { allowDeferred_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * This flag allows the datastore to defer fetching some of the requested
       * keys. If set, results may not be returned in the same order as requested,
       * and the deferred field will be populated with any keys that were not
       * fetched. If not set, the datastore may throw an exception instead of
       * fetching all the requested entities to protect itself from running out of
       * memory.
       * 
* * optional bool allow_deferred = 5 [default = false]; * @return This builder for chaining. */ public Builder clearAllowDeferred() { bitField0_ = (bitField0_ & ~0x00000010); allowDeferred_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.GetRequest) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.GetRequest) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.GetResponse) com.google.protobuf.MessageOrBuilder { /** * repeated group Entity = 1 { ... } */ java.util.List getEntityList(); /** * repeated group Entity = 1 { ... } */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity getEntity(int index); /** * repeated group Entity = 1 { ... } */ int getEntityCount(); /** * repeated group Entity = 1 { ... } */ java.util.List getEntityOrBuilderList(); /** * repeated group Entity = 1 { ... } */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder getEntityOrBuilder( int index); /** *
     * A list of keys that were not looked up due to resource constraints.
     * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ java.util.List getDeferredList(); /** *
     * A list of keys that were not looked up due to resource constraints.
     * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getDeferred(int index); /** *
     * A list of keys that were not looked up due to resource constraints.
     * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ int getDeferredCount(); /** *
     * A list of keys that were not looked up due to resource constraints.
     * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ java.util.List getDeferredOrBuilderList(); /** *
     * A list of keys that were not looked up due to resource constraints.
     * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getDeferredOrBuilder( int index); /** *
     * Signifies whether or not the entities in this response match the order of
     * the keys in the GetRequest.  This also implies that there are no deferred
     * results.
     * TODO: We should eventually switch this default value to false.
     * It is nice to have it default to true during initial rollout so that
     * clients will fall back to their existing behavior if we need to rollback
     * the backend and this is unset.
     * 
* * optional bool in_order = 6 [default = true]; * @return Whether the inOrder field is set. */ boolean hasInOrder(); /** *
     * Signifies whether or not the entities in this response match the order of
     * the keys in the GetRequest.  This also implies that there are no deferred
     * results.
     * TODO: We should eventually switch this default value to false.
     * It is nice to have it default to true during initial rollout so that
     * clients will fall back to their existing behavior if we need to rollback
     * the backend and this is unset.
     * 
* * optional bool in_order = 6 [default = true]; * @return The inOrder. */ boolean getInOrder(); } /** * Protobuf type {@code apphosting_datastore_v3.GetResponse} */ public static final class GetResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.GetResponse) GetResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetResponse.newBuilder() to construct. private GetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetResponse() { entity_ = java.util.Collections.emptyList(); deferred_ = java.util.Collections.emptyList(); inOrder_ = true; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Builder.class); } public interface EntityOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.GetResponse.Entity) com.google.protobuf.MessageOrBuilder { /** * optional .storage_onestore_v3.EntityProto entity = 2; * @return Whether the entity field is set. */ boolean hasEntity(); /** * optional .storage_onestore_v3.EntityProto entity = 2; * @return The entity. */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto getEntity(); /** * optional .storage_onestore_v3.EntityProto entity = 2; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder getEntityOrBuilder(); /** * optional .storage_onestore_v3.Reference key = 4; * @return Whether the key field is set. */ boolean hasKey(); /** * optional .storage_onestore_v3.Reference key = 4; * @return The key. */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(); /** * optional .storage_onestore_v3.Reference key = 4; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder(); /** *
       * The version of the entity
       * If the entity does not exist, a version number is returned for <empty>
       * iff 'strong' or 'transaction' was set.
       * 
* * optional int64 version = 3; * @return Whether the version field is set. */ boolean hasVersion(); /** *
       * The version of the entity
       * If the entity does not exist, a version number is returned for <empty>
       * iff 'strong' or 'transaction' was set.
       * 
* * optional int64 version = 3; * @return The version. */ long getVersion(); } /** *
     * The entity field will be set for keys that were found, and the key field
     * will be set for keys that weren't found.
     * If allow_deferred was set in the request, then these Entities may not be in
     * the same order as the keys in the request.  See the in_order field.
     * Additionally, there would be no guarantee on how many results will appear
     * if the request contained duplicate keys.
     * If allow_deferred was not set in the request, then these Entities will
     * always be in the same order as the request, and the in_order field will be
     * true.
     * 
* * Protobuf type {@code apphosting_datastore_v3.GetResponse.Entity} */ public static final class Entity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.GetResponse.Entity) EntityOrBuilder { private static final long serialVersionUID = 0L; // Use Entity.newBuilder() to construct. private Entity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Entity() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Entity(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_Entity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_Entity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder.class); } private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 2; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto entity_; /** * optional .storage_onestore_v3.EntityProto entity = 2; * @return Whether the entity field is set. */ @java.lang.Override public boolean hasEntity() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .storage_onestore_v3.EntityProto entity = 2; * @return The entity. */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto getEntity() { return entity_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance() : entity_; } /** * optional .storage_onestore_v3.EntityProto entity = 2; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder getEntityOrBuilder() { return entity_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance() : entity_; } public static final int KEY_FIELD_NUMBER = 4; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference key_; /** * optional .storage_onestore_v3.Reference key = 4; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .storage_onestore_v3.Reference key = 4; * @return The key. */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey() { return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_; } /** * optional .storage_onestore_v3.Reference key = 4; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder() { return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_; } public static final int VERSION_FIELD_NUMBER = 3; private long version_ = 0L; /** *
       * The version of the entity
       * If the entity does not exist, a version number is returned for <empty>
       * iff 'strong' or 'transaction' was set.
       * 
* * optional int64 version = 3; * @return Whether the version field is set. */ @java.lang.Override public boolean hasVersion() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * The version of the entity
       * If the entity does not exist, a version number is returned for <empty>
       * iff 'strong' or 'transaction' was set.
       * 
* * optional int64 version = 3; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasEntity()) { if (!getEntity().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasKey()) { if (!getKey().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getEntity()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(3, version_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getKey()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEntity()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, version_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getKey()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity) obj; if (hasEntity() != other.hasEntity()) return false; if (hasEntity()) { if (!getEntity() .equals(other.getEntity())) return false; } if (hasKey() != other.hasKey()) return false; if (hasKey()) { if (!getKey() .equals(other.getKey())) return false; } if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { if (getVersion() != other.getVersion()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasEntity()) { hash = (37 * hash) + ENTITY_FIELD_NUMBER; hash = (53 * hash) + getEntity().hashCode(); } if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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 entity field will be set for keys that were found, and the key field
       * will be set for keys that weren't found.
       * If allow_deferred was set in the request, then these Entities may not be in
       * the same order as the keys in the request.  See the in_order field.
       * Additionally, there would be no guarantee on how many results will appear
       * if the request contained duplicate keys.
       * If allow_deferred was not set in the request, then these Entities will
       * always be in the same order as the request, and the in_order field will be
       * true.
       * 
* * Protobuf type {@code apphosting_datastore_v3.GetResponse.Entity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.GetResponse.Entity) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_Entity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_Entity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEntityFieldBuilder(); getKeyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; entity_ = null; if (entityBuilder_ != null) { entityBuilder_.dispose(); entityBuilder_ = null; } key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } version_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_Entity_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.entity_ = entityBuilder_ == null ? entity_ : entityBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.key_ = keyBuilder_ == null ? key_ : keyBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.version_ = version_; to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.getDefaultInstance()) return this; if (other.hasEntity()) { mergeEntity(other.getEntity()); } if (other.hasKey()) { mergeKey(other.getKey()); } if (other.hasVersion()) { setVersion(other.getVersion()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasEntity()) { if (!getEntity().isInitialized()) { return false; } } if (hasKey()) { if (!getKey().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 18: { input.readMessage( getEntityFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 18 case 24: { version_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage( getKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto entity_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder> entityBuilder_; /** * optional .storage_onestore_v3.EntityProto entity = 2; * @return Whether the entity field is set. */ public boolean hasEntity() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .storage_onestore_v3.EntityProto entity = 2; * @return The entity. */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto getEntity() { if (entityBuilder_ == null) { return entity_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance() : entity_; } else { return entityBuilder_.getMessage(); } } /** * optional .storage_onestore_v3.EntityProto entity = 2; */ public Builder setEntity(com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto value) { if (entityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entity_ = value; } else { entityBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .storage_onestore_v3.EntityProto entity = 2; */ public Builder setEntity( com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder builderForValue) { if (entityBuilder_ == null) { entity_ = builderForValue.build(); } else { entityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .storage_onestore_v3.EntityProto entity = 2; */ public Builder mergeEntity(com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto value) { if (entityBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && entity_ != null && entity_ != com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance()) { getEntityBuilder().mergeFrom(value); } else { entity_ = value; } } else { entityBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .storage_onestore_v3.EntityProto entity = 2; */ public Builder clearEntity() { bitField0_ = (bitField0_ & ~0x00000001); entity_ = null; if (entityBuilder_ != null) { entityBuilder_.dispose(); entityBuilder_ = null; } onChanged(); return this; } /** * optional .storage_onestore_v3.EntityProto entity = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder getEntityBuilder() { bitField0_ |= 0x00000001; onChanged(); return getEntityFieldBuilder().getBuilder(); } /** * optional .storage_onestore_v3.EntityProto entity = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder getEntityOrBuilder() { if (entityBuilder_ != null) { return entityBuilder_.getMessageOrBuilder(); } else { return entity_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance() : entity_; } } /** * optional .storage_onestore_v3.EntityProto entity = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder> getEntityFieldBuilder() { if (entityBuilder_ == null) { entityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder>( getEntity(), getParentForChildren(), isClean()); entity_ = null; } return entityBuilder_; } private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference key_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> keyBuilder_; /** * optional .storage_onestore_v3.Reference key = 4; * @return Whether the key field is set. */ public boolean hasKey() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .storage_onestore_v3.Reference key = 4; * @return The key. */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey() { if (keyBuilder_ == null) { return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** * optional .storage_onestore_v3.Reference key = 4; */ public Builder setKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; } else { keyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .storage_onestore_v3.Reference key = 4; */ public Builder setKey( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); } else { keyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .storage_onestore_v3.Reference key = 4; */ public Builder mergeKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && key_ != null && key_ != com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; } } else { keyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .storage_onestore_v3.Reference key = 4; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } onChanged(); return this; } /** * optional .storage_onestore_v3.Reference key = 4; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder getKeyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getKeyFieldBuilder().getBuilder(); } /** * optional .storage_onestore_v3.Reference key = 4; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_; } } /** * optional .storage_onestore_v3.Reference key = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private long version_ ; /** *
         * The version of the entity
         * If the entity does not exist, a version number is returned for <empty>
         * iff 'strong' or 'transaction' was set.
         * 
* * optional int64 version = 3; * @return Whether the version field is set. */ @java.lang.Override public boolean hasVersion() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * The version of the entity
         * If the entity does not exist, a version number is returned for <empty>
         * iff 'strong' or 'transaction' was set.
         * 
* * optional int64 version = 3; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } /** *
         * The version of the entity
         * If the entity does not exist, a version number is returned for <empty>
         * iff 'strong' or 'transaction' was set.
         * 
* * optional int64 version = 3; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(long value) { version_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * The version of the entity
         * If the entity does not exist, a version number is returned for <empty>
         * iff 'strong' or 'transaction' was set.
         * 
* * optional int64 version = 3; * @return This builder for chaining. */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000004); version_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.GetResponse.Entity) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.GetResponse.Entity) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Entity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List entity_; /** * repeated group Entity = 1 { ... } */ @java.lang.Override public java.util.List getEntityList() { return entity_; } /** * repeated group Entity = 1 { ... } */ @java.lang.Override public java.util.List getEntityOrBuilderList() { return entity_; } /** * repeated group Entity = 1 { ... } */ @java.lang.Override public int getEntityCount() { return entity_.size(); } /** * repeated group Entity = 1 { ... } */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity getEntity(int index) { return entity_.get(index); } /** * repeated group Entity = 1 { ... } */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder getEntityOrBuilder( int index) { return entity_.get(index); } public static final int DEFERRED_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List deferred_; /** *
     * A list of keys that were not looked up due to resource constraints.
     * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ @java.lang.Override public java.util.List getDeferredList() { return deferred_; } /** *
     * A list of keys that were not looked up due to resource constraints.
     * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ @java.lang.Override public java.util.List getDeferredOrBuilderList() { return deferred_; } /** *
     * A list of keys that were not looked up due to resource constraints.
     * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ @java.lang.Override public int getDeferredCount() { return deferred_.size(); } /** *
     * A list of keys that were not looked up due to resource constraints.
     * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getDeferred(int index) { return deferred_.get(index); } /** *
     * A list of keys that were not looked up due to resource constraints.
     * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getDeferredOrBuilder( int index) { return deferred_.get(index); } public static final int IN_ORDER_FIELD_NUMBER = 6; private boolean inOrder_ = true; /** *
     * Signifies whether or not the entities in this response match the order of
     * the keys in the GetRequest.  This also implies that there are no deferred
     * results.
     * TODO: We should eventually switch this default value to false.
     * It is nice to have it default to true during initial rollout so that
     * clients will fall back to their existing behavior if we need to rollback
     * the backend and this is unset.
     * 
* * optional bool in_order = 6 [default = true]; * @return Whether the inOrder field is set. */ @java.lang.Override public boolean hasInOrder() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Signifies whether or not the entities in this response match the order of
     * the keys in the GetRequest.  This also implies that there are no deferred
     * results.
     * TODO: We should eventually switch this default value to false.
     * It is nice to have it default to true during initial rollout so that
     * clients will fall back to their existing behavior if we need to rollback
     * the backend and this is unset.
     * 
* * optional bool in_order = 6 [default = true]; * @return The inOrder. */ @java.lang.Override public boolean getInOrder() { return inOrder_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getEntityCount(); i++) { if (!getEntity(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getDeferredCount(); i++) { if (!getDeferred(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < entity_.size(); i++) { output.writeGroup(1, entity_.get(i)); } for (int i = 0; i < deferred_.size(); i++) { output.writeMessage(5, deferred_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(6, inOrder_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < entity_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(1, entity_.get(i)); } for (int i = 0; i < deferred_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, deferred_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, inOrder_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse) obj; if (!getEntityList() .equals(other.getEntityList())) return false; if (!getDeferredList() .equals(other.getDeferredList())) return false; if (hasInOrder() != other.hasInOrder()) return false; if (hasInOrder()) { if (getInOrder() != other.getInOrder()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getEntityCount() > 0) { hash = (37 * hash) + ENTITY_FIELD_NUMBER; hash = (53 * hash) + getEntityList().hashCode(); } if (getDeferredCount() > 0) { hash = (37 * hash) + DEFERRED_FIELD_NUMBER; hash = (53 * hash) + getDeferredList().hashCode(); } if (hasInOrder()) { hash = (37 * hash) + IN_ORDER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getInOrder()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.GetResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.GetResponse) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (entityBuilder_ == null) { entity_ = java.util.Collections.emptyList(); } else { entity_ = null; entityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (deferredBuilder_ == null) { deferred_ = java.util.Collections.emptyList(); } else { deferred_ = null; deferredBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); inOrder_ = true; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetResponse_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse result) { if (entityBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entity_ = java.util.Collections.unmodifiableList(entity_); bitField0_ = (bitField0_ & ~0x00000001); } result.entity_ = entity_; } else { result.entity_ = entityBuilder_.build(); } if (deferredBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { deferred_ = java.util.Collections.unmodifiableList(deferred_); bitField0_ = (bitField0_ & ~0x00000002); } result.deferred_ = deferred_; } else { result.deferred_ = deferredBuilder_.build(); } } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.inOrder_ = inOrder_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.getDefaultInstance()) return this; if (entityBuilder_ == null) { if (!other.entity_.isEmpty()) { if (entity_.isEmpty()) { entity_ = other.entity_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntityIsMutable(); entity_.addAll(other.entity_); } onChanged(); } } else { if (!other.entity_.isEmpty()) { if (entityBuilder_.isEmpty()) { entityBuilder_.dispose(); entityBuilder_ = null; entity_ = other.entity_; bitField0_ = (bitField0_ & ~0x00000001); entityBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntityFieldBuilder() : null; } else { entityBuilder_.addAllMessages(other.entity_); } } } if (deferredBuilder_ == null) { if (!other.deferred_.isEmpty()) { if (deferred_.isEmpty()) { deferred_ = other.deferred_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDeferredIsMutable(); deferred_.addAll(other.deferred_); } onChanged(); } } else { if (!other.deferred_.isEmpty()) { if (deferredBuilder_.isEmpty()) { deferredBuilder_.dispose(); deferredBuilder_ = null; deferred_ = other.deferred_; bitField0_ = (bitField0_ & ~0x00000002); deferredBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeferredFieldBuilder() : null; } else { deferredBuilder_.addAllMessages(other.deferred_); } } } if (other.hasInOrder()) { setInOrder(other.getInOrder()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getEntityCount(); i++) { if (!getEntity(i).isInitialized()) { return false; } } for (int i = 0; i < getDeferredCount(); i++) { if (!getDeferred(i).isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 11: { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity m = input.readGroup(1, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.PARSER, extensionRegistry); if (entityBuilder_ == null) { ensureEntityIsMutable(); entity_.add(m); } else { entityBuilder_.addMessage(m); } break; } // case 11 case 42: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.PARSER, extensionRegistry); if (deferredBuilder_ == null) { ensureDeferredIsMutable(); deferred_.add(m); } else { deferredBuilder_.addMessage(m); } break; } // case 42 case 48: { inOrder_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List entity_ = java.util.Collections.emptyList(); private void ensureEntityIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entity_ = new java.util.ArrayList(entity_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder> entityBuilder_; /** * repeated group Entity = 1 { ... } */ public java.util.List getEntityList() { if (entityBuilder_ == null) { return java.util.Collections.unmodifiableList(entity_); } else { return entityBuilder_.getMessageList(); } } /** * repeated group Entity = 1 { ... } */ public int getEntityCount() { if (entityBuilder_ == null) { return entity_.size(); } else { return entityBuilder_.getCount(); } } /** * repeated group Entity = 1 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity getEntity(int index) { if (entityBuilder_ == null) { return entity_.get(index); } else { return entityBuilder_.getMessage(index); } } /** * repeated group Entity = 1 { ... } */ public Builder setEntity( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity value) { if (entityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntityIsMutable(); entity_.set(index, value); onChanged(); } else { entityBuilder_.setMessage(index, value); } return this; } /** * repeated group Entity = 1 { ... } */ public Builder setEntity( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder builderForValue) { if (entityBuilder_ == null) { ensureEntityIsMutable(); entity_.set(index, builderForValue.build()); onChanged(); } else { entityBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated group Entity = 1 { ... } */ public Builder addEntity(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity value) { if (entityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntityIsMutable(); entity_.add(value); onChanged(); } else { entityBuilder_.addMessage(value); } return this; } /** * repeated group Entity = 1 { ... } */ public Builder addEntity( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity value) { if (entityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntityIsMutable(); entity_.add(index, value); onChanged(); } else { entityBuilder_.addMessage(index, value); } return this; } /** * repeated group Entity = 1 { ... } */ public Builder addEntity( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder builderForValue) { if (entityBuilder_ == null) { ensureEntityIsMutable(); entity_.add(builderForValue.build()); onChanged(); } else { entityBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated group Entity = 1 { ... } */ public Builder addEntity( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder builderForValue) { if (entityBuilder_ == null) { ensureEntityIsMutable(); entity_.add(index, builderForValue.build()); onChanged(); } else { entityBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated group Entity = 1 { ... } */ public Builder addAllEntity( java.lang.Iterable values) { if (entityBuilder_ == null) { ensureEntityIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entity_); onChanged(); } else { entityBuilder_.addAllMessages(values); } return this; } /** * repeated group Entity = 1 { ... } */ public Builder clearEntity() { if (entityBuilder_ == null) { entity_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entityBuilder_.clear(); } return this; } /** * repeated group Entity = 1 { ... } */ public Builder removeEntity(int index) { if (entityBuilder_ == null) { ensureEntityIsMutable(); entity_.remove(index); onChanged(); } else { entityBuilder_.remove(index); } return this; } /** * repeated group Entity = 1 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder getEntityBuilder( int index) { return getEntityFieldBuilder().getBuilder(index); } /** * repeated group Entity = 1 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder getEntityOrBuilder( int index) { if (entityBuilder_ == null) { return entity_.get(index); } else { return entityBuilder_.getMessageOrBuilder(index); } } /** * repeated group Entity = 1 { ... } */ public java.util.List getEntityOrBuilderList() { if (entityBuilder_ != null) { return entityBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entity_); } } /** * repeated group Entity = 1 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder addEntityBuilder() { return getEntityFieldBuilder().addBuilder( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.getDefaultInstance()); } /** * repeated group Entity = 1 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder addEntityBuilder( int index) { return getEntityFieldBuilder().addBuilder( index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.getDefaultInstance()); } /** * repeated group Entity = 1 { ... } */ public java.util.List getEntityBuilderList() { return getEntityFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder> getEntityFieldBuilder() { if (entityBuilder_ == null) { entityBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.Entity.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse.EntityOrBuilder>( entity_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); entity_ = null; } return entityBuilder_; } private java.util.List deferred_ = java.util.Collections.emptyList(); private void ensureDeferredIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { deferred_ = new java.util.ArrayList(deferred_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> deferredBuilder_; /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public java.util.List getDeferredList() { if (deferredBuilder_ == null) { return java.util.Collections.unmodifiableList(deferred_); } else { return deferredBuilder_.getMessageList(); } } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public int getDeferredCount() { if (deferredBuilder_ == null) { return deferred_.size(); } else { return deferredBuilder_.getCount(); } } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getDeferred(int index) { if (deferredBuilder_ == null) { return deferred_.get(index); } else { return deferredBuilder_.getMessage(index); } } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public Builder setDeferred( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (deferredBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDeferredIsMutable(); deferred_.set(index, value); onChanged(); } else { deferredBuilder_.setMessage(index, value); } return this; } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public Builder setDeferred( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (deferredBuilder_ == null) { ensureDeferredIsMutable(); deferred_.set(index, builderForValue.build()); onChanged(); } else { deferredBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public Builder addDeferred(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (deferredBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDeferredIsMutable(); deferred_.add(value); onChanged(); } else { deferredBuilder_.addMessage(value); } return this; } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public Builder addDeferred( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (deferredBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDeferredIsMutable(); deferred_.add(index, value); onChanged(); } else { deferredBuilder_.addMessage(index, value); } return this; } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public Builder addDeferred( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (deferredBuilder_ == null) { ensureDeferredIsMutable(); deferred_.add(builderForValue.build()); onChanged(); } else { deferredBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public Builder addDeferred( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (deferredBuilder_ == null) { ensureDeferredIsMutable(); deferred_.add(index, builderForValue.build()); onChanged(); } else { deferredBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public Builder addAllDeferred( java.lang.Iterable values) { if (deferredBuilder_ == null) { ensureDeferredIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, deferred_); onChanged(); } else { deferredBuilder_.addAllMessages(values); } return this; } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public Builder clearDeferred() { if (deferredBuilder_ == null) { deferred_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { deferredBuilder_.clear(); } return this; } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public Builder removeDeferred(int index) { if (deferredBuilder_ == null) { ensureDeferredIsMutable(); deferred_.remove(index); onChanged(); } else { deferredBuilder_.remove(index); } return this; } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder getDeferredBuilder( int index) { return getDeferredFieldBuilder().getBuilder(index); } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getDeferredOrBuilder( int index) { if (deferredBuilder_ == null) { return deferred_.get(index); } else { return deferredBuilder_.getMessageOrBuilder(index); } } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public java.util.List getDeferredOrBuilderList() { if (deferredBuilder_ != null) { return deferredBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(deferred_); } } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder addDeferredBuilder() { return getDeferredFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()); } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder addDeferredBuilder( int index) { return getDeferredFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()); } /** *
       * A list of keys that were not looked up due to resource constraints.
       * 
* * repeated .storage_onestore_v3.Reference deferred = 5; */ public java.util.List getDeferredBuilderList() { return getDeferredFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> getDeferredFieldBuilder() { if (deferredBuilder_ == null) { deferredBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>( deferred_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); deferred_ = null; } return deferredBuilder_; } private boolean inOrder_ = true; /** *
       * Signifies whether or not the entities in this response match the order of
       * the keys in the GetRequest.  This also implies that there are no deferred
       * results.
       * TODO: We should eventually switch this default value to false.
       * It is nice to have it default to true during initial rollout so that
       * clients will fall back to their existing behavior if we need to rollback
       * the backend and this is unset.
       * 
* * optional bool in_order = 6 [default = true]; * @return Whether the inOrder field is set. */ @java.lang.Override public boolean hasInOrder() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Signifies whether or not the entities in this response match the order of
       * the keys in the GetRequest.  This also implies that there are no deferred
       * results.
       * TODO: We should eventually switch this default value to false.
       * It is nice to have it default to true during initial rollout so that
       * clients will fall back to their existing behavior if we need to rollback
       * the backend and this is unset.
       * 
* * optional bool in_order = 6 [default = true]; * @return The inOrder. */ @java.lang.Override public boolean getInOrder() { return inOrder_; } /** *
       * Signifies whether or not the entities in this response match the order of
       * the keys in the GetRequest.  This also implies that there are no deferred
       * results.
       * TODO: We should eventually switch this default value to false.
       * It is nice to have it default to true during initial rollout so that
       * clients will fall back to their existing behavior if we need to rollback
       * the backend and this is unset.
       * 
* * optional bool in_order = 6 [default = true]; * @param value The inOrder to set. * @return This builder for chaining. */ public Builder setInOrder(boolean value) { inOrder_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Signifies whether or not the entities in this response match the order of
       * the keys in the GetRequest.  This also implies that there are no deferred
       * results.
       * TODO: We should eventually switch this default value to false.
       * It is nice to have it default to true during initial rollout so that
       * clients will fall back to their existing behavior if we need to rollback
       * the backend and this is unset.
       * 
* * optional bool in_order = 6 [default = true]; * @return This builder for chaining. */ public Builder clearInOrder() { bitField0_ = (bitField0_ & ~0x00000004); inOrder_ = true; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.GetResponse) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.GetResponse) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PutRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.PutRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Tag 11 was InternalHeader
     * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ java.util.List getEntityList(); /** *
     * Tag 11 was InternalHeader
     * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto getEntity(int index); /** *
     * Tag 11 was InternalHeader
     * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ int getEntityCount(); /** *
     * Tag 11 was InternalHeader
     * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ java.util.List getEntityOrBuilderList(); /** *
     * Tag 11 was InternalHeader
     * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder getEntityOrBuilder( int index); /** * optional .apphosting_datastore_v3.Transaction transaction = 2; * @return Whether the transaction field is set. */ boolean hasTransaction(); /** * optional .apphosting_datastore_v3.Transaction transaction = 2; * @return The transaction. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction(); /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder(); /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ java.util.List getCompositeIndexList(); /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index); /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ int getCompositeIndexCount(); /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ java.util.List getCompositeIndexOrBuilderList(); /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder( int index); /** *
     * Currently, the only supported trusted put operation is for modifying
     * entities with reserved names.
     * 
* * optional bool trusted = 4 [default = false]; * @return Whether the trusted field is set. */ boolean hasTrusted(); /** *
     * Currently, the only supported trusted put operation is for modifying
     * entities with reserved names.
     * 
* * optional bool trusted = 4 [default = false]; * @return The trusted. */ boolean getTrusted(); /** *
     * Used by the app server to ignore a user specified read-only period
     * 
* * optional bool force = 7 [default = false]; * @return Whether the force field is set. */ boolean hasForce(); /** *
     * Used by the app server to ignore a user specified read-only period
     * 
* * optional bool force = 7 [default = false]; * @return The force. */ boolean getForce(); /** *
     * For each changed entity a child marker entity will be created
     * to trace the mutation.
     * The flag shouldn't be set in transactional requests:
     * Commit request controls the behavior for all mutations in the transaction.
     * 
* * optional bool mark_changes = 8 [default = false]; * @return Whether the markChanges field is set. */ boolean hasMarkChanges(); /** *
     * For each changed entity a child marker entity will be created
     * to trace the mutation.
     * The flag shouldn't be set in transactional requests:
     * Commit request controls the behavior for all mutations in the transaction.
     * 
* * optional bool mark_changes = 8 [default = false]; * @return The markChanges. */ boolean getMarkChanges(); /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ java.util.List getSnapshotList(); /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot getSnapshot(int index); /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ int getSnapshotCount(); /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ java.util.List getSnapshotOrBuilderList(); /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder getSnapshotOrBuilder( int index); /** * optional .apphosting_datastore_v3.PutRequest.AutoIdPolicy auto_id_policy = 10 [default = CURRENT]; * @return Whether the autoIdPolicy field is set. */ boolean hasAutoIdPolicy(); /** * optional .apphosting_datastore_v3.PutRequest.AutoIdPolicy auto_id_policy = 10 [default = CURRENT]; * @return The autoIdPolicy. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy getAutoIdPolicy(); /** *
     * Monotonically increasing sequence number provided by the client
     * to indicate ordering of put/delete requests in a transaction.
     * Note:
     * - Negative sequence numbers are invalid.
     * - Requests without a sequence number is equivalent to setting it to 0
     *   and will be ordered before requests with sequence numbers.
     * - Multiple requests with the same sequence number will be processed
     *   in the order which they are received.
     * 
* * optional int64 sequence_number = 12; * @return Whether the sequenceNumber field is set. */ boolean hasSequenceNumber(); /** *
     * Monotonically increasing sequence number provided by the client
     * to indicate ordering of put/delete requests in a transaction.
     * Note:
     * - Negative sequence numbers are invalid.
     * - Requests without a sequence number is equivalent to setting it to 0
     *   and will be ordered before requests with sequence numbers.
     * - Multiple requests with the same sequence number will be processed
     *   in the order which they are received.
     * 
* * optional int64 sequence_number = 12; * @return The sequenceNumber. */ long getSequenceNumber(); } /** * Protobuf type {@code apphosting_datastore_v3.PutRequest} */ public static final class PutRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.PutRequest) PutRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PutRequest.newBuilder() to construct. private PutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PutRequest() { entity_ = java.util.Collections.emptyList(); compositeIndex_ = java.util.Collections.emptyList(); snapshot_ = java.util.Collections.emptyList(); autoIdPolicy_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PutRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.Builder.class); } /** *
     * TODO: Remove once sequential auto id deprecation period expires.
     * 
* * Protobuf enum {@code apphosting_datastore_v3.PutRequest.AutoIdPolicy} */ public enum AutoIdPolicy implements com.google.protobuf.ProtocolMessageEnum { /** * CURRENT = 0; */ CURRENT(0), /** * SEQUENTIAL = 1; */ SEQUENTIAL(1), ; /** * CURRENT = 0; */ public static final int CURRENT_VALUE = 0; /** * SEQUENTIAL = 1; */ public static final int SEQUENTIAL_VALUE = 1; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AutoIdPolicy valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static AutoIdPolicy forNumber(int value) { switch (value) { case 0: return CURRENT; case 1: return SEQUENTIAL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AutoIdPolicy> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AutoIdPolicy findValueByNumber(int number) { return AutoIdPolicy.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.getDescriptor().getEnumTypes().get(0); } private static final AutoIdPolicy[] VALUES = values(); public static AutoIdPolicy valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private AutoIdPolicy(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:apphosting_datastore_v3.PutRequest.AutoIdPolicy) } private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List entity_; /** *
     * Tag 11 was InternalHeader
     * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ @java.lang.Override public java.util.List getEntityList() { return entity_; } /** *
     * Tag 11 was InternalHeader
     * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ @java.lang.Override public java.util.List getEntityOrBuilderList() { return entity_; } /** *
     * Tag 11 was InternalHeader
     * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ @java.lang.Override public int getEntityCount() { return entity_.size(); } /** *
     * Tag 11 was InternalHeader
     * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto getEntity(int index) { return entity_.get(index); } /** *
     * Tag 11 was InternalHeader
     * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder getEntityOrBuilder( int index) { return entity_.get(index); } public static final int TRANSACTION_FIELD_NUMBER = 2; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction transaction_; /** * optional .apphosting_datastore_v3.Transaction transaction = 2; * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; * @return The transaction. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction() { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder() { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } public static final int COMPOSITE_INDEX_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List compositeIndex_; /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ @java.lang.Override public java.util.List getCompositeIndexList() { return compositeIndex_; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ @java.lang.Override public java.util.List getCompositeIndexOrBuilderList() { return compositeIndex_; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ @java.lang.Override public int getCompositeIndexCount() { return compositeIndex_.size(); } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index) { return compositeIndex_.get(index); } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder( int index) { return compositeIndex_.get(index); } public static final int TRUSTED_FIELD_NUMBER = 4; private boolean trusted_ = false; /** *
     * Currently, the only supported trusted put operation is for modifying
     * entities with reserved names.
     * 
* * optional bool trusted = 4 [default = false]; * @return Whether the trusted field is set. */ @java.lang.Override public boolean hasTrusted() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Currently, the only supported trusted put operation is for modifying
     * entities with reserved names.
     * 
* * optional bool trusted = 4 [default = false]; * @return The trusted. */ @java.lang.Override public boolean getTrusted() { return trusted_; } public static final int FORCE_FIELD_NUMBER = 7; private boolean force_ = false; /** *
     * Used by the app server to ignore a user specified read-only period
     * 
* * optional bool force = 7 [default = false]; * @return Whether the force field is set. */ @java.lang.Override public boolean hasForce() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Used by the app server to ignore a user specified read-only period
     * 
* * optional bool force = 7 [default = false]; * @return The force. */ @java.lang.Override public boolean getForce() { return force_; } public static final int MARK_CHANGES_FIELD_NUMBER = 8; private boolean markChanges_ = false; /** *
     * For each changed entity a child marker entity will be created
     * to trace the mutation.
     * The flag shouldn't be set in transactional requests:
     * Commit request controls the behavior for all mutations in the transaction.
     * 
* * optional bool mark_changes = 8 [default = false]; * @return Whether the markChanges field is set. */ @java.lang.Override public boolean hasMarkChanges() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * For each changed entity a child marker entity will be created
     * to trace the mutation.
     * The flag shouldn't be set in transactional requests:
     * Commit request controls the behavior for all mutations in the transaction.
     * 
* * optional bool mark_changes = 8 [default = false]; * @return The markChanges. */ @java.lang.Override public boolean getMarkChanges() { return markChanges_; } public static final int SNAPSHOT_FIELD_NUMBER = 9; @SuppressWarnings("serial") private java.util.List snapshot_; /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ @java.lang.Override public java.util.List getSnapshotList() { return snapshot_; } /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ @java.lang.Override public java.util.List getSnapshotOrBuilderList() { return snapshot_; } /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ @java.lang.Override public int getSnapshotCount() { return snapshot_.size(); } /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot getSnapshot(int index) { return snapshot_.get(index); } /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder getSnapshotOrBuilder( int index) { return snapshot_.get(index); } public static final int AUTO_ID_POLICY_FIELD_NUMBER = 10; private int autoIdPolicy_ = 0; /** * optional .apphosting_datastore_v3.PutRequest.AutoIdPolicy auto_id_policy = 10 [default = CURRENT]; * @return Whether the autoIdPolicy field is set. */ @java.lang.Override public boolean hasAutoIdPolicy() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .apphosting_datastore_v3.PutRequest.AutoIdPolicy auto_id_policy = 10 [default = CURRENT]; * @return The autoIdPolicy. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy getAutoIdPolicy() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy.forNumber(autoIdPolicy_); return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy.CURRENT : result; } public static final int SEQUENCE_NUMBER_FIELD_NUMBER = 12; private long sequenceNumber_ = 0L; /** *
     * Monotonically increasing sequence number provided by the client
     * to indicate ordering of put/delete requests in a transaction.
     * Note:
     * - Negative sequence numbers are invalid.
     * - Requests without a sequence number is equivalent to setting it to 0
     *   and will be ordered before requests with sequence numbers.
     * - Multiple requests with the same sequence number will be processed
     *   in the order which they are received.
     * 
* * optional int64 sequence_number = 12; * @return Whether the sequenceNumber field is set. */ @java.lang.Override public boolean hasSequenceNumber() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Monotonically increasing sequence number provided by the client
     * to indicate ordering of put/delete requests in a transaction.
     * Note:
     * - Negative sequence numbers are invalid.
     * - Requests without a sequence number is equivalent to setting it to 0
     *   and will be ordered before requests with sequence numbers.
     * - Multiple requests with the same sequence number will be processed
     *   in the order which they are received.
     * 
* * optional int64 sequence_number = 12; * @return The sequenceNumber. */ @java.lang.Override public long getSequenceNumber() { return sequenceNumber_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getEntityCount(); i++) { if (!getEntity(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasTransaction()) { if (!getTransaction().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getCompositeIndexCount(); i++) { if (!getCompositeIndex(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getSnapshotCount(); i++) { if (!getSnapshot(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < entity_.size(); i++) { output.writeMessage(1, entity_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTransaction()); } for (int i = 0; i < compositeIndex_.size(); i++) { output.writeMessage(3, compositeIndex_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(4, trusted_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(7, force_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(8, markChanges_); } for (int i = 0; i < snapshot_.size(); i++) { output.writeMessage(9, snapshot_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(10, autoIdPolicy_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeInt64(12, sequenceNumber_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < entity_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, entity_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTransaction()); } for (int i = 0; i < compositeIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, compositeIndex_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, trusted_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, force_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, markChanges_); } for (int i = 0; i < snapshot_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, snapshot_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, autoIdPolicy_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, sequenceNumber_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest) obj; if (!getEntityList() .equals(other.getEntityList())) return false; if (hasTransaction() != other.hasTransaction()) return false; if (hasTransaction()) { if (!getTransaction() .equals(other.getTransaction())) return false; } if (!getCompositeIndexList() .equals(other.getCompositeIndexList())) return false; if (hasTrusted() != other.hasTrusted()) return false; if (hasTrusted()) { if (getTrusted() != other.getTrusted()) return false; } if (hasForce() != other.hasForce()) return false; if (hasForce()) { if (getForce() != other.getForce()) return false; } if (hasMarkChanges() != other.hasMarkChanges()) return false; if (hasMarkChanges()) { if (getMarkChanges() != other.getMarkChanges()) return false; } if (!getSnapshotList() .equals(other.getSnapshotList())) return false; if (hasAutoIdPolicy() != other.hasAutoIdPolicy()) return false; if (hasAutoIdPolicy()) { if (autoIdPolicy_ != other.autoIdPolicy_) return false; } if (hasSequenceNumber() != other.hasSequenceNumber()) return false; if (hasSequenceNumber()) { if (getSequenceNumber() != other.getSequenceNumber()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getEntityCount() > 0) { hash = (37 * hash) + ENTITY_FIELD_NUMBER; hash = (53 * hash) + getEntityList().hashCode(); } if (hasTransaction()) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); } if (getCompositeIndexCount() > 0) { hash = (37 * hash) + COMPOSITE_INDEX_FIELD_NUMBER; hash = (53 * hash) + getCompositeIndexList().hashCode(); } if (hasTrusted()) { hash = (37 * hash) + TRUSTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTrusted()); } if (hasForce()) { hash = (37 * hash) + FORCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForce()); } if (hasMarkChanges()) { hash = (37 * hash) + MARK_CHANGES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMarkChanges()); } if (getSnapshotCount() > 0) { hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; hash = (53 * hash) + getSnapshotList().hashCode(); } if (hasAutoIdPolicy()) { hash = (37 * hash) + AUTO_ID_POLICY_FIELD_NUMBER; hash = (53 * hash) + autoIdPolicy_; } if (hasSequenceNumber()) { hash = (37 * hash) + SEQUENCE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSequenceNumber()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.PutRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.PutRequest) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEntityFieldBuilder(); getTransactionFieldBuilder(); getCompositeIndexFieldBuilder(); getSnapshotFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (entityBuilder_ == null) { entity_ = java.util.Collections.emptyList(); } else { entity_ = null; entityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } if (compositeIndexBuilder_ == null) { compositeIndex_ = java.util.Collections.emptyList(); } else { compositeIndex_ = null; compositeIndexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); trusted_ = false; force_ = false; markChanges_ = false; if (snapshotBuilder_ == null) { snapshot_ = java.util.Collections.emptyList(); } else { snapshot_ = null; snapshotBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); autoIdPolicy_ = 0; sequenceNumber_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutRequest_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest result) { if (entityBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entity_ = java.util.Collections.unmodifiableList(entity_); bitField0_ = (bitField0_ & ~0x00000001); } result.entity_ = entity_; } else { result.entity_ = entityBuilder_.build(); } if (compositeIndexBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { compositeIndex_ = java.util.Collections.unmodifiableList(compositeIndex_); bitField0_ = (bitField0_ & ~0x00000004); } result.compositeIndex_ = compositeIndex_; } else { result.compositeIndex_ = compositeIndexBuilder_.build(); } if (snapshotBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { snapshot_ = java.util.Collections.unmodifiableList(snapshot_); bitField0_ = (bitField0_ & ~0x00000040); } result.snapshot_ = snapshot_; } else { result.snapshot_ = snapshotBuilder_.build(); } } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.transaction_ = transactionBuilder_ == null ? transaction_ : transactionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.trusted_ = trusted_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.force_ = force_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.markChanges_ = markChanges_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { result.autoIdPolicy_ = autoIdPolicy_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000100) != 0)) { result.sequenceNumber_ = sequenceNumber_; to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.getDefaultInstance()) return this; if (entityBuilder_ == null) { if (!other.entity_.isEmpty()) { if (entity_.isEmpty()) { entity_ = other.entity_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntityIsMutable(); entity_.addAll(other.entity_); } onChanged(); } } else { if (!other.entity_.isEmpty()) { if (entityBuilder_.isEmpty()) { entityBuilder_.dispose(); entityBuilder_ = null; entity_ = other.entity_; bitField0_ = (bitField0_ & ~0x00000001); entityBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntityFieldBuilder() : null; } else { entityBuilder_.addAllMessages(other.entity_); } } } if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } if (compositeIndexBuilder_ == null) { if (!other.compositeIndex_.isEmpty()) { if (compositeIndex_.isEmpty()) { compositeIndex_ = other.compositeIndex_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCompositeIndexIsMutable(); compositeIndex_.addAll(other.compositeIndex_); } onChanged(); } } else { if (!other.compositeIndex_.isEmpty()) { if (compositeIndexBuilder_.isEmpty()) { compositeIndexBuilder_.dispose(); compositeIndexBuilder_ = null; compositeIndex_ = other.compositeIndex_; bitField0_ = (bitField0_ & ~0x00000004); compositeIndexBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCompositeIndexFieldBuilder() : null; } else { compositeIndexBuilder_.addAllMessages(other.compositeIndex_); } } } if (other.hasTrusted()) { setTrusted(other.getTrusted()); } if (other.hasForce()) { setForce(other.getForce()); } if (other.hasMarkChanges()) { setMarkChanges(other.getMarkChanges()); } if (snapshotBuilder_ == null) { if (!other.snapshot_.isEmpty()) { if (snapshot_.isEmpty()) { snapshot_ = other.snapshot_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureSnapshotIsMutable(); snapshot_.addAll(other.snapshot_); } onChanged(); } } else { if (!other.snapshot_.isEmpty()) { if (snapshotBuilder_.isEmpty()) { snapshotBuilder_.dispose(); snapshotBuilder_ = null; snapshot_ = other.snapshot_; bitField0_ = (bitField0_ & ~0x00000040); snapshotBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSnapshotFieldBuilder() : null; } else { snapshotBuilder_.addAllMessages(other.snapshot_); } } } if (other.hasAutoIdPolicy()) { setAutoIdPolicy(other.getAutoIdPolicy()); } if (other.hasSequenceNumber()) { setSequenceNumber(other.getSequenceNumber()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getEntityCount(); i++) { if (!getEntity(i).isInitialized()) { return false; } } if (hasTransaction()) { if (!getTransaction().isInitialized()) { return false; } } for (int i = 0; i < getCompositeIndexCount(); i++) { if (!getCompositeIndex(i).isInitialized()) { return false; } } for (int i = 0; i < getSnapshotCount(); i++) { if (!getSnapshot(i).isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.PARSER, extensionRegistry); if (entityBuilder_ == null) { ensureEntityIsMutable(); entity_.add(m); } else { entityBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getTransactionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.PARSER, extensionRegistry); if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.add(m); } else { compositeIndexBuilder_.addMessage(m); } break; } // case 26 case 32: { trusted_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 56: { force_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 56 case 64: { markChanges_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 64 case 74: { com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.PARSER, extensionRegistry); if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); snapshot_.add(m); } else { snapshotBuilder_.addMessage(m); } break; } // case 74 case 80: { int tmpRaw = input.readEnum(); com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy tmpValue = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(10, tmpRaw); } else { autoIdPolicy_ = tmpRaw; bitField0_ |= 0x00000080; } break; } // case 80 case 96: { sequenceNumber_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 96 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List entity_ = java.util.Collections.emptyList(); private void ensureEntityIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entity_ = new java.util.ArrayList(entity_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder> entityBuilder_; /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public java.util.List getEntityList() { if (entityBuilder_ == null) { return java.util.Collections.unmodifiableList(entity_); } else { return entityBuilder_.getMessageList(); } } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public int getEntityCount() { if (entityBuilder_ == null) { return entity_.size(); } else { return entityBuilder_.getCount(); } } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto getEntity(int index) { if (entityBuilder_ == null) { return entity_.get(index); } else { return entityBuilder_.getMessage(index); } } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public Builder setEntity( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto value) { if (entityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntityIsMutable(); entity_.set(index, value); onChanged(); } else { entityBuilder_.setMessage(index, value); } return this; } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public Builder setEntity( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder builderForValue) { if (entityBuilder_ == null) { ensureEntityIsMutable(); entity_.set(index, builderForValue.build()); onChanged(); } else { entityBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public Builder addEntity(com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto value) { if (entityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntityIsMutable(); entity_.add(value); onChanged(); } else { entityBuilder_.addMessage(value); } return this; } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public Builder addEntity( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto value) { if (entityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntityIsMutable(); entity_.add(index, value); onChanged(); } else { entityBuilder_.addMessage(index, value); } return this; } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public Builder addEntity( com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder builderForValue) { if (entityBuilder_ == null) { ensureEntityIsMutable(); entity_.add(builderForValue.build()); onChanged(); } else { entityBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public Builder addEntity( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder builderForValue) { if (entityBuilder_ == null) { ensureEntityIsMutable(); entity_.add(index, builderForValue.build()); onChanged(); } else { entityBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public Builder addAllEntity( java.lang.Iterable values) { if (entityBuilder_ == null) { ensureEntityIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entity_); onChanged(); } else { entityBuilder_.addAllMessages(values); } return this; } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public Builder clearEntity() { if (entityBuilder_ == null) { entity_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entityBuilder_.clear(); } return this; } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public Builder removeEntity(int index) { if (entityBuilder_ == null) { ensureEntityIsMutable(); entity_.remove(index); onChanged(); } else { entityBuilder_.remove(index); } return this; } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder getEntityBuilder( int index) { return getEntityFieldBuilder().getBuilder(index); } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder getEntityOrBuilder( int index) { if (entityBuilder_ == null) { return entity_.get(index); } else { return entityBuilder_.getMessageOrBuilder(index); } } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public java.util.List getEntityOrBuilderList() { if (entityBuilder_ != null) { return entityBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entity_); } } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder addEntityBuilder() { return getEntityFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance()); } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder addEntityBuilder( int index) { return getEntityFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance()); } /** *
       * Tag 11 was InternalHeader
       * 
* * repeated .storage_onestore_v3.EntityProto entity = 1; */ public java.util.List getEntityBuilderList() { return getEntityFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder> getEntityFieldBuilder() { if (entityBuilder_ == null) { entityBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder>( entity_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); entity_ = null; } return entityBuilder_; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction transaction_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder> transactionBuilder_; /** * optional .apphosting_datastore_v3.Transaction transaction = 2; * @return Whether the transaction field is set. */ public boolean hasTransaction() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; * @return The transaction. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ public Builder setTransaction(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; } else { transactionBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ public Builder setTransaction( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); } else { transactionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ public Builder mergeTransaction(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction value) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && transaction_ != null && transaction_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance()) { getTransactionBuilder().mergeFrom(value); } else { transaction_ = value; } } else { transactionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ public Builder clearTransaction() { bitField0_ = (bitField0_ & ~0x00000002); transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } onChanged(); return this; } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder getTransactionBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } } /** * optional .apphosting_datastore_v3.Transaction transaction = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder>( getTransaction(), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } private java.util.List compositeIndex_ = java.util.Collections.emptyList(); private void ensureCompositeIndexIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { compositeIndex_ = new java.util.ArrayList(compositeIndex_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder> compositeIndexBuilder_; /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public java.util.List getCompositeIndexList() { if (compositeIndexBuilder_ == null) { return java.util.Collections.unmodifiableList(compositeIndex_); } else { return compositeIndexBuilder_.getMessageList(); } } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public int getCompositeIndexCount() { if (compositeIndexBuilder_ == null) { return compositeIndex_.size(); } else { return compositeIndexBuilder_.getCount(); } } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index) { if (compositeIndexBuilder_ == null) { return compositeIndex_.get(index); } else { return compositeIndexBuilder_.getMessage(index); } } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public Builder setCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (compositeIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompositeIndexIsMutable(); compositeIndex_.set(index, value); onChanged(); } else { compositeIndexBuilder_.setMessage(index, value); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public Builder setCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.set(index, builderForValue.build()); onChanged(); } else { compositeIndexBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public Builder addCompositeIndex(com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (compositeIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompositeIndexIsMutable(); compositeIndex_.add(value); onChanged(); } else { compositeIndexBuilder_.addMessage(value); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public Builder addCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (compositeIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompositeIndexIsMutable(); compositeIndex_.add(index, value); onChanged(); } else { compositeIndexBuilder_.addMessage(index, value); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public Builder addCompositeIndex( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.add(builderForValue.build()); onChanged(); } else { compositeIndexBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public Builder addCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.add(index, builderForValue.build()); onChanged(); } else { compositeIndexBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public Builder addAllCompositeIndex( java.lang.Iterable values) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, compositeIndex_); onChanged(); } else { compositeIndexBuilder_.addAllMessages(values); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public Builder clearCompositeIndex() { if (compositeIndexBuilder_ == null) { compositeIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { compositeIndexBuilder_.clear(); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public Builder removeCompositeIndex(int index) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.remove(index); onChanged(); } else { compositeIndexBuilder_.remove(index); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder getCompositeIndexBuilder( int index) { return getCompositeIndexFieldBuilder().getBuilder(index); } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder( int index) { if (compositeIndexBuilder_ == null) { return compositeIndex_.get(index); } else { return compositeIndexBuilder_.getMessageOrBuilder(index); } } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public java.util.List getCompositeIndexOrBuilderList() { if (compositeIndexBuilder_ != null) { return compositeIndexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(compositeIndex_); } } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder addCompositeIndexBuilder() { return getCompositeIndexFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.getDefaultInstance()); } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder addCompositeIndexBuilder( int index) { return getCompositeIndexFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.getDefaultInstance()); } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 3; */ public java.util.List getCompositeIndexBuilderList() { return getCompositeIndexFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder> getCompositeIndexFieldBuilder() { if (compositeIndexBuilder_ == null) { compositeIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder>( compositeIndex_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); compositeIndex_ = null; } return compositeIndexBuilder_; } private boolean trusted_ ; /** *
       * Currently, the only supported trusted put operation is for modifying
       * entities with reserved names.
       * 
* * optional bool trusted = 4 [default = false]; * @return Whether the trusted field is set. */ @java.lang.Override public boolean hasTrusted() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Currently, the only supported trusted put operation is for modifying
       * entities with reserved names.
       * 
* * optional bool trusted = 4 [default = false]; * @return The trusted. */ @java.lang.Override public boolean getTrusted() { return trusted_; } /** *
       * Currently, the only supported trusted put operation is for modifying
       * entities with reserved names.
       * 
* * optional bool trusted = 4 [default = false]; * @param value The trusted to set. * @return This builder for chaining. */ public Builder setTrusted(boolean value) { trusted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Currently, the only supported trusted put operation is for modifying
       * entities with reserved names.
       * 
* * optional bool trusted = 4 [default = false]; * @return This builder for chaining. */ public Builder clearTrusted() { bitField0_ = (bitField0_ & ~0x00000008); trusted_ = false; onChanged(); return this; } private boolean force_ ; /** *
       * Used by the app server to ignore a user specified read-only period
       * 
* * optional bool force = 7 [default = false]; * @return Whether the force field is set. */ @java.lang.Override public boolean hasForce() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * Used by the app server to ignore a user specified read-only period
       * 
* * optional bool force = 7 [default = false]; * @return The force. */ @java.lang.Override public boolean getForce() { return force_; } /** *
       * Used by the app server to ignore a user specified read-only period
       * 
* * optional bool force = 7 [default = false]; * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { force_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Used by the app server to ignore a user specified read-only period
       * 
* * optional bool force = 7 [default = false]; * @return This builder for chaining. */ public Builder clearForce() { bitField0_ = (bitField0_ & ~0x00000010); force_ = false; onChanged(); return this; } private boolean markChanges_ ; /** *
       * For each changed entity a child marker entity will be created
       * to trace the mutation.
       * The flag shouldn't be set in transactional requests:
       * Commit request controls the behavior for all mutations in the transaction.
       * 
* * optional bool mark_changes = 8 [default = false]; * @return Whether the markChanges field is set. */ @java.lang.Override public boolean hasMarkChanges() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * For each changed entity a child marker entity will be created
       * to trace the mutation.
       * The flag shouldn't be set in transactional requests:
       * Commit request controls the behavior for all mutations in the transaction.
       * 
* * optional bool mark_changes = 8 [default = false]; * @return The markChanges. */ @java.lang.Override public boolean getMarkChanges() { return markChanges_; } /** *
       * For each changed entity a child marker entity will be created
       * to trace the mutation.
       * The flag shouldn't be set in transactional requests:
       * Commit request controls the behavior for all mutations in the transaction.
       * 
* * optional bool mark_changes = 8 [default = false]; * @param value The markChanges to set. * @return This builder for chaining. */ public Builder setMarkChanges(boolean value) { markChanges_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * For each changed entity a child marker entity will be created
       * to trace the mutation.
       * The flag shouldn't be set in transactional requests:
       * Commit request controls the behavior for all mutations in the transaction.
       * 
* * optional bool mark_changes = 8 [default = false]; * @return This builder for chaining. */ public Builder clearMarkChanges() { bitField0_ = (bitField0_ & ~0x00000020); markChanges_ = false; onChanged(); return this; } private java.util.List snapshot_ = java.util.Collections.emptyList(); private void ensureSnapshotIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { snapshot_ = new java.util.ArrayList(snapshot_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder> snapshotBuilder_; /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public java.util.List getSnapshotList() { if (snapshotBuilder_ == null) { return java.util.Collections.unmodifiableList(snapshot_); } else { return snapshotBuilder_.getMessageList(); } } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public int getSnapshotCount() { if (snapshotBuilder_ == null) { return snapshot_.size(); } else { return snapshotBuilder_.getCount(); } } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot getSnapshot(int index) { if (snapshotBuilder_ == null) { return snapshot_.get(index); } else { return snapshotBuilder_.getMessage(index); } } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder setSnapshot( int index, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot value) { if (snapshotBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotIsMutable(); snapshot_.set(index, value); onChanged(); } else { snapshotBuilder_.setMessage(index, value); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder setSnapshot( int index, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); snapshot_.set(index, builderForValue.build()); onChanged(); } else { snapshotBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder addSnapshot(com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot value) { if (snapshotBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotIsMutable(); snapshot_.add(value); onChanged(); } else { snapshotBuilder_.addMessage(value); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder addSnapshot( int index, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot value) { if (snapshotBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotIsMutable(); snapshot_.add(index, value); onChanged(); } else { snapshotBuilder_.addMessage(index, value); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder addSnapshot( com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); snapshot_.add(builderForValue.build()); onChanged(); } else { snapshotBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder addSnapshot( int index, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); snapshot_.add(index, builderForValue.build()); onChanged(); } else { snapshotBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder addAllSnapshot( java.lang.Iterable values) { if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, snapshot_); onChanged(); } else { snapshotBuilder_.addAllMessages(values); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder clearSnapshot() { if (snapshotBuilder_ == null) { snapshot_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { snapshotBuilder_.clear(); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder removeSnapshot(int index) { if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); snapshot_.remove(index); onChanged(); } else { snapshotBuilder_.remove(index); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder getSnapshotBuilder( int index) { return getSnapshotFieldBuilder().getBuilder(index); } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder getSnapshotOrBuilder( int index) { if (snapshotBuilder_ == null) { return snapshot_.get(index); } else { return snapshotBuilder_.getMessageOrBuilder(index); } } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public java.util.List getSnapshotOrBuilderList() { if (snapshotBuilder_ != null) { return snapshotBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(snapshot_); } } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder addSnapshotBuilder() { return getSnapshotFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.getDefaultInstance()); } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder addSnapshotBuilder( int index) { return getSnapshotFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.getDefaultInstance()); } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public java.util.List getSnapshotBuilderList() { return getSnapshotFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder> getSnapshotFieldBuilder() { if (snapshotBuilder_ == null) { snapshotBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder>( snapshot_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); snapshot_ = null; } return snapshotBuilder_; } private int autoIdPolicy_ = 0; /** * optional .apphosting_datastore_v3.PutRequest.AutoIdPolicy auto_id_policy = 10 [default = CURRENT]; * @return Whether the autoIdPolicy field is set. */ @java.lang.Override public boolean hasAutoIdPolicy() { return ((bitField0_ & 0x00000080) != 0); } /** * optional .apphosting_datastore_v3.PutRequest.AutoIdPolicy auto_id_policy = 10 [default = CURRENT]; * @return The autoIdPolicy. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy getAutoIdPolicy() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy.forNumber(autoIdPolicy_); return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy.CURRENT : result; } /** * optional .apphosting_datastore_v3.PutRequest.AutoIdPolicy auto_id_policy = 10 [default = CURRENT]; * @param value The autoIdPolicy to set. * @return This builder for chaining. */ public Builder setAutoIdPolicy(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.AutoIdPolicy value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; autoIdPolicy_ = value.getNumber(); onChanged(); return this; } /** * optional .apphosting_datastore_v3.PutRequest.AutoIdPolicy auto_id_policy = 10 [default = CURRENT]; * @return This builder for chaining. */ public Builder clearAutoIdPolicy() { bitField0_ = (bitField0_ & ~0x00000080); autoIdPolicy_ = 0; onChanged(); return this; } private long sequenceNumber_ ; /** *
       * Monotonically increasing sequence number provided by the client
       * to indicate ordering of put/delete requests in a transaction.
       * Note:
       * - Negative sequence numbers are invalid.
       * - Requests without a sequence number is equivalent to setting it to 0
       *   and will be ordered before requests with sequence numbers.
       * - Multiple requests with the same sequence number will be processed
       *   in the order which they are received.
       * 
* * optional int64 sequence_number = 12; * @return Whether the sequenceNumber field is set. */ @java.lang.Override public boolean hasSequenceNumber() { return ((bitField0_ & 0x00000100) != 0); } /** *
       * Monotonically increasing sequence number provided by the client
       * to indicate ordering of put/delete requests in a transaction.
       * Note:
       * - Negative sequence numbers are invalid.
       * - Requests without a sequence number is equivalent to setting it to 0
       *   and will be ordered before requests with sequence numbers.
       * - Multiple requests with the same sequence number will be processed
       *   in the order which they are received.
       * 
* * optional int64 sequence_number = 12; * @return The sequenceNumber. */ @java.lang.Override public long getSequenceNumber() { return sequenceNumber_; } /** *
       * Monotonically increasing sequence number provided by the client
       * to indicate ordering of put/delete requests in a transaction.
       * Note:
       * - Negative sequence numbers are invalid.
       * - Requests without a sequence number is equivalent to setting it to 0
       *   and will be ordered before requests with sequence numbers.
       * - Multiple requests with the same sequence number will be processed
       *   in the order which they are received.
       * 
* * optional int64 sequence_number = 12; * @param value The sequenceNumber to set. * @return This builder for chaining. */ public Builder setSequenceNumber(long value) { sequenceNumber_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * Monotonically increasing sequence number provided by the client
       * to indicate ordering of put/delete requests in a transaction.
       * Note:
       * - Negative sequence numbers are invalid.
       * - Requests without a sequence number is equivalent to setting it to 0
       *   and will be ordered before requests with sequence numbers.
       * - Multiple requests with the same sequence number will be processed
       *   in the order which they are received.
       * 
* * optional int64 sequence_number = 12; * @return This builder for chaining. */ public Builder clearSequenceNumber() { bitField0_ = (bitField0_ & ~0x00000100); sequenceNumber_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.PutRequest) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.PutRequest) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PutRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PutResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.PutResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .storage_onestore_v3.Reference key = 1; */ java.util.List getKeyList(); /** * repeated .storage_onestore_v3.Reference key = 1; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(int index); /** * repeated .storage_onestore_v3.Reference key = 1; */ int getKeyCount(); /** * repeated .storage_onestore_v3.Reference key = 1; */ java.util.List getKeyOrBuilderList(); /** * repeated .storage_onestore_v3.Reference key = 1; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder( int index); /** * optional .apphosting_datastore_v3.Cost cost = 2; * @return Whether the cost field is set. */ boolean hasCost(); /** * optional .apphosting_datastore_v3.Cost cost = 2; * @return The cost. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost(); /** * optional .apphosting_datastore_v3.Cost cost = 2; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder(); /** *
     * The new version number for each entity put.
     * Noop puts will return the version of the existing entity.
     * 
* * repeated int64 version = 3; * @return A list containing the version. */ java.util.List getVersionList(); /** *
     * The new version number for each entity put.
     * Noop puts will return the version of the existing entity.
     * 
* * repeated int64 version = 3; * @return The count of version. */ int getVersionCount(); /** *
     * The new version number for each entity put.
     * Noop puts will return the version of the existing entity.
     * 
* * repeated int64 version = 3; * @param index The index of the element to return. * @return The version at the given index. */ long getVersion(int index); } /** * Protobuf type {@code apphosting_datastore_v3.PutResponse} */ public static final class PutResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.PutResponse) PutResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PutResponse.newBuilder() to construct. private PutResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PutResponse() { key_ = java.util.Collections.emptyList(); version_ = emptyLongList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PutResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List key_; /** * repeated .storage_onestore_v3.Reference key = 1; */ @java.lang.Override public java.util.List getKeyList() { return key_; } /** * repeated .storage_onestore_v3.Reference key = 1; */ @java.lang.Override public java.util.List getKeyOrBuilderList() { return key_; } /** * repeated .storage_onestore_v3.Reference key = 1; */ @java.lang.Override public int getKeyCount() { return key_.size(); } /** * repeated .storage_onestore_v3.Reference key = 1; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(int index) { return key_.get(index); } /** * repeated .storage_onestore_v3.Reference key = 1; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder( int index) { return key_.get(index); } public static final int COST_FIELD_NUMBER = 2; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost cost_; /** * optional .apphosting_datastore_v3.Cost cost = 2; * @return Whether the cost field is set. */ @java.lang.Override public boolean hasCost() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .apphosting_datastore_v3.Cost cost = 2; * @return The cost. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost() { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } /** * optional .apphosting_datastore_v3.Cost cost = 2; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder() { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } public static final int VERSION_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList version_; /** *
     * The new version number for each entity put.
     * Noop puts will return the version of the existing entity.
     * 
* * repeated int64 version = 3; * @return A list containing the version. */ @java.lang.Override public java.util.List getVersionList() { return version_; } /** *
     * The new version number for each entity put.
     * Noop puts will return the version of the existing entity.
     * 
* * repeated int64 version = 3; * @return The count of version. */ public int getVersionCount() { return version_.size(); } /** *
     * The new version number for each entity put.
     * Noop puts will return the version of the existing entity.
     * 
* * repeated int64 version = 3; * @param index The index of the element to return. * @return The version at the given index. */ public long getVersion(int index) { return version_.getLong(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getKeyCount(); i++) { if (!getKey(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < key_.size(); i++) { output.writeMessage(1, key_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getCost()); } for (int i = 0; i < version_.size(); i++) { output.writeInt64(3, version_.getLong(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < key_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, key_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCost()); } { int dataSize = 0; for (int i = 0; i < version_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(version_.getLong(i)); } size += dataSize; size += 1 * getVersionList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse) obj; if (!getKeyList() .equals(other.getKeyList())) return false; if (hasCost() != other.hasCost()) return false; if (hasCost()) { if (!getCost() .equals(other.getCost())) return false; } if (!getVersionList() .equals(other.getVersionList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getKeyCount() > 0) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKeyList().hashCode(); } if (hasCost()) { hash = (37 * hash) + COST_FIELD_NUMBER; hash = (53 * hash) + getCost().hashCode(); } if (getVersionCount() > 0) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersionList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.PutResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.PutResponse) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getKeyFieldBuilder(); getCostFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (keyBuilder_ == null) { key_ = java.util.Collections.emptyList(); } else { key_ = null; keyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); cost_ = null; if (costBuilder_ != null) { costBuilder_.dispose(); costBuilder_ = null; } version_ = emptyLongList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_PutResponse_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse result) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { key_ = java.util.Collections.unmodifiableList(key_); bitField0_ = (bitField0_ & ~0x00000001); } result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } if (((bitField0_ & 0x00000004) != 0)) { version_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000004); } result.version_ = version_; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.cost_ = costBuilder_ == null ? cost_ : costBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse.getDefaultInstance()) return this; if (keyBuilder_ == null) { if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } } else { if (!other.key_.isEmpty()) { if (keyBuilder_.isEmpty()) { keyBuilder_.dispose(); keyBuilder_ = null; key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); keyBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKeyFieldBuilder() : null; } else { keyBuilder_.addAllMessages(other.key_); } } } if (other.hasCost()) { mergeCost(other.getCost()); } if (!other.version_.isEmpty()) { if (version_.isEmpty()) { version_ = other.version_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureVersionIsMutable(); version_.addAll(other.version_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getKeyCount(); i++) { if (!getKey(i).isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.PARSER, extensionRegistry); if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.add(m); } else { keyBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getCostFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { long v = input.readInt64(); ensureVersionIsMutable(); version_.addLong(v); break; } // case 24 case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureVersionIsMutable(); while (input.getBytesUntilLimit() > 0) { version_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List key_ = java.util.Collections.emptyList(); private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { key_ = new java.util.ArrayList(key_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> keyBuilder_; /** * repeated .storage_onestore_v3.Reference key = 1; */ public java.util.List getKeyList() { if (keyBuilder_ == null) { return java.util.Collections.unmodifiableList(key_); } else { return keyBuilder_.getMessageList(); } } /** * repeated .storage_onestore_v3.Reference key = 1; */ public int getKeyCount() { if (keyBuilder_ == null) { return key_.size(); } else { return keyBuilder_.getCount(); } } /** * repeated .storage_onestore_v3.Reference key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(int index) { if (keyBuilder_ == null) { return key_.get(index); } else { return keyBuilder_.getMessage(index); } } /** * repeated .storage_onestore_v3.Reference key = 1; */ public Builder setKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); } else { keyBuilder_.setMessage(index, value); } return this; } /** * repeated .storage_onestore_v3.Reference key = 1; */ public Builder setKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.set(index, builderForValue.build()); onChanged(); } else { keyBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .storage_onestore_v3.Reference key = 1; */ public Builder addKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); } else { keyBuilder_.addMessage(value); } return this; } /** * repeated .storage_onestore_v3.Reference key = 1; */ public Builder addKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(index, value); onChanged(); } else { keyBuilder_.addMessage(index, value); } return this; } /** * repeated .storage_onestore_v3.Reference key = 1; */ public Builder addKey( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.add(builderForValue.build()); onChanged(); } else { keyBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .storage_onestore_v3.Reference key = 1; */ public Builder addKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.add(index, builderForValue.build()); onChanged(); } else { keyBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .storage_onestore_v3.Reference key = 1; */ public Builder addAllKey( java.lang.Iterable values) { if (keyBuilder_ == null) { ensureKeyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, key_); onChanged(); } else { keyBuilder_.addAllMessages(values); } return this; } /** * repeated .storage_onestore_v3.Reference key = 1; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { keyBuilder_.clear(); } return this; } /** * repeated .storage_onestore_v3.Reference key = 1; */ public Builder removeKey(int index) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.remove(index); onChanged(); } else { keyBuilder_.remove(index); } return this; } /** * repeated .storage_onestore_v3.Reference key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder getKeyBuilder( int index) { return getKeyFieldBuilder().getBuilder(index); } /** * repeated .storage_onestore_v3.Reference key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder( int index) { if (keyBuilder_ == null) { return key_.get(index); } else { return keyBuilder_.getMessageOrBuilder(index); } } /** * repeated .storage_onestore_v3.Reference key = 1; */ public java.util.List getKeyOrBuilderList() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(key_); } } /** * repeated .storage_onestore_v3.Reference key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder addKeyBuilder() { return getKeyFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()); } /** * repeated .storage_onestore_v3.Reference key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder addKeyBuilder( int index) { return getKeyFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()); } /** * repeated .storage_onestore_v3.Reference key = 1; */ public java.util.List getKeyBuilderList() { return getKeyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>( key_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost cost_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder> costBuilder_; /** * optional .apphosting_datastore_v3.Cost cost = 2; * @return Whether the cost field is set. */ public boolean hasCost() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .apphosting_datastore_v3.Cost cost = 2; * @return The cost. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost() { if (costBuilder_ == null) { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } else { return costBuilder_.getMessage(); } } /** * optional .apphosting_datastore_v3.Cost cost = 2; */ public Builder setCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost value) { if (costBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cost_ = value; } else { costBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 2; */ public Builder setCost( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder builderForValue) { if (costBuilder_ == null) { cost_ = builderForValue.build(); } else { costBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 2; */ public Builder mergeCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost value) { if (costBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && cost_ != null && cost_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance()) { getCostBuilder().mergeFrom(value); } else { cost_ = value; } } else { costBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 2; */ public Builder clearCost() { bitField0_ = (bitField0_ & ~0x00000002); cost_ = null; if (costBuilder_ != null) { costBuilder_.dispose(); costBuilder_ = null; } onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 2; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder getCostBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCostFieldBuilder().getBuilder(); } /** * optional .apphosting_datastore_v3.Cost cost = 2; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder() { if (costBuilder_ != null) { return costBuilder_.getMessageOrBuilder(); } else { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } } /** * optional .apphosting_datastore_v3.Cost cost = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder> getCostFieldBuilder() { if (costBuilder_ == null) { costBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder>( getCost(), getParentForChildren(), isClean()); cost_ = null; } return costBuilder_; } private com.google.protobuf.Internal.LongList version_ = emptyLongList(); private void ensureVersionIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { version_ = mutableCopy(version_); bitField0_ |= 0x00000004; } } /** *
       * The new version number for each entity put.
       * Noop puts will return the version of the existing entity.
       * 
* * repeated int64 version = 3; * @return A list containing the version. */ public java.util.List getVersionList() { return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(version_) : version_; } /** *
       * The new version number for each entity put.
       * Noop puts will return the version of the existing entity.
       * 
* * repeated int64 version = 3; * @return The count of version. */ public int getVersionCount() { return version_.size(); } /** *
       * The new version number for each entity put.
       * Noop puts will return the version of the existing entity.
       * 
* * repeated int64 version = 3; * @param index The index of the element to return. * @return The version at the given index. */ public long getVersion(int index) { return version_.getLong(index); } /** *
       * The new version number for each entity put.
       * Noop puts will return the version of the existing entity.
       * 
* * repeated int64 version = 3; * @param index The index to set the value at. * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( int index, long value) { ensureVersionIsMutable(); version_.setLong(index, value); onChanged(); return this; } /** *
       * The new version number for each entity put.
       * Noop puts will return the version of the existing entity.
       * 
* * repeated int64 version = 3; * @param value The version to add. * @return This builder for chaining. */ public Builder addVersion(long value) { ensureVersionIsMutable(); version_.addLong(value); onChanged(); return this; } /** *
       * The new version number for each entity put.
       * Noop puts will return the version of the existing entity.
       * 
* * repeated int64 version = 3; * @param values The version to add. * @return This builder for chaining. */ public Builder addAllVersion( java.lang.Iterable values) { ensureVersionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, version_); onChanged(); return this; } /** *
       * The new version number for each entity put.
       * Noop puts will return the version of the existing entity.
       * 
* * repeated int64 version = 3; * @return This builder for chaining. */ public Builder clearVersion() { version_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.PutResponse) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.PutResponse) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PutResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TouchRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.TouchRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ java.util.List getKeyList(); /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(int index); /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ int getKeyCount(); /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ java.util.List getKeyOrBuilderList(); /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder( int index); /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ java.util.List getCompositeIndexList(); /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index); /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ int getCompositeIndexCount(); /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ java.util.List getCompositeIndexOrBuilderList(); /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder( int index); /** * optional bool force = 3 [default = false]; * @return Whether the force field is set. */ boolean hasForce(); /** * optional bool force = 3 [default = false]; * @return The force. */ boolean getForce(); /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ java.util.List getSnapshotList(); /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot getSnapshot(int index); /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ int getSnapshotCount(); /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ java.util.List getSnapshotOrBuilderList(); /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder getSnapshotOrBuilder( int index); } /** * Protobuf type {@code apphosting_datastore_v3.TouchRequest} */ public static final class TouchRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.TouchRequest) TouchRequestOrBuilder { private static final long serialVersionUID = 0L; // Use TouchRequest.newBuilder() to construct. private TouchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TouchRequest() { key_ = java.util.Collections.emptyList(); compositeIndex_ = java.util.Collections.emptyList(); snapshot_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TouchRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_TouchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_TouchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List key_; /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ @java.lang.Override public java.util.List getKeyList() { return key_; } /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ @java.lang.Override public java.util.List getKeyOrBuilderList() { return key_; } /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ @java.lang.Override public int getKeyCount() { return key_.size(); } /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(int index) { return key_.get(index); } /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 1; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder( int index) { return key_.get(index); } public static final int COMPOSITE_INDEX_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List compositeIndex_; /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ @java.lang.Override public java.util.List getCompositeIndexList() { return compositeIndex_; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ @java.lang.Override public java.util.List getCompositeIndexOrBuilderList() { return compositeIndex_; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ @java.lang.Override public int getCompositeIndexCount() { return compositeIndex_.size(); } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index) { return compositeIndex_.get(index); } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder( int index) { return compositeIndex_.get(index); } public static final int FORCE_FIELD_NUMBER = 3; private boolean force_ = false; /** * optional bool force = 3 [default = false]; * @return Whether the force field is set. */ @java.lang.Override public boolean hasForce() { return ((bitField0_ & 0x00000001) != 0); } /** * optional bool force = 3 [default = false]; * @return The force. */ @java.lang.Override public boolean getForce() { return force_; } public static final int SNAPSHOT_FIELD_NUMBER = 9; @SuppressWarnings("serial") private java.util.List snapshot_; /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ @java.lang.Override public java.util.List getSnapshotList() { return snapshot_; } /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ @java.lang.Override public java.util.List getSnapshotOrBuilderList() { return snapshot_; } /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ @java.lang.Override public int getSnapshotCount() { return snapshot_.size(); } /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot getSnapshot(int index) { return snapshot_.get(index); } /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder getSnapshotOrBuilder( int index) { return snapshot_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getKeyCount(); i++) { if (!getKey(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getCompositeIndexCount(); i++) { if (!getCompositeIndex(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getSnapshotCount(); i++) { if (!getSnapshot(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < key_.size(); i++) { output.writeMessage(1, key_.get(i)); } for (int i = 0; i < compositeIndex_.size(); i++) { output.writeMessage(2, compositeIndex_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(3, force_); } for (int i = 0; i < snapshot_.size(); i++) { output.writeMessage(9, snapshot_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < key_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, key_.get(i)); } for (int i = 0; i < compositeIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, compositeIndex_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, force_); } for (int i = 0; i < snapshot_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, snapshot_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest) obj; if (!getKeyList() .equals(other.getKeyList())) return false; if (!getCompositeIndexList() .equals(other.getCompositeIndexList())) return false; if (hasForce() != other.hasForce()) return false; if (hasForce()) { if (getForce() != other.getForce()) return false; } if (!getSnapshotList() .equals(other.getSnapshotList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getKeyCount() > 0) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKeyList().hashCode(); } if (getCompositeIndexCount() > 0) { hash = (37 * hash) + COMPOSITE_INDEX_FIELD_NUMBER; hash = (53 * hash) + getCompositeIndexList().hashCode(); } if (hasForce()) { hash = (37 * hash) + FORCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForce()); } if (getSnapshotCount() > 0) { hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; hash = (53 * hash) + getSnapshotList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.TouchRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.TouchRequest) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_TouchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_TouchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (keyBuilder_ == null) { key_ = java.util.Collections.emptyList(); } else { key_ = null; keyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (compositeIndexBuilder_ == null) { compositeIndex_ = java.util.Collections.emptyList(); } else { compositeIndex_ = null; compositeIndexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); force_ = false; if (snapshotBuilder_ == null) { snapshot_ = java.util.Collections.emptyList(); } else { snapshot_ = null; snapshotBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_TouchRequest_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest result) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { key_ = java.util.Collections.unmodifiableList(key_); bitField0_ = (bitField0_ & ~0x00000001); } result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } if (compositeIndexBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { compositeIndex_ = java.util.Collections.unmodifiableList(compositeIndex_); bitField0_ = (bitField0_ & ~0x00000002); } result.compositeIndex_ = compositeIndex_; } else { result.compositeIndex_ = compositeIndexBuilder_.build(); } if (snapshotBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { snapshot_ = java.util.Collections.unmodifiableList(snapshot_); bitField0_ = (bitField0_ & ~0x00000008); } result.snapshot_ = snapshot_; } else { result.snapshot_ = snapshotBuilder_.build(); } } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.force_ = force_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest.getDefaultInstance()) return this; if (keyBuilder_ == null) { if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } } else { if (!other.key_.isEmpty()) { if (keyBuilder_.isEmpty()) { keyBuilder_.dispose(); keyBuilder_ = null; key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); keyBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKeyFieldBuilder() : null; } else { keyBuilder_.addAllMessages(other.key_); } } } if (compositeIndexBuilder_ == null) { if (!other.compositeIndex_.isEmpty()) { if (compositeIndex_.isEmpty()) { compositeIndex_ = other.compositeIndex_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCompositeIndexIsMutable(); compositeIndex_.addAll(other.compositeIndex_); } onChanged(); } } else { if (!other.compositeIndex_.isEmpty()) { if (compositeIndexBuilder_.isEmpty()) { compositeIndexBuilder_.dispose(); compositeIndexBuilder_ = null; compositeIndex_ = other.compositeIndex_; bitField0_ = (bitField0_ & ~0x00000002); compositeIndexBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCompositeIndexFieldBuilder() : null; } else { compositeIndexBuilder_.addAllMessages(other.compositeIndex_); } } } if (other.hasForce()) { setForce(other.getForce()); } if (snapshotBuilder_ == null) { if (!other.snapshot_.isEmpty()) { if (snapshot_.isEmpty()) { snapshot_ = other.snapshot_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSnapshotIsMutable(); snapshot_.addAll(other.snapshot_); } onChanged(); } } else { if (!other.snapshot_.isEmpty()) { if (snapshotBuilder_.isEmpty()) { snapshotBuilder_.dispose(); snapshotBuilder_ = null; snapshot_ = other.snapshot_; bitField0_ = (bitField0_ & ~0x00000008); snapshotBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSnapshotFieldBuilder() : null; } else { snapshotBuilder_.addAllMessages(other.snapshot_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getKeyCount(); i++) { if (!getKey(i).isInitialized()) { return false; } } for (int i = 0; i < getCompositeIndexCount(); i++) { if (!getCompositeIndex(i).isInitialized()) { return false; } } for (int i = 0; i < getSnapshotCount(); i++) { if (!getSnapshot(i).isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.PARSER, extensionRegistry); if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.add(m); } else { keyBuilder_.addMessage(m); } break; } // case 10 case 18: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.PARSER, extensionRegistry); if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.add(m); } else { compositeIndexBuilder_.addMessage(m); } break; } // case 18 case 24: { force_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 74: { com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.PARSER, extensionRegistry); if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); snapshot_.add(m); } else { snapshotBuilder_.addMessage(m); } break; } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List key_ = java.util.Collections.emptyList(); private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { key_ = new java.util.ArrayList(key_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> keyBuilder_; /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public java.util.List getKeyList() { if (keyBuilder_ == null) { return java.util.Collections.unmodifiableList(key_); } else { return keyBuilder_.getMessageList(); } } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public int getKeyCount() { if (keyBuilder_ == null) { return key_.size(); } else { return keyBuilder_.getCount(); } } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(int index) { if (keyBuilder_ == null) { return key_.get(index); } else { return keyBuilder_.getMessage(index); } } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder setKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); } else { keyBuilder_.setMessage(index, value); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder setKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.set(index, builderForValue.build()); onChanged(); } else { keyBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder addKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); } else { keyBuilder_.addMessage(value); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder addKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(index, value); onChanged(); } else { keyBuilder_.addMessage(index, value); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder addKey( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.add(builderForValue.build()); onChanged(); } else { keyBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder addKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.add(index, builderForValue.build()); onChanged(); } else { keyBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder addAllKey( java.lang.Iterable values) { if (keyBuilder_ == null) { ensureKeyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, key_); onChanged(); } else { keyBuilder_.addAllMessages(values); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { keyBuilder_.clear(); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public Builder removeKey(int index) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.remove(index); onChanged(); } else { keyBuilder_.remove(index); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder getKeyBuilder( int index) { return getKeyFieldBuilder().getBuilder(index); } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder( int index) { if (keyBuilder_ == null) { return key_.get(index); } else { return keyBuilder_.getMessageOrBuilder(index); } } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public java.util.List getKeyOrBuilderList() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(key_); } } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder addKeyBuilder() { return getKeyFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()); } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder addKeyBuilder( int index) { return getKeyFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()); } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 1; */ public java.util.List getKeyBuilderList() { return getKeyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>( key_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private java.util.List compositeIndex_ = java.util.Collections.emptyList(); private void ensureCompositeIndexIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { compositeIndex_ = new java.util.ArrayList(compositeIndex_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder> compositeIndexBuilder_; /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public java.util.List getCompositeIndexList() { if (compositeIndexBuilder_ == null) { return java.util.Collections.unmodifiableList(compositeIndex_); } else { return compositeIndexBuilder_.getMessageList(); } } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public int getCompositeIndexCount() { if (compositeIndexBuilder_ == null) { return compositeIndex_.size(); } else { return compositeIndexBuilder_.getCount(); } } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index) { if (compositeIndexBuilder_ == null) { return compositeIndex_.get(index); } else { return compositeIndexBuilder_.getMessage(index); } } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public Builder setCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (compositeIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompositeIndexIsMutable(); compositeIndex_.set(index, value); onChanged(); } else { compositeIndexBuilder_.setMessage(index, value); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public Builder setCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.set(index, builderForValue.build()); onChanged(); } else { compositeIndexBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public Builder addCompositeIndex(com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (compositeIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompositeIndexIsMutable(); compositeIndex_.add(value); onChanged(); } else { compositeIndexBuilder_.addMessage(value); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public Builder addCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (compositeIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompositeIndexIsMutable(); compositeIndex_.add(index, value); onChanged(); } else { compositeIndexBuilder_.addMessage(index, value); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public Builder addCompositeIndex( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.add(builderForValue.build()); onChanged(); } else { compositeIndexBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public Builder addCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.add(index, builderForValue.build()); onChanged(); } else { compositeIndexBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public Builder addAllCompositeIndex( java.lang.Iterable values) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, compositeIndex_); onChanged(); } else { compositeIndexBuilder_.addAllMessages(values); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public Builder clearCompositeIndex() { if (compositeIndexBuilder_ == null) { compositeIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { compositeIndexBuilder_.clear(); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public Builder removeCompositeIndex(int index) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.remove(index); onChanged(); } else { compositeIndexBuilder_.remove(index); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder getCompositeIndexBuilder( int index) { return getCompositeIndexFieldBuilder().getBuilder(index); } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder( int index) { if (compositeIndexBuilder_ == null) { return compositeIndex_.get(index); } else { return compositeIndexBuilder_.getMessageOrBuilder(index); } } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public java.util.List getCompositeIndexOrBuilderList() { if (compositeIndexBuilder_ != null) { return compositeIndexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(compositeIndex_); } } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder addCompositeIndexBuilder() { return getCompositeIndexFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.getDefaultInstance()); } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder addCompositeIndexBuilder( int index) { return getCompositeIndexFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.getDefaultInstance()); } /** * repeated .storage_onestore_v3.CompositeIndex composite_index = 2; */ public java.util.List getCompositeIndexBuilderList() { return getCompositeIndexFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder> getCompositeIndexFieldBuilder() { if (compositeIndexBuilder_ == null) { compositeIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder>( compositeIndex_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); compositeIndex_ = null; } return compositeIndexBuilder_; } private boolean force_ ; /** * optional bool force = 3 [default = false]; * @return Whether the force field is set. */ @java.lang.Override public boolean hasForce() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bool force = 3 [default = false]; * @return The force. */ @java.lang.Override public boolean getForce() { return force_; } /** * optional bool force = 3 [default = false]; * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { force_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional bool force = 3 [default = false]; * @return This builder for chaining. */ public Builder clearForce() { bitField0_ = (bitField0_ & ~0x00000004); force_ = false; onChanged(); return this; } private java.util.List snapshot_ = java.util.Collections.emptyList(); private void ensureSnapshotIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { snapshot_ = new java.util.ArrayList(snapshot_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder> snapshotBuilder_; /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public java.util.List getSnapshotList() { if (snapshotBuilder_ == null) { return java.util.Collections.unmodifiableList(snapshot_); } else { return snapshotBuilder_.getMessageList(); } } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public int getSnapshotCount() { if (snapshotBuilder_ == null) { return snapshot_.size(); } else { return snapshotBuilder_.getCount(); } } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot getSnapshot(int index) { if (snapshotBuilder_ == null) { return snapshot_.get(index); } else { return snapshotBuilder_.getMessage(index); } } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder setSnapshot( int index, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot value) { if (snapshotBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotIsMutable(); snapshot_.set(index, value); onChanged(); } else { snapshotBuilder_.setMessage(index, value); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder setSnapshot( int index, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); snapshot_.set(index, builderForValue.build()); onChanged(); } else { snapshotBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder addSnapshot(com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot value) { if (snapshotBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotIsMutable(); snapshot_.add(value); onChanged(); } else { snapshotBuilder_.addMessage(value); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder addSnapshot( int index, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot value) { if (snapshotBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotIsMutable(); snapshot_.add(index, value); onChanged(); } else { snapshotBuilder_.addMessage(index, value); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder addSnapshot( com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); snapshot_.add(builderForValue.build()); onChanged(); } else { snapshotBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder addSnapshot( int index, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); snapshot_.add(index, builderForValue.build()); onChanged(); } else { snapshotBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder addAllSnapshot( java.lang.Iterable values) { if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, snapshot_); onChanged(); } else { snapshotBuilder_.addAllMessages(values); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder clearSnapshot() { if (snapshotBuilder_ == null) { snapshot_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { snapshotBuilder_.clear(); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder removeSnapshot(int index) { if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); snapshot_.remove(index); onChanged(); } else { snapshotBuilder_.remove(index); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder getSnapshotBuilder( int index) { return getSnapshotFieldBuilder().getBuilder(index); } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder getSnapshotOrBuilder( int index) { if (snapshotBuilder_ == null) { return snapshot_.get(index); } else { return snapshotBuilder_.getMessageOrBuilder(index); } } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public java.util.List getSnapshotOrBuilderList() { if (snapshotBuilder_ != null) { return snapshotBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(snapshot_); } } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder addSnapshotBuilder() { return getSnapshotFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.getDefaultInstance()); } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder addSnapshotBuilder( int index) { return getSnapshotFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.getDefaultInstance()); } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public java.util.List getSnapshotBuilderList() { return getSnapshotFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder> getSnapshotFieldBuilder() { if (snapshotBuilder_ == null) { snapshotBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder>( snapshot_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); snapshot_ = null; } return snapshotBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.TouchRequest) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.TouchRequest) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TouchRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TouchResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.TouchResponse) com.google.protobuf.MessageOrBuilder { /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return Whether the cost field is set. */ boolean hasCost(); /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return The cost. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost(); /** * optional .apphosting_datastore_v3.Cost cost = 1; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder(); } /** * Protobuf type {@code apphosting_datastore_v3.TouchResponse} */ public static final class TouchResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.TouchResponse) TouchResponseOrBuilder { private static final long serialVersionUID = 0L; // Use TouchResponse.newBuilder() to construct. private TouchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TouchResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TouchResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_TouchResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_TouchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse.Builder.class); } private int bitField0_; public static final int COST_FIELD_NUMBER = 1; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost cost_; /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return Whether the cost field is set. */ @java.lang.Override public boolean hasCost() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return The cost. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost() { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder() { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCost()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCost()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse) obj; if (hasCost() != other.hasCost()) return false; if (hasCost()) { if (!getCost() .equals(other.getCost())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCost()) { hash = (37 * hash) + COST_FIELD_NUMBER; hash = (53 * hash) + getCost().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.TouchResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.TouchResponse) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_TouchResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_TouchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCostFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; cost_ = null; if (costBuilder_ != null) { costBuilder_.dispose(); costBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_TouchResponse_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.cost_ = costBuilder_ == null ? cost_ : costBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse.getDefaultInstance()) return this; if (other.hasCost()) { mergeCost(other.getCost()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getCostFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost cost_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder> costBuilder_; /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return Whether the cost field is set. */ public boolean hasCost() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return The cost. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost() { if (costBuilder_ == null) { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } else { return costBuilder_.getMessage(); } } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public Builder setCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost value) { if (costBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cost_ = value; } else { costBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public Builder setCost( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder builderForValue) { if (costBuilder_ == null) { cost_ = builderForValue.build(); } else { costBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public Builder mergeCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost value) { if (costBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && cost_ != null && cost_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance()) { getCostBuilder().mergeFrom(value); } else { cost_ = value; } } else { costBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public Builder clearCost() { bitField0_ = (bitField0_ & ~0x00000001); cost_ = null; if (costBuilder_ != null) { costBuilder_.dispose(); costBuilder_ = null; } onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder getCostBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCostFieldBuilder().getBuilder(); } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder() { if (costBuilder_ != null) { return costBuilder_.getMessageOrBuilder(); } else { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder> getCostFieldBuilder() { if (costBuilder_ == null) { costBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder>( getCost(), getParentForChildren(), isClean()); cost_ = null; } return costBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.TouchResponse) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.TouchResponse) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TouchResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TouchResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.DeleteRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 6; */ java.util.List getKeyList(); /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 6; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(int index); /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 6; */ int getKeyCount(); /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 6; */ java.util.List getKeyOrBuilderList(); /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 6; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder( int index); /** * optional .apphosting_datastore_v3.Transaction transaction = 5; * @return Whether the transaction field is set. */ boolean hasTransaction(); /** * optional .apphosting_datastore_v3.Transaction transaction = 5; * @return The transaction. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction(); /** * optional .apphosting_datastore_v3.Transaction transaction = 5; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder(); /** *
     * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
     * until then, composite indexes were not provided in DeleteRequests because
     * all of the information needed to clean up indexes is present on the
     * EntityEntity in Megastore.  For the new Spanner implementation, these will
     * be required though.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ java.util.List getCompositeIndexList(); /** *
     * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
     * until then, composite indexes were not provided in DeleteRequests because
     * all of the information needed to clean up indexes is present on the
     * EntityEntity in Megastore.  For the new Spanner implementation, these will
     * be required though.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index); /** *
     * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
     * until then, composite indexes were not provided in DeleteRequests because
     * all of the information needed to clean up indexes is present on the
     * EntityEntity in Megastore.  For the new Spanner implementation, these will
     * be required though.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ int getCompositeIndexCount(); /** *
     * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
     * until then, composite indexes were not provided in DeleteRequests because
     * all of the information needed to clean up indexes is present on the
     * EntityEntity in Megastore.  For the new Spanner implementation, these will
     * be required though.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ java.util.List getCompositeIndexOrBuilderList(); /** *
     * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
     * until then, composite indexes were not provided in DeleteRequests because
     * all of the information needed to clean up indexes is present on the
     * EntityEntity in Megastore.  For the new Spanner implementation, these will
     * be required though.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder( int index); /** *
     * Currently, the only supported trusted delete operation is modifying
     * entities with reserved names.
     * 
* * optional bool trusted = 4 [default = false]; * @return Whether the trusted field is set. */ boolean hasTrusted(); /** *
     * Currently, the only supported trusted delete operation is modifying
     * entities with reserved names.
     * 
* * optional bool trusted = 4 [default = false]; * @return The trusted. */ boolean getTrusted(); /** *
     * Used by the app server to ignore a user specified read-only period
     * 
* * optional bool force = 7 [default = false]; * @return Whether the force field is set. */ boolean hasForce(); /** *
     * Used by the app server to ignore a user specified read-only period
     * 
* * optional bool force = 7 [default = false]; * @return The force. */ boolean getForce(); /** *
     * For each changed entity a child marker entity will be created
     * to trace the mutation.
     * The flag shouldn't be set in transactional requests:
     * Commit request controls the behavior for all mutations in the transaction.
     * 
* * optional bool mark_changes = 8 [default = false]; * @return Whether the markChanges field is set. */ boolean hasMarkChanges(); /** *
     * For each changed entity a child marker entity will be created
     * to trace the mutation.
     * The flag shouldn't be set in transactional requests:
     * Commit request controls the behavior for all mutations in the transaction.
     * 
* * optional bool mark_changes = 8 [default = false]; * @return The markChanges. */ boolean getMarkChanges(); /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ java.util.List getSnapshotList(); /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot getSnapshot(int index); /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ int getSnapshotCount(); /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ java.util.List getSnapshotOrBuilderList(); /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder getSnapshotOrBuilder( int index); /** *
     * Monotonically increasing sequence number provided by the client
     * to indicate ordering of put/delete requests in a transaction.
     * Note:
     * - Negative sequence numbers are invalid.
     * - Requests without a sequence number is equivalent to setting it to 0
     *   and will be ordered before requests with sequence numbers.
     * - Multiple requests with the same sequence number will be processed
     *   in the order which they are received.
     * 
* * optional int64 sequence_number = 12; * @return Whether the sequenceNumber field is set. */ boolean hasSequenceNumber(); /** *
     * Monotonically increasing sequence number provided by the client
     * to indicate ordering of put/delete requests in a transaction.
     * Note:
     * - Negative sequence numbers are invalid.
     * - Requests without a sequence number is equivalent to setting it to 0
     *   and will be ordered before requests with sequence numbers.
     * - Multiple requests with the same sequence number will be processed
     *   in the order which they are received.
     * 
* * optional int64 sequence_number = 12; * @return The sequenceNumber. */ long getSequenceNumber(); } /** * Protobuf type {@code apphosting_datastore_v3.DeleteRequest} */ public static final class DeleteRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.DeleteRequest) DeleteRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteRequest.newBuilder() to construct. private DeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteRequest() { key_ = java.util.Collections.emptyList(); compositeIndex_ = java.util.Collections.emptyList(); snapshot_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_DeleteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_DeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List key_; /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 6; */ @java.lang.Override public java.util.List getKeyList() { return key_; } /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 6; */ @java.lang.Override public java.util.List getKeyOrBuilderList() { return key_; } /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 6; */ @java.lang.Override public int getKeyCount() { return key_.size(); } /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 6; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(int index) { return key_.get(index); } /** *
     * Tag 10 was InternalHeader
     * 
* * repeated .storage_onestore_v3.Reference key = 6; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder( int index) { return key_.get(index); } public static final int TRANSACTION_FIELD_NUMBER = 5; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction transaction_; /** * optional .apphosting_datastore_v3.Transaction transaction = 5; * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .apphosting_datastore_v3.Transaction transaction = 5; * @return The transaction. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction() { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } /** * optional .apphosting_datastore_v3.Transaction transaction = 5; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder() { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } public static final int COMPOSITE_INDEX_FIELD_NUMBER = 11; @SuppressWarnings("serial") private java.util.List compositeIndex_; /** *
     * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
     * until then, composite indexes were not provided in DeleteRequests because
     * all of the information needed to clean up indexes is present on the
     * EntityEntity in Megastore.  For the new Spanner implementation, these will
     * be required though.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ @java.lang.Override public java.util.List getCompositeIndexList() { return compositeIndex_; } /** *
     * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
     * until then, composite indexes were not provided in DeleteRequests because
     * all of the information needed to clean up indexes is present on the
     * EntityEntity in Megastore.  For the new Spanner implementation, these will
     * be required though.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ @java.lang.Override public java.util.List getCompositeIndexOrBuilderList() { return compositeIndex_; } /** *
     * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
     * until then, composite indexes were not provided in DeleteRequests because
     * all of the information needed to clean up indexes is present on the
     * EntityEntity in Megastore.  For the new Spanner implementation, these will
     * be required though.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ @java.lang.Override public int getCompositeIndexCount() { return compositeIndex_.size(); } /** *
     * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
     * until then, composite indexes were not provided in DeleteRequests because
     * all of the information needed to clean up indexes is present on the
     * EntityEntity in Megastore.  For the new Spanner implementation, these will
     * be required though.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index) { return compositeIndex_.get(index); } /** *
     * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
     * until then, composite indexes were not provided in DeleteRequests because
     * all of the information needed to clean up indexes is present on the
     * EntityEntity in Megastore.  For the new Spanner implementation, these will
     * be required though.
     * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder( int index) { return compositeIndex_.get(index); } public static final int TRUSTED_FIELD_NUMBER = 4; private boolean trusted_ = false; /** *
     * Currently, the only supported trusted delete operation is modifying
     * entities with reserved names.
     * 
* * optional bool trusted = 4 [default = false]; * @return Whether the trusted field is set. */ @java.lang.Override public boolean hasTrusted() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Currently, the only supported trusted delete operation is modifying
     * entities with reserved names.
     * 
* * optional bool trusted = 4 [default = false]; * @return The trusted. */ @java.lang.Override public boolean getTrusted() { return trusted_; } public static final int FORCE_FIELD_NUMBER = 7; private boolean force_ = false; /** *
     * Used by the app server to ignore a user specified read-only period
     * 
* * optional bool force = 7 [default = false]; * @return Whether the force field is set. */ @java.lang.Override public boolean hasForce() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Used by the app server to ignore a user specified read-only period
     * 
* * optional bool force = 7 [default = false]; * @return The force. */ @java.lang.Override public boolean getForce() { return force_; } public static final int MARK_CHANGES_FIELD_NUMBER = 8; private boolean markChanges_ = false; /** *
     * For each changed entity a child marker entity will be created
     * to trace the mutation.
     * The flag shouldn't be set in transactional requests:
     * Commit request controls the behavior for all mutations in the transaction.
     * 
* * optional bool mark_changes = 8 [default = false]; * @return Whether the markChanges field is set. */ @java.lang.Override public boolean hasMarkChanges() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * For each changed entity a child marker entity will be created
     * to trace the mutation.
     * The flag shouldn't be set in transactional requests:
     * Commit request controls the behavior for all mutations in the transaction.
     * 
* * optional bool mark_changes = 8 [default = false]; * @return The markChanges. */ @java.lang.Override public boolean getMarkChanges() { return markChanges_; } public static final int SNAPSHOT_FIELD_NUMBER = 9; @SuppressWarnings("serial") private java.util.List snapshot_; /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ @java.lang.Override public java.util.List getSnapshotList() { return snapshot_; } /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ @java.lang.Override public java.util.List getSnapshotOrBuilderList() { return snapshot_; } /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ @java.lang.Override public int getSnapshotCount() { return snapshot_.size(); } /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot getSnapshot(int index) { return snapshot_.get(index); } /** *
     * TODO: This field is unused.  Remove it.
     * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder getSnapshotOrBuilder( int index) { return snapshot_.get(index); } public static final int SEQUENCE_NUMBER_FIELD_NUMBER = 12; private long sequenceNumber_ = 0L; /** *
     * Monotonically increasing sequence number provided by the client
     * to indicate ordering of put/delete requests in a transaction.
     * Note:
     * - Negative sequence numbers are invalid.
     * - Requests without a sequence number is equivalent to setting it to 0
     *   and will be ordered before requests with sequence numbers.
     * - Multiple requests with the same sequence number will be processed
     *   in the order which they are received.
     * 
* * optional int64 sequence_number = 12; * @return Whether the sequenceNumber field is set. */ @java.lang.Override public boolean hasSequenceNumber() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Monotonically increasing sequence number provided by the client
     * to indicate ordering of put/delete requests in a transaction.
     * Note:
     * - Negative sequence numbers are invalid.
     * - Requests without a sequence number is equivalent to setting it to 0
     *   and will be ordered before requests with sequence numbers.
     * - Multiple requests with the same sequence number will be processed
     *   in the order which they are received.
     * 
* * optional int64 sequence_number = 12; * @return The sequenceNumber. */ @java.lang.Override public long getSequenceNumber() { return sequenceNumber_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getKeyCount(); i++) { if (!getKey(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasTransaction()) { if (!getTransaction().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getCompositeIndexCount(); i++) { if (!getCompositeIndex(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getSnapshotCount(); i++) { if (!getSnapshot(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(4, trusted_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getTransaction()); } for (int i = 0; i < key_.size(); i++) { output.writeMessage(6, key_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(7, force_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(8, markChanges_); } for (int i = 0; i < snapshot_.size(); i++) { output.writeMessage(9, snapshot_.get(i)); } for (int i = 0; i < compositeIndex_.size(); i++) { output.writeMessage(11, compositeIndex_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { output.writeInt64(12, sequenceNumber_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, trusted_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTransaction()); } for (int i = 0; i < key_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, key_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, force_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, markChanges_); } for (int i = 0; i < snapshot_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, snapshot_.get(i)); } for (int i = 0; i < compositeIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, compositeIndex_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, sequenceNumber_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest) obj; if (!getKeyList() .equals(other.getKeyList())) return false; if (hasTransaction() != other.hasTransaction()) return false; if (hasTransaction()) { if (!getTransaction() .equals(other.getTransaction())) return false; } if (!getCompositeIndexList() .equals(other.getCompositeIndexList())) return false; if (hasTrusted() != other.hasTrusted()) return false; if (hasTrusted()) { if (getTrusted() != other.getTrusted()) return false; } if (hasForce() != other.hasForce()) return false; if (hasForce()) { if (getForce() != other.getForce()) return false; } if (hasMarkChanges() != other.hasMarkChanges()) return false; if (hasMarkChanges()) { if (getMarkChanges() != other.getMarkChanges()) return false; } if (!getSnapshotList() .equals(other.getSnapshotList())) return false; if (hasSequenceNumber() != other.hasSequenceNumber()) return false; if (hasSequenceNumber()) { if (getSequenceNumber() != other.getSequenceNumber()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getKeyCount() > 0) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKeyList().hashCode(); } if (hasTransaction()) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); } if (getCompositeIndexCount() > 0) { hash = (37 * hash) + COMPOSITE_INDEX_FIELD_NUMBER; hash = (53 * hash) + getCompositeIndexList().hashCode(); } if (hasTrusted()) { hash = (37 * hash) + TRUSTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTrusted()); } if (hasForce()) { hash = (37 * hash) + FORCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForce()); } if (hasMarkChanges()) { hash = (37 * hash) + MARK_CHANGES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMarkChanges()); } if (getSnapshotCount() > 0) { hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; hash = (53 * hash) + getSnapshotList().hashCode(); } if (hasSequenceNumber()) { hash = (37 * hash) + SEQUENCE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSequenceNumber()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.DeleteRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.DeleteRequest) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_DeleteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_DeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getKeyFieldBuilder(); getTransactionFieldBuilder(); getCompositeIndexFieldBuilder(); getSnapshotFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (keyBuilder_ == null) { key_ = java.util.Collections.emptyList(); } else { key_ = null; keyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } if (compositeIndexBuilder_ == null) { compositeIndex_ = java.util.Collections.emptyList(); } else { compositeIndex_ = null; compositeIndexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); trusted_ = false; force_ = false; markChanges_ = false; if (snapshotBuilder_ == null) { snapshot_ = java.util.Collections.emptyList(); } else { snapshot_ = null; snapshotBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); sequenceNumber_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_DeleteRequest_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest result) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { key_ = java.util.Collections.unmodifiableList(key_); bitField0_ = (bitField0_ & ~0x00000001); } result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } if (compositeIndexBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { compositeIndex_ = java.util.Collections.unmodifiableList(compositeIndex_); bitField0_ = (bitField0_ & ~0x00000004); } result.compositeIndex_ = compositeIndex_; } else { result.compositeIndex_ = compositeIndexBuilder_.build(); } if (snapshotBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { snapshot_ = java.util.Collections.unmodifiableList(snapshot_); bitField0_ = (bitField0_ & ~0x00000040); } result.snapshot_ = snapshot_; } else { result.snapshot_ = snapshotBuilder_.build(); } } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.transaction_ = transactionBuilder_ == null ? transaction_ : transactionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.trusted_ = trusted_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.force_ = force_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.markChanges_ = markChanges_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { result.sequenceNumber_ = sequenceNumber_; to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.getDefaultInstance()) return this; if (keyBuilder_ == null) { if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } } else { if (!other.key_.isEmpty()) { if (keyBuilder_.isEmpty()) { keyBuilder_.dispose(); keyBuilder_ = null; key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); keyBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKeyFieldBuilder() : null; } else { keyBuilder_.addAllMessages(other.key_); } } } if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } if (compositeIndexBuilder_ == null) { if (!other.compositeIndex_.isEmpty()) { if (compositeIndex_.isEmpty()) { compositeIndex_ = other.compositeIndex_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCompositeIndexIsMutable(); compositeIndex_.addAll(other.compositeIndex_); } onChanged(); } } else { if (!other.compositeIndex_.isEmpty()) { if (compositeIndexBuilder_.isEmpty()) { compositeIndexBuilder_.dispose(); compositeIndexBuilder_ = null; compositeIndex_ = other.compositeIndex_; bitField0_ = (bitField0_ & ~0x00000004); compositeIndexBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCompositeIndexFieldBuilder() : null; } else { compositeIndexBuilder_.addAllMessages(other.compositeIndex_); } } } if (other.hasTrusted()) { setTrusted(other.getTrusted()); } if (other.hasForce()) { setForce(other.getForce()); } if (other.hasMarkChanges()) { setMarkChanges(other.getMarkChanges()); } if (snapshotBuilder_ == null) { if (!other.snapshot_.isEmpty()) { if (snapshot_.isEmpty()) { snapshot_ = other.snapshot_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureSnapshotIsMutable(); snapshot_.addAll(other.snapshot_); } onChanged(); } } else { if (!other.snapshot_.isEmpty()) { if (snapshotBuilder_.isEmpty()) { snapshotBuilder_.dispose(); snapshotBuilder_ = null; snapshot_ = other.snapshot_; bitField0_ = (bitField0_ & ~0x00000040); snapshotBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSnapshotFieldBuilder() : null; } else { snapshotBuilder_.addAllMessages(other.snapshot_); } } } if (other.hasSequenceNumber()) { setSequenceNumber(other.getSequenceNumber()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getKeyCount(); i++) { if (!getKey(i).isInitialized()) { return false; } } if (hasTransaction()) { if (!getTransaction().isInitialized()) { return false; } } for (int i = 0; i < getCompositeIndexCount(); i++) { if (!getCompositeIndex(i).isInitialized()) { return false; } } for (int i = 0; i < getSnapshotCount(); i++) { if (!getSnapshot(i).isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 32: { trusted_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage( getTransactionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 42 case 50: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.PARSER, extensionRegistry); if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.add(m); } else { keyBuilder_.addMessage(m); } break; } // case 50 case 56: { force_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 56 case 64: { markChanges_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 64 case 74: { com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.PARSER, extensionRegistry); if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); snapshot_.add(m); } else { snapshotBuilder_.addMessage(m); } break; } // case 74 case 90: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.PARSER, extensionRegistry); if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.add(m); } else { compositeIndexBuilder_.addMessage(m); } break; } // case 90 case 96: { sequenceNumber_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 96 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List key_ = java.util.Collections.emptyList(); private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { key_ = new java.util.ArrayList(key_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> keyBuilder_; /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public java.util.List getKeyList() { if (keyBuilder_ == null) { return java.util.Collections.unmodifiableList(key_); } else { return keyBuilder_.getMessageList(); } } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public int getKeyCount() { if (keyBuilder_ == null) { return key_.size(); } else { return keyBuilder_.getCount(); } } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(int index) { if (keyBuilder_ == null) { return key_.get(index); } else { return keyBuilder_.getMessage(index); } } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public Builder setKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); } else { keyBuilder_.setMessage(index, value); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public Builder setKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.set(index, builderForValue.build()); onChanged(); } else { keyBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public Builder addKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); } else { keyBuilder_.addMessage(value); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public Builder addKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(index, value); onChanged(); } else { keyBuilder_.addMessage(index, value); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public Builder addKey( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.add(builderForValue.build()); onChanged(); } else { keyBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public Builder addKey( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.add(index, builderForValue.build()); onChanged(); } else { keyBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public Builder addAllKey( java.lang.Iterable values) { if (keyBuilder_ == null) { ensureKeyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, key_); onChanged(); } else { keyBuilder_.addAllMessages(values); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { keyBuilder_.clear(); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public Builder removeKey(int index) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.remove(index); onChanged(); } else { keyBuilder_.remove(index); } return this; } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder getKeyBuilder( int index) { return getKeyFieldBuilder().getBuilder(index); } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder( int index) { if (keyBuilder_ == null) { return key_.get(index); } else { return keyBuilder_.getMessageOrBuilder(index); } } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public java.util.List getKeyOrBuilderList() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(key_); } } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder addKeyBuilder() { return getKeyFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()); } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder addKeyBuilder( int index) { return getKeyFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()); } /** *
       * Tag 10 was InternalHeader
       * 
* * repeated .storage_onestore_v3.Reference key = 6; */ public java.util.List getKeyBuilderList() { return getKeyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>( key_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction transaction_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder> transactionBuilder_; /** * optional .apphosting_datastore_v3.Transaction transaction = 5; * @return Whether the transaction field is set. */ public boolean hasTransaction() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .apphosting_datastore_v3.Transaction transaction = 5; * @return The transaction. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** * optional .apphosting_datastore_v3.Transaction transaction = 5; */ public Builder setTransaction(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; } else { transactionBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Transaction transaction = 5; */ public Builder setTransaction( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); } else { transactionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Transaction transaction = 5; */ public Builder mergeTransaction(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction value) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && transaction_ != null && transaction_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance()) { getTransactionBuilder().mergeFrom(value); } else { transaction_ = value; } } else { transactionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Transaction transaction = 5; */ public Builder clearTransaction() { bitField0_ = (bitField0_ & ~0x00000002); transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } onChanged(); return this; } /** * optional .apphosting_datastore_v3.Transaction transaction = 5; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder getTransactionBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** * optional .apphosting_datastore_v3.Transaction transaction = 5; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } } /** * optional .apphosting_datastore_v3.Transaction transaction = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder>( getTransaction(), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } private java.util.List compositeIndex_ = java.util.Collections.emptyList(); private void ensureCompositeIndexIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { compositeIndex_ = new java.util.ArrayList(compositeIndex_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder> compositeIndexBuilder_; /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public java.util.List getCompositeIndexList() { if (compositeIndexBuilder_ == null) { return java.util.Collections.unmodifiableList(compositeIndex_); } else { return compositeIndexBuilder_.getMessageList(); } } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public int getCompositeIndexCount() { if (compositeIndexBuilder_ == null) { return compositeIndex_.size(); } else { return compositeIndexBuilder_.getCount(); } } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getCompositeIndex(int index) { if (compositeIndexBuilder_ == null) { return compositeIndex_.get(index); } else { return compositeIndexBuilder_.getMessage(index); } } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public Builder setCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (compositeIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompositeIndexIsMutable(); compositeIndex_.set(index, value); onChanged(); } else { compositeIndexBuilder_.setMessage(index, value); } return this; } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public Builder setCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.set(index, builderForValue.build()); onChanged(); } else { compositeIndexBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public Builder addCompositeIndex(com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (compositeIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompositeIndexIsMutable(); compositeIndex_.add(value); onChanged(); } else { compositeIndexBuilder_.addMessage(value); } return this; } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public Builder addCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (compositeIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompositeIndexIsMutable(); compositeIndex_.add(index, value); onChanged(); } else { compositeIndexBuilder_.addMessage(index, value); } return this; } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public Builder addCompositeIndex( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.add(builderForValue.build()); onChanged(); } else { compositeIndexBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public Builder addCompositeIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.add(index, builderForValue.build()); onChanged(); } else { compositeIndexBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public Builder addAllCompositeIndex( java.lang.Iterable values) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, compositeIndex_); onChanged(); } else { compositeIndexBuilder_.addAllMessages(values); } return this; } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public Builder clearCompositeIndex() { if (compositeIndexBuilder_ == null) { compositeIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { compositeIndexBuilder_.clear(); } return this; } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public Builder removeCompositeIndex(int index) { if (compositeIndexBuilder_ == null) { ensureCompositeIndexIsMutable(); compositeIndex_.remove(index); onChanged(); } else { compositeIndexBuilder_.remove(index); } return this; } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder getCompositeIndexBuilder( int index) { return getCompositeIndexFieldBuilder().getBuilder(index); } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getCompositeIndexOrBuilder( int index) { if (compositeIndexBuilder_ == null) { return compositeIndex_.get(index); } else { return compositeIndexBuilder_.getMessageOrBuilder(index); } } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public java.util.List getCompositeIndexOrBuilderList() { if (compositeIndexBuilder_ != null) { return compositeIndexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(compositeIndex_); } } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder addCompositeIndexBuilder() { return getCompositeIndexFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.getDefaultInstance()); } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder addCompositeIndexBuilder( int index) { return getCompositeIndexFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.getDefaultInstance()); } /** *
       * Note that this field was added in July 2014 (App Engine release 1.9.9).  Up
       * until then, composite indexes were not provided in DeleteRequests because
       * all of the information needed to clean up indexes is present on the
       * EntityEntity in Megastore.  For the new Spanner implementation, these will
       * be required though.
       * 
* * repeated .storage_onestore_v3.CompositeIndex composite_index = 11; */ public java.util.List getCompositeIndexBuilderList() { return getCompositeIndexFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder> getCompositeIndexFieldBuilder() { if (compositeIndexBuilder_ == null) { compositeIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder>( compositeIndex_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); compositeIndex_ = null; } return compositeIndexBuilder_; } private boolean trusted_ ; /** *
       * Currently, the only supported trusted delete operation is modifying
       * entities with reserved names.
       * 
* * optional bool trusted = 4 [default = false]; * @return Whether the trusted field is set. */ @java.lang.Override public boolean hasTrusted() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Currently, the only supported trusted delete operation is modifying
       * entities with reserved names.
       * 
* * optional bool trusted = 4 [default = false]; * @return The trusted. */ @java.lang.Override public boolean getTrusted() { return trusted_; } /** *
       * Currently, the only supported trusted delete operation is modifying
       * entities with reserved names.
       * 
* * optional bool trusted = 4 [default = false]; * @param value The trusted to set. * @return This builder for chaining. */ public Builder setTrusted(boolean value) { trusted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Currently, the only supported trusted delete operation is modifying
       * entities with reserved names.
       * 
* * optional bool trusted = 4 [default = false]; * @return This builder for chaining. */ public Builder clearTrusted() { bitField0_ = (bitField0_ & ~0x00000008); trusted_ = false; onChanged(); return this; } private boolean force_ ; /** *
       * Used by the app server to ignore a user specified read-only period
       * 
* * optional bool force = 7 [default = false]; * @return Whether the force field is set. */ @java.lang.Override public boolean hasForce() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * Used by the app server to ignore a user specified read-only period
       * 
* * optional bool force = 7 [default = false]; * @return The force. */ @java.lang.Override public boolean getForce() { return force_; } /** *
       * Used by the app server to ignore a user specified read-only period
       * 
* * optional bool force = 7 [default = false]; * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { force_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Used by the app server to ignore a user specified read-only period
       * 
* * optional bool force = 7 [default = false]; * @return This builder for chaining. */ public Builder clearForce() { bitField0_ = (bitField0_ & ~0x00000010); force_ = false; onChanged(); return this; } private boolean markChanges_ ; /** *
       * For each changed entity a child marker entity will be created
       * to trace the mutation.
       * The flag shouldn't be set in transactional requests:
       * Commit request controls the behavior for all mutations in the transaction.
       * 
* * optional bool mark_changes = 8 [default = false]; * @return Whether the markChanges field is set. */ @java.lang.Override public boolean hasMarkChanges() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * For each changed entity a child marker entity will be created
       * to trace the mutation.
       * The flag shouldn't be set in transactional requests:
       * Commit request controls the behavior for all mutations in the transaction.
       * 
* * optional bool mark_changes = 8 [default = false]; * @return The markChanges. */ @java.lang.Override public boolean getMarkChanges() { return markChanges_; } /** *
       * For each changed entity a child marker entity will be created
       * to trace the mutation.
       * The flag shouldn't be set in transactional requests:
       * Commit request controls the behavior for all mutations in the transaction.
       * 
* * optional bool mark_changes = 8 [default = false]; * @param value The markChanges to set. * @return This builder for chaining. */ public Builder setMarkChanges(boolean value) { markChanges_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * For each changed entity a child marker entity will be created
       * to trace the mutation.
       * The flag shouldn't be set in transactional requests:
       * Commit request controls the behavior for all mutations in the transaction.
       * 
* * optional bool mark_changes = 8 [default = false]; * @return This builder for chaining. */ public Builder clearMarkChanges() { bitField0_ = (bitField0_ & ~0x00000020); markChanges_ = false; onChanged(); return this; } private java.util.List snapshot_ = java.util.Collections.emptyList(); private void ensureSnapshotIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { snapshot_ = new java.util.ArrayList(snapshot_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder> snapshotBuilder_; /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public java.util.List getSnapshotList() { if (snapshotBuilder_ == null) { return java.util.Collections.unmodifiableList(snapshot_); } else { return snapshotBuilder_.getMessageList(); } } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public int getSnapshotCount() { if (snapshotBuilder_ == null) { return snapshot_.size(); } else { return snapshotBuilder_.getCount(); } } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot getSnapshot(int index) { if (snapshotBuilder_ == null) { return snapshot_.get(index); } else { return snapshotBuilder_.getMessage(index); } } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder setSnapshot( int index, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot value) { if (snapshotBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotIsMutable(); snapshot_.set(index, value); onChanged(); } else { snapshotBuilder_.setMessage(index, value); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder setSnapshot( int index, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); snapshot_.set(index, builderForValue.build()); onChanged(); } else { snapshotBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder addSnapshot(com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot value) { if (snapshotBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotIsMutable(); snapshot_.add(value); onChanged(); } else { snapshotBuilder_.addMessage(value); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder addSnapshot( int index, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot value) { if (snapshotBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotIsMutable(); snapshot_.add(index, value); onChanged(); } else { snapshotBuilder_.addMessage(index, value); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder addSnapshot( com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); snapshot_.add(builderForValue.build()); onChanged(); } else { snapshotBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder addSnapshot( int index, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); snapshot_.add(index, builderForValue.build()); onChanged(); } else { snapshotBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder addAllSnapshot( java.lang.Iterable values) { if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, snapshot_); onChanged(); } else { snapshotBuilder_.addAllMessages(values); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder clearSnapshot() { if (snapshotBuilder_ == null) { snapshot_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { snapshotBuilder_.clear(); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public Builder removeSnapshot(int index) { if (snapshotBuilder_ == null) { ensureSnapshotIsMutable(); snapshot_.remove(index); onChanged(); } else { snapshotBuilder_.remove(index); } return this; } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder getSnapshotBuilder( int index) { return getSnapshotFieldBuilder().getBuilder(index); } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder getSnapshotOrBuilder( int index) { if (snapshotBuilder_ == null) { return snapshot_.get(index); } else { return snapshotBuilder_.getMessageOrBuilder(index); } } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public java.util.List getSnapshotOrBuilderList() { if (snapshotBuilder_ != null) { return snapshotBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(snapshot_); } } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder addSnapshotBuilder() { return getSnapshotFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.getDefaultInstance()); } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder addSnapshotBuilder( int index) { return getSnapshotFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.getDefaultInstance()); } /** *
       * TODO: This field is unused.  Remove it.
       * 
* * repeated .storage_onestore_v3.Snapshot snapshot = 9; */ public java.util.List getSnapshotBuilderList() { return getSnapshotFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder> getSnapshotFieldBuilder() { if (snapshotBuilder_ == null) { snapshotBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.Snapshot.Builder, com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.SnapshotOrBuilder>( snapshot_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); snapshot_ = null; } return snapshotBuilder_; } private long sequenceNumber_ ; /** *
       * Monotonically increasing sequence number provided by the client
       * to indicate ordering of put/delete requests in a transaction.
       * Note:
       * - Negative sequence numbers are invalid.
       * - Requests without a sequence number is equivalent to setting it to 0
       *   and will be ordered before requests with sequence numbers.
       * - Multiple requests with the same sequence number will be processed
       *   in the order which they are received.
       * 
* * optional int64 sequence_number = 12; * @return Whether the sequenceNumber field is set. */ @java.lang.Override public boolean hasSequenceNumber() { return ((bitField0_ & 0x00000080) != 0); } /** *
       * Monotonically increasing sequence number provided by the client
       * to indicate ordering of put/delete requests in a transaction.
       * Note:
       * - Negative sequence numbers are invalid.
       * - Requests without a sequence number is equivalent to setting it to 0
       *   and will be ordered before requests with sequence numbers.
       * - Multiple requests with the same sequence number will be processed
       *   in the order which they are received.
       * 
* * optional int64 sequence_number = 12; * @return The sequenceNumber. */ @java.lang.Override public long getSequenceNumber() { return sequenceNumber_; } /** *
       * Monotonically increasing sequence number provided by the client
       * to indicate ordering of put/delete requests in a transaction.
       * Note:
       * - Negative sequence numbers are invalid.
       * - Requests without a sequence number is equivalent to setting it to 0
       *   and will be ordered before requests with sequence numbers.
       * - Multiple requests with the same sequence number will be processed
       *   in the order which they are received.
       * 
* * optional int64 sequence_number = 12; * @param value The sequenceNumber to set. * @return This builder for chaining. */ public Builder setSequenceNumber(long value) { sequenceNumber_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * Monotonically increasing sequence number provided by the client
       * to indicate ordering of put/delete requests in a transaction.
       * Note:
       * - Negative sequence numbers are invalid.
       * - Requests without a sequence number is equivalent to setting it to 0
       *   and will be ordered before requests with sequence numbers.
       * - Multiple requests with the same sequence number will be processed
       *   in the order which they are received.
       * 
* * optional int64 sequence_number = 12; * @return This builder for chaining. */ public Builder clearSequenceNumber() { bitField0_ = (bitField0_ & ~0x00000080); sequenceNumber_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.DeleteRequest) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.DeleteRequest) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.DeleteResponse) com.google.protobuf.MessageOrBuilder { /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return Whether the cost field is set. */ boolean hasCost(); /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return The cost. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost(); /** * optional .apphosting_datastore_v3.Cost cost = 1; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder(); /** *
     * The latest version number for each entity in the request at which the given
     * entity does not exist (regardless if the entity was deleted by this
     * request, was deleted by a previous request or never existed).
     * 
* * repeated int64 version = 3; * @return A list containing the version. */ java.util.List getVersionList(); /** *
     * The latest version number for each entity in the request at which the given
     * entity does not exist (regardless if the entity was deleted by this
     * request, was deleted by a previous request or never existed).
     * 
* * repeated int64 version = 3; * @return The count of version. */ int getVersionCount(); /** *
     * The latest version number for each entity in the request at which the given
     * entity does not exist (regardless if the entity was deleted by this
     * request, was deleted by a previous request or never existed).
     * 
* * repeated int64 version = 3; * @param index The index of the element to return. * @return The version at the given index. */ long getVersion(int index); } /** * Protobuf type {@code apphosting_datastore_v3.DeleteResponse} */ public static final class DeleteResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.DeleteResponse) DeleteResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteResponse.newBuilder() to construct. private DeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteResponse() { version_ = emptyLongList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_DeleteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_DeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse.Builder.class); } private int bitField0_; public static final int COST_FIELD_NUMBER = 1; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost cost_; /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return Whether the cost field is set. */ @java.lang.Override public boolean hasCost() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return The cost. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost() { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder() { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } public static final int VERSION_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList version_; /** *
     * The latest version number for each entity in the request at which the given
     * entity does not exist (regardless if the entity was deleted by this
     * request, was deleted by a previous request or never existed).
     * 
* * repeated int64 version = 3; * @return A list containing the version. */ @java.lang.Override public java.util.List getVersionList() { return version_; } /** *
     * The latest version number for each entity in the request at which the given
     * entity does not exist (regardless if the entity was deleted by this
     * request, was deleted by a previous request or never existed).
     * 
* * repeated int64 version = 3; * @return The count of version. */ public int getVersionCount() { return version_.size(); } /** *
     * The latest version number for each entity in the request at which the given
     * entity does not exist (regardless if the entity was deleted by this
     * request, was deleted by a previous request or never existed).
     * 
* * repeated int64 version = 3; * @param index The index of the element to return. * @return The version at the given index. */ public long getVersion(int index) { return version_.getLong(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCost()); } for (int i = 0; i < version_.size(); i++) { output.writeInt64(3, version_.getLong(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCost()); } { int dataSize = 0; for (int i = 0; i < version_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(version_.getLong(i)); } size += dataSize; size += 1 * getVersionList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse) obj; if (hasCost() != other.hasCost()) return false; if (hasCost()) { if (!getCost() .equals(other.getCost())) return false; } if (!getVersionList() .equals(other.getVersionList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCost()) { hash = (37 * hash) + COST_FIELD_NUMBER; hash = (53 * hash) + getCost().hashCode(); } if (getVersionCount() > 0) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersionList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.DeleteResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.DeleteResponse) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_DeleteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_DeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCostFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; cost_ = null; if (costBuilder_ != null) { costBuilder_.dispose(); costBuilder_ = null; } version_ = emptyLongList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_DeleteResponse_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse result) { if (((bitField0_ & 0x00000002) != 0)) { version_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); } result.version_ = version_; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.cost_ = costBuilder_ == null ? cost_ : costBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse.getDefaultInstance()) return this; if (other.hasCost()) { mergeCost(other.getCost()); } if (!other.version_.isEmpty()) { if (version_.isEmpty()) { version_ = other.version_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureVersionIsMutable(); version_.addAll(other.version_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getCostFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 24: { long v = input.readInt64(); ensureVersionIsMutable(); version_.addLong(v); break; } // case 24 case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureVersionIsMutable(); while (input.getBytesUntilLimit() > 0) { version_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost cost_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder> costBuilder_; /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return Whether the cost field is set. */ public boolean hasCost() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return The cost. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost() { if (costBuilder_ == null) { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } else { return costBuilder_.getMessage(); } } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public Builder setCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost value) { if (costBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cost_ = value; } else { costBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public Builder setCost( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder builderForValue) { if (costBuilder_ == null) { cost_ = builderForValue.build(); } else { costBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public Builder mergeCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost value) { if (costBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && cost_ != null && cost_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance()) { getCostBuilder().mergeFrom(value); } else { cost_ = value; } } else { costBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public Builder clearCost() { bitField0_ = (bitField0_ & ~0x00000001); cost_ = null; if (costBuilder_ != null) { costBuilder_.dispose(); costBuilder_ = null; } onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder getCostBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCostFieldBuilder().getBuilder(); } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder() { if (costBuilder_ != null) { return costBuilder_.getMessageOrBuilder(); } else { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder> getCostFieldBuilder() { if (costBuilder_ == null) { costBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder>( getCost(), getParentForChildren(), isClean()); cost_ = null; } return costBuilder_; } private com.google.protobuf.Internal.LongList version_ = emptyLongList(); private void ensureVersionIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { version_ = mutableCopy(version_); bitField0_ |= 0x00000002; } } /** *
       * The latest version number for each entity in the request at which the given
       * entity does not exist (regardless if the entity was deleted by this
       * request, was deleted by a previous request or never existed).
       * 
* * repeated int64 version = 3; * @return A list containing the version. */ public java.util.List getVersionList() { return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(version_) : version_; } /** *
       * The latest version number for each entity in the request at which the given
       * entity does not exist (regardless if the entity was deleted by this
       * request, was deleted by a previous request or never existed).
       * 
* * repeated int64 version = 3; * @return The count of version. */ public int getVersionCount() { return version_.size(); } /** *
       * The latest version number for each entity in the request at which the given
       * entity does not exist (regardless if the entity was deleted by this
       * request, was deleted by a previous request or never existed).
       * 
* * repeated int64 version = 3; * @param index The index of the element to return. * @return The version at the given index. */ public long getVersion(int index) { return version_.getLong(index); } /** *
       * The latest version number for each entity in the request at which the given
       * entity does not exist (regardless if the entity was deleted by this
       * request, was deleted by a previous request or never existed).
       * 
* * repeated int64 version = 3; * @param index The index to set the value at. * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( int index, long value) { ensureVersionIsMutable(); version_.setLong(index, value); onChanged(); return this; } /** *
       * The latest version number for each entity in the request at which the given
       * entity does not exist (regardless if the entity was deleted by this
       * request, was deleted by a previous request or never existed).
       * 
* * repeated int64 version = 3; * @param value The version to add. * @return This builder for chaining. */ public Builder addVersion(long value) { ensureVersionIsMutable(); version_.addLong(value); onChanged(); return this; } /** *
       * The latest version number for each entity in the request at which the given
       * entity does not exist (regardless if the entity was deleted by this
       * request, was deleted by a previous request or never existed).
       * 
* * repeated int64 version = 3; * @param values The version to add. * @return This builder for chaining. */ public Builder addAllVersion( java.lang.Iterable values) { ensureVersionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, version_); onChanged(); return this; } /** *
       * The latest version number for each entity in the request at which the given
       * entity does not exist (regardless if the entity was deleted by this
       * request, was deleted by a previous request or never existed).
       * 
* * repeated int64 version = 3; * @return This builder for chaining. */ public Builder clearVersion() { version_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.DeleteResponse) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.DeleteResponse) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NextRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.NextRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Tag 5 was InternalHeader
     * 
* * required .apphosting_datastore_v3.Cursor cursor = 1; * @return Whether the cursor field is set. */ boolean hasCursor(); /** *
     * Tag 5 was InternalHeader
     * 
* * required .apphosting_datastore_v3.Cursor cursor = 1; * @return The cursor. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor getCursor(); /** *
     * Tag 5 was InternalHeader
     * 
* * required .apphosting_datastore_v3.Cursor cursor = 1; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CursorOrBuilder getCursorOrBuilder(); /** *
     * The requested number of entities to return, if not specified the underlying
     * datastore implementation will pick
     * 
* * optional int32 count = 2; * @return Whether the count field is set. */ boolean hasCount(); /** *
     * The requested number of entities to return, if not specified the underlying
     * datastore implementation will pick
     * 
* * optional int32 count = 2; * @return The count. */ int getCount(); /** *
     * The requested number of entities to skip before returning any results.
     * DEPRECATED: Leave offset unset to use the offset persisted from the
     * RunQuery call. If set, this offset must be equal to the original offset
     * minus the number of skipped results so far.
     * 
* * optional int32 offset = 4 [default = 0, deprecated = true]; * @deprecated apphosting_datastore_v3.NextRequest.offset is deprecated. * See datastore_v3.proto;l=759 * @return Whether the offset field is set. */ @java.lang.Deprecated boolean hasOffset(); /** *
     * The requested number of entities to skip before returning any results.
     * DEPRECATED: Leave offset unset to use the offset persisted from the
     * RunQuery call. If set, this offset must be equal to the original offset
     * minus the number of skipped results so far.
     * 
* * optional int32 offset = 4 [default = 0, deprecated = true]; * @deprecated apphosting_datastore_v3.NextRequest.offset is deprecated. * See datastore_v3.proto;l=759 * @return The offset. */ @java.lang.Deprecated int getOffset(); /** *
     * If true, Next() will try and compile the given cursor into a CompiledCursor
     * so it can be resumed later. This will only succeed if the RunQuery request
     * that returned the cursor was called with Query.compile = true
     * 
* * optional bool compile = 3 [default = false]; * @return Whether the compile field is set. */ boolean hasCompile(); /** *
     * If true, Next() will try and compile the given cursor into a CompiledCursor
     * so it can be resumed later. This will only succeed if the RunQuery request
     * that returned the cursor was called with Query.compile = true
     * 
* * optional bool compile = 3 [default = false]; * @return The compile. */ boolean getCompile(); } /** * Protobuf type {@code apphosting_datastore_v3.NextRequest} */ public static final class NextRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.NextRequest) NextRequestOrBuilder { private static final long serialVersionUID = 0L; // Use NextRequest.newBuilder() to construct. private NextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NextRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NextRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_NextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_NextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest.Builder.class); } private int bitField0_; public static final int CURSOR_FIELD_NUMBER = 1; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor cursor_; /** *
     * Tag 5 was InternalHeader
     * 
* * required .apphosting_datastore_v3.Cursor cursor = 1; * @return Whether the cursor field is set. */ @java.lang.Override public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Tag 5 was InternalHeader
     * 
* * required .apphosting_datastore_v3.Cursor cursor = 1; * @return The cursor. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor getCursor() { return cursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.getDefaultInstance() : cursor_; } /** *
     * Tag 5 was InternalHeader
     * 
* * required .apphosting_datastore_v3.Cursor cursor = 1; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CursorOrBuilder getCursorOrBuilder() { return cursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.getDefaultInstance() : cursor_; } public static final int COUNT_FIELD_NUMBER = 2; private int count_ = 0; /** *
     * The requested number of entities to return, if not specified the underlying
     * datastore implementation will pick
     * 
* * optional int32 count = 2; * @return Whether the count field is set. */ @java.lang.Override public boolean hasCount() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The requested number of entities to return, if not specified the underlying
     * datastore implementation will pick
     * 
* * optional int32 count = 2; * @return The count. */ @java.lang.Override public int getCount() { return count_; } public static final int OFFSET_FIELD_NUMBER = 4; private int offset_ = 0; /** *
     * The requested number of entities to skip before returning any results.
     * DEPRECATED: Leave offset unset to use the offset persisted from the
     * RunQuery call. If set, this offset must be equal to the original offset
     * minus the number of skipped results so far.
     * 
* * optional int32 offset = 4 [default = 0, deprecated = true]; * @deprecated apphosting_datastore_v3.NextRequest.offset is deprecated. * See datastore_v3.proto;l=759 * @return Whether the offset field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasOffset() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The requested number of entities to skip before returning any results.
     * DEPRECATED: Leave offset unset to use the offset persisted from the
     * RunQuery call. If set, this offset must be equal to the original offset
     * minus the number of skipped results so far.
     * 
* * optional int32 offset = 4 [default = 0, deprecated = true]; * @deprecated apphosting_datastore_v3.NextRequest.offset is deprecated. * See datastore_v3.proto;l=759 * @return The offset. */ @java.lang.Override @java.lang.Deprecated public int getOffset() { return offset_; } public static final int COMPILE_FIELD_NUMBER = 3; private boolean compile_ = false; /** *
     * If true, Next() will try and compile the given cursor into a CompiledCursor
     * so it can be resumed later. This will only succeed if the RunQuery request
     * that returned the cursor was called with Query.compile = true
     * 
* * optional bool compile = 3 [default = false]; * @return Whether the compile field is set. */ @java.lang.Override public boolean hasCompile() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * If true, Next() will try and compile the given cursor into a CompiledCursor
     * so it can be resumed later. This will only succeed if the RunQuery request
     * that returned the cursor was called with Query.compile = true
     * 
* * optional bool compile = 3 [default = false]; * @return The compile. */ @java.lang.Override public boolean getCompile() { return compile_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasCursor()) { memoizedIsInitialized = 0; return false; } if (!getCursor().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCursor()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, count_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(3, compile_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(4, offset_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCursor()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, count_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, compile_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest) obj; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { if (!getCursor() .equals(other.getCursor())) return false; } if (hasCount() != other.hasCount()) return false; if (hasCount()) { if (getCount() != other.getCount()) return false; } if (hasOffset() != other.hasOffset()) return false; if (hasOffset()) { if (getOffset() != other.getOffset()) return false; } if (hasCompile() != other.hasCompile()) return false; if (hasCompile()) { if (getCompile() != other.getCompile()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCursor()) { hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); } if (hasCount()) { hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); } if (hasOffset()) { hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset(); } if (hasCompile()) { hash = (37 * hash) + COMPILE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCompile()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.NextRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.NextRequest) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_NextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_NextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCursorFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; cursor_ = null; if (cursorBuilder_ != null) { cursorBuilder_.dispose(); cursorBuilder_ = null; } count_ = 0; offset_ = 0; compile_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_NextRequest_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.count_ = count_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.offset_ = offset_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.compile_ = compile_; to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest.getDefaultInstance()) return this; if (other.hasCursor()) { mergeCursor(other.getCursor()); } if (other.hasCount()) { setCount(other.getCount()); } if (other.hasOffset()) { setOffset(other.getOffset()); } if (other.hasCompile()) { setCompile(other.getCompile()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasCursor()) { return false; } if (!getCursor().isInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getCursorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { count_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { compile_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 24 case 32: { offset_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CursorOrBuilder> cursorBuilder_; /** *
       * Tag 5 was InternalHeader
       * 
* * required .apphosting_datastore_v3.Cursor cursor = 1; * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Tag 5 was InternalHeader
       * 
* * required .apphosting_datastore_v3.Cursor cursor = 1; * @return The cursor. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor getCursor() { if (cursorBuilder_ == null) { return cursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** *
       * Tag 5 was InternalHeader
       * 
* * required .apphosting_datastore_v3.Cursor cursor = 1; */ public Builder setCursor(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor value) { if (cursorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cursor_ = value; } else { cursorBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Tag 5 was InternalHeader
       * 
* * required .apphosting_datastore_v3.Cursor cursor = 1; */ public Builder setCursor( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { cursorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Tag 5 was InternalHeader
       * 
* * required .apphosting_datastore_v3.Cursor cursor = 1; */ public Builder mergeCursor(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor value) { if (cursorBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && cursor_ != null && cursor_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; } } else { cursorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Tag 5 was InternalHeader
       * 
* * required .apphosting_datastore_v3.Cursor cursor = 1; */ public Builder clearCursor() { bitField0_ = (bitField0_ & ~0x00000001); cursor_ = null; if (cursorBuilder_ != null) { cursorBuilder_.dispose(); cursorBuilder_ = null; } onChanged(); return this; } /** *
       * Tag 5 was InternalHeader
       * 
* * required .apphosting_datastore_v3.Cursor cursor = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.Builder getCursorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCursorFieldBuilder().getBuilder(); } /** *
       * Tag 5 was InternalHeader
       * 
* * required .apphosting_datastore_v3.Cursor cursor = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { return cursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.getDefaultInstance() : cursor_; } } /** *
       * Tag 5 was InternalHeader
       * 
* * required .apphosting_datastore_v3.Cursor cursor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CursorOrBuilder>( getCursor(), getParentForChildren(), isClean()); cursor_ = null; } return cursorBuilder_; } private int count_ ; /** *
       * The requested number of entities to return, if not specified the underlying
       * datastore implementation will pick
       * 
* * optional int32 count = 2; * @return Whether the count field is set. */ @java.lang.Override public boolean hasCount() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * The requested number of entities to return, if not specified the underlying
       * datastore implementation will pick
       * 
* * optional int32 count = 2; * @return The count. */ @java.lang.Override public int getCount() { return count_; } /** *
       * The requested number of entities to return, if not specified the underlying
       * datastore implementation will pick
       * 
* * optional int32 count = 2; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(int value) { count_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The requested number of entities to return, if not specified the underlying
       * datastore implementation will pick
       * 
* * optional int32 count = 2; * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000002); count_ = 0; onChanged(); return this; } private int offset_ ; /** *
       * The requested number of entities to skip before returning any results.
       * DEPRECATED: Leave offset unset to use the offset persisted from the
       * RunQuery call. If set, this offset must be equal to the original offset
       * minus the number of skipped results so far.
       * 
* * optional int32 offset = 4 [default = 0, deprecated = true]; * @deprecated apphosting_datastore_v3.NextRequest.offset is deprecated. * See datastore_v3.proto;l=759 * @return Whether the offset field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasOffset() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * The requested number of entities to skip before returning any results.
       * DEPRECATED: Leave offset unset to use the offset persisted from the
       * RunQuery call. If set, this offset must be equal to the original offset
       * minus the number of skipped results so far.
       * 
* * optional int32 offset = 4 [default = 0, deprecated = true]; * @deprecated apphosting_datastore_v3.NextRequest.offset is deprecated. * See datastore_v3.proto;l=759 * @return The offset. */ @java.lang.Override @java.lang.Deprecated public int getOffset() { return offset_; } /** *
       * The requested number of entities to skip before returning any results.
       * DEPRECATED: Leave offset unset to use the offset persisted from the
       * RunQuery call. If set, this offset must be equal to the original offset
       * minus the number of skipped results so far.
       * 
* * optional int32 offset = 4 [default = 0, deprecated = true]; * @deprecated apphosting_datastore_v3.NextRequest.offset is deprecated. * See datastore_v3.proto;l=759 * @param value The offset to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setOffset(int value) { offset_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The requested number of entities to skip before returning any results.
       * DEPRECATED: Leave offset unset to use the offset persisted from the
       * RunQuery call. If set, this offset must be equal to the original offset
       * minus the number of skipped results so far.
       * 
* * optional int32 offset = 4 [default = 0, deprecated = true]; * @deprecated apphosting_datastore_v3.NextRequest.offset is deprecated. * See datastore_v3.proto;l=759 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000004); offset_ = 0; onChanged(); return this; } private boolean compile_ ; /** *
       * If true, Next() will try and compile the given cursor into a CompiledCursor
       * so it can be resumed later. This will only succeed if the RunQuery request
       * that returned the cursor was called with Query.compile = true
       * 
* * optional bool compile = 3 [default = false]; * @return Whether the compile field is set. */ @java.lang.Override public boolean hasCompile() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * If true, Next() will try and compile the given cursor into a CompiledCursor
       * so it can be resumed later. This will only succeed if the RunQuery request
       * that returned the cursor was called with Query.compile = true
       * 
* * optional bool compile = 3 [default = false]; * @return The compile. */ @java.lang.Override public boolean getCompile() { return compile_; } /** *
       * If true, Next() will try and compile the given cursor into a CompiledCursor
       * so it can be resumed later. This will only succeed if the RunQuery request
       * that returned the cursor was called with Query.compile = true
       * 
* * optional bool compile = 3 [default = false]; * @param value The compile to set. * @return This builder for chaining. */ public Builder setCompile(boolean value) { compile_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * If true, Next() will try and compile the given cursor into a CompiledCursor
       * so it can be resumed later. This will only succeed if the RunQuery request
       * that returned the cursor was called with Query.compile = true
       * 
* * optional bool compile = 3 [default = false]; * @return This builder for chaining. */ public Builder clearCompile() { bitField0_ = (bitField0_ & ~0x00000008); compile_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.NextRequest) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.NextRequest) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NextRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.NextRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryResultOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.QueryResult) com.google.protobuf.MessageOrBuilder { /** *
     * A cursor that can be used in a call to Next()
     * 
* * optional .apphosting_datastore_v3.Cursor cursor = 1; * @return Whether the cursor field is set. */ boolean hasCursor(); /** *
     * A cursor that can be used in a call to Next()
     * 
* * optional .apphosting_datastore_v3.Cursor cursor = 1; * @return The cursor. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor getCursor(); /** *
     * A cursor that can be used in a call to Next()
     * 
* * optional .apphosting_datastore_v3.Cursor cursor = 1; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CursorOrBuilder getCursorOrBuilder(); /** *
     * The resulting entities or keys.
     * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ java.util.List getResultList(); /** *
     * The resulting entities or keys.
     * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto getResult(int index); /** *
     * The resulting entities or keys.
     * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ int getResultCount(); /** *
     * The resulting entities or keys.
     * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ java.util.List getResultOrBuilderList(); /** *
     * The resulting entities or keys.
     * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder getResultOrBuilder( int index); /** *
     * The number of results skipped over
     * 
* * optional int32 skipped_results = 7; * @return Whether the skippedResults field is set. */ boolean hasSkippedResults(); /** *
     * The number of results skipped over
     * 
* * optional int32 skipped_results = 7; * @return The skippedResults. */ int getSkippedResults(); /** *
     * True if a call to Next() will return more results.
     * 
* * required bool more_results = 3; * @return Whether the moreResults field is set. */ boolean hasMoreResults(); /** *
     * True if a call to Next() will return more results.
     * 
* * required bool more_results = 3; * @return The moreResults. */ boolean getMoreResults(); /** *
     * If true, only the keys in the result EntityProtos will be set. this
     * happens in response to a Query with keys_only set to true.
     * 
* * optional bool keys_only = 4; * @return Whether the keysOnly field is set. */ boolean hasKeysOnly(); /** *
     * If true, only the keys in the result EntityProtos will be set. this
     * happens in response to a Query with keys_only set to true.
     * 
* * optional bool keys_only = 4; * @return The keysOnly. */ boolean getKeysOnly(); /** *
     * If true, only index values in the result EntityProtos will be set. This
     * happens in response to a Query with at least one property_name set.
     * 
* * optional bool index_only = 9; * @return Whether the indexOnly field is set. */ boolean hasIndexOnly(); /** *
     * If true, only index values in the result EntityProtos will be set. This
     * happens in response to a Query with at least one property_name set.
     * 
* * optional bool index_only = 9; * @return The indexOnly. */ boolean getIndexOnly(); /** *
     * If the caller should be charged a small op for each result returned.
     * We charge a small op for simple index scans. Anything that has to seek
     * for each result costs a read op.
     * 
* * optional bool small_ops = 10; * @return Whether the smallOps field is set. */ boolean hasSmallOps(); /** *
     * If the caller should be charged a small op for each result returned.
     * We charge a small op for simple index scans. Anything that has to seek
     * for each result costs a read op.
     * 
* * optional bool small_ops = 10; * @return The smallOps. */ boolean getSmallOps(); /** *
     * This will only be populated if the request has compile=true and the Query
     * supports being compiled. Only populated by RunQuery() (not populated by
     * Next()).
     * 
* * optional .apphosting_datastore_v3.CompiledQuery compiled_query = 5; * @return Whether the compiledQuery field is set. */ boolean hasCompiledQuery(); /** *
     * This will only be populated if the request has compile=true and the Query
     * supports being compiled. Only populated by RunQuery() (not populated by
     * Next()).
     * 
* * optional .apphosting_datastore_v3.CompiledQuery compiled_query = 5; * @return The compiledQuery. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery getCompiledQuery(); /** *
     * This will only be populated if the request has compile=true and the Query
     * supports being compiled. Only populated by RunQuery() (not populated by
     * Next()).
     * 
* * optional .apphosting_datastore_v3.CompiledQuery compiled_query = 5; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQueryOrBuilder getCompiledQueryOrBuilder(); /** *
     * This will only be populated if the request has compile=true and
     * the Query supports being compiled.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 6; * @return Whether the compiledCursor field is set. */ boolean hasCompiledCursor(); /** *
     * This will only be populated if the request has compile=true and
     * the Query supports being compiled.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 6; * @return The compiledCursor. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getCompiledCursor(); /** *
     * This will only be populated if the request has compile=true and
     * the Query supports being compiled.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 6; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getCompiledCursorOrBuilder(); /** *
     * The indexes used to perform the query.
     * Includes composite indexes, single property indexes, the primary index,
     * and kind indexes.
     * Every index has app_id = <appId> and state = READ_WRITE.
     * Any non-composite index has id = 0.
     * A composite index has definition.ancestor set appropriately.
     * Single property and kind indexes have definition.ancestor = false.
     * The primary index has definition.ancestor = true.
     * A simple index has definition.entity_type = <kind> and exactly 1 property.
     * The primary index has definition.entity_type = "" and no properties.
     * The kind index has definition.entity_type = <kind> and no properties.
     * This field is used by QueryResult instances returned by rpc RunQuery.
     * This field is not used by QueryResult instances returned by rpc Next.
     * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ java.util.List getIndexList(); /** *
     * The indexes used to perform the query.
     * Includes composite indexes, single property indexes, the primary index,
     * and kind indexes.
     * Every index has app_id = <appId> and state = READ_WRITE.
     * Any non-composite index has id = 0.
     * A composite index has definition.ancestor set appropriately.
     * Single property and kind indexes have definition.ancestor = false.
     * The primary index has definition.ancestor = true.
     * A simple index has definition.entity_type = <kind> and exactly 1 property.
     * The primary index has definition.entity_type = "" and no properties.
     * The kind index has definition.entity_type = <kind> and no properties.
     * This field is used by QueryResult instances returned by rpc RunQuery.
     * This field is not used by QueryResult instances returned by rpc Next.
     * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getIndex(int index); /** *
     * The indexes used to perform the query.
     * Includes composite indexes, single property indexes, the primary index,
     * and kind indexes.
     * Every index has app_id = <appId> and state = READ_WRITE.
     * Any non-composite index has id = 0.
     * A composite index has definition.ancestor set appropriately.
     * Single property and kind indexes have definition.ancestor = false.
     * The primary index has definition.ancestor = true.
     * A simple index has definition.entity_type = <kind> and exactly 1 property.
     * The primary index has definition.entity_type = "" and no properties.
     * The kind index has definition.entity_type = <kind> and no properties.
     * This field is used by QueryResult instances returned by rpc RunQuery.
     * This field is not used by QueryResult instances returned by rpc Next.
     * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ int getIndexCount(); /** *
     * The indexes used to perform the query.
     * Includes composite indexes, single property indexes, the primary index,
     * and kind indexes.
     * Every index has app_id = <appId> and state = READ_WRITE.
     * Any non-composite index has id = 0.
     * A composite index has definition.ancestor set appropriately.
     * Single property and kind indexes have definition.ancestor = false.
     * The primary index has definition.ancestor = true.
     * A simple index has definition.entity_type = <kind> and exactly 1 property.
     * The primary index has definition.entity_type = "" and no properties.
     * The kind index has definition.entity_type = <kind> and no properties.
     * This field is used by QueryResult instances returned by rpc RunQuery.
     * This field is not used by QueryResult instances returned by rpc Next.
     * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ java.util.List getIndexOrBuilderList(); /** *
     * The indexes used to perform the query.
     * Includes composite indexes, single property indexes, the primary index,
     * and kind indexes.
     * Every index has app_id = <appId> and state = READ_WRITE.
     * Any non-composite index has id = 0.
     * A composite index has definition.ancestor set appropriately.
     * Single property and kind indexes have definition.ancestor = false.
     * The primary index has definition.ancestor = true.
     * A simple index has definition.entity_type = <kind> and exactly 1 property.
     * The primary index has definition.entity_type = "" and no properties.
     * The kind index has definition.entity_type = <kind> and no properties.
     * This field is used by QueryResult instances returned by rpc RunQuery.
     * This field is not used by QueryResult instances returned by rpc Next.
     * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getIndexOrBuilder( int index); /** *
     * The versions of the resulting entities.
     * 
* * repeated int64 version = 11; * @return A list containing the version. */ java.util.List getVersionList(); /** *
     * The versions of the resulting entities.
     * 
* * repeated int64 version = 11; * @return The count of version. */ int getVersionCount(); /** *
     * The versions of the resulting entities.
     * 
* * repeated int64 version = 11; * @param index The index of the element to return. * @return The version at the given index. */ long getVersion(int index); /** *
     * Cursors pointing just after the result at the same index.
     * TODO: Change the type of this field to bytes?
     * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ java.util.List getResultCompiledCursorList(); /** *
     * Cursors pointing just after the result at the same index.
     * TODO: Change the type of this field to bytes?
     * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getResultCompiledCursor(int index); /** *
     * Cursors pointing just after the result at the same index.
     * TODO: Change the type of this field to bytes?
     * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ int getResultCompiledCursorCount(); /** *
     * Cursors pointing just after the result at the same index.
     * TODO: Change the type of this field to bytes?
     * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ java.util.List getResultCompiledCursorOrBuilderList(); /** *
     * Cursors pointing just after the result at the same index.
     * TODO: Change the type of this field to bytes?
     * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getResultCompiledCursorOrBuilder( int index); /** *
     * The cursor just after the last result skipped due to an offset.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor skipped_results_compiled_cursor = 13; * @return Whether the skippedResultsCompiledCursor field is set. */ boolean hasSkippedResultsCompiledCursor(); /** *
     * The cursor just after the last result skipped due to an offset.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor skipped_results_compiled_cursor = 13; * @return The skippedResultsCompiledCursor. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getSkippedResultsCompiledCursor(); /** *
     * The cursor just after the last result skipped due to an offset.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor skipped_results_compiled_cursor = 13; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getSkippedResultsCompiledCursorOrBuilder(); } /** * Protobuf type {@code apphosting_datastore_v3.QueryResult} */ public static final class QueryResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.QueryResult) QueryResultOrBuilder { private static final long serialVersionUID = 0L; // Use QueryResult.newBuilder() to construct. private QueryResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryResult() { result_ = java.util.Collections.emptyList(); index_ = java.util.Collections.emptyList(); version_ = emptyLongList(); resultCompiledCursor_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QueryResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_QueryResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_QueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.Builder.class); } private int bitField0_; public static final int CURSOR_FIELD_NUMBER = 1; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor cursor_; /** *
     * A cursor that can be used in a call to Next()
     * 
* * optional .apphosting_datastore_v3.Cursor cursor = 1; * @return Whether the cursor field is set. */ @java.lang.Override public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * A cursor that can be used in a call to Next()
     * 
* * optional .apphosting_datastore_v3.Cursor cursor = 1; * @return The cursor. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor getCursor() { return cursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.getDefaultInstance() : cursor_; } /** *
     * A cursor that can be used in a call to Next()
     * 
* * optional .apphosting_datastore_v3.Cursor cursor = 1; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CursorOrBuilder getCursorOrBuilder() { return cursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.getDefaultInstance() : cursor_; } public static final int RESULT_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List result_; /** *
     * The resulting entities or keys.
     * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ @java.lang.Override public java.util.List getResultList() { return result_; } /** *
     * The resulting entities or keys.
     * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ @java.lang.Override public java.util.List getResultOrBuilderList() { return result_; } /** *
     * The resulting entities or keys.
     * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ @java.lang.Override public int getResultCount() { return result_.size(); } /** *
     * The resulting entities or keys.
     * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto getResult(int index) { return result_.get(index); } /** *
     * The resulting entities or keys.
     * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder getResultOrBuilder( int index) { return result_.get(index); } public static final int SKIPPED_RESULTS_FIELD_NUMBER = 7; private int skippedResults_ = 0; /** *
     * The number of results skipped over
     * 
* * optional int32 skipped_results = 7; * @return Whether the skippedResults field is set. */ @java.lang.Override public boolean hasSkippedResults() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The number of results skipped over
     * 
* * optional int32 skipped_results = 7; * @return The skippedResults. */ @java.lang.Override public int getSkippedResults() { return skippedResults_; } public static final int MORE_RESULTS_FIELD_NUMBER = 3; private boolean moreResults_ = false; /** *
     * True if a call to Next() will return more results.
     * 
* * required bool more_results = 3; * @return Whether the moreResults field is set. */ @java.lang.Override public boolean hasMoreResults() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * True if a call to Next() will return more results.
     * 
* * required bool more_results = 3; * @return The moreResults. */ @java.lang.Override public boolean getMoreResults() { return moreResults_; } public static final int KEYS_ONLY_FIELD_NUMBER = 4; private boolean keysOnly_ = false; /** *
     * If true, only the keys in the result EntityProtos will be set. this
     * happens in response to a Query with keys_only set to true.
     * 
* * optional bool keys_only = 4; * @return Whether the keysOnly field is set. */ @java.lang.Override public boolean hasKeysOnly() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * If true, only the keys in the result EntityProtos will be set. this
     * happens in response to a Query with keys_only set to true.
     * 
* * optional bool keys_only = 4; * @return The keysOnly. */ @java.lang.Override public boolean getKeysOnly() { return keysOnly_; } public static final int INDEX_ONLY_FIELD_NUMBER = 9; private boolean indexOnly_ = false; /** *
     * If true, only index values in the result EntityProtos will be set. This
     * happens in response to a Query with at least one property_name set.
     * 
* * optional bool index_only = 9; * @return Whether the indexOnly field is set. */ @java.lang.Override public boolean hasIndexOnly() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * If true, only index values in the result EntityProtos will be set. This
     * happens in response to a Query with at least one property_name set.
     * 
* * optional bool index_only = 9; * @return The indexOnly. */ @java.lang.Override public boolean getIndexOnly() { return indexOnly_; } public static final int SMALL_OPS_FIELD_NUMBER = 10; private boolean smallOps_ = false; /** *
     * If the caller should be charged a small op for each result returned.
     * We charge a small op for simple index scans. Anything that has to seek
     * for each result costs a read op.
     * 
* * optional bool small_ops = 10; * @return Whether the smallOps field is set. */ @java.lang.Override public boolean hasSmallOps() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * If the caller should be charged a small op for each result returned.
     * We charge a small op for simple index scans. Anything that has to seek
     * for each result costs a read op.
     * 
* * optional bool small_ops = 10; * @return The smallOps. */ @java.lang.Override public boolean getSmallOps() { return smallOps_; } public static final int COMPILED_QUERY_FIELD_NUMBER = 5; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery compiledQuery_; /** *
     * This will only be populated if the request has compile=true and the Query
     * supports being compiled. Only populated by RunQuery() (not populated by
     * Next()).
     * 
* * optional .apphosting_datastore_v3.CompiledQuery compiled_query = 5; * @return Whether the compiledQuery field is set. */ @java.lang.Override public boolean hasCompiledQuery() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * This will only be populated if the request has compile=true and the Query
     * supports being compiled. Only populated by RunQuery() (not populated by
     * Next()).
     * 
* * optional .apphosting_datastore_v3.CompiledQuery compiled_query = 5; * @return The compiledQuery. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery getCompiledQuery() { return compiledQuery_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.getDefaultInstance() : compiledQuery_; } /** *
     * This will only be populated if the request has compile=true and the Query
     * supports being compiled. Only populated by RunQuery() (not populated by
     * Next()).
     * 
* * optional .apphosting_datastore_v3.CompiledQuery compiled_query = 5; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQueryOrBuilder getCompiledQueryOrBuilder() { return compiledQuery_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.getDefaultInstance() : compiledQuery_; } public static final int COMPILED_CURSOR_FIELD_NUMBER = 6; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor compiledCursor_; /** *
     * This will only be populated if the request has compile=true and
     * the Query supports being compiled.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 6; * @return Whether the compiledCursor field is set. */ @java.lang.Override public boolean hasCompiledCursor() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * This will only be populated if the request has compile=true and
     * the Query supports being compiled.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 6; * @return The compiledCursor. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getCompiledCursor() { return compiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : compiledCursor_; } /** *
     * This will only be populated if the request has compile=true and
     * the Query supports being compiled.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 6; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getCompiledCursorOrBuilder() { return compiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : compiledCursor_; } public static final int INDEX_FIELD_NUMBER = 8; @SuppressWarnings("serial") private java.util.List index_; /** *
     * The indexes used to perform the query.
     * Includes composite indexes, single property indexes, the primary index,
     * and kind indexes.
     * Every index has app_id = <appId> and state = READ_WRITE.
     * Any non-composite index has id = 0.
     * A composite index has definition.ancestor set appropriately.
     * Single property and kind indexes have definition.ancestor = false.
     * The primary index has definition.ancestor = true.
     * A simple index has definition.entity_type = <kind> and exactly 1 property.
     * The primary index has definition.entity_type = "" and no properties.
     * The kind index has definition.entity_type = <kind> and no properties.
     * This field is used by QueryResult instances returned by rpc RunQuery.
     * This field is not used by QueryResult instances returned by rpc Next.
     * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ @java.lang.Override public java.util.List getIndexList() { return index_; } /** *
     * The indexes used to perform the query.
     * Includes composite indexes, single property indexes, the primary index,
     * and kind indexes.
     * Every index has app_id = <appId> and state = READ_WRITE.
     * Any non-composite index has id = 0.
     * A composite index has definition.ancestor set appropriately.
     * Single property and kind indexes have definition.ancestor = false.
     * The primary index has definition.ancestor = true.
     * A simple index has definition.entity_type = <kind> and exactly 1 property.
     * The primary index has definition.entity_type = "" and no properties.
     * The kind index has definition.entity_type = <kind> and no properties.
     * This field is used by QueryResult instances returned by rpc RunQuery.
     * This field is not used by QueryResult instances returned by rpc Next.
     * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ @java.lang.Override public java.util.List getIndexOrBuilderList() { return index_; } /** *
     * The indexes used to perform the query.
     * Includes composite indexes, single property indexes, the primary index,
     * and kind indexes.
     * Every index has app_id = <appId> and state = READ_WRITE.
     * Any non-composite index has id = 0.
     * A composite index has definition.ancestor set appropriately.
     * Single property and kind indexes have definition.ancestor = false.
     * The primary index has definition.ancestor = true.
     * A simple index has definition.entity_type = <kind> and exactly 1 property.
     * The primary index has definition.entity_type = "" and no properties.
     * The kind index has definition.entity_type = <kind> and no properties.
     * This field is used by QueryResult instances returned by rpc RunQuery.
     * This field is not used by QueryResult instances returned by rpc Next.
     * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ @java.lang.Override public int getIndexCount() { return index_.size(); } /** *
     * The indexes used to perform the query.
     * Includes composite indexes, single property indexes, the primary index,
     * and kind indexes.
     * Every index has app_id = <appId> and state = READ_WRITE.
     * Any non-composite index has id = 0.
     * A composite index has definition.ancestor set appropriately.
     * Single property and kind indexes have definition.ancestor = false.
     * The primary index has definition.ancestor = true.
     * A simple index has definition.entity_type = <kind> and exactly 1 property.
     * The primary index has definition.entity_type = "" and no properties.
     * The kind index has definition.entity_type = <kind> and no properties.
     * This field is used by QueryResult instances returned by rpc RunQuery.
     * This field is not used by QueryResult instances returned by rpc Next.
     * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getIndex(int index) { return index_.get(index); } /** *
     * The indexes used to perform the query.
     * Includes composite indexes, single property indexes, the primary index,
     * and kind indexes.
     * Every index has app_id = <appId> and state = READ_WRITE.
     * Any non-composite index has id = 0.
     * A composite index has definition.ancestor set appropriately.
     * Single property and kind indexes have definition.ancestor = false.
     * The primary index has definition.ancestor = true.
     * A simple index has definition.entity_type = <kind> and exactly 1 property.
     * The primary index has definition.entity_type = "" and no properties.
     * The kind index has definition.entity_type = <kind> and no properties.
     * This field is used by QueryResult instances returned by rpc RunQuery.
     * This field is not used by QueryResult instances returned by rpc Next.
     * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getIndexOrBuilder( int index) { return index_.get(index); } public static final int VERSION_FIELD_NUMBER = 11; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList version_; /** *
     * The versions of the resulting entities.
     * 
* * repeated int64 version = 11; * @return A list containing the version. */ @java.lang.Override public java.util.List getVersionList() { return version_; } /** *
     * The versions of the resulting entities.
     * 
* * repeated int64 version = 11; * @return The count of version. */ public int getVersionCount() { return version_.size(); } /** *
     * The versions of the resulting entities.
     * 
* * repeated int64 version = 11; * @param index The index of the element to return. * @return The version at the given index. */ public long getVersion(int index) { return version_.getLong(index); } public static final int RESULT_COMPILED_CURSOR_FIELD_NUMBER = 12; @SuppressWarnings("serial") private java.util.List resultCompiledCursor_; /** *
     * Cursors pointing just after the result at the same index.
     * TODO: Change the type of this field to bytes?
     * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ @java.lang.Override public java.util.List getResultCompiledCursorList() { return resultCompiledCursor_; } /** *
     * Cursors pointing just after the result at the same index.
     * TODO: Change the type of this field to bytes?
     * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ @java.lang.Override public java.util.List getResultCompiledCursorOrBuilderList() { return resultCompiledCursor_; } /** *
     * Cursors pointing just after the result at the same index.
     * TODO: Change the type of this field to bytes?
     * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ @java.lang.Override public int getResultCompiledCursorCount() { return resultCompiledCursor_.size(); } /** *
     * Cursors pointing just after the result at the same index.
     * TODO: Change the type of this field to bytes?
     * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getResultCompiledCursor(int index) { return resultCompiledCursor_.get(index); } /** *
     * Cursors pointing just after the result at the same index.
     * TODO: Change the type of this field to bytes?
     * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getResultCompiledCursorOrBuilder( int index) { return resultCompiledCursor_.get(index); } public static final int SKIPPED_RESULTS_COMPILED_CURSOR_FIELD_NUMBER = 13; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor skippedResultsCompiledCursor_; /** *
     * The cursor just after the last result skipped due to an offset.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor skipped_results_compiled_cursor = 13; * @return Whether the skippedResultsCompiledCursor field is set. */ @java.lang.Override public boolean hasSkippedResultsCompiledCursor() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * The cursor just after the last result skipped due to an offset.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor skipped_results_compiled_cursor = 13; * @return The skippedResultsCompiledCursor. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getSkippedResultsCompiledCursor() { return skippedResultsCompiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : skippedResultsCompiledCursor_; } /** *
     * The cursor just after the last result skipped due to an offset.
     * TODO: Change the type of this field to bytes?
     * 
* * optional .apphosting_datastore_v3.CompiledCursor skipped_results_compiled_cursor = 13; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getSkippedResultsCompiledCursorOrBuilder() { return skippedResultsCompiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : skippedResultsCompiledCursor_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasMoreResults()) { memoizedIsInitialized = 0; return false; } if (hasCursor()) { if (!getCursor().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getResultCount(); i++) { if (!getResult(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasCompiledQuery()) { if (!getCompiledQuery().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasCompiledCursor()) { if (!getCompiledCursor().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getIndexCount(); i++) { if (!getIndex(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getResultCompiledCursorCount(); i++) { if (!getResultCompiledCursor(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasSkippedResultsCompiledCursor()) { if (!getSkippedResultsCompiledCursor().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCursor()); } for (int i = 0; i < result_.size(); i++) { output.writeMessage(2, result_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, moreResults_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, keysOnly_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(5, getCompiledQuery()); } if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(6, getCompiledCursor()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(7, skippedResults_); } for (int i = 0; i < index_.size(); i++) { output.writeMessage(8, index_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(9, indexOnly_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(10, smallOps_); } for (int i = 0; i < version_.size(); i++) { output.writeInt64(11, version_.getLong(i)); } for (int i = 0; i < resultCompiledCursor_.size(); i++) { output.writeMessage(12, resultCompiledCursor_.get(i)); } if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(13, getSkippedResultsCompiledCursor()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCursor()); } for (int i = 0; i < result_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, result_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, moreResults_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, keysOnly_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getCompiledQuery()); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getCompiledCursor()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, skippedResults_); } for (int i = 0; i < index_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, index_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, indexOnly_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, smallOps_); } { int dataSize = 0; for (int i = 0; i < version_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(version_.getLong(i)); } size += dataSize; size += 1 * getVersionList().size(); } for (int i = 0; i < resultCompiledCursor_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, resultCompiledCursor_.get(i)); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getSkippedResultsCompiledCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult) obj; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { if (!getCursor() .equals(other.getCursor())) return false; } if (!getResultList() .equals(other.getResultList())) return false; if (hasSkippedResults() != other.hasSkippedResults()) return false; if (hasSkippedResults()) { if (getSkippedResults() != other.getSkippedResults()) return false; } if (hasMoreResults() != other.hasMoreResults()) return false; if (hasMoreResults()) { if (getMoreResults() != other.getMoreResults()) return false; } if (hasKeysOnly() != other.hasKeysOnly()) return false; if (hasKeysOnly()) { if (getKeysOnly() != other.getKeysOnly()) return false; } if (hasIndexOnly() != other.hasIndexOnly()) return false; if (hasIndexOnly()) { if (getIndexOnly() != other.getIndexOnly()) return false; } if (hasSmallOps() != other.hasSmallOps()) return false; if (hasSmallOps()) { if (getSmallOps() != other.getSmallOps()) return false; } if (hasCompiledQuery() != other.hasCompiledQuery()) return false; if (hasCompiledQuery()) { if (!getCompiledQuery() .equals(other.getCompiledQuery())) return false; } if (hasCompiledCursor() != other.hasCompiledCursor()) return false; if (hasCompiledCursor()) { if (!getCompiledCursor() .equals(other.getCompiledCursor())) return false; } if (!getIndexList() .equals(other.getIndexList())) return false; if (!getVersionList() .equals(other.getVersionList())) return false; if (!getResultCompiledCursorList() .equals(other.getResultCompiledCursorList())) return false; if (hasSkippedResultsCompiledCursor() != other.hasSkippedResultsCompiledCursor()) return false; if (hasSkippedResultsCompiledCursor()) { if (!getSkippedResultsCompiledCursor() .equals(other.getSkippedResultsCompiledCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCursor()) { hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); } if (getResultCount() > 0) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResultList().hashCode(); } if (hasSkippedResults()) { hash = (37 * hash) + SKIPPED_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getSkippedResults(); } if (hasMoreResults()) { hash = (37 * hash) + MORE_RESULTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMoreResults()); } if (hasKeysOnly()) { hash = (37 * hash) + KEYS_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getKeysOnly()); } if (hasIndexOnly()) { hash = (37 * hash) + INDEX_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIndexOnly()); } if (hasSmallOps()) { hash = (37 * hash) + SMALL_OPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSmallOps()); } if (hasCompiledQuery()) { hash = (37 * hash) + COMPILED_QUERY_FIELD_NUMBER; hash = (53 * hash) + getCompiledQuery().hashCode(); } if (hasCompiledCursor()) { hash = (37 * hash) + COMPILED_CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCompiledCursor().hashCode(); } if (getIndexCount() > 0) { hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndexList().hashCode(); } if (getVersionCount() > 0) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersionList().hashCode(); } if (getResultCompiledCursorCount() > 0) { hash = (37 * hash) + RESULT_COMPILED_CURSOR_FIELD_NUMBER; hash = (53 * hash) + getResultCompiledCursorList().hashCode(); } if (hasSkippedResultsCompiledCursor()) { hash = (37 * hash) + SKIPPED_RESULTS_COMPILED_CURSOR_FIELD_NUMBER; hash = (53 * hash) + getSkippedResultsCompiledCursor().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult 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.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult 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.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult 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.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.QueryResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.QueryResult) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_QueryResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_QueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCursorFieldBuilder(); getResultFieldBuilder(); getCompiledQueryFieldBuilder(); getCompiledCursorFieldBuilder(); getIndexFieldBuilder(); getResultCompiledCursorFieldBuilder(); getSkippedResultsCompiledCursorFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; cursor_ = null; if (cursorBuilder_ != null) { cursorBuilder_.dispose(); cursorBuilder_ = null; } if (resultBuilder_ == null) { result_ = java.util.Collections.emptyList(); } else { result_ = null; resultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); skippedResults_ = 0; moreResults_ = false; keysOnly_ = false; indexOnly_ = false; smallOps_ = false; compiledQuery_ = null; if (compiledQueryBuilder_ != null) { compiledQueryBuilder_.dispose(); compiledQueryBuilder_ = null; } compiledCursor_ = null; if (compiledCursorBuilder_ != null) { compiledCursorBuilder_.dispose(); compiledCursorBuilder_ = null; } if (indexBuilder_ == null) { index_ = java.util.Collections.emptyList(); } else { index_ = null; indexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); version_ = emptyLongList(); if (resultCompiledCursorBuilder_ == null) { resultCompiledCursor_ = java.util.Collections.emptyList(); } else { resultCompiledCursor_ = null; resultCompiledCursorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); skippedResultsCompiledCursor_ = null; if (skippedResultsCompiledCursorBuilder_ != null) { skippedResultsCompiledCursorBuilder_.dispose(); skippedResultsCompiledCursorBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_QueryResult_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult result) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { result_ = java.util.Collections.unmodifiableList(result_); bitField0_ = (bitField0_ & ~0x00000002); } result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } if (indexBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0)) { index_ = java.util.Collections.unmodifiableList(index_); bitField0_ = (bitField0_ & ~0x00000200); } result.index_ = index_; } else { result.index_ = indexBuilder_.build(); } if (((bitField0_ & 0x00000400) != 0)) { version_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000400); } result.version_ = version_; if (resultCompiledCursorBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0)) { resultCompiledCursor_ = java.util.Collections.unmodifiableList(resultCompiledCursor_); bitField0_ = (bitField0_ & ~0x00000800); } result.resultCompiledCursor_ = resultCompiledCursor_; } else { result.resultCompiledCursor_ = resultCompiledCursorBuilder_.build(); } } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.skippedResults_ = skippedResults_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.moreResults_ = moreResults_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.keysOnly_ = keysOnly_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.indexOnly_ = indexOnly_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.smallOps_ = smallOps_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { result.compiledQuery_ = compiledQueryBuilder_ == null ? compiledQuery_ : compiledQueryBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000100) != 0)) { result.compiledCursor_ = compiledCursorBuilder_ == null ? compiledCursor_ : compiledCursorBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00001000) != 0)) { result.skippedResultsCompiledCursor_ = skippedResultsCompiledCursorBuilder_ == null ? skippedResultsCompiledCursor_ : skippedResultsCompiledCursorBuilder_.build(); to_bitField0_ |= 0x00000100; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.getDefaultInstance()) return this; if (other.hasCursor()) { mergeCursor(other.getCursor()); } if (resultBuilder_ == null) { if (!other.result_.isEmpty()) { if (result_.isEmpty()) { result_ = other.result_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultIsMutable(); result_.addAll(other.result_); } onChanged(); } } else { if (!other.result_.isEmpty()) { if (resultBuilder_.isEmpty()) { resultBuilder_.dispose(); resultBuilder_ = null; result_ = other.result_; bitField0_ = (bitField0_ & ~0x00000002); resultBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultFieldBuilder() : null; } else { resultBuilder_.addAllMessages(other.result_); } } } if (other.hasSkippedResults()) { setSkippedResults(other.getSkippedResults()); } if (other.hasMoreResults()) { setMoreResults(other.getMoreResults()); } if (other.hasKeysOnly()) { setKeysOnly(other.getKeysOnly()); } if (other.hasIndexOnly()) { setIndexOnly(other.getIndexOnly()); } if (other.hasSmallOps()) { setSmallOps(other.getSmallOps()); } if (other.hasCompiledQuery()) { mergeCompiledQuery(other.getCompiledQuery()); } if (other.hasCompiledCursor()) { mergeCompiledCursor(other.getCompiledCursor()); } if (indexBuilder_ == null) { if (!other.index_.isEmpty()) { if (index_.isEmpty()) { index_ = other.index_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureIndexIsMutable(); index_.addAll(other.index_); } onChanged(); } } else { if (!other.index_.isEmpty()) { if (indexBuilder_.isEmpty()) { indexBuilder_.dispose(); indexBuilder_ = null; index_ = other.index_; bitField0_ = (bitField0_ & ~0x00000200); indexBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIndexFieldBuilder() : null; } else { indexBuilder_.addAllMessages(other.index_); } } } if (!other.version_.isEmpty()) { if (version_.isEmpty()) { version_ = other.version_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureVersionIsMutable(); version_.addAll(other.version_); } onChanged(); } if (resultCompiledCursorBuilder_ == null) { if (!other.resultCompiledCursor_.isEmpty()) { if (resultCompiledCursor_.isEmpty()) { resultCompiledCursor_ = other.resultCompiledCursor_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureResultCompiledCursorIsMutable(); resultCompiledCursor_.addAll(other.resultCompiledCursor_); } onChanged(); } } else { if (!other.resultCompiledCursor_.isEmpty()) { if (resultCompiledCursorBuilder_.isEmpty()) { resultCompiledCursorBuilder_.dispose(); resultCompiledCursorBuilder_ = null; resultCompiledCursor_ = other.resultCompiledCursor_; bitField0_ = (bitField0_ & ~0x00000800); resultCompiledCursorBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultCompiledCursorFieldBuilder() : null; } else { resultCompiledCursorBuilder_.addAllMessages(other.resultCompiledCursor_); } } } if (other.hasSkippedResultsCompiledCursor()) { mergeSkippedResultsCompiledCursor(other.getSkippedResultsCompiledCursor()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasMoreResults()) { return false; } if (hasCursor()) { if (!getCursor().isInitialized()) { return false; } } for (int i = 0; i < getResultCount(); i++) { if (!getResult(i).isInitialized()) { return false; } } if (hasCompiledQuery()) { if (!getCompiledQuery().isInitialized()) { return false; } } if (hasCompiledCursor()) { if (!getCompiledCursor().isInitialized()) { return false; } } for (int i = 0; i < getIndexCount(); i++) { if (!getIndex(i).isInitialized()) { return false; } } for (int i = 0; i < getResultCompiledCursorCount(); i++) { if (!getResultCompiledCursor(i).isInitialized()) { return false; } } if (hasSkippedResultsCompiledCursor()) { if (!getSkippedResultsCompiledCursor().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getCursorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.PARSER, extensionRegistry); if (resultBuilder_ == null) { ensureResultIsMutable(); result_.add(m); } else { resultBuilder_.addMessage(m); } break; } // case 18 case 24: { moreResults_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 24 case 32: { keysOnly_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 32 case 42: { input.readMessage( getCompiledQueryFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 42 case 50: { input.readMessage( getCompiledCursorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 50 case 56: { skippedResults_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 56 case 66: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.PARSER, extensionRegistry); if (indexBuilder_ == null) { ensureIndexIsMutable(); index_.add(m); } else { indexBuilder_.addMessage(m); } break; } // case 66 case 72: { indexOnly_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 72 case 80: { smallOps_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 80 case 88: { long v = input.readInt64(); ensureVersionIsMutable(); version_.addLong(v); break; } // case 88 case 90: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureVersionIsMutable(); while (input.getBytesUntilLimit() > 0) { version_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 90 case 98: { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor m = input.readMessage( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.PARSER, extensionRegistry); if (resultCompiledCursorBuilder_ == null) { ensureResultCompiledCursorIsMutable(); resultCompiledCursor_.add(m); } else { resultCompiledCursorBuilder_.addMessage(m); } break; } // case 98 case 106: { input.readMessage( getSkippedResultsCompiledCursorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CursorOrBuilder> cursorBuilder_; /** *
       * A cursor that can be used in a call to Next()
       * 
* * optional .apphosting_datastore_v3.Cursor cursor = 1; * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * A cursor that can be used in a call to Next()
       * 
* * optional .apphosting_datastore_v3.Cursor cursor = 1; * @return The cursor. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor getCursor() { if (cursorBuilder_ == null) { return cursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** *
       * A cursor that can be used in a call to Next()
       * 
* * optional .apphosting_datastore_v3.Cursor cursor = 1; */ public Builder setCursor(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor value) { if (cursorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cursor_ = value; } else { cursorBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * A cursor that can be used in a call to Next()
       * 
* * optional .apphosting_datastore_v3.Cursor cursor = 1; */ public Builder setCursor( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { cursorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * A cursor that can be used in a call to Next()
       * 
* * optional .apphosting_datastore_v3.Cursor cursor = 1; */ public Builder mergeCursor(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor value) { if (cursorBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && cursor_ != null && cursor_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; } } else { cursorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * A cursor that can be used in a call to Next()
       * 
* * optional .apphosting_datastore_v3.Cursor cursor = 1; */ public Builder clearCursor() { bitField0_ = (bitField0_ & ~0x00000001); cursor_ = null; if (cursorBuilder_ != null) { cursorBuilder_.dispose(); cursorBuilder_ = null; } onChanged(); return this; } /** *
       * A cursor that can be used in a call to Next()
       * 
* * optional .apphosting_datastore_v3.Cursor cursor = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.Builder getCursorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCursorFieldBuilder().getBuilder(); } /** *
       * A cursor that can be used in a call to Next()
       * 
* * optional .apphosting_datastore_v3.Cursor cursor = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { return cursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.getDefaultInstance() : cursor_; } } /** *
       * A cursor that can be used in a call to Next()
       * 
* * optional .apphosting_datastore_v3.Cursor cursor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CursorOrBuilder>( getCursor(), getParentForChildren(), isClean()); cursor_ = null; } return cursorBuilder_; } private java.util.List result_ = java.util.Collections.emptyList(); private void ensureResultIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { result_ = new java.util.ArrayList(result_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder> resultBuilder_; /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public java.util.List getResultList() { if (resultBuilder_ == null) { return java.util.Collections.unmodifiableList(result_); } else { return resultBuilder_.getMessageList(); } } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public int getResultCount() { if (resultBuilder_ == null) { return result_.size(); } else { return resultBuilder_.getCount(); } } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto getResult(int index) { if (resultBuilder_ == null) { return result_.get(index); } else { return resultBuilder_.getMessage(index); } } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public Builder setResult( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultIsMutable(); result_.set(index, value); onChanged(); } else { resultBuilder_.setMessage(index, value); } return this; } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public Builder setResult( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder builderForValue) { if (resultBuilder_ == null) { ensureResultIsMutable(); result_.set(index, builderForValue.build()); onChanged(); } else { resultBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public Builder addResult(com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultIsMutable(); result_.add(value); onChanged(); } else { resultBuilder_.addMessage(value); } return this; } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public Builder addResult( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultIsMutable(); result_.add(index, value); onChanged(); } else { resultBuilder_.addMessage(index, value); } return this; } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public Builder addResult( com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder builderForValue) { if (resultBuilder_ == null) { ensureResultIsMutable(); result_.add(builderForValue.build()); onChanged(); } else { resultBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public Builder addResult( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder builderForValue) { if (resultBuilder_ == null) { ensureResultIsMutable(); result_.add(index, builderForValue.build()); onChanged(); } else { resultBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public Builder addAllResult( java.lang.Iterable values) { if (resultBuilder_ == null) { ensureResultIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, result_); onChanged(); } else { resultBuilder_.addAllMessages(values); } return this; } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultBuilder_.clear(); } return this; } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public Builder removeResult(int index) { if (resultBuilder_ == null) { ensureResultIsMutable(); result_.remove(index); onChanged(); } else { resultBuilder_.remove(index); } return this; } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder getResultBuilder( int index) { return getResultFieldBuilder().getBuilder(index); } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder getResultOrBuilder( int index) { if (resultBuilder_ == null) { return result_.get(index); } else { return resultBuilder_.getMessageOrBuilder(index); } } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public java.util.List getResultOrBuilderList() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(result_); } } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder addResultBuilder() { return getResultFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance()); } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder addResultBuilder( int index) { return getResultFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance()); } /** *
       * The resulting entities or keys.
       * 
* * repeated .storage_onestore_v3.EntityProto result = 2; */ public java.util.List getResultBuilderList() { return getResultFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder>( result_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } private int skippedResults_ ; /** *
       * The number of results skipped over
       * 
* * optional int32 skipped_results = 7; * @return Whether the skippedResults field is set. */ @java.lang.Override public boolean hasSkippedResults() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * The number of results skipped over
       * 
* * optional int32 skipped_results = 7; * @return The skippedResults. */ @java.lang.Override public int getSkippedResults() { return skippedResults_; } /** *
       * The number of results skipped over
       * 
* * optional int32 skipped_results = 7; * @param value The skippedResults to set. * @return This builder for chaining. */ public Builder setSkippedResults(int value) { skippedResults_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The number of results skipped over
       * 
* * optional int32 skipped_results = 7; * @return This builder for chaining. */ public Builder clearSkippedResults() { bitField0_ = (bitField0_ & ~0x00000004); skippedResults_ = 0; onChanged(); return this; } private boolean moreResults_ ; /** *
       * True if a call to Next() will return more results.
       * 
* * required bool more_results = 3; * @return Whether the moreResults field is set. */ @java.lang.Override public boolean hasMoreResults() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * True if a call to Next() will return more results.
       * 
* * required bool more_results = 3; * @return The moreResults. */ @java.lang.Override public boolean getMoreResults() { return moreResults_; } /** *
       * True if a call to Next() will return more results.
       * 
* * required bool more_results = 3; * @param value The moreResults to set. * @return This builder for chaining. */ public Builder setMoreResults(boolean value) { moreResults_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * True if a call to Next() will return more results.
       * 
* * required bool more_results = 3; * @return This builder for chaining. */ public Builder clearMoreResults() { bitField0_ = (bitField0_ & ~0x00000008); moreResults_ = false; onChanged(); return this; } private boolean keysOnly_ ; /** *
       * If true, only the keys in the result EntityProtos will be set. this
       * happens in response to a Query with keys_only set to true.
       * 
* * optional bool keys_only = 4; * @return Whether the keysOnly field is set. */ @java.lang.Override public boolean hasKeysOnly() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * If true, only the keys in the result EntityProtos will be set. this
       * happens in response to a Query with keys_only set to true.
       * 
* * optional bool keys_only = 4; * @return The keysOnly. */ @java.lang.Override public boolean getKeysOnly() { return keysOnly_; } /** *
       * If true, only the keys in the result EntityProtos will be set. this
       * happens in response to a Query with keys_only set to true.
       * 
* * optional bool keys_only = 4; * @param value The keysOnly to set. * @return This builder for chaining. */ public Builder setKeysOnly(boolean value) { keysOnly_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * If true, only the keys in the result EntityProtos will be set. this
       * happens in response to a Query with keys_only set to true.
       * 
* * optional bool keys_only = 4; * @return This builder for chaining. */ public Builder clearKeysOnly() { bitField0_ = (bitField0_ & ~0x00000010); keysOnly_ = false; onChanged(); return this; } private boolean indexOnly_ ; /** *
       * If true, only index values in the result EntityProtos will be set. This
       * happens in response to a Query with at least one property_name set.
       * 
* * optional bool index_only = 9; * @return Whether the indexOnly field is set. */ @java.lang.Override public boolean hasIndexOnly() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * If true, only index values in the result EntityProtos will be set. This
       * happens in response to a Query with at least one property_name set.
       * 
* * optional bool index_only = 9; * @return The indexOnly. */ @java.lang.Override public boolean getIndexOnly() { return indexOnly_; } /** *
       * If true, only index values in the result EntityProtos will be set. This
       * happens in response to a Query with at least one property_name set.
       * 
* * optional bool index_only = 9; * @param value The indexOnly to set. * @return This builder for chaining. */ public Builder setIndexOnly(boolean value) { indexOnly_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * If true, only index values in the result EntityProtos will be set. This
       * happens in response to a Query with at least one property_name set.
       * 
* * optional bool index_only = 9; * @return This builder for chaining. */ public Builder clearIndexOnly() { bitField0_ = (bitField0_ & ~0x00000020); indexOnly_ = false; onChanged(); return this; } private boolean smallOps_ ; /** *
       * If the caller should be charged a small op for each result returned.
       * We charge a small op for simple index scans. Anything that has to seek
       * for each result costs a read op.
       * 
* * optional bool small_ops = 10; * @return Whether the smallOps field is set. */ @java.lang.Override public boolean hasSmallOps() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * If the caller should be charged a small op for each result returned.
       * We charge a small op for simple index scans. Anything that has to seek
       * for each result costs a read op.
       * 
* * optional bool small_ops = 10; * @return The smallOps. */ @java.lang.Override public boolean getSmallOps() { return smallOps_; } /** *
       * If the caller should be charged a small op for each result returned.
       * We charge a small op for simple index scans. Anything that has to seek
       * for each result costs a read op.
       * 
* * optional bool small_ops = 10; * @param value The smallOps to set. * @return This builder for chaining. */ public Builder setSmallOps(boolean value) { smallOps_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * If the caller should be charged a small op for each result returned.
       * We charge a small op for simple index scans. Anything that has to seek
       * for each result costs a read op.
       * 
* * optional bool small_ops = 10; * @return This builder for chaining. */ public Builder clearSmallOps() { bitField0_ = (bitField0_ & ~0x00000040); smallOps_ = false; onChanged(); return this; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery compiledQuery_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQueryOrBuilder> compiledQueryBuilder_; /** *
       * This will only be populated if the request has compile=true and the Query
       * supports being compiled. Only populated by RunQuery() (not populated by
       * Next()).
       * 
* * optional .apphosting_datastore_v3.CompiledQuery compiled_query = 5; * @return Whether the compiledQuery field is set. */ public boolean hasCompiledQuery() { return ((bitField0_ & 0x00000080) != 0); } /** *
       * This will only be populated if the request has compile=true and the Query
       * supports being compiled. Only populated by RunQuery() (not populated by
       * Next()).
       * 
* * optional .apphosting_datastore_v3.CompiledQuery compiled_query = 5; * @return The compiledQuery. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery getCompiledQuery() { if (compiledQueryBuilder_ == null) { return compiledQuery_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.getDefaultInstance() : compiledQuery_; } else { return compiledQueryBuilder_.getMessage(); } } /** *
       * This will only be populated if the request has compile=true and the Query
       * supports being compiled. Only populated by RunQuery() (not populated by
       * Next()).
       * 
* * optional .apphosting_datastore_v3.CompiledQuery compiled_query = 5; */ public Builder setCompiledQuery(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery value) { if (compiledQueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } compiledQuery_ = value; } else { compiledQueryBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * This will only be populated if the request has compile=true and the Query
       * supports being compiled. Only populated by RunQuery() (not populated by
       * Next()).
       * 
* * optional .apphosting_datastore_v3.CompiledQuery compiled_query = 5; */ public Builder setCompiledQuery( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.Builder builderForValue) { if (compiledQueryBuilder_ == null) { compiledQuery_ = builderForValue.build(); } else { compiledQueryBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * This will only be populated if the request has compile=true and the Query
       * supports being compiled. Only populated by RunQuery() (not populated by
       * Next()).
       * 
* * optional .apphosting_datastore_v3.CompiledQuery compiled_query = 5; */ public Builder mergeCompiledQuery(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery value) { if (compiledQueryBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && compiledQuery_ != null && compiledQuery_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.getDefaultInstance()) { getCompiledQueryBuilder().mergeFrom(value); } else { compiledQuery_ = value; } } else { compiledQueryBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * This will only be populated if the request has compile=true and the Query
       * supports being compiled. Only populated by RunQuery() (not populated by
       * Next()).
       * 
* * optional .apphosting_datastore_v3.CompiledQuery compiled_query = 5; */ public Builder clearCompiledQuery() { bitField0_ = (bitField0_ & ~0x00000080); compiledQuery_ = null; if (compiledQueryBuilder_ != null) { compiledQueryBuilder_.dispose(); compiledQueryBuilder_ = null; } onChanged(); return this; } /** *
       * This will only be populated if the request has compile=true and the Query
       * supports being compiled. Only populated by RunQuery() (not populated by
       * Next()).
       * 
* * optional .apphosting_datastore_v3.CompiledQuery compiled_query = 5; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.Builder getCompiledQueryBuilder() { bitField0_ |= 0x00000080; onChanged(); return getCompiledQueryFieldBuilder().getBuilder(); } /** *
       * This will only be populated if the request has compile=true and the Query
       * supports being compiled. Only populated by RunQuery() (not populated by
       * Next()).
       * 
* * optional .apphosting_datastore_v3.CompiledQuery compiled_query = 5; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQueryOrBuilder getCompiledQueryOrBuilder() { if (compiledQueryBuilder_ != null) { return compiledQueryBuilder_.getMessageOrBuilder(); } else { return compiledQuery_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.getDefaultInstance() : compiledQuery_; } } /** *
       * This will only be populated if the request has compile=true and the Query
       * supports being compiled. Only populated by RunQuery() (not populated by
       * Next()).
       * 
* * optional .apphosting_datastore_v3.CompiledQuery compiled_query = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQueryOrBuilder> getCompiledQueryFieldBuilder() { if (compiledQueryBuilder_ == null) { compiledQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQuery.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledQueryOrBuilder>( getCompiledQuery(), getParentForChildren(), isClean()); compiledQuery_ = null; } return compiledQueryBuilder_; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor compiledCursor_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder> compiledCursorBuilder_; /** *
       * This will only be populated if the request has compile=true and
       * the Query supports being compiled.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 6; * @return Whether the compiledCursor field is set. */ public boolean hasCompiledCursor() { return ((bitField0_ & 0x00000100) != 0); } /** *
       * This will only be populated if the request has compile=true and
       * the Query supports being compiled.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 6; * @return The compiledCursor. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getCompiledCursor() { if (compiledCursorBuilder_ == null) { return compiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : compiledCursor_; } else { return compiledCursorBuilder_.getMessage(); } } /** *
       * This will only be populated if the request has compile=true and
       * the Query supports being compiled.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 6; */ public Builder setCompiledCursor(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor value) { if (compiledCursorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } compiledCursor_ = value; } else { compiledCursorBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * This will only be populated if the request has compile=true and
       * the Query supports being compiled.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 6; */ public Builder setCompiledCursor( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder builderForValue) { if (compiledCursorBuilder_ == null) { compiledCursor_ = builderForValue.build(); } else { compiledCursorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * This will only be populated if the request has compile=true and
       * the Query supports being compiled.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 6; */ public Builder mergeCompiledCursor(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor value) { if (compiledCursorBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && compiledCursor_ != null && compiledCursor_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance()) { getCompiledCursorBuilder().mergeFrom(value); } else { compiledCursor_ = value; } } else { compiledCursorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * This will only be populated if the request has compile=true and
       * the Query supports being compiled.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 6; */ public Builder clearCompiledCursor() { bitField0_ = (bitField0_ & ~0x00000100); compiledCursor_ = null; if (compiledCursorBuilder_ != null) { compiledCursorBuilder_.dispose(); compiledCursorBuilder_ = null; } onChanged(); return this; } /** *
       * This will only be populated if the request has compile=true and
       * the Query supports being compiled.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 6; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder getCompiledCursorBuilder() { bitField0_ |= 0x00000100; onChanged(); return getCompiledCursorFieldBuilder().getBuilder(); } /** *
       * This will only be populated if the request has compile=true and
       * the Query supports being compiled.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 6; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getCompiledCursorOrBuilder() { if (compiledCursorBuilder_ != null) { return compiledCursorBuilder_.getMessageOrBuilder(); } else { return compiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : compiledCursor_; } } /** *
       * This will only be populated if the request has compile=true and
       * the Query supports being compiled.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor compiled_cursor = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder> getCompiledCursorFieldBuilder() { if (compiledCursorBuilder_ == null) { compiledCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder>( getCompiledCursor(), getParentForChildren(), isClean()); compiledCursor_ = null; } return compiledCursorBuilder_; } private java.util.List index_ = java.util.Collections.emptyList(); private void ensureIndexIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { index_ = new java.util.ArrayList(index_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder> indexBuilder_; /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public java.util.List getIndexList() { if (indexBuilder_ == null) { return java.util.Collections.unmodifiableList(index_); } else { return indexBuilder_.getMessageList(); } } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public int getIndexCount() { if (indexBuilder_ == null) { return index_.size(); } else { return indexBuilder_.getCount(); } } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getIndex(int index) { if (indexBuilder_ == null) { return index_.get(index); } else { return indexBuilder_.getMessage(index); } } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public Builder setIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (indexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexIsMutable(); index_.set(index, value); onChanged(); } else { indexBuilder_.setMessage(index, value); } return this; } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public Builder setIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (indexBuilder_ == null) { ensureIndexIsMutable(); index_.set(index, builderForValue.build()); onChanged(); } else { indexBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public Builder addIndex(com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (indexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexIsMutable(); index_.add(value); onChanged(); } else { indexBuilder_.addMessage(value); } return this; } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public Builder addIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (indexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexIsMutable(); index_.add(index, value); onChanged(); } else { indexBuilder_.addMessage(index, value); } return this; } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public Builder addIndex( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (indexBuilder_ == null) { ensureIndexIsMutable(); index_.add(builderForValue.build()); onChanged(); } else { indexBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public Builder addIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (indexBuilder_ == null) { ensureIndexIsMutable(); index_.add(index, builderForValue.build()); onChanged(); } else { indexBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public Builder addAllIndex( java.lang.Iterable values) { if (indexBuilder_ == null) { ensureIndexIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, index_); onChanged(); } else { indexBuilder_.addAllMessages(values); } return this; } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public Builder clearIndex() { if (indexBuilder_ == null) { index_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { indexBuilder_.clear(); } return this; } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public Builder removeIndex(int index) { if (indexBuilder_ == null) { ensureIndexIsMutable(); index_.remove(index); onChanged(); } else { indexBuilder_.remove(index); } return this; } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder getIndexBuilder( int index) { return getIndexFieldBuilder().getBuilder(index); } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getIndexOrBuilder( int index) { if (indexBuilder_ == null) { return index_.get(index); } else { return indexBuilder_.getMessageOrBuilder(index); } } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public java.util.List getIndexOrBuilderList() { if (indexBuilder_ != null) { return indexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(index_); } } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder addIndexBuilder() { return getIndexFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.getDefaultInstance()); } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder addIndexBuilder( int index) { return getIndexFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.getDefaultInstance()); } /** *
       * The indexes used to perform the query.
       * Includes composite indexes, single property indexes, the primary index,
       * and kind indexes.
       * Every index has app_id = <appId> and state = READ_WRITE.
       * Any non-composite index has id = 0.
       * A composite index has definition.ancestor set appropriately.
       * Single property and kind indexes have definition.ancestor = false.
       * The primary index has definition.ancestor = true.
       * A simple index has definition.entity_type = <kind> and exactly 1 property.
       * The primary index has definition.entity_type = "" and no properties.
       * The kind index has definition.entity_type = <kind> and no properties.
       * This field is used by QueryResult instances returned by rpc RunQuery.
       * This field is not used by QueryResult instances returned by rpc Next.
       * 
* * repeated .storage_onestore_v3.CompositeIndex index = 8; */ public java.util.List getIndexBuilderList() { return getIndexFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder> getIndexFieldBuilder() { if (indexBuilder_ == null) { indexBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder>( index_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); index_ = null; } return indexBuilder_; } private com.google.protobuf.Internal.LongList version_ = emptyLongList(); private void ensureVersionIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { version_ = mutableCopy(version_); bitField0_ |= 0x00000400; } } /** *
       * The versions of the resulting entities.
       * 
* * repeated int64 version = 11; * @return A list containing the version. */ public java.util.List getVersionList() { return ((bitField0_ & 0x00000400) != 0) ? java.util.Collections.unmodifiableList(version_) : version_; } /** *
       * The versions of the resulting entities.
       * 
* * repeated int64 version = 11; * @return The count of version. */ public int getVersionCount() { return version_.size(); } /** *
       * The versions of the resulting entities.
       * 
* * repeated int64 version = 11; * @param index The index of the element to return. * @return The version at the given index. */ public long getVersion(int index) { return version_.getLong(index); } /** *
       * The versions of the resulting entities.
       * 
* * repeated int64 version = 11; * @param index The index to set the value at. * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( int index, long value) { ensureVersionIsMutable(); version_.setLong(index, value); onChanged(); return this; } /** *
       * The versions of the resulting entities.
       * 
* * repeated int64 version = 11; * @param value The version to add. * @return This builder for chaining. */ public Builder addVersion(long value) { ensureVersionIsMutable(); version_.addLong(value); onChanged(); return this; } /** *
       * The versions of the resulting entities.
       * 
* * repeated int64 version = 11; * @param values The version to add. * @return This builder for chaining. */ public Builder addAllVersion( java.lang.Iterable values) { ensureVersionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, version_); onChanged(); return this; } /** *
       * The versions of the resulting entities.
       * 
* * repeated int64 version = 11; * @return This builder for chaining. */ public Builder clearVersion() { version_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } private java.util.List resultCompiledCursor_ = java.util.Collections.emptyList(); private void ensureResultCompiledCursorIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { resultCompiledCursor_ = new java.util.ArrayList(resultCompiledCursor_); bitField0_ |= 0x00000800; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder> resultCompiledCursorBuilder_; /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public java.util.List getResultCompiledCursorList() { if (resultCompiledCursorBuilder_ == null) { return java.util.Collections.unmodifiableList(resultCompiledCursor_); } else { return resultCompiledCursorBuilder_.getMessageList(); } } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public int getResultCompiledCursorCount() { if (resultCompiledCursorBuilder_ == null) { return resultCompiledCursor_.size(); } else { return resultCompiledCursorBuilder_.getCount(); } } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getResultCompiledCursor(int index) { if (resultCompiledCursorBuilder_ == null) { return resultCompiledCursor_.get(index); } else { return resultCompiledCursorBuilder_.getMessage(index); } } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public Builder setResultCompiledCursor( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor value) { if (resultCompiledCursorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultCompiledCursorIsMutable(); resultCompiledCursor_.set(index, value); onChanged(); } else { resultCompiledCursorBuilder_.setMessage(index, value); } return this; } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public Builder setResultCompiledCursor( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder builderForValue) { if (resultCompiledCursorBuilder_ == null) { ensureResultCompiledCursorIsMutable(); resultCompiledCursor_.set(index, builderForValue.build()); onChanged(); } else { resultCompiledCursorBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public Builder addResultCompiledCursor(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor value) { if (resultCompiledCursorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultCompiledCursorIsMutable(); resultCompiledCursor_.add(value); onChanged(); } else { resultCompiledCursorBuilder_.addMessage(value); } return this; } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public Builder addResultCompiledCursor( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor value) { if (resultCompiledCursorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultCompiledCursorIsMutable(); resultCompiledCursor_.add(index, value); onChanged(); } else { resultCompiledCursorBuilder_.addMessage(index, value); } return this; } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public Builder addResultCompiledCursor( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder builderForValue) { if (resultCompiledCursorBuilder_ == null) { ensureResultCompiledCursorIsMutable(); resultCompiledCursor_.add(builderForValue.build()); onChanged(); } else { resultCompiledCursorBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public Builder addResultCompiledCursor( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder builderForValue) { if (resultCompiledCursorBuilder_ == null) { ensureResultCompiledCursorIsMutable(); resultCompiledCursor_.add(index, builderForValue.build()); onChanged(); } else { resultCompiledCursorBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public Builder addAllResultCompiledCursor( java.lang.Iterable values) { if (resultCompiledCursorBuilder_ == null) { ensureResultCompiledCursorIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resultCompiledCursor_); onChanged(); } else { resultCompiledCursorBuilder_.addAllMessages(values); } return this; } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public Builder clearResultCompiledCursor() { if (resultCompiledCursorBuilder_ == null) { resultCompiledCursor_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { resultCompiledCursorBuilder_.clear(); } return this; } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public Builder removeResultCompiledCursor(int index) { if (resultCompiledCursorBuilder_ == null) { ensureResultCompiledCursorIsMutable(); resultCompiledCursor_.remove(index); onChanged(); } else { resultCompiledCursorBuilder_.remove(index); } return this; } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder getResultCompiledCursorBuilder( int index) { return getResultCompiledCursorFieldBuilder().getBuilder(index); } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getResultCompiledCursorOrBuilder( int index) { if (resultCompiledCursorBuilder_ == null) { return resultCompiledCursor_.get(index); } else { return resultCompiledCursorBuilder_.getMessageOrBuilder(index); } } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public java.util.List getResultCompiledCursorOrBuilderList() { if (resultCompiledCursorBuilder_ != null) { return resultCompiledCursorBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resultCompiledCursor_); } } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder addResultCompiledCursorBuilder() { return getResultCompiledCursorFieldBuilder().addBuilder( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance()); } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder addResultCompiledCursorBuilder( int index) { return getResultCompiledCursorFieldBuilder().addBuilder( index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance()); } /** *
       * Cursors pointing just after the result at the same index.
       * TODO: Change the type of this field to bytes?
       * 
* * repeated .apphosting_datastore_v3.CompiledCursor result_compiled_cursor = 12; */ public java.util.List getResultCompiledCursorBuilderList() { return getResultCompiledCursorFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder> getResultCompiledCursorFieldBuilder() { if (resultCompiledCursorBuilder_ == null) { resultCompiledCursorBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder>( resultCompiledCursor_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); resultCompiledCursor_ = null; } return resultCompiledCursorBuilder_; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor skippedResultsCompiledCursor_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder> skippedResultsCompiledCursorBuilder_; /** *
       * The cursor just after the last result skipped due to an offset.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor skipped_results_compiled_cursor = 13; * @return Whether the skippedResultsCompiledCursor field is set. */ public boolean hasSkippedResultsCompiledCursor() { return ((bitField0_ & 0x00001000) != 0); } /** *
       * The cursor just after the last result skipped due to an offset.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor skipped_results_compiled_cursor = 13; * @return The skippedResultsCompiledCursor. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor getSkippedResultsCompiledCursor() { if (skippedResultsCompiledCursorBuilder_ == null) { return skippedResultsCompiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : skippedResultsCompiledCursor_; } else { return skippedResultsCompiledCursorBuilder_.getMessage(); } } /** *
       * The cursor just after the last result skipped due to an offset.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor skipped_results_compiled_cursor = 13; */ public Builder setSkippedResultsCompiledCursor(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor value) { if (skippedResultsCompiledCursorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } skippedResultsCompiledCursor_ = value; } else { skippedResultsCompiledCursorBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
       * The cursor just after the last result skipped due to an offset.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor skipped_results_compiled_cursor = 13; */ public Builder setSkippedResultsCompiledCursor( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder builderForValue) { if (skippedResultsCompiledCursorBuilder_ == null) { skippedResultsCompiledCursor_ = builderForValue.build(); } else { skippedResultsCompiledCursorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
       * The cursor just after the last result skipped due to an offset.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor skipped_results_compiled_cursor = 13; */ public Builder mergeSkippedResultsCompiledCursor(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor value) { if (skippedResultsCompiledCursorBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && skippedResultsCompiledCursor_ != null && skippedResultsCompiledCursor_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance()) { getSkippedResultsCompiledCursorBuilder().mergeFrom(value); } else { skippedResultsCompiledCursor_ = value; } } else { skippedResultsCompiledCursorBuilder_.mergeFrom(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
       * The cursor just after the last result skipped due to an offset.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor skipped_results_compiled_cursor = 13; */ public Builder clearSkippedResultsCompiledCursor() { bitField0_ = (bitField0_ & ~0x00001000); skippedResultsCompiledCursor_ = null; if (skippedResultsCompiledCursorBuilder_ != null) { skippedResultsCompiledCursorBuilder_.dispose(); skippedResultsCompiledCursorBuilder_ = null; } onChanged(); return this; } /** *
       * The cursor just after the last result skipped due to an offset.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor skipped_results_compiled_cursor = 13; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder getSkippedResultsCompiledCursorBuilder() { bitField0_ |= 0x00001000; onChanged(); return getSkippedResultsCompiledCursorFieldBuilder().getBuilder(); } /** *
       * The cursor just after the last result skipped due to an offset.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor skipped_results_compiled_cursor = 13; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder getSkippedResultsCompiledCursorOrBuilder() { if (skippedResultsCompiledCursorBuilder_ != null) { return skippedResultsCompiledCursorBuilder_.getMessageOrBuilder(); } else { return skippedResultsCompiledCursor_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.getDefaultInstance() : skippedResultsCompiledCursor_; } } /** *
       * The cursor just after the last result skipped due to an offset.
       * TODO: Change the type of this field to bytes?
       * 
* * optional .apphosting_datastore_v3.CompiledCursor skipped_results_compiled_cursor = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder> getSkippedResultsCompiledCursorFieldBuilder() { if (skippedResultsCompiledCursorBuilder_ == null) { skippedResultsCompiledCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursor.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompiledCursorOrBuilder>( getSkippedResultsCompiledCursor(), getParentForChildren(), isClean()); skippedResultsCompiledCursor_ = null; } return skippedResultsCompiledCursorBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.QueryResult) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.QueryResult) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AllocateIdsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.AllocateIdsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID sequences are namespaced to (parent, kind) combinations, the easiest
     * representation of which is a Reference with the final part of the path
     * ignored. In most cases this will be the result of an entity.key() call
     * on an entity instance, but a Reference generated manually with a path
     * will suffice: the key need not reference an actual entity.
     * If this field is set, reserve must not be set.
     * 
* * optional .storage_onestore_v3.Reference model_key = 1; * @return Whether the modelKey field is set. */ boolean hasModelKey(); /** *
     * ID sequences are namespaced to (parent, kind) combinations, the easiest
     * representation of which is a Reference with the final part of the path
     * ignored. In most cases this will be the result of an entity.key() call
     * on an entity instance, but a Reference generated manually with a path
     * will suffice: the key need not reference an actual entity.
     * If this field is set, reserve must not be set.
     * 
* * optional .storage_onestore_v3.Reference model_key = 1; * @return The modelKey. */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getModelKey(); /** *
     * ID sequences are namespaced to (parent, kind) combinations, the easiest
     * representation of which is a Reference with the final part of the path
     * ignored. In most cases this will be the result of an entity.key() call
     * on an entity instance, but a Reference generated manually with a path
     * will suffice: the key need not reference an actual entity.
     * If this field is set, reserve must not be set.
     * 
* * optional .storage_onestore_v3.Reference model_key = 1; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getModelKeyOrBuilder(); /** *
     * The number of IDs we want to allocate. Cannot be set if min is also set.
     * 
* * optional int64 size = 2; * @return Whether the size field is set. */ boolean hasSize(); /** *
     * The number of IDs we want to allocate. Cannot be set if min is also set.
     * 
* * optional int64 size = 2; * @return The size. */ long getSize(); /** *
     * Allocate Ids up to this maximum value. Cannot be set if size is
     * also set.
     * WARNING!! Does not invalidate old batches in other instances so ids
     * may still be assigned below this value. Only new batches will be
     * larger than this value which means that on a collision (where the
     * datastore tries to assign a key that already exists) the next batch pulled
     * will be valid. Without this the datastore would repeatedly pull bad batches
     * until a valid batch is found.
     * The returned range is guaranteed not to collide with the datastore (range
     * may be empty).
     * 
* * optional int64 max = 3; * @return Whether the max field is set. */ boolean hasMax(); /** *
     * Allocate Ids up to this maximum value. Cannot be set if size is
     * also set.
     * WARNING!! Does not invalidate old batches in other instances so ids
     * may still be assigned below this value. Only new batches will be
     * larger than this value which means that on a collision (where the
     * datastore tries to assign a key that already exists) the next batch pulled
     * will be valid. Without this the datastore would repeatedly pull bad batches
     * until a valid batch is found.
     * The returned range is guaranteed not to collide with the datastore (range
     * may be empty).
     * 
* * optional int64 max = 3; * @return The max. */ long getMax(); /** *
     * Keys with complete paths for which to reserve all IDs in the path.
     * If this field is set, model_key, size, and max must not be set.
     * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ java.util.List getReserveList(); /** *
     * Keys with complete paths for which to reserve all IDs in the path.
     * If this field is set, model_key, size, and max must not be set.
     * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getReserve(int index); /** *
     * Keys with complete paths for which to reserve all IDs in the path.
     * If this field is set, model_key, size, and max must not be set.
     * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ int getReserveCount(); /** *
     * Keys with complete paths for which to reserve all IDs in the path.
     * If this field is set, model_key, size, and max must not be set.
     * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ java.util.List getReserveOrBuilderList(); /** *
     * Keys with complete paths for which to reserve all IDs in the path.
     * If this field is set, model_key, size, and max must not be set.
     * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getReserveOrBuilder( int index); /** *
     * Currently only used to allow reserving ids for a reserved key.
     * 
* * optional bool trusted = 6 [default = false]; * @return Whether the trusted field is set. */ boolean hasTrusted(); /** *
     * Currently only used to allow reserving ids for a reserved key.
     * 
* * optional bool trusted = 6 [default = false]; * @return The trusted. */ boolean getTrusted(); } /** *
   * Tag 4 was InternalHeader
   * 
* * Protobuf type {@code apphosting_datastore_v3.AllocateIdsRequest} */ public static final class AllocateIdsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.AllocateIdsRequest) AllocateIdsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AllocateIdsRequest.newBuilder() to construct. private AllocateIdsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AllocateIdsRequest() { reserve_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AllocateIdsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AllocateIdsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AllocateIdsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest.Builder.class); } private int bitField0_; public static final int MODEL_KEY_FIELD_NUMBER = 1; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference modelKey_; /** *
     * ID sequences are namespaced to (parent, kind) combinations, the easiest
     * representation of which is a Reference with the final part of the path
     * ignored. In most cases this will be the result of an entity.key() call
     * on an entity instance, but a Reference generated manually with a path
     * will suffice: the key need not reference an actual entity.
     * If this field is set, reserve must not be set.
     * 
* * optional .storage_onestore_v3.Reference model_key = 1; * @return Whether the modelKey field is set. */ @java.lang.Override public boolean hasModelKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * ID sequences are namespaced to (parent, kind) combinations, the easiest
     * representation of which is a Reference with the final part of the path
     * ignored. In most cases this will be the result of an entity.key() call
     * on an entity instance, but a Reference generated manually with a path
     * will suffice: the key need not reference an actual entity.
     * If this field is set, reserve must not be set.
     * 
* * optional .storage_onestore_v3.Reference model_key = 1; * @return The modelKey. */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getModelKey() { return modelKey_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : modelKey_; } /** *
     * ID sequences are namespaced to (parent, kind) combinations, the easiest
     * representation of which is a Reference with the final part of the path
     * ignored. In most cases this will be the result of an entity.key() call
     * on an entity instance, but a Reference generated manually with a path
     * will suffice: the key need not reference an actual entity.
     * If this field is set, reserve must not be set.
     * 
* * optional .storage_onestore_v3.Reference model_key = 1; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getModelKeyOrBuilder() { return modelKey_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : modelKey_; } public static final int SIZE_FIELD_NUMBER = 2; private long size_ = 0L; /** *
     * The number of IDs we want to allocate. Cannot be set if min is also set.
     * 
* * optional int64 size = 2; * @return Whether the size field is set. */ @java.lang.Override public boolean hasSize() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The number of IDs we want to allocate. Cannot be set if min is also set.
     * 
* * optional int64 size = 2; * @return The size. */ @java.lang.Override public long getSize() { return size_; } public static final int MAX_FIELD_NUMBER = 3; private long max_ = 0L; /** *
     * Allocate Ids up to this maximum value. Cannot be set if size is
     * also set.
     * WARNING!! Does not invalidate old batches in other instances so ids
     * may still be assigned below this value. Only new batches will be
     * larger than this value which means that on a collision (where the
     * datastore tries to assign a key that already exists) the next batch pulled
     * will be valid. Without this the datastore would repeatedly pull bad batches
     * until a valid batch is found.
     * The returned range is guaranteed not to collide with the datastore (range
     * may be empty).
     * 
* * optional int64 max = 3; * @return Whether the max field is set. */ @java.lang.Override public boolean hasMax() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Allocate Ids up to this maximum value. Cannot be set if size is
     * also set.
     * WARNING!! Does not invalidate old batches in other instances so ids
     * may still be assigned below this value. Only new batches will be
     * larger than this value which means that on a collision (where the
     * datastore tries to assign a key that already exists) the next batch pulled
     * will be valid. Without this the datastore would repeatedly pull bad batches
     * until a valid batch is found.
     * The returned range is guaranteed not to collide with the datastore (range
     * may be empty).
     * 
* * optional int64 max = 3; * @return The max. */ @java.lang.Override public long getMax() { return max_; } public static final int RESERVE_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List reserve_; /** *
     * Keys with complete paths for which to reserve all IDs in the path.
     * If this field is set, model_key, size, and max must not be set.
     * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ @java.lang.Override public java.util.List getReserveList() { return reserve_; } /** *
     * Keys with complete paths for which to reserve all IDs in the path.
     * If this field is set, model_key, size, and max must not be set.
     * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ @java.lang.Override public java.util.List getReserveOrBuilderList() { return reserve_; } /** *
     * Keys with complete paths for which to reserve all IDs in the path.
     * If this field is set, model_key, size, and max must not be set.
     * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ @java.lang.Override public int getReserveCount() { return reserve_.size(); } /** *
     * Keys with complete paths for which to reserve all IDs in the path.
     * If this field is set, model_key, size, and max must not be set.
     * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getReserve(int index) { return reserve_.get(index); } /** *
     * Keys with complete paths for which to reserve all IDs in the path.
     * If this field is set, model_key, size, and max must not be set.
     * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getReserveOrBuilder( int index) { return reserve_.get(index); } public static final int TRUSTED_FIELD_NUMBER = 6; private boolean trusted_ = false; /** *
     * Currently only used to allow reserving ids for a reserved key.
     * 
* * optional bool trusted = 6 [default = false]; * @return Whether the trusted field is set. */ @java.lang.Override public boolean hasTrusted() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Currently only used to allow reserving ids for a reserved key.
     * 
* * optional bool trusted = 6 [default = false]; * @return The trusted. */ @java.lang.Override public boolean getTrusted() { return trusted_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasModelKey()) { if (!getModelKey().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getReserveCount(); i++) { if (!getReserve(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getModelKey()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, size_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(3, max_); } for (int i = 0; i < reserve_.size(); i++) { output.writeMessage(5, reserve_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(6, trusted_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getModelKey()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, size_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, max_); } for (int i = 0; i < reserve_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, reserve_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, trusted_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest) obj; if (hasModelKey() != other.hasModelKey()) return false; if (hasModelKey()) { if (!getModelKey() .equals(other.getModelKey())) return false; } if (hasSize() != other.hasSize()) return false; if (hasSize()) { if (getSize() != other.getSize()) return false; } if (hasMax() != other.hasMax()) return false; if (hasMax()) { if (getMax() != other.getMax()) return false; } if (!getReserveList() .equals(other.getReserveList())) return false; if (hasTrusted() != other.hasTrusted()) return false; if (hasTrusted()) { if (getTrusted() != other.getTrusted()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasModelKey()) { hash = (37 * hash) + MODEL_KEY_FIELD_NUMBER; hash = (53 * hash) + getModelKey().hashCode(); } if (hasSize()) { hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); } if (hasMax()) { hash = (37 * hash) + MAX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMax()); } if (getReserveCount() > 0) { hash = (37 * hash) + RESERVE_FIELD_NUMBER; hash = (53 * hash) + getReserveList().hashCode(); } if (hasTrusted()) { hash = (37 * hash) + TRUSTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTrusted()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * Tag 4 was InternalHeader
     * 
* * Protobuf type {@code apphosting_datastore_v3.AllocateIdsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.AllocateIdsRequest) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AllocateIdsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AllocateIdsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getModelKeyFieldBuilder(); getReserveFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; modelKey_ = null; if (modelKeyBuilder_ != null) { modelKeyBuilder_.dispose(); modelKeyBuilder_ = null; } size_ = 0L; max_ = 0L; if (reserveBuilder_ == null) { reserve_ = java.util.Collections.emptyList(); } else { reserve_ = null; reserveBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); trusted_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AllocateIdsRequest_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest result) { if (reserveBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { reserve_ = java.util.Collections.unmodifiableList(reserve_); bitField0_ = (bitField0_ & ~0x00000008); } result.reserve_ = reserve_; } else { result.reserve_ = reserveBuilder_.build(); } } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.modelKey_ = modelKeyBuilder_ == null ? modelKey_ : modelKeyBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.size_ = size_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.max_ = max_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.trusted_ = trusted_; to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest.getDefaultInstance()) return this; if (other.hasModelKey()) { mergeModelKey(other.getModelKey()); } if (other.hasSize()) { setSize(other.getSize()); } if (other.hasMax()) { setMax(other.getMax()); } if (reserveBuilder_ == null) { if (!other.reserve_.isEmpty()) { if (reserve_.isEmpty()) { reserve_ = other.reserve_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureReserveIsMutable(); reserve_.addAll(other.reserve_); } onChanged(); } } else { if (!other.reserve_.isEmpty()) { if (reserveBuilder_.isEmpty()) { reserveBuilder_.dispose(); reserveBuilder_ = null; reserve_ = other.reserve_; bitField0_ = (bitField0_ & ~0x00000008); reserveBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getReserveFieldBuilder() : null; } else { reserveBuilder_.addAllMessages(other.reserve_); } } } if (other.hasTrusted()) { setTrusted(other.getTrusted()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasModelKey()) { if (!getModelKey().isInitialized()) { return false; } } for (int i = 0; i < getReserveCount(); i++) { if (!getReserve(i).isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getModelKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { size_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { max_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 42: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.PARSER, extensionRegistry); if (reserveBuilder_ == null) { ensureReserveIsMutable(); reserve_.add(m); } else { reserveBuilder_.addMessage(m); } break; } // case 42 case 48: { trusted_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference modelKey_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> modelKeyBuilder_; /** *
       * ID sequences are namespaced to (parent, kind) combinations, the easiest
       * representation of which is a Reference with the final part of the path
       * ignored. In most cases this will be the result of an entity.key() call
       * on an entity instance, but a Reference generated manually with a path
       * will suffice: the key need not reference an actual entity.
       * If this field is set, reserve must not be set.
       * 
* * optional .storage_onestore_v3.Reference model_key = 1; * @return Whether the modelKey field is set. */ public boolean hasModelKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * ID sequences are namespaced to (parent, kind) combinations, the easiest
       * representation of which is a Reference with the final part of the path
       * ignored. In most cases this will be the result of an entity.key() call
       * on an entity instance, but a Reference generated manually with a path
       * will suffice: the key need not reference an actual entity.
       * If this field is set, reserve must not be set.
       * 
* * optional .storage_onestore_v3.Reference model_key = 1; * @return The modelKey. */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getModelKey() { if (modelKeyBuilder_ == null) { return modelKey_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : modelKey_; } else { return modelKeyBuilder_.getMessage(); } } /** *
       * ID sequences are namespaced to (parent, kind) combinations, the easiest
       * representation of which is a Reference with the final part of the path
       * ignored. In most cases this will be the result of an entity.key() call
       * on an entity instance, but a Reference generated manually with a path
       * will suffice: the key need not reference an actual entity.
       * If this field is set, reserve must not be set.
       * 
* * optional .storage_onestore_v3.Reference model_key = 1; */ public Builder setModelKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (modelKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modelKey_ = value; } else { modelKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * ID sequences are namespaced to (parent, kind) combinations, the easiest
       * representation of which is a Reference with the final part of the path
       * ignored. In most cases this will be the result of an entity.key() call
       * on an entity instance, but a Reference generated manually with a path
       * will suffice: the key need not reference an actual entity.
       * If this field is set, reserve must not be set.
       * 
* * optional .storage_onestore_v3.Reference model_key = 1; */ public Builder setModelKey( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (modelKeyBuilder_ == null) { modelKey_ = builderForValue.build(); } else { modelKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * ID sequences are namespaced to (parent, kind) combinations, the easiest
       * representation of which is a Reference with the final part of the path
       * ignored. In most cases this will be the result of an entity.key() call
       * on an entity instance, but a Reference generated manually with a path
       * will suffice: the key need not reference an actual entity.
       * If this field is set, reserve must not be set.
       * 
* * optional .storage_onestore_v3.Reference model_key = 1; */ public Builder mergeModelKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (modelKeyBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && modelKey_ != null && modelKey_ != com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()) { getModelKeyBuilder().mergeFrom(value); } else { modelKey_ = value; } } else { modelKeyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * ID sequences are namespaced to (parent, kind) combinations, the easiest
       * representation of which is a Reference with the final part of the path
       * ignored. In most cases this will be the result of an entity.key() call
       * on an entity instance, but a Reference generated manually with a path
       * will suffice: the key need not reference an actual entity.
       * If this field is set, reserve must not be set.
       * 
* * optional .storage_onestore_v3.Reference model_key = 1; */ public Builder clearModelKey() { bitField0_ = (bitField0_ & ~0x00000001); modelKey_ = null; if (modelKeyBuilder_ != null) { modelKeyBuilder_.dispose(); modelKeyBuilder_ = null; } onChanged(); return this; } /** *
       * ID sequences are namespaced to (parent, kind) combinations, the easiest
       * representation of which is a Reference with the final part of the path
       * ignored. In most cases this will be the result of an entity.key() call
       * on an entity instance, but a Reference generated manually with a path
       * will suffice: the key need not reference an actual entity.
       * If this field is set, reserve must not be set.
       * 
* * optional .storage_onestore_v3.Reference model_key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder getModelKeyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getModelKeyFieldBuilder().getBuilder(); } /** *
       * ID sequences are namespaced to (parent, kind) combinations, the easiest
       * representation of which is a Reference with the final part of the path
       * ignored. In most cases this will be the result of an entity.key() call
       * on an entity instance, but a Reference generated manually with a path
       * will suffice: the key need not reference an actual entity.
       * If this field is set, reserve must not be set.
       * 
* * optional .storage_onestore_v3.Reference model_key = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getModelKeyOrBuilder() { if (modelKeyBuilder_ != null) { return modelKeyBuilder_.getMessageOrBuilder(); } else { return modelKey_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : modelKey_; } } /** *
       * ID sequences are namespaced to (parent, kind) combinations, the easiest
       * representation of which is a Reference with the final part of the path
       * ignored. In most cases this will be the result of an entity.key() call
       * on an entity instance, but a Reference generated manually with a path
       * will suffice: the key need not reference an actual entity.
       * If this field is set, reserve must not be set.
       * 
* * optional .storage_onestore_v3.Reference model_key = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> getModelKeyFieldBuilder() { if (modelKeyBuilder_ == null) { modelKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>( getModelKey(), getParentForChildren(), isClean()); modelKey_ = null; } return modelKeyBuilder_; } private long size_ ; /** *
       * The number of IDs we want to allocate. Cannot be set if min is also set.
       * 
* * optional int64 size = 2; * @return Whether the size field is set. */ @java.lang.Override public boolean hasSize() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * The number of IDs we want to allocate. Cannot be set if min is also set.
       * 
* * optional int64 size = 2; * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** *
       * The number of IDs we want to allocate. Cannot be set if min is also set.
       * 
* * optional int64 size = 2; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { size_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The number of IDs we want to allocate. Cannot be set if min is also set.
       * 
* * optional int64 size = 2; * @return This builder for chaining. */ public Builder clearSize() { bitField0_ = (bitField0_ & ~0x00000002); size_ = 0L; onChanged(); return this; } private long max_ ; /** *
       * Allocate Ids up to this maximum value. Cannot be set if size is
       * also set.
       * WARNING!! Does not invalidate old batches in other instances so ids
       * may still be assigned below this value. Only new batches will be
       * larger than this value which means that on a collision (where the
       * datastore tries to assign a key that already exists) the next batch pulled
       * will be valid. Without this the datastore would repeatedly pull bad batches
       * until a valid batch is found.
       * The returned range is guaranteed not to collide with the datastore (range
       * may be empty).
       * 
* * optional int64 max = 3; * @return Whether the max field is set. */ @java.lang.Override public boolean hasMax() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Allocate Ids up to this maximum value. Cannot be set if size is
       * also set.
       * WARNING!! Does not invalidate old batches in other instances so ids
       * may still be assigned below this value. Only new batches will be
       * larger than this value which means that on a collision (where the
       * datastore tries to assign a key that already exists) the next batch pulled
       * will be valid. Without this the datastore would repeatedly pull bad batches
       * until a valid batch is found.
       * The returned range is guaranteed not to collide with the datastore (range
       * may be empty).
       * 
* * optional int64 max = 3; * @return The max. */ @java.lang.Override public long getMax() { return max_; } /** *
       * Allocate Ids up to this maximum value. Cannot be set if size is
       * also set.
       * WARNING!! Does not invalidate old batches in other instances so ids
       * may still be assigned below this value. Only new batches will be
       * larger than this value which means that on a collision (where the
       * datastore tries to assign a key that already exists) the next batch pulled
       * will be valid. Without this the datastore would repeatedly pull bad batches
       * until a valid batch is found.
       * The returned range is guaranteed not to collide with the datastore (range
       * may be empty).
       * 
* * optional int64 max = 3; * @param value The max to set. * @return This builder for chaining. */ public Builder setMax(long value) { max_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Allocate Ids up to this maximum value. Cannot be set if size is
       * also set.
       * WARNING!! Does not invalidate old batches in other instances so ids
       * may still be assigned below this value. Only new batches will be
       * larger than this value which means that on a collision (where the
       * datastore tries to assign a key that already exists) the next batch pulled
       * will be valid. Without this the datastore would repeatedly pull bad batches
       * until a valid batch is found.
       * The returned range is guaranteed not to collide with the datastore (range
       * may be empty).
       * 
* * optional int64 max = 3; * @return This builder for chaining. */ public Builder clearMax() { bitField0_ = (bitField0_ & ~0x00000004); max_ = 0L; onChanged(); return this; } private java.util.List reserve_ = java.util.Collections.emptyList(); private void ensureReserveIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { reserve_ = new java.util.ArrayList(reserve_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> reserveBuilder_; /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public java.util.List getReserveList() { if (reserveBuilder_ == null) { return java.util.Collections.unmodifiableList(reserve_); } else { return reserveBuilder_.getMessageList(); } } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public int getReserveCount() { if (reserveBuilder_ == null) { return reserve_.size(); } else { return reserveBuilder_.getCount(); } } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getReserve(int index) { if (reserveBuilder_ == null) { return reserve_.get(index); } else { return reserveBuilder_.getMessage(index); } } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public Builder setReserve( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (reserveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReserveIsMutable(); reserve_.set(index, value); onChanged(); } else { reserveBuilder_.setMessage(index, value); } return this; } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public Builder setReserve( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (reserveBuilder_ == null) { ensureReserveIsMutable(); reserve_.set(index, builderForValue.build()); onChanged(); } else { reserveBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public Builder addReserve(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (reserveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReserveIsMutable(); reserve_.add(value); onChanged(); } else { reserveBuilder_.addMessage(value); } return this; } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public Builder addReserve( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (reserveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReserveIsMutable(); reserve_.add(index, value); onChanged(); } else { reserveBuilder_.addMessage(index, value); } return this; } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public Builder addReserve( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (reserveBuilder_ == null) { ensureReserveIsMutable(); reserve_.add(builderForValue.build()); onChanged(); } else { reserveBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public Builder addReserve( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (reserveBuilder_ == null) { ensureReserveIsMutable(); reserve_.add(index, builderForValue.build()); onChanged(); } else { reserveBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public Builder addAllReserve( java.lang.Iterable values) { if (reserveBuilder_ == null) { ensureReserveIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, reserve_); onChanged(); } else { reserveBuilder_.addAllMessages(values); } return this; } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public Builder clearReserve() { if (reserveBuilder_ == null) { reserve_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { reserveBuilder_.clear(); } return this; } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public Builder removeReserve(int index) { if (reserveBuilder_ == null) { ensureReserveIsMutable(); reserve_.remove(index); onChanged(); } else { reserveBuilder_.remove(index); } return this; } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder getReserveBuilder( int index) { return getReserveFieldBuilder().getBuilder(index); } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getReserveOrBuilder( int index) { if (reserveBuilder_ == null) { return reserve_.get(index); } else { return reserveBuilder_.getMessageOrBuilder(index); } } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public java.util.List getReserveOrBuilderList() { if (reserveBuilder_ != null) { return reserveBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(reserve_); } } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder addReserveBuilder() { return getReserveFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()); } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder addReserveBuilder( int index) { return getReserveFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()); } /** *
       * Keys with complete paths for which to reserve all IDs in the path.
       * If this field is set, model_key, size, and max must not be set.
       * 
* * repeated .storage_onestore_v3.Reference reserve = 5; */ public java.util.List getReserveBuilderList() { return getReserveFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> getReserveFieldBuilder() { if (reserveBuilder_ == null) { reserveBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>( reserve_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); reserve_ = null; } return reserveBuilder_; } private boolean trusted_ ; /** *
       * Currently only used to allow reserving ids for a reserved key.
       * 
* * optional bool trusted = 6 [default = false]; * @return Whether the trusted field is set. */ @java.lang.Override public boolean hasTrusted() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * Currently only used to allow reserving ids for a reserved key.
       * 
* * optional bool trusted = 6 [default = false]; * @return The trusted. */ @java.lang.Override public boolean getTrusted() { return trusted_; } /** *
       * Currently only used to allow reserving ids for a reserved key.
       * 
* * optional bool trusted = 6 [default = false]; * @param value The trusted to set. * @return This builder for chaining. */ public Builder setTrusted(boolean value) { trusted_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Currently only used to allow reserving ids for a reserved key.
       * 
* * optional bool trusted = 6 [default = false]; * @return This builder for chaining. */ public Builder clearTrusted() { bitField0_ = (bitField0_ & ~0x00000010); trusted_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.AllocateIdsRequest) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.AllocateIdsRequest) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AllocateIdsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AllocateIdsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.AllocateIdsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * This has the exact same semantics as IdBatch.java and represents a range
     * of allocated IDs from start to end, inclusive.
     * 
* * required int64 start = 1; * @return Whether the start field is set. */ boolean hasStart(); /** *
     * This has the exact same semantics as IdBatch.java and represents a range
     * of allocated IDs from start to end, inclusive.
     * 
* * required int64 start = 1; * @return The start. */ long getStart(); /** * required int64 end = 2; * @return Whether the end field is set. */ boolean hasEnd(); /** * required int64 end = 2; * @return The end. */ long getEnd(); /** * optional .apphosting_datastore_v3.Cost cost = 3; * @return Whether the cost field is set. */ boolean hasCost(); /** * optional .apphosting_datastore_v3.Cost cost = 3; * @return The cost. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost(); /** * optional .apphosting_datastore_v3.Cost cost = 3; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder(); } /** * Protobuf type {@code apphosting_datastore_v3.AllocateIdsResponse} */ public static final class AllocateIdsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.AllocateIdsResponse) AllocateIdsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AllocateIdsResponse.newBuilder() to construct. private AllocateIdsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AllocateIdsResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AllocateIdsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AllocateIdsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AllocateIdsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse.Builder.class); } private int bitField0_; public static final int START_FIELD_NUMBER = 1; private long start_ = 0L; /** *
     * This has the exact same semantics as IdBatch.java and represents a range
     * of allocated IDs from start to end, inclusive.
     * 
* * required int64 start = 1; * @return Whether the start field is set. */ @java.lang.Override public boolean hasStart() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * This has the exact same semantics as IdBatch.java and represents a range
     * of allocated IDs from start to end, inclusive.
     * 
* * required int64 start = 1; * @return The start. */ @java.lang.Override public long getStart() { return start_; } public static final int END_FIELD_NUMBER = 2; private long end_ = 0L; /** * required int64 end = 2; * @return Whether the end field is set. */ @java.lang.Override public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); } /** * required int64 end = 2; * @return The end. */ @java.lang.Override public long getEnd() { return end_; } public static final int COST_FIELD_NUMBER = 3; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost cost_; /** * optional .apphosting_datastore_v3.Cost cost = 3; * @return Whether the cost field is set. */ @java.lang.Override public boolean hasCost() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .apphosting_datastore_v3.Cost cost = 3; * @return The cost. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost() { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } /** * optional .apphosting_datastore_v3.Cost cost = 3; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder() { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasStart()) { memoizedIsInitialized = 0; return false; } if (!hasEnd()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, start_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, end_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getCost()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, start_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, end_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCost()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse) obj; if (hasStart() != other.hasStart()) return false; if (hasStart()) { if (getStart() != other.getStart()) return false; } if (hasEnd() != other.hasEnd()) return false; if (hasEnd()) { if (getEnd() != other.getEnd()) return false; } if (hasCost() != other.hasCost()) return false; if (hasCost()) { if (!getCost() .equals(other.getCost())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStart()); } if (hasEnd()) { hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEnd()); } if (hasCost()) { hash = (37 * hash) + COST_FIELD_NUMBER; hash = (53 * hash) + getCost().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.AllocateIdsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.AllocateIdsResponse) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AllocateIdsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AllocateIdsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCostFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; start_ = 0L; end_ = 0L; cost_ = null; if (costBuilder_ != null) { costBuilder_.dispose(); costBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AllocateIdsResponse_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.start_ = start_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.end_ = end_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.cost_ = costBuilder_ == null ? cost_ : costBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse.getDefaultInstance()) return this; if (other.hasStart()) { setStart(other.getStart()); } if (other.hasEnd()) { setEnd(other.getEnd()); } if (other.hasCost()) { mergeCost(other.getCost()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasStart()) { return false; } if (!hasEnd()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { start_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { end_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getCostFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long start_ ; /** *
       * This has the exact same semantics as IdBatch.java and represents a range
       * of allocated IDs from start to end, inclusive.
       * 
* * required int64 start = 1; * @return Whether the start field is set. */ @java.lang.Override public boolean hasStart() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * This has the exact same semantics as IdBatch.java and represents a range
       * of allocated IDs from start to end, inclusive.
       * 
* * required int64 start = 1; * @return The start. */ @java.lang.Override public long getStart() { return start_; } /** *
       * This has the exact same semantics as IdBatch.java and represents a range
       * of allocated IDs from start to end, inclusive.
       * 
* * required int64 start = 1; * @param value The start to set. * @return This builder for chaining. */ public Builder setStart(long value) { start_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * This has the exact same semantics as IdBatch.java and represents a range
       * of allocated IDs from start to end, inclusive.
       * 
* * required int64 start = 1; * @return This builder for chaining. */ public Builder clearStart() { bitField0_ = (bitField0_ & ~0x00000001); start_ = 0L; onChanged(); return this; } private long end_ ; /** * required int64 end = 2; * @return Whether the end field is set. */ @java.lang.Override public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); } /** * required int64 end = 2; * @return The end. */ @java.lang.Override public long getEnd() { return end_; } /** * required int64 end = 2; * @param value The end to set. * @return This builder for chaining. */ public Builder setEnd(long value) { end_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * required int64 end = 2; * @return This builder for chaining. */ public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000002); end_ = 0L; onChanged(); return this; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost cost_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder> costBuilder_; /** * optional .apphosting_datastore_v3.Cost cost = 3; * @return Whether the cost field is set. */ public boolean hasCost() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .apphosting_datastore_v3.Cost cost = 3; * @return The cost. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost() { if (costBuilder_ == null) { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } else { return costBuilder_.getMessage(); } } /** * optional .apphosting_datastore_v3.Cost cost = 3; */ public Builder setCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost value) { if (costBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cost_ = value; } else { costBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 3; */ public Builder setCost( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder builderForValue) { if (costBuilder_ == null) { cost_ = builderForValue.build(); } else { costBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 3; */ public Builder mergeCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost value) { if (costBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && cost_ != null && cost_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance()) { getCostBuilder().mergeFrom(value); } else { cost_ = value; } } else { costBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 3; */ public Builder clearCost() { bitField0_ = (bitField0_ & ~0x00000004); cost_ = null; if (costBuilder_ != null) { costBuilder_.dispose(); costBuilder_ = null; } onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 3; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder getCostBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCostFieldBuilder().getBuilder(); } /** * optional .apphosting_datastore_v3.Cost cost = 3; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder() { if (costBuilder_ != null) { return costBuilder_.getMessageOrBuilder(); } else { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } } /** * optional .apphosting_datastore_v3.Cost cost = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder> getCostFieldBuilder() { if (costBuilder_ == null) { costBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder>( getCost(), getParentForChildren(), isClean()); cost_ = null; } return costBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.AllocateIdsResponse) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.AllocateIdsResponse) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AllocateIdsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AllocateIdsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CompositeIndicesOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CompositeIndices) com.google.protobuf.MessageOrBuilder { /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ java.util.List getIndexList(); /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getIndex(int index); /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ int getIndexCount(); /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ java.util.List getIndexOrBuilderList(); /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getIndexOrBuilder( int index); } /** * Protobuf type {@code apphosting_datastore_v3.CompositeIndices} */ public static final class CompositeIndices extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CompositeIndices) CompositeIndicesOrBuilder { private static final long serialVersionUID = 0L; // Use CompositeIndices.newBuilder() to construct. private CompositeIndices(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CompositeIndices() { index_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CompositeIndices(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompositeIndices_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompositeIndices_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices.Builder.class); } public static final int INDEX_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List index_; /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ @java.lang.Override public java.util.List getIndexList() { return index_; } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ @java.lang.Override public java.util.List getIndexOrBuilderList() { return index_; } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ @java.lang.Override public int getIndexCount() { return index_.size(); } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getIndex(int index) { return index_.get(index); } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getIndexOrBuilder( int index) { return index_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getIndexCount(); i++) { if (!getIndex(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < index_.size(); i++) { output.writeMessage(1, index_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < index_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, index_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices) obj; if (!getIndexList() .equals(other.getIndexList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getIndexCount() > 0) { hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndexList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices 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.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.CompositeIndices} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CompositeIndices) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndicesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompositeIndices_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompositeIndices_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (indexBuilder_ == null) { index_ = java.util.Collections.emptyList(); } else { index_ = null; indexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CompositeIndices_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices result) { if (indexBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { index_ = java.util.Collections.unmodifiableList(index_); bitField0_ = (bitField0_ & ~0x00000001); } result.index_ = index_; } else { result.index_ = indexBuilder_.build(); } } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices.getDefaultInstance()) return this; if (indexBuilder_ == null) { if (!other.index_.isEmpty()) { if (index_.isEmpty()) { index_ = other.index_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIndexIsMutable(); index_.addAll(other.index_); } onChanged(); } } else { if (!other.index_.isEmpty()) { if (indexBuilder_.isEmpty()) { indexBuilder_.dispose(); indexBuilder_ = null; index_ = other.index_; bitField0_ = (bitField0_ & ~0x00000001); indexBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIndexFieldBuilder() : null; } else { indexBuilder_.addAllMessages(other.index_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getIndexCount(); i++) { if (!getIndex(i).isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.PARSER, extensionRegistry); if (indexBuilder_ == null) { ensureIndexIsMutable(); index_.add(m); } else { indexBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List index_ = java.util.Collections.emptyList(); private void ensureIndexIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { index_ = new java.util.ArrayList(index_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder> indexBuilder_; /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public java.util.List getIndexList() { if (indexBuilder_ == null) { return java.util.Collections.unmodifiableList(index_); } else { return indexBuilder_.getMessageList(); } } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public int getIndexCount() { if (indexBuilder_ == null) { return index_.size(); } else { return indexBuilder_.getCount(); } } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex getIndex(int index) { if (indexBuilder_ == null) { return index_.get(index); } else { return indexBuilder_.getMessage(index); } } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public Builder setIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (indexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexIsMutable(); index_.set(index, value); onChanged(); } else { indexBuilder_.setMessage(index, value); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public Builder setIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (indexBuilder_ == null) { ensureIndexIsMutable(); index_.set(index, builderForValue.build()); onChanged(); } else { indexBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public Builder addIndex(com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (indexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexIsMutable(); index_.add(value); onChanged(); } else { indexBuilder_.addMessage(value); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public Builder addIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex value) { if (indexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIndexIsMutable(); index_.add(index, value); onChanged(); } else { indexBuilder_.addMessage(index, value); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public Builder addIndex( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (indexBuilder_ == null) { ensureIndexIsMutable(); index_.add(builderForValue.build()); onChanged(); } else { indexBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public Builder addIndex( int index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder builderForValue) { if (indexBuilder_ == null) { ensureIndexIsMutable(); index_.add(index, builderForValue.build()); onChanged(); } else { indexBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public Builder addAllIndex( java.lang.Iterable values) { if (indexBuilder_ == null) { ensureIndexIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, index_); onChanged(); } else { indexBuilder_.addAllMessages(values); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public Builder clearIndex() { if (indexBuilder_ == null) { index_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { indexBuilder_.clear(); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public Builder removeIndex(int index) { if (indexBuilder_ == null) { ensureIndexIsMutable(); index_.remove(index); onChanged(); } else { indexBuilder_.remove(index); } return this; } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder getIndexBuilder( int index) { return getIndexFieldBuilder().getBuilder(index); } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder getIndexOrBuilder( int index) { if (indexBuilder_ == null) { return index_.get(index); } else { return indexBuilder_.getMessageOrBuilder(index); } } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public java.util.List getIndexOrBuilderList() { if (indexBuilder_ != null) { return indexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(index_); } } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder addIndexBuilder() { return getIndexFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.getDefaultInstance()); } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder addIndexBuilder( int index) { return getIndexFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.getDefaultInstance()); } /** * repeated .storage_onestore_v3.CompositeIndex index = 1; */ public java.util.List getIndexBuilderList() { return getIndexFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder> getIndexFieldBuilder() { if (indexBuilder_ == null) { indexBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndex.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.CompositeIndexOrBuilder>( index_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); index_ = null; } return indexBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.CompositeIndices) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CompositeIndices) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CompositeIndices parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CompositeIndices getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AddActionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.AddActionsRequest) com.google.protobuf.MessageOrBuilder { /** * required .apphosting_datastore_v3.Transaction transaction = 1; * @return Whether the transaction field is set. */ boolean hasTransaction(); /** * required .apphosting_datastore_v3.Transaction transaction = 1; * @return The transaction. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction(); /** * required .apphosting_datastore_v3.Transaction transaction = 1; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder(); /** * repeated .storage_onestore_v3.Action action = 2; */ java.util.List getActionList(); /** * repeated .storage_onestore_v3.Action action = 2; */ com.google.storage.onestore.v3.proto2api.OnestoreAction.Action getAction(int index); /** * repeated .storage_onestore_v3.Action action = 2; */ int getActionCount(); /** * repeated .storage_onestore_v3.Action action = 2; */ java.util.List getActionOrBuilderList(); /** * repeated .storage_onestore_v3.Action action = 2; */ com.google.storage.onestore.v3.proto2api.OnestoreAction.ActionOrBuilder getActionOrBuilder( int index); } /** *
   * Tag 3 was InternalHeader
   * 
* * Protobuf type {@code apphosting_datastore_v3.AddActionsRequest} */ public static final class AddActionsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.AddActionsRequest) AddActionsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AddActionsRequest.newBuilder() to construct. private AddActionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AddActionsRequest() { action_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AddActionsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AddActionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AddActionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest.Builder.class); } private int bitField0_; public static final int TRANSACTION_FIELD_NUMBER = 1; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction transaction_; /** * required .apphosting_datastore_v3.Transaction transaction = 1; * @return Whether the transaction field is set. */ @java.lang.Override public boolean hasTransaction() { return ((bitField0_ & 0x00000001) != 0); } /** * required .apphosting_datastore_v3.Transaction transaction = 1; * @return The transaction. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction() { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } /** * required .apphosting_datastore_v3.Transaction transaction = 1; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder() { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } public static final int ACTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List action_; /** * repeated .storage_onestore_v3.Action action = 2; */ @java.lang.Override public java.util.List getActionList() { return action_; } /** * repeated .storage_onestore_v3.Action action = 2; */ @java.lang.Override public java.util.List getActionOrBuilderList() { return action_; } /** * repeated .storage_onestore_v3.Action action = 2; */ @java.lang.Override public int getActionCount() { return action_.size(); } /** * repeated .storage_onestore_v3.Action action = 2; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreAction.Action getAction(int index) { return action_.get(index); } /** * repeated .storage_onestore_v3.Action action = 2; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreAction.ActionOrBuilder getActionOrBuilder( int index) { return action_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasTransaction()) { memoizedIsInitialized = 0; return false; } if (!getTransaction().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getActionCount(); i++) { if (!getAction(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTransaction()); } for (int i = 0; i < action_.size(); i++) { output.writeMessage(2, action_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTransaction()); } for (int i = 0; i < action_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, action_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest) obj; if (hasTransaction() != other.hasTransaction()) return false; if (hasTransaction()) { if (!getTransaction() .equals(other.getTransaction())) return false; } if (!getActionList() .equals(other.getActionList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTransaction()) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); } if (getActionCount() > 0) { hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + getActionList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * Tag 3 was InternalHeader
     * 
* * Protobuf type {@code apphosting_datastore_v3.AddActionsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.AddActionsRequest) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AddActionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AddActionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTransactionFieldBuilder(); getActionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } if (actionBuilder_ == null) { action_ = java.util.Collections.emptyList(); } else { action_ = null; actionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AddActionsRequest_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest result) { if (actionBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { action_ = java.util.Collections.unmodifiableList(action_); bitField0_ = (bitField0_ & ~0x00000002); } result.action_ = action_; } else { result.action_ = actionBuilder_.build(); } } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.transaction_ = transactionBuilder_ == null ? transaction_ : transactionBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest.getDefaultInstance()) return this; if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } if (actionBuilder_ == null) { if (!other.action_.isEmpty()) { if (action_.isEmpty()) { action_ = other.action_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureActionIsMutable(); action_.addAll(other.action_); } onChanged(); } } else { if (!other.action_.isEmpty()) { if (actionBuilder_.isEmpty()) { actionBuilder_.dispose(); actionBuilder_ = null; action_ = other.action_; bitField0_ = (bitField0_ & ~0x00000002); actionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getActionFieldBuilder() : null; } else { actionBuilder_.addAllMessages(other.action_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasTransaction()) { return false; } if (!getTransaction().isInitialized()) { return false; } for (int i = 0; i < getActionCount(); i++) { if (!getAction(i).isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTransactionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.storage.onestore.v3.proto2api.OnestoreAction.Action m = input.readMessage( com.google.storage.onestore.v3.proto2api.OnestoreAction.Action.PARSER, extensionRegistry); if (actionBuilder_ == null) { ensureActionIsMutable(); action_.add(m); } else { actionBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction transaction_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder> transactionBuilder_; /** * required .apphosting_datastore_v3.Transaction transaction = 1; * @return Whether the transaction field is set. */ public boolean hasTransaction() { return ((bitField0_ & 0x00000001) != 0); } /** * required .apphosting_datastore_v3.Transaction transaction = 1; * @return The transaction. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** * required .apphosting_datastore_v3.Transaction transaction = 1; */ public Builder setTransaction(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; } else { transactionBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .apphosting_datastore_v3.Transaction transaction = 1; */ public Builder setTransaction( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); } else { transactionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .apphosting_datastore_v3.Transaction transaction = 1; */ public Builder mergeTransaction(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction value) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && transaction_ != null && transaction_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance()) { getTransactionBuilder().mergeFrom(value); } else { transaction_ = value; } } else { transactionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .apphosting_datastore_v3.Transaction transaction = 1; */ public Builder clearTransaction() { bitField0_ = (bitField0_ & ~0x00000001); transaction_ = null; if (transactionBuilder_ != null) { transactionBuilder_.dispose(); transactionBuilder_ = null; } onChanged(); return this; } /** * required .apphosting_datastore_v3.Transaction transaction = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder getTransactionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** * required .apphosting_datastore_v3.Transaction transaction = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_; } } /** * required .apphosting_datastore_v3.Transaction transaction = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder>( getTransaction(), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } private java.util.List action_ = java.util.Collections.emptyList(); private void ensureActionIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { action_ = new java.util.ArrayList(action_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreAction.Action, com.google.storage.onestore.v3.proto2api.OnestoreAction.Action.Builder, com.google.storage.onestore.v3.proto2api.OnestoreAction.ActionOrBuilder> actionBuilder_; /** * repeated .storage_onestore_v3.Action action = 2; */ public java.util.List getActionList() { if (actionBuilder_ == null) { return java.util.Collections.unmodifiableList(action_); } else { return actionBuilder_.getMessageList(); } } /** * repeated .storage_onestore_v3.Action action = 2; */ public int getActionCount() { if (actionBuilder_ == null) { return action_.size(); } else { return actionBuilder_.getCount(); } } /** * repeated .storage_onestore_v3.Action action = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreAction.Action getAction(int index) { if (actionBuilder_ == null) { return action_.get(index); } else { return actionBuilder_.getMessage(index); } } /** * repeated .storage_onestore_v3.Action action = 2; */ public Builder setAction( int index, com.google.storage.onestore.v3.proto2api.OnestoreAction.Action value) { if (actionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionIsMutable(); action_.set(index, value); onChanged(); } else { actionBuilder_.setMessage(index, value); } return this; } /** * repeated .storage_onestore_v3.Action action = 2; */ public Builder setAction( int index, com.google.storage.onestore.v3.proto2api.OnestoreAction.Action.Builder builderForValue) { if (actionBuilder_ == null) { ensureActionIsMutable(); action_.set(index, builderForValue.build()); onChanged(); } else { actionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .storage_onestore_v3.Action action = 2; */ public Builder addAction(com.google.storage.onestore.v3.proto2api.OnestoreAction.Action value) { if (actionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionIsMutable(); action_.add(value); onChanged(); } else { actionBuilder_.addMessage(value); } return this; } /** * repeated .storage_onestore_v3.Action action = 2; */ public Builder addAction( int index, com.google.storage.onestore.v3.proto2api.OnestoreAction.Action value) { if (actionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionIsMutable(); action_.add(index, value); onChanged(); } else { actionBuilder_.addMessage(index, value); } return this; } /** * repeated .storage_onestore_v3.Action action = 2; */ public Builder addAction( com.google.storage.onestore.v3.proto2api.OnestoreAction.Action.Builder builderForValue) { if (actionBuilder_ == null) { ensureActionIsMutable(); action_.add(builderForValue.build()); onChanged(); } else { actionBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .storage_onestore_v3.Action action = 2; */ public Builder addAction( int index, com.google.storage.onestore.v3.proto2api.OnestoreAction.Action.Builder builderForValue) { if (actionBuilder_ == null) { ensureActionIsMutable(); action_.add(index, builderForValue.build()); onChanged(); } else { actionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .storage_onestore_v3.Action action = 2; */ public Builder addAllAction( java.lang.Iterable values) { if (actionBuilder_ == null) { ensureActionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, action_); onChanged(); } else { actionBuilder_.addAllMessages(values); } return this; } /** * repeated .storage_onestore_v3.Action action = 2; */ public Builder clearAction() { if (actionBuilder_ == null) { action_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { actionBuilder_.clear(); } return this; } /** * repeated .storage_onestore_v3.Action action = 2; */ public Builder removeAction(int index) { if (actionBuilder_ == null) { ensureActionIsMutable(); action_.remove(index); onChanged(); } else { actionBuilder_.remove(index); } return this; } /** * repeated .storage_onestore_v3.Action action = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreAction.Action.Builder getActionBuilder( int index) { return getActionFieldBuilder().getBuilder(index); } /** * repeated .storage_onestore_v3.Action action = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreAction.ActionOrBuilder getActionOrBuilder( int index) { if (actionBuilder_ == null) { return action_.get(index); } else { return actionBuilder_.getMessageOrBuilder(index); } } /** * repeated .storage_onestore_v3.Action action = 2; */ public java.util.List getActionOrBuilderList() { if (actionBuilder_ != null) { return actionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(action_); } } /** * repeated .storage_onestore_v3.Action action = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreAction.Action.Builder addActionBuilder() { return getActionFieldBuilder().addBuilder( com.google.storage.onestore.v3.proto2api.OnestoreAction.Action.getDefaultInstance()); } /** * repeated .storage_onestore_v3.Action action = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreAction.Action.Builder addActionBuilder( int index) { return getActionFieldBuilder().addBuilder( index, com.google.storage.onestore.v3.proto2api.OnestoreAction.Action.getDefaultInstance()); } /** * repeated .storage_onestore_v3.Action action = 2; */ public java.util.List getActionBuilderList() { return getActionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreAction.Action, com.google.storage.onestore.v3.proto2api.OnestoreAction.Action.Builder, com.google.storage.onestore.v3.proto2api.OnestoreAction.ActionOrBuilder> getActionFieldBuilder() { if (actionBuilder_ == null) { actionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreAction.Action, com.google.storage.onestore.v3.proto2api.OnestoreAction.Action.Builder, com.google.storage.onestore.v3.proto2api.OnestoreAction.ActionOrBuilder>( action_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); action_ = null; } return actionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.AddActionsRequest) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.AddActionsRequest) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AddActionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AddActionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.AddActionsResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * reserved
   * 
* * Protobuf type {@code apphosting_datastore_v3.AddActionsResponse} */ public static final class AddActionsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.AddActionsResponse) AddActionsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AddActionsResponse.newBuilder() to construct. private AddActionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AddActionsResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AddActionsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AddActionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AddActionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * reserved
     * 
* * Protobuf type {@code apphosting_datastore_v3.AddActionsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.AddActionsResponse) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AddActionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AddActionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_AddActionsResponse_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.AddActionsResponse) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.AddActionsResponse) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AddActionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.AddActionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BeginTransactionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.BeginTransactionRequest) com.google.protobuf.MessageOrBuilder { /** *
     * The app to create the transaction in.
     * 
* * required string app = 1; * @return Whether the app field is set. */ boolean hasApp(); /** *
     * The app to create the transaction in.
     * 
* * required string app = 1; * @return The app. */ java.lang.String getApp(); /** *
     * The app to create the transaction in.
     * 
* * required string app = 1; * @return The bytes for app. */ com.google.protobuf.ByteString getAppBytes(); /** *
     * If true, transactions can span (small) numbers of entity groups
     * (aka cross-group (XG) transactions)
     * 
* * optional bool allow_multiple_eg = 2 [default = false]; * @return Whether the allowMultipleEg field is set. */ boolean hasAllowMultipleEg(); /** *
     * If true, transactions can span (small) numbers of entity groups
     * (aka cross-group (XG) transactions)
     * 
* * optional bool allow_multiple_eg = 2 [default = false]; * @return The allowMultipleEg. */ boolean getAllowMultipleEg(); /** *
     * The database to create the transaction in.
     * 
* * optional string database_id = 4; * @return Whether the databaseId field is set. */ boolean hasDatabaseId(); /** *
     * The database to create the transaction in.
     * 
* * optional string database_id = 4; * @return The databaseId. */ java.lang.String getDatabaseId(); /** *
     * The database to create the transaction in.
     * 
* * optional string database_id = 4; * @return The bytes for databaseId. */ com.google.protobuf.ByteString getDatabaseIdBytes(); /** *
     * The mode of the transaction that will be created.
     * 
* * optional .apphosting_datastore_v3.BeginTransactionRequest.TransactionMode mode = 5 [default = UNKNOWN]; * @return Whether the mode field is set. */ boolean hasMode(); /** *
     * The mode of the transaction that will be created.
     * 
* * optional .apphosting_datastore_v3.BeginTransactionRequest.TransactionMode mode = 5 [default = UNKNOWN]; * @return The mode. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.TransactionMode getMode(); /** *
     * The previous transaction associated with this transaction.
     * Used for transaction retries to inform priority decisions.
     * 
* * optional .apphosting_datastore_v3.Transaction previous_transaction = 7; * @return Whether the previousTransaction field is set. */ boolean hasPreviousTransaction(); /** *
     * The previous transaction associated with this transaction.
     * Used for transaction retries to inform priority decisions.
     * 
* * optional .apphosting_datastore_v3.Transaction previous_transaction = 7; * @return The previousTransaction. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getPreviousTransaction(); /** *
     * The previous transaction associated with this transaction.
     * Used for transaction retries to inform priority decisions.
     * 
* * optional .apphosting_datastore_v3.Transaction previous_transaction = 7; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getPreviousTransactionOrBuilder(); } /** *
   * Next tag is 8
   * 
* * Protobuf type {@code apphosting_datastore_v3.BeginTransactionRequest} */ public static final class BeginTransactionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.BeginTransactionRequest) BeginTransactionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use BeginTransactionRequest.newBuilder() to construct. private BeginTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BeginTransactionRequest() { app_ = ""; databaseId_ = ""; mode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BeginTransactionRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_BeginTransactionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_BeginTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.Builder.class); } /** * Protobuf enum {@code apphosting_datastore_v3.BeginTransactionRequest.TransactionMode} */ public enum TransactionMode implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** *
       * The transaction will be used only for read operations.
       * 
* * READ_ONLY = 1; */ READ_ONLY(1), /** *
       * The transaction will be used for both read and write operations.
       * 
* * READ_WRITE = 2; */ READ_WRITE(2), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
       * The transaction will be used only for read operations.
       * 
* * READ_ONLY = 1; */ public static final int READ_ONLY_VALUE = 1; /** *
       * The transaction will be used for both read and write operations.
       * 
* * READ_WRITE = 2; */ public static final int READ_WRITE_VALUE = 2; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TransactionMode valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static TransactionMode forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return READ_ONLY; case 2: return READ_WRITE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< TransactionMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TransactionMode findValueByNumber(int number) { return TransactionMode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.getDescriptor().getEnumTypes().get(0); } private static final TransactionMode[] VALUES = values(); public static TransactionMode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private TransactionMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:apphosting_datastore_v3.BeginTransactionRequest.TransactionMode) } private int bitField0_; public static final int APP_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object app_ = ""; /** *
     * The app to create the transaction in.
     * 
* * required string app = 1; * @return Whether the app field is set. */ @java.lang.Override public boolean hasApp() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The app to create the transaction in.
     * 
* * required string app = 1; * @return The app. */ @java.lang.Override public java.lang.String getApp() { java.lang.Object ref = app_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { app_ = s; } return s; } } /** *
     * The app to create the transaction in.
     * 
* * required string app = 1; * @return The bytes for app. */ @java.lang.Override public com.google.protobuf.ByteString getAppBytes() { java.lang.Object ref = app_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); app_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALLOW_MULTIPLE_EG_FIELD_NUMBER = 2; private boolean allowMultipleEg_ = false; /** *
     * If true, transactions can span (small) numbers of entity groups
     * (aka cross-group (XG) transactions)
     * 
* * optional bool allow_multiple_eg = 2 [default = false]; * @return Whether the allowMultipleEg field is set. */ @java.lang.Override public boolean hasAllowMultipleEg() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * If true, transactions can span (small) numbers of entity groups
     * (aka cross-group (XG) transactions)
     * 
* * optional bool allow_multiple_eg = 2 [default = false]; * @return The allowMultipleEg. */ @java.lang.Override public boolean getAllowMultipleEg() { return allowMultipleEg_; } public static final int DATABASE_ID_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object databaseId_ = ""; /** *
     * The database to create the transaction in.
     * 
* * optional string database_id = 4; * @return Whether the databaseId field is set. */ @java.lang.Override public boolean hasDatabaseId() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The database to create the transaction in.
     * 
* * optional string database_id = 4; * @return The databaseId. */ @java.lang.Override public java.lang.String getDatabaseId() { java.lang.Object ref = databaseId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { databaseId_ = s; } return s; } } /** *
     * The database to create the transaction in.
     * 
* * optional string database_id = 4; * @return The bytes for databaseId. */ @java.lang.Override public com.google.protobuf.ByteString getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); databaseId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MODE_FIELD_NUMBER = 5; private int mode_ = 0; /** *
     * The mode of the transaction that will be created.
     * 
* * optional .apphosting_datastore_v3.BeginTransactionRequest.TransactionMode mode = 5 [default = UNKNOWN]; * @return Whether the mode field is set. */ @java.lang.Override public boolean hasMode() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * The mode of the transaction that will be created.
     * 
* * optional .apphosting_datastore_v3.BeginTransactionRequest.TransactionMode mode = 5 [default = UNKNOWN]; * @return The mode. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.TransactionMode getMode() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.TransactionMode result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.TransactionMode.forNumber(mode_); return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.TransactionMode.UNKNOWN : result; } public static final int PREVIOUS_TRANSACTION_FIELD_NUMBER = 7; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction previousTransaction_; /** *
     * The previous transaction associated with this transaction.
     * Used for transaction retries to inform priority decisions.
     * 
* * optional .apphosting_datastore_v3.Transaction previous_transaction = 7; * @return Whether the previousTransaction field is set. */ @java.lang.Override public boolean hasPreviousTransaction() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * The previous transaction associated with this transaction.
     * Used for transaction retries to inform priority decisions.
     * 
* * optional .apphosting_datastore_v3.Transaction previous_transaction = 7; * @return The previousTransaction. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getPreviousTransaction() { return previousTransaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : previousTransaction_; } /** *
     * The previous transaction associated with this transaction.
     * Used for transaction retries to inform priority decisions.
     * 
* * optional .apphosting_datastore_v3.Transaction previous_transaction = 7; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getPreviousTransactionOrBuilder() { return previousTransaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : previousTransaction_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasApp()) { memoizedIsInitialized = 0; return false; } if (hasPreviousTransaction()) { if (!getPreviousTransaction().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, app_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, allowMultipleEg_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, databaseId_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(5, mode_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(7, getPreviousTransaction()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, app_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, allowMultipleEg_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, databaseId_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, mode_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getPreviousTransaction()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest) obj; if (hasApp() != other.hasApp()) return false; if (hasApp()) { if (!getApp() .equals(other.getApp())) return false; } if (hasAllowMultipleEg() != other.hasAllowMultipleEg()) return false; if (hasAllowMultipleEg()) { if (getAllowMultipleEg() != other.getAllowMultipleEg()) return false; } if (hasDatabaseId() != other.hasDatabaseId()) return false; if (hasDatabaseId()) { if (!getDatabaseId() .equals(other.getDatabaseId())) return false; } if (hasMode() != other.hasMode()) return false; if (hasMode()) { if (mode_ != other.mode_) return false; } if (hasPreviousTransaction() != other.hasPreviousTransaction()) return false; if (hasPreviousTransaction()) { if (!getPreviousTransaction() .equals(other.getPreviousTransaction())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasApp()) { hash = (37 * hash) + APP_FIELD_NUMBER; hash = (53 * hash) + getApp().hashCode(); } if (hasAllowMultipleEg()) { hash = (37 * hash) + ALLOW_MULTIPLE_EG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowMultipleEg()); } if (hasDatabaseId()) { hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER; hash = (53 * hash) + getDatabaseId().hashCode(); } if (hasMode()) { hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; } if (hasPreviousTransaction()) { hash = (37 * hash) + PREVIOUS_TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getPreviousTransaction().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * Next tag is 8
     * 
* * Protobuf type {@code apphosting_datastore_v3.BeginTransactionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.BeginTransactionRequest) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_BeginTransactionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_BeginTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPreviousTransactionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; app_ = ""; allowMultipleEg_ = false; databaseId_ = ""; mode_ = 0; previousTransaction_ = null; if (previousTransactionBuilder_ != null) { previousTransactionBuilder_.dispose(); previousTransactionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_BeginTransactionRequest_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.app_ = app_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.allowMultipleEg_ = allowMultipleEg_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.databaseId_ = databaseId_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.mode_ = mode_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.previousTransaction_ = previousTransactionBuilder_ == null ? previousTransaction_ : previousTransactionBuilder_.build(); to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.getDefaultInstance()) return this; if (other.hasApp()) { app_ = other.app_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasAllowMultipleEg()) { setAllowMultipleEg(other.getAllowMultipleEg()); } if (other.hasDatabaseId()) { databaseId_ = other.databaseId_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasMode()) { setMode(other.getMode()); } if (other.hasPreviousTransaction()) { mergePreviousTransaction(other.getPreviousTransaction()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasApp()) { return false; } if (hasPreviousTransaction()) { if (!getPreviousTransaction().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { app_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { allowMultipleEg_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 34: { databaseId_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 34 case 40: { int tmpRaw = input.readEnum(); com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.TransactionMode tmpValue = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.TransactionMode.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(5, tmpRaw); } else { mode_ = tmpRaw; bitField0_ |= 0x00000008; } break; } // case 40 case 58: { input.readMessage( getPreviousTransactionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object app_ = ""; /** *
       * The app to create the transaction in.
       * 
* * required string app = 1; * @return Whether the app field is set. */ public boolean hasApp() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The app to create the transaction in.
       * 
* * required string app = 1; * @return The app. */ public java.lang.String getApp() { java.lang.Object ref = app_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { app_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * The app to create the transaction in.
       * 
* * required string app = 1; * @return The bytes for app. */ public com.google.protobuf.ByteString getAppBytes() { java.lang.Object ref = app_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); app_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The app to create the transaction in.
       * 
* * required string app = 1; * @param value The app to set. * @return This builder for chaining. */ public Builder setApp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } app_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The app to create the transaction in.
       * 
* * required string app = 1; * @return This builder for chaining. */ public Builder clearApp() { app_ = getDefaultInstance().getApp(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The app to create the transaction in.
       * 
* * required string app = 1; * @param value The bytes for app to set. * @return This builder for chaining. */ public Builder setAppBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } app_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private boolean allowMultipleEg_ ; /** *
       * If true, transactions can span (small) numbers of entity groups
       * (aka cross-group (XG) transactions)
       * 
* * optional bool allow_multiple_eg = 2 [default = false]; * @return Whether the allowMultipleEg field is set. */ @java.lang.Override public boolean hasAllowMultipleEg() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * If true, transactions can span (small) numbers of entity groups
       * (aka cross-group (XG) transactions)
       * 
* * optional bool allow_multiple_eg = 2 [default = false]; * @return The allowMultipleEg. */ @java.lang.Override public boolean getAllowMultipleEg() { return allowMultipleEg_; } /** *
       * If true, transactions can span (small) numbers of entity groups
       * (aka cross-group (XG) transactions)
       * 
* * optional bool allow_multiple_eg = 2 [default = false]; * @param value The allowMultipleEg to set. * @return This builder for chaining. */ public Builder setAllowMultipleEg(boolean value) { allowMultipleEg_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * If true, transactions can span (small) numbers of entity groups
       * (aka cross-group (XG) transactions)
       * 
* * optional bool allow_multiple_eg = 2 [default = false]; * @return This builder for chaining. */ public Builder clearAllowMultipleEg() { bitField0_ = (bitField0_ & ~0x00000002); allowMultipleEg_ = false; onChanged(); return this; } private java.lang.Object databaseId_ = ""; /** *
       * The database to create the transaction in.
       * 
* * optional string database_id = 4; * @return Whether the databaseId field is set. */ public boolean hasDatabaseId() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * The database to create the transaction in.
       * 
* * optional string database_id = 4; * @return The databaseId. */ public java.lang.String getDatabaseId() { java.lang.Object ref = databaseId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { databaseId_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * The database to create the transaction in.
       * 
* * optional string database_id = 4; * @return The bytes for databaseId. */ public com.google.protobuf.ByteString getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); databaseId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The database to create the transaction in.
       * 
* * optional string database_id = 4; * @param value The databaseId to set. * @return This builder for chaining. */ public Builder setDatabaseId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The database to create the transaction in.
       * 
* * optional string database_id = 4; * @return This builder for chaining. */ public Builder clearDatabaseId() { databaseId_ = getDefaultInstance().getDatabaseId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * The database to create the transaction in.
       * 
* * optional string database_id = 4; * @param value The bytes for databaseId to set. * @return This builder for chaining. */ public Builder setDatabaseIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private int mode_ = 0; /** *
       * The mode of the transaction that will be created.
       * 
* * optional .apphosting_datastore_v3.BeginTransactionRequest.TransactionMode mode = 5 [default = UNKNOWN]; * @return Whether the mode field is set. */ @java.lang.Override public boolean hasMode() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * The mode of the transaction that will be created.
       * 
* * optional .apphosting_datastore_v3.BeginTransactionRequest.TransactionMode mode = 5 [default = UNKNOWN]; * @return The mode. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.TransactionMode getMode() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.TransactionMode result = com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.TransactionMode.forNumber(mode_); return result == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.TransactionMode.UNKNOWN : result; } /** *
       * The mode of the transaction that will be created.
       * 
* * optional .apphosting_datastore_v3.BeginTransactionRequest.TransactionMode mode = 5 [default = UNKNOWN]; * @param value The mode to set. * @return This builder for chaining. */ public Builder setMode(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest.TransactionMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; mode_ = value.getNumber(); onChanged(); return this; } /** *
       * The mode of the transaction that will be created.
       * 
* * optional .apphosting_datastore_v3.BeginTransactionRequest.TransactionMode mode = 5 [default = UNKNOWN]; * @return This builder for chaining. */ public Builder clearMode() { bitField0_ = (bitField0_ & ~0x00000008); mode_ = 0; onChanged(); return this; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction previousTransaction_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder> previousTransactionBuilder_; /** *
       * The previous transaction associated with this transaction.
       * Used for transaction retries to inform priority decisions.
       * 
* * optional .apphosting_datastore_v3.Transaction previous_transaction = 7; * @return Whether the previousTransaction field is set. */ public boolean hasPreviousTransaction() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * The previous transaction associated with this transaction.
       * Used for transaction retries to inform priority decisions.
       * 
* * optional .apphosting_datastore_v3.Transaction previous_transaction = 7; * @return The previousTransaction. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction getPreviousTransaction() { if (previousTransactionBuilder_ == null) { return previousTransaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : previousTransaction_; } else { return previousTransactionBuilder_.getMessage(); } } /** *
       * The previous transaction associated with this transaction.
       * Used for transaction retries to inform priority decisions.
       * 
* * optional .apphosting_datastore_v3.Transaction previous_transaction = 7; */ public Builder setPreviousTransaction(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction value) { if (previousTransactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } previousTransaction_ = value; } else { previousTransactionBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The previous transaction associated with this transaction.
       * Used for transaction retries to inform priority decisions.
       * 
* * optional .apphosting_datastore_v3.Transaction previous_transaction = 7; */ public Builder setPreviousTransaction( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder builderForValue) { if (previousTransactionBuilder_ == null) { previousTransaction_ = builderForValue.build(); } else { previousTransactionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The previous transaction associated with this transaction.
       * Used for transaction retries to inform priority decisions.
       * 
* * optional .apphosting_datastore_v3.Transaction previous_transaction = 7; */ public Builder mergePreviousTransaction(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction value) { if (previousTransactionBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && previousTransaction_ != null && previousTransaction_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance()) { getPreviousTransactionBuilder().mergeFrom(value); } else { previousTransaction_ = value; } } else { previousTransactionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The previous transaction associated with this transaction.
       * Used for transaction retries to inform priority decisions.
       * 
* * optional .apphosting_datastore_v3.Transaction previous_transaction = 7; */ public Builder clearPreviousTransaction() { bitField0_ = (bitField0_ & ~0x00000010); previousTransaction_ = null; if (previousTransactionBuilder_ != null) { previousTransactionBuilder_.dispose(); previousTransactionBuilder_ = null; } onChanged(); return this; } /** *
       * The previous transaction associated with this transaction.
       * Used for transaction retries to inform priority decisions.
       * 
* * optional .apphosting_datastore_v3.Transaction previous_transaction = 7; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder getPreviousTransactionBuilder() { bitField0_ |= 0x00000010; onChanged(); return getPreviousTransactionFieldBuilder().getBuilder(); } /** *
       * The previous transaction associated with this transaction.
       * Used for transaction retries to inform priority decisions.
       * 
* * optional .apphosting_datastore_v3.Transaction previous_transaction = 7; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getPreviousTransactionOrBuilder() { if (previousTransactionBuilder_ != null) { return previousTransactionBuilder_.getMessageOrBuilder(); } else { return previousTransaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : previousTransaction_; } } /** *
       * The previous transaction associated with this transaction.
       * Used for transaction retries to inform priority decisions.
       * 
* * optional .apphosting_datastore_v3.Transaction previous_transaction = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder> getPreviousTransactionFieldBuilder() { if (previousTransactionBuilder_ == null) { previousTransactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder>( getPreviousTransaction(), getParentForChildren(), isClean()); previousTransaction_ = null; } return previousTransactionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.BeginTransactionRequest) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.BeginTransactionRequest) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BeginTransactionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.BeginTransactionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CommitResponse) com.google.protobuf.MessageOrBuilder { /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return Whether the cost field is set. */ boolean hasCost(); /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return The cost. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost(); /** * optional .apphosting_datastore_v3.Cost cost = 1; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder(); /** * repeated group Version = 3 { ... } */ java.util.List getVersionList(); /** * repeated group Version = 3 { ... } */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version getVersion(int index); /** * repeated group Version = 3 { ... } */ int getVersionCount(); /** * repeated group Version = 3 { ... } */ java.util.List getVersionOrBuilderList(); /** * repeated group Version = 3 { ... } */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.VersionOrBuilder getVersionOrBuilder( int index); } /** * Protobuf type {@code apphosting_datastore_v3.CommitResponse} */ public static final class CommitResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CommitResponse) CommitResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CommitResponse.newBuilder() to construct. private CommitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitResponse() { version_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommitResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CommitResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CommitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Builder.class); } public interface VersionOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.CommitResponse.Version) com.google.protobuf.MessageOrBuilder { /** *
       * NOTE: despite the "root_" prefix, this field holds the entity key,
       * one for each unique entity written.
       * 
* * required .storage_onestore_v3.Reference root_entity_key = 4; * @return Whether the rootEntityKey field is set. */ boolean hasRootEntityKey(); /** *
       * NOTE: despite the "root_" prefix, this field holds the entity key,
       * one for each unique entity written.
       * 
* * required .storage_onestore_v3.Reference root_entity_key = 4; * @return The rootEntityKey. */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getRootEntityKey(); /** *
       * NOTE: despite the "root_" prefix, this field holds the entity key,
       * one for each unique entity written.
       * 
* * required .storage_onestore_v3.Reference root_entity_key = 4; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getRootEntityKeyOrBuilder(); /** * required int64 version = 5; * @return Whether the version field is set. */ boolean hasVersion(); /** * required int64 version = 5; * @return The version. */ long getVersion(); } /** * Protobuf type {@code apphosting_datastore_v3.CommitResponse.Version} */ public static final class Version extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.CommitResponse.Version) VersionOrBuilder { private static final long serialVersionUID = 0L; // Use Version.newBuilder() to construct. private Version(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Version() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Version(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CommitResponse_Version_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CommitResponse_Version_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.Builder.class); } private int bitField0_; public static final int ROOT_ENTITY_KEY_FIELD_NUMBER = 4; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference rootEntityKey_; /** *
       * NOTE: despite the "root_" prefix, this field holds the entity key,
       * one for each unique entity written.
       * 
* * required .storage_onestore_v3.Reference root_entity_key = 4; * @return Whether the rootEntityKey field is set. */ @java.lang.Override public boolean hasRootEntityKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * NOTE: despite the "root_" prefix, this field holds the entity key,
       * one for each unique entity written.
       * 
* * required .storage_onestore_v3.Reference root_entity_key = 4; * @return The rootEntityKey. */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getRootEntityKey() { return rootEntityKey_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : rootEntityKey_; } /** *
       * NOTE: despite the "root_" prefix, this field holds the entity key,
       * one for each unique entity written.
       * 
* * required .storage_onestore_v3.Reference root_entity_key = 4; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getRootEntityKeyOrBuilder() { return rootEntityKey_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : rootEntityKey_; } public static final int VERSION_FIELD_NUMBER = 5; private long version_ = 0L; /** * required int64 version = 5; * @return Whether the version field is set. */ @java.lang.Override public boolean hasVersion() { return ((bitField0_ & 0x00000002) != 0); } /** * required int64 version = 5; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasRootEntityKey()) { memoizedIsInitialized = 0; return false; } if (!hasVersion()) { memoizedIsInitialized = 0; return false; } if (!getRootEntityKey().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getRootEntityKey()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(5, version_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRootEntityKey()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, version_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version) obj; if (hasRootEntityKey() != other.hasRootEntityKey()) return false; if (hasRootEntityKey()) { if (!getRootEntityKey() .equals(other.getRootEntityKey())) return false; } if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { if (getVersion() != other.getVersion()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRootEntityKey()) { hash = (37 * hash) + ROOT_ENTITY_KEY_FIELD_NUMBER; hash = (53 * hash) + getRootEntityKey().hashCode(); } if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version 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.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version 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.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version 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.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.CommitResponse.Version} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CommitResponse.Version) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.VersionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CommitResponse_Version_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CommitResponse_Version_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRootEntityKeyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; rootEntityKey_ = null; if (rootEntityKeyBuilder_ != null) { rootEntityKeyBuilder_.dispose(); rootEntityKeyBuilder_ = null; } version_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CommitResponse_Version_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.rootEntityKey_ = rootEntityKeyBuilder_ == null ? rootEntityKey_ : rootEntityKeyBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.version_ = version_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.getDefaultInstance()) return this; if (other.hasRootEntityKey()) { mergeRootEntityKey(other.getRootEntityKey()); } if (other.hasVersion()) { setVersion(other.getVersion()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasRootEntityKey()) { return false; } if (!hasVersion()) { return false; } if (!getRootEntityKey().isInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 34: { input.readMessage( getRootEntityKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 34 case 40: { version_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference rootEntityKey_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> rootEntityKeyBuilder_; /** *
         * NOTE: despite the "root_" prefix, this field holds the entity key,
         * one for each unique entity written.
         * 
* * required .storage_onestore_v3.Reference root_entity_key = 4; * @return Whether the rootEntityKey field is set. */ public boolean hasRootEntityKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * NOTE: despite the "root_" prefix, this field holds the entity key,
         * one for each unique entity written.
         * 
* * required .storage_onestore_v3.Reference root_entity_key = 4; * @return The rootEntityKey. */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getRootEntityKey() { if (rootEntityKeyBuilder_ == null) { return rootEntityKey_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : rootEntityKey_; } else { return rootEntityKeyBuilder_.getMessage(); } } /** *
         * NOTE: despite the "root_" prefix, this field holds the entity key,
         * one for each unique entity written.
         * 
* * required .storage_onestore_v3.Reference root_entity_key = 4; */ public Builder setRootEntityKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (rootEntityKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rootEntityKey_ = value; } else { rootEntityKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * NOTE: despite the "root_" prefix, this field holds the entity key,
         * one for each unique entity written.
         * 
* * required .storage_onestore_v3.Reference root_entity_key = 4; */ public Builder setRootEntityKey( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (rootEntityKeyBuilder_ == null) { rootEntityKey_ = builderForValue.build(); } else { rootEntityKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * NOTE: despite the "root_" prefix, this field holds the entity key,
         * one for each unique entity written.
         * 
* * required .storage_onestore_v3.Reference root_entity_key = 4; */ public Builder mergeRootEntityKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (rootEntityKeyBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && rootEntityKey_ != null && rootEntityKey_ != com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()) { getRootEntityKeyBuilder().mergeFrom(value); } else { rootEntityKey_ = value; } } else { rootEntityKeyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * NOTE: despite the "root_" prefix, this field holds the entity key,
         * one for each unique entity written.
         * 
* * required .storage_onestore_v3.Reference root_entity_key = 4; */ public Builder clearRootEntityKey() { bitField0_ = (bitField0_ & ~0x00000001); rootEntityKey_ = null; if (rootEntityKeyBuilder_ != null) { rootEntityKeyBuilder_.dispose(); rootEntityKeyBuilder_ = null; } onChanged(); return this; } /** *
         * NOTE: despite the "root_" prefix, this field holds the entity key,
         * one for each unique entity written.
         * 
* * required .storage_onestore_v3.Reference root_entity_key = 4; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder getRootEntityKeyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRootEntityKeyFieldBuilder().getBuilder(); } /** *
         * NOTE: despite the "root_" prefix, this field holds the entity key,
         * one for each unique entity written.
         * 
* * required .storage_onestore_v3.Reference root_entity_key = 4; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getRootEntityKeyOrBuilder() { if (rootEntityKeyBuilder_ != null) { return rootEntityKeyBuilder_.getMessageOrBuilder(); } else { return rootEntityKey_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : rootEntityKey_; } } /** *
         * NOTE: despite the "root_" prefix, this field holds the entity key,
         * one for each unique entity written.
         * 
* * required .storage_onestore_v3.Reference root_entity_key = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> getRootEntityKeyFieldBuilder() { if (rootEntityKeyBuilder_ == null) { rootEntityKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>( getRootEntityKey(), getParentForChildren(), isClean()); rootEntityKey_ = null; } return rootEntityKeyBuilder_; } private long version_ ; /** * required int64 version = 5; * @return Whether the version field is set. */ @java.lang.Override public boolean hasVersion() { return ((bitField0_ & 0x00000002) != 0); } /** * required int64 version = 5; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } /** * required int64 version = 5; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(long value) { version_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * required int64 version = 5; * @return This builder for chaining. */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000002); version_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.CommitResponse.Version) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CommitResponse.Version) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Version parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int COST_FIELD_NUMBER = 1; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost cost_; /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return Whether the cost field is set. */ @java.lang.Override public boolean hasCost() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return The cost. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost() { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder() { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } public static final int VERSION_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List version_; /** * repeated group Version = 3 { ... } */ @java.lang.Override public java.util.List getVersionList() { return version_; } /** * repeated group Version = 3 { ... } */ @java.lang.Override public java.util.List getVersionOrBuilderList() { return version_; } /** * repeated group Version = 3 { ... } */ @java.lang.Override public int getVersionCount() { return version_.size(); } /** * repeated group Version = 3 { ... } */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version getVersion(int index) { return version_.get(index); } /** * repeated group Version = 3 { ... } */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.VersionOrBuilder getVersionOrBuilder( int index) { return version_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getVersionCount(); i++) { if (!getVersion(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCost()); } for (int i = 0; i < version_.size(); i++) { output.writeGroup(3, version_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCost()); } for (int i = 0; i < version_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(3, version_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse) obj; if (hasCost() != other.hasCost()) return false; if (hasCost()) { if (!getCost() .equals(other.getCost())) return false; } if (!getVersionList() .equals(other.getVersionList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCost()) { hash = (37 * hash) + COST_FIELD_NUMBER; hash = (53 * hash) + getCost().hashCode(); } if (getVersionCount() > 0) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersionList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.CommitResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.CommitResponse) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CommitResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CommitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCostFieldBuilder(); getVersionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; cost_ = null; if (costBuilder_ != null) { costBuilder_.dispose(); costBuilder_ = null; } if (versionBuilder_ == null) { version_ = java.util.Collections.emptyList(); } else { version_ = null; versionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_CommitResponse_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse result) { if (versionBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { version_ = java.util.Collections.unmodifiableList(version_); bitField0_ = (bitField0_ & ~0x00000002); } result.version_ = version_; } else { result.version_ = versionBuilder_.build(); } } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.cost_ = costBuilder_ == null ? cost_ : costBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.getDefaultInstance()) return this; if (other.hasCost()) { mergeCost(other.getCost()); } if (versionBuilder_ == null) { if (!other.version_.isEmpty()) { if (version_.isEmpty()) { version_ = other.version_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureVersionIsMutable(); version_.addAll(other.version_); } onChanged(); } } else { if (!other.version_.isEmpty()) { if (versionBuilder_.isEmpty()) { versionBuilder_.dispose(); versionBuilder_ = null; version_ = other.version_; bitField0_ = (bitField0_ & ~0x00000002); versionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVersionFieldBuilder() : null; } else { versionBuilder_.addAllMessages(other.version_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getVersionCount(); i++) { if (!getVersion(i).isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getCostFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 27: { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version m = input.readGroup(3, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.PARSER, extensionRegistry); if (versionBuilder_ == null) { ensureVersionIsMutable(); version_.add(m); } else { versionBuilder_.addMessage(m); } break; } // case 27 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost cost_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder> costBuilder_; /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return Whether the cost field is set. */ public boolean hasCost() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .apphosting_datastore_v3.Cost cost = 1; * @return The cost. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost getCost() { if (costBuilder_ == null) { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } else { return costBuilder_.getMessage(); } } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public Builder setCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost value) { if (costBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cost_ = value; } else { costBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public Builder setCost( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder builderForValue) { if (costBuilder_ == null) { cost_ = builderForValue.build(); } else { costBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public Builder mergeCost(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost value) { if (costBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && cost_ != null && cost_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance()) { getCostBuilder().mergeFrom(value); } else { cost_ = value; } } else { costBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public Builder clearCost() { bitField0_ = (bitField0_ & ~0x00000001); cost_ = null; if (costBuilder_ != null) { costBuilder_.dispose(); costBuilder_ = null; } onChanged(); return this; } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder getCostBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCostFieldBuilder().getBuilder(); } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder getCostOrBuilder() { if (costBuilder_ != null) { return costBuilder_.getMessageOrBuilder(); } else { return cost_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.getDefaultInstance() : cost_; } } /** * optional .apphosting_datastore_v3.Cost cost = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder> getCostFieldBuilder() { if (costBuilder_ == null) { costBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Cost.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CostOrBuilder>( getCost(), getParentForChildren(), isClean()); cost_ = null; } return costBuilder_; } private java.util.List version_ = java.util.Collections.emptyList(); private void ensureVersionIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { version_ = new java.util.ArrayList(version_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.VersionOrBuilder> versionBuilder_; /** * repeated group Version = 3 { ... } */ public java.util.List getVersionList() { if (versionBuilder_ == null) { return java.util.Collections.unmodifiableList(version_); } else { return versionBuilder_.getMessageList(); } } /** * repeated group Version = 3 { ... } */ public int getVersionCount() { if (versionBuilder_ == null) { return version_.size(); } else { return versionBuilder_.getCount(); } } /** * repeated group Version = 3 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version getVersion(int index) { if (versionBuilder_ == null) { return version_.get(index); } else { return versionBuilder_.getMessage(index); } } /** * repeated group Version = 3 { ... } */ public Builder setVersion( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVersionIsMutable(); version_.set(index, value); onChanged(); } else { versionBuilder_.setMessage(index, value); } return this; } /** * repeated group Version = 3 { ... } */ public Builder setVersion( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.Builder builderForValue) { if (versionBuilder_ == null) { ensureVersionIsMutable(); version_.set(index, builderForValue.build()); onChanged(); } else { versionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated group Version = 3 { ... } */ public Builder addVersion(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVersionIsMutable(); version_.add(value); onChanged(); } else { versionBuilder_.addMessage(value); } return this; } /** * repeated group Version = 3 { ... } */ public Builder addVersion( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVersionIsMutable(); version_.add(index, value); onChanged(); } else { versionBuilder_.addMessage(index, value); } return this; } /** * repeated group Version = 3 { ... } */ public Builder addVersion( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.Builder builderForValue) { if (versionBuilder_ == null) { ensureVersionIsMutable(); version_.add(builderForValue.build()); onChanged(); } else { versionBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated group Version = 3 { ... } */ public Builder addVersion( int index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.Builder builderForValue) { if (versionBuilder_ == null) { ensureVersionIsMutable(); version_.add(index, builderForValue.build()); onChanged(); } else { versionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated group Version = 3 { ... } */ public Builder addAllVersion( java.lang.Iterable values) { if (versionBuilder_ == null) { ensureVersionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, version_); onChanged(); } else { versionBuilder_.addAllMessages(values); } return this; } /** * repeated group Version = 3 { ... } */ public Builder clearVersion() { if (versionBuilder_ == null) { version_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { versionBuilder_.clear(); } return this; } /** * repeated group Version = 3 { ... } */ public Builder removeVersion(int index) { if (versionBuilder_ == null) { ensureVersionIsMutable(); version_.remove(index); onChanged(); } else { versionBuilder_.remove(index); } return this; } /** * repeated group Version = 3 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.Builder getVersionBuilder( int index) { return getVersionFieldBuilder().getBuilder(index); } /** * repeated group Version = 3 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.VersionOrBuilder getVersionOrBuilder( int index) { if (versionBuilder_ == null) { return version_.get(index); } else { return versionBuilder_.getMessageOrBuilder(index); } } /** * repeated group Version = 3 { ... } */ public java.util.List getVersionOrBuilderList() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(version_); } } /** * repeated group Version = 3 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.Builder addVersionBuilder() { return getVersionFieldBuilder().addBuilder( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.getDefaultInstance()); } /** * repeated group Version = 3 { ... } */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.Builder addVersionBuilder( int index) { return getVersionFieldBuilder().addBuilder( index, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.getDefaultInstance()); } /** * repeated group Version = 3 { ... } */ public java.util.List getVersionBuilderList() { return getVersionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.VersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { versionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.Version.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse.VersionOrBuilder>( version_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.CommitResponse) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.CommitResponse) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommitResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.CommitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetIndicesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.GetIndicesRequest) com.google.protobuf.MessageOrBuilder { /** * required string app_id = 1; * @return Whether the appId field is set. */ boolean hasAppId(); /** * required string app_id = 1; * @return The appId. */ java.lang.String getAppId(); /** * required string app_id = 1; * @return The bytes for appId. */ com.google.protobuf.ByteString getAppIdBytes(); /** * optional string database_id = 2; * @return Whether the databaseId field is set. */ boolean hasDatabaseId(); /** * optional string database_id = 2; * @return The databaseId. */ java.lang.String getDatabaseId(); /** * optional string database_id = 2; * @return The bytes for databaseId. */ com.google.protobuf.ByteString getDatabaseIdBytes(); } /** * Protobuf type {@code apphosting_datastore_v3.GetIndicesRequest} */ public static final class GetIndicesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.GetIndicesRequest) GetIndicesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetIndicesRequest.newBuilder() to construct. private GetIndicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetIndicesRequest() { appId_ = ""; databaseId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetIndicesRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetIndicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetIndicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest.Builder.class); } private int bitField0_; public static final int APP_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object appId_ = ""; /** * required string app_id = 1; * @return Whether the appId field is set. */ @java.lang.Override public boolean hasAppId() { return ((bitField0_ & 0x00000001) != 0); } /** * required string app_id = 1; * @return The appId. */ @java.lang.Override public java.lang.String getAppId() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { appId_ = s; } return s; } } /** * required string app_id = 1; * @return The bytes for appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATABASE_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object databaseId_ = ""; /** * optional string database_id = 2; * @return Whether the databaseId field is set. */ @java.lang.Override public boolean hasDatabaseId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string database_id = 2; * @return The databaseId. */ @java.lang.Override public java.lang.String getDatabaseId() { java.lang.Object ref = databaseId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { databaseId_ = s; } return s; } } /** * optional string database_id = 2; * @return The bytes for databaseId. */ @java.lang.Override public com.google.protobuf.ByteString getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); databaseId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasAppId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, appId_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, databaseId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, appId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, databaseId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest) obj; if (hasAppId() != other.hasAppId()) return false; if (hasAppId()) { if (!getAppId() .equals(other.getAppId())) return false; } if (hasDatabaseId() != other.hasDatabaseId()) return false; if (hasDatabaseId()) { if (!getDatabaseId() .equals(other.getDatabaseId())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAppId()) { hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); } if (hasDatabaseId()) { hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER; hash = (53 * hash) + getDatabaseId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest 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.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code apphosting_datastore_v3.GetIndicesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.GetIndicesRequest) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetIndicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetIndicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; appId_ = ""; databaseId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_GetIndicesRequest_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.appId_ = appId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.databaseId_ = databaseId_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest.getDefaultInstance()) return this; if (other.hasAppId()) { appId_ = other.appId_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasDatabaseId()) { databaseId_ = other.databaseId_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasAppId()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { appId_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { databaseId_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object appId_ = ""; /** * required string app_id = 1; * @return Whether the appId field is set. */ public boolean hasAppId() { return ((bitField0_ & 0x00000001) != 0); } /** * required string app_id = 1; * @return The appId. */ public java.lang.String getAppId() { java.lang.Object ref = appId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { appId_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string app_id = 1; * @return The bytes for appId. */ public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string app_id = 1; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } appId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string app_id = 1; * @return This builder for chaining. */ public Builder clearAppId() { appId_ = getDefaultInstance().getAppId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string app_id = 1; * @param value The bytes for appId to set. * @return This builder for chaining. */ public Builder setAppIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } appId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object databaseId_ = ""; /** * optional string database_id = 2; * @return Whether the databaseId field is set. */ public boolean hasDatabaseId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string database_id = 2; * @return The databaseId. */ public java.lang.String getDatabaseId() { java.lang.Object ref = databaseId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { databaseId_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string database_id = 2; * @return The bytes for databaseId. */ public com.google.protobuf.ByteString getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); databaseId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string database_id = 2; * @param value The databaseId to set. * @return This builder for chaining. */ public Builder setDatabaseId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string database_id = 2; * @return This builder for chaining. */ public Builder clearDatabaseId() { databaseId_ = getDefaultInstance().getDatabaseId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string database_id = 2; * @param value The bytes for databaseId to set. * @return This builder for chaining. */ public Builder setDatabaseIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } databaseId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.GetIndicesRequest) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.GetIndicesRequest) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetIndicesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.GetIndicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateIndexResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.UpdateIndexResponse) com.google.protobuf.MessageOrBuilder { /** * optional string type_url = 1; * @return Whether the typeUrl field is set. */ boolean hasTypeUrl(); /** * optional string type_url = 1; * @return The typeUrl. */ java.lang.String getTypeUrl(); /** * optional string type_url = 1; * @return The bytes for typeUrl. */ com.google.protobuf.ByteString getTypeUrlBytes(); /** * optional bytes value = 2; * @return Whether the value field is set. */ boolean hasValue(); /** * optional bytes value = 2; * @return The value. */ com.google.protobuf.ByteString getValue(); } /** *
   * UpdateIndexResponse contains an `any`-equivalent message to ease protocol
   * evolution in the AppEngine-based indexer. These fields are only populated
   * when the "v3 shim" handled the UpdateIndex call, and are unset otherwise.
   * See http://google3/google/protobuf/any.proto for instructions on the meaning
   * of the fields. See the service implementation to see supported messages. This
   * is not using the protobuf `any` type because non-datastore dependencies are
   * not supported by the custom build rules that support legacy AppEngine
   * runtimes.
   * Warning: This must match the well-known 'any' message definition so the
   * indexer can decode it (b/131182630).
   * 
* * Protobuf type {@code apphosting_datastore_v3.UpdateIndexResponse} */ public static final class UpdateIndexResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.UpdateIndexResponse) UpdateIndexResponseOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateIndexResponse.newBuilder() to construct. private UpdateIndexResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateIndexResponse() { typeUrl_ = ""; value_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateIndexResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_UpdateIndexResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_UpdateIndexResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse.Builder.class); } private int bitField0_; public static final int TYPE_URL_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object typeUrl_ = ""; /** * optional string type_url = 1; * @return Whether the typeUrl field is set. */ @java.lang.Override public boolean hasTypeUrl() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string type_url = 1; * @return The typeUrl. */ @java.lang.Override public java.lang.String getTypeUrl() { java.lang.Object ref = typeUrl_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { typeUrl_ = s; } return s; } } /** * optional string type_url = 1; * @return The bytes for typeUrl. */ @java.lang.Override public com.google.protobuf.ByteString getTypeUrlBytes() { java.lang.Object ref = typeUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, typeUrl_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, typeUrl_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse) obj; if (hasTypeUrl() != other.hasTypeUrl()) return false; if (hasTypeUrl()) { if (!getTypeUrl() .equals(other.getTypeUrl())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTypeUrl()) { hash = (37 * hash) + TYPE_URL_FIELD_NUMBER; hash = (53 * hash) + getTypeUrl().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse 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.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * UpdateIndexResponse contains an `any`-equivalent message to ease protocol
     * evolution in the AppEngine-based indexer. These fields are only populated
     * when the "v3 shim" handled the UpdateIndex call, and are unset otherwise.
     * See http://google3/google/protobuf/any.proto for instructions on the meaning
     * of the fields. See the service implementation to see supported messages. This
     * is not using the protobuf `any` type because non-datastore dependencies are
     * not supported by the custom build rules that support legacy AppEngine
     * runtimes.
     * Warning: This must match the well-known 'any' message definition so the
     * indexer can decode it (b/131182630).
     * 
* * Protobuf type {@code apphosting_datastore_v3.UpdateIndexResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.UpdateIndexResponse) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_UpdateIndexResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_UpdateIndexResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; typeUrl_ = ""; value_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_UpdateIndexResponse_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.typeUrl_ = typeUrl_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = value_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse.getDefaultInstance()) return this; if (other.hasTypeUrl()) { typeUrl_ = other.typeUrl_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { typeUrl_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { value_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object typeUrl_ = ""; /** * optional string type_url = 1; * @return Whether the typeUrl field is set. */ public boolean hasTypeUrl() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string type_url = 1; * @return The typeUrl. */ public java.lang.String getTypeUrl() { java.lang.Object ref = typeUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { typeUrl_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string type_url = 1; * @return The bytes for typeUrl. */ public com.google.protobuf.ByteString getTypeUrlBytes() { java.lang.Object ref = typeUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string type_url = 1; * @param value The typeUrl to set. * @return This builder for chaining. */ public Builder setTypeUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeUrl_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string type_url = 1; * @return This builder for chaining. */ public Builder clearTypeUrl() { typeUrl_ = getDefaultInstance().getTypeUrl(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string type_url = 1; * @param value The bytes for typeUrl to set. * @return This builder for chaining. */ public Builder setTypeUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } typeUrl_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } /** * optional bytes value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional bytes value = 2; * @return This builder for chaining. */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.UpdateIndexResponse) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.UpdateIndexResponse) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateIndexResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.UpdateIndexResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DatastoreService_3OrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting_datastore_v3.DatastoreService_3) com.google.protobuf.MessageOrBuilder { } /** *
   * This enum exists the Datastore V3 service definition use to live here and
   * provide it. Code in j/c/g/appengine/api/datastore/... uses it to dispatch
   * method calls. Since we can no longer have the Datastore Service defined in
   * this file (b/25600709) we recreate this enum to keep the existing code
   * working.  There is a test that verifies this enum has the same names as
   * the one in DatastoreV3Service.
   * 
* * Protobuf type {@code apphosting_datastore_v3.DatastoreService_3} */ public static final class DatastoreService_3 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting_datastore_v3.DatastoreService_3) DatastoreService_3OrBuilder { private static final long serialVersionUID = 0L; // Use DatastoreService_3.newBuilder() to construct. private DatastoreService_3(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DatastoreService_3() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DatastoreService_3(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_DatastoreService_3_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_DatastoreService_3_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3.Builder.class); } /** * Protobuf enum {@code apphosting_datastore_v3.DatastoreService_3.Method} */ public enum Method implements com.google.protobuf.ProtocolMessageEnum { /** * Get = 1; */ Get(1), /** * Put = 2; */ Put(2), /** * Touch = 3; */ Touch(3), /** * Delete = 4; */ Delete(4), /** * RunQuery = 5; */ RunQuery(5), /** * AddActions = 6; */ AddActions(6), /** * Next = 7; */ Next(7), /** * DeleteCursor = 8; */ DeleteCursor(8), /** * BeginTransaction = 9; */ BeginTransaction(9), /** * Commit = 10; */ Commit(10), /** * Rollback = 11; */ Rollback(11), /** * AllocateIds = 12; */ AllocateIds(12), /** * CreateIndex = 13; */ CreateIndex(13), /** * UpdateIndex = 14; */ UpdateIndex(14), /** * GetIndices = 15; */ GetIndices(15), /** * DeleteIndex = 16; */ DeleteIndex(16), ; /** * Get = 1; */ public static final int Get_VALUE = 1; /** * Put = 2; */ public static final int Put_VALUE = 2; /** * Touch = 3; */ public static final int Touch_VALUE = 3; /** * Delete = 4; */ public static final int Delete_VALUE = 4; /** * RunQuery = 5; */ public static final int RunQuery_VALUE = 5; /** * AddActions = 6; */ public static final int AddActions_VALUE = 6; /** * Next = 7; */ public static final int Next_VALUE = 7; /** * DeleteCursor = 8; */ public static final int DeleteCursor_VALUE = 8; /** * BeginTransaction = 9; */ public static final int BeginTransaction_VALUE = 9; /** * Commit = 10; */ public static final int Commit_VALUE = 10; /** * Rollback = 11; */ public static final int Rollback_VALUE = 11; /** * AllocateIds = 12; */ public static final int AllocateIds_VALUE = 12; /** * CreateIndex = 13; */ public static final int CreateIndex_VALUE = 13; /** * UpdateIndex = 14; */ public static final int UpdateIndex_VALUE = 14; /** * GetIndices = 15; */ public static final int GetIndices_VALUE = 15; /** * DeleteIndex = 16; */ public static final int DeleteIndex_VALUE = 16; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Method valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Method forNumber(int value) { switch (value) { case 1: return Get; case 2: return Put; case 3: return Touch; case 4: return Delete; case 5: return RunQuery; case 6: return AddActions; case 7: return Next; case 8: return DeleteCursor; case 9: return BeginTransaction; case 10: return Commit; case 11: return Rollback; case 12: return AllocateIds; case 13: return CreateIndex; case 14: return UpdateIndex; case 15: return GetIndices; case 16: return DeleteIndex; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Method> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Method findValueByNumber(int number) { return Method.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3.getDescriptor().getEnumTypes().get(0); } private static final Method[] VALUES = values(); public static Method valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Method(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:apphosting_datastore_v3.DatastoreService_3.Method) } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3)) { return super.equals(obj); } com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 other = (com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 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.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 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.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 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.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * This enum exists the Datastore V3 service definition use to live here and
     * provide it. Code in j/c/g/appengine/api/datastore/... uses it to dispatch
     * method calls. Since we can no longer have the Datastore Service defined in
     * this file (b/25600709) we recreate this enum to keep the existing code
     * working.  There is a test that verifies this enum has the same names as
     * the one in DatastoreV3Service.
     * 
* * Protobuf type {@code apphosting_datastore_v3.DatastoreService_3} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting_datastore_v3.DatastoreService_3) com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_DatastoreService_3_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_DatastoreService_3_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3.class, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3.Builder.class); } // Construct using com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.internal_static_apphosting_datastore_v3_DatastoreService_3_descriptor; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 getDefaultInstanceForType() { return com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 build() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 buildPartial() { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 result = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3) { return mergeFrom((com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 other) { if (other == com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:apphosting_datastore_v3.DatastoreService_3) } // @@protoc_insertion_point(class_scope:apphosting_datastore_v3.DatastoreService_3) private static final com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3(); } public static com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DatastoreService_3 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DatastoreService_3 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_Transaction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_Transaction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_Query_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_Query_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_Query_Filter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_Query_Filter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_Query_Order_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_Query_Order_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_RegionPoint_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_RegionPoint_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_CircleRegion_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_CircleRegion_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_RectangleRegion_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_RectangleRegion_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_GeoRegion_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_GeoRegion_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_CompiledQuery_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_CompiledQuery_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_CompiledQuery_PrimaryScan_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_CompiledQuery_PrimaryScan_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_CompiledQuery_MergeJoinScan_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_CompiledQuery_MergeJoinScan_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_CompiledQuery_EntityFilter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_CompiledQuery_EntityFilter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_CompiledCursor_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_CompiledCursor_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_CompiledCursor_Position_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_CompiledCursor_Position_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_CompiledCursor_Position_IndexValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_CompiledCursor_Position_IndexValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_Cursor_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_Cursor_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_Error_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_Error_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_Cost_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_Cost_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_Cost_CommitCost_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_Cost_CommitCost_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_GetRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_GetRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_GetResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_GetResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_GetResponse_Entity_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_GetResponse_Entity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_PutRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_PutRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_PutResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_PutResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_TouchRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_TouchRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_TouchResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_TouchResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_DeleteRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_DeleteRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_DeleteResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_DeleteResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_NextRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_NextRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_QueryResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_QueryResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_AllocateIdsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_AllocateIdsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_AllocateIdsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_AllocateIdsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_CompositeIndices_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_CompositeIndices_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_AddActionsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_AddActionsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_AddActionsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_AddActionsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_BeginTransactionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_BeginTransactionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_CommitResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_CommitResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_CommitResponse_Version_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_CommitResponse_Version_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_GetIndicesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_GetIndicesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_UpdateIndexResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_UpdateIndexResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_datastore_v3_DatastoreService_3_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_datastore_v3_DatastoreService_3_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\022datastore_v3.proto\022\027apphosting_datasto" + "re_v3\032\014action.proto\032\014entity.proto\032\016snaps" + "hot.proto\"\232\001\n\013Transaction\022\016\n\006handle\030\001 \002(" + "\006\022\013\n\003app\030\002 \002(\t\022\023\n\013database_id\030\006 \001(\t\022\033\n\014m" + "ark_changes\030\003 \001(\010:\005false\022<\n\017composite_in" + "dex\030\005 \003(\0132#.storage_onestore_v3.Composit" + "eIndex\"\331\013\n\005Query\022\013\n\003app\030\001 \002(\t\022\023\n\013databas" + "e_id\030* \001(\t\022\022\n\nname_space\030\035 \001(\t\022\014\n\004kind\030\003" + " \001(\t\0220\n\010ancestor\030\021 \001(\0132\036.storage_onestor" + "e_v3.Reference\022\017\n\007shallow\030+ \001(\010\0225\n\006filte" + "r\030\004 \003(\n2%.apphosting_datastore_v3.Query." + "Filter\022\024\n\014search_query\030\010 \001(\t\0223\n\005order\030\t " + "\003(\n2$.apphosting_datastore_v3.Query.Orde" + "r\0221\n\004hint\030\022 \001(\0162#.apphosting_datastore_v" + "3.Query.Hint\022\r\n\005count\030\027 \001(\005\022\021\n\006offset\030\014 " + "\001(\005:\0010\022\r\n\005limit\030\020 \001(\005\022@\n\017compiled_cursor" + "\030\036 \001(\0132\'.apphosting_datastore_v3.Compile" + "dCursor\022D\n\023end_compiled_cursor\030\037 \001(\0132\'.a" + "pphosting_datastore_v3.CompiledCursor\022<\n" + "\017composite_index\030\023 \003(\0132#.storage_onestor" + "e_v3.CompositeIndex\022#\n\024require_perfect_p" + "lan\030\024 \001(\010:\005false\022\030\n\tkeys_only\030\025 \001(\010:\005fal" + "se\0229\n\013transaction\030\026 \001(\0132$.apphosting_dat" + "astore_v3.Transaction\022\026\n\007compile\030\031 \001(\010:\005" + "false\022\023\n\013failover_ms\030\032 \001(\003\022\016\n\006strong\030 \001" + "(\010\022\025\n\rproperty_name\030! \003(\t\022\036\n\026group_by_pr" + "operty_name\030\" \003(\t\022\020\n\010distinct\030\030 \001(\010\022\035\n\025m" + "in_safe_time_seconds\030# \001(\003\022\031\n\021safe_repli" + "ca_name\030$ \003(\t\022 \n\016persist_offset\030% \001(\010:\004t" + "rueB\002\030\001\022\024\n\014read_time_us\030, \001(\003\032\325\002\n\006Filter" + "\022:\n\002op\030\006 \002(\0162..apphosting_datastore_v3.Q" + "uery.Filter.Operator\022/\n\010property\030\016 \003(\0132\035" + ".storage_onestore_v3.Property\0226\n\ngeo_reg" + "ion\030( \001(\0132\".apphosting_datastore_v3.GeoR" + "egion\"\245\001\n\010Operator\022\r\n\tLESS_THAN\020\001\022\026\n\022LES" + "S_THAN_OR_EQUAL\020\002\022\020\n\014GREATER_THAN\020\003\022\031\n\025G" + "REATER_THAN_OR_EQUAL\020\004\022\t\n\005EQUAL\020\005\022\006\n\002IN\020" + "\006\022\n\n\006EXISTS\020\007\022\027\n\023CONTAINED_IN_REGION\020\010\022\r" + "\n\tNOT_EQUAL\020\t\032\223\001\n\005Order\022\020\n\010property\030\n \002(" + "\t\022L\n\tdirection\030\013 \001(\0162..apphosting_datast" + "ore_v3.Query.Order.Direction:\tASCENDING\"" + "*\n\tDirection\022\r\n\tASCENDING\020\001\022\016\n\nDESCENDIN" + "G\020\002\"=\n\004Hint\022\017\n\013ORDER_FIRST\020\001\022\022\n\016ANCESTOR" + "_FIRST\020\002\022\020\n\014FILTER_FIRST\020\003\"2\n\013RegionPoin" + "t\022\020\n\010latitude\030\001 \002(\001\022\021\n\tlongitude\030\002 \002(\001\"[" + "\n\014CircleRegion\0224\n\006center\030\001 \002(\0132$.apphost" + "ing_datastore_v3.RegionPoint\022\025\n\rradius_m" + "eters\030\002 \002(\001\"\203\001\n\017RectangleRegion\0227\n\tsouth" + "west\030\001 \002(\0132$.apphosting_datastore_v3.Reg" + "ionPoint\0227\n\tnortheast\030\002 \002(\0132$.apphosting" + "_datastore_v3.RegionPoint\"\177\n\tGeoRegion\0225" + "\n\006circle\030\001 \001(\0132%.apphosting_datastore_v3" + ".CircleRegion\022;\n\trectangle\030\002 \001(\0132(.appho" + "sting_datastore_v3.RectangleRegion\"\316\006\n\rC" + "ompiledQuery\022G\n\013primaryscan\030\001 \002(\n22.apph" + "osting_datastore_v3.CompiledQuery.Primar" + "yScan\022K\n\rmergejoinscan\030\007 \003(\n24.apphostin" + "g_datastore_v3.CompiledQuery.MergeJoinSc" + "an\022-\n\tindex_def\030\025 \001(\0132\032.storage_onestore" + "_v3.Index\022\021\n\006offset\030\n \001(\005:\0010\022\r\n\005limit\030\013 " + "\001(\005\022\021\n\tkeys_only\030\014 \002(\010\022\025\n\rproperty_name\030" + "\030 \003(\t\022\033\n\023distinct_infix_size\030\031 \001(\005\022\027\n\017ke" + "y_path_length\030\033 \001(\005\022I\n\014entityfilter\030\r \001(" + "\n23.apphosting_datastore_v3.CompiledQuer" + "y.EntityFilter\022\022\n\nplan_label\030\032 \001(\t\032\325\001\n\013P" + "rimaryScan\022\022\n\nindex_name\030\002 \001(\t\022\021\n\tstart_" + "key\030\003 \001(\t\022\027\n\017start_inclusive\030\004 \001(\010\022\017\n\007en" + "d_key\030\005 \001(\t\022\025\n\rend_inclusive\030\006 \001(\010\022\033\n\023st" + "art_postfix_value\030\026 \003(\t\022\031\n\021end_postfix_v" + "alue\030\027 \003(\t\022&\n\036end_unapplied_log_timestam" + "p_us\030\023 \001(\003\032V\n\rMergeJoinScan\022\022\n\nindex_nam" + "e\030\010 \002(\t\022\024\n\014prefix_value\030\t \003(\t\022\033\n\014value_p" + "refix\030\024 \001(\010:\005false\032g\n\014EntityFilter\022\027\n\010di" + "stinct\030\016 \001(\010:\005false\022\014\n\004kind\030\021 \001(\t\0220\n\010anc" + "estor\030\022 \001(\0132\036.storage_onestore_v3.Refere" + "nce\"\232\004\n\016CompiledCursor\022F\n\010position\030\002 \001(\n" + "20.apphosting_datastore_v3.CompiledCurso" + "r.PositionB\002\030\001\022;\n\020postfix_position\030\001 \001(\013" + "2!.storage_onestore_v3.IndexPostfix\022=\n\021a" + "bsolute_position\030\003 \001(\0132\".storage_onestor" + "e_v3.IndexPosition\032\303\002\n\010Position\022\025\n\tstart" + "_key\030\033 \001(\tB\002\030\001\022S\n\nindexvalue\030\035 \003(\n2;.app" + "hosting_datastore_v3.CompiledCursor.Posi" + "tion.IndexValueB\002\030\001\022/\n\003key\030 \001(\0132\036.stora" + "ge_onestore_v3.ReferenceB\002\030\001\022!\n\017start_in" + "clusive\030\034 \001(\010:\004trueB\002\030\001\022\034\n\020before_ascend" + "ing\030! \001(\010B\002\030\001\032Y\n\nIndexValue\022\024\n\010property\030" + "\036 \001(\tB\002\030\001\0225\n\005value\030\037 \002(\0132\".storage_onest" + "ore_v3.PropertyValueB\002\030\001\":\n\006Cursor\022\016\n\006cu" + "rsor\030\001 \002(\006\022\013\n\003app\030\002 \001(\t\022\023\n\013database_id\030\003" + " \001(\t\"\237\003\n\005Error\"\225\003\n\tErrorCode\022\017\n\013BAD_REQU" + "EST\020\001\022\032\n\026CONCURRENT_TRANSACTION\020\002\022\022\n\016INT" + "ERNAL_ERROR\020\003\022\016\n\nNEED_INDEX\020\004\022\013\n\007TIMEOUT" + "\020\005\022\025\n\021PERMISSION_DENIED\020\006\022\022\n\016BIGTABLE_ER" + "ROR\020\007\022 \n\034COMMITTED_BUT_STILL_APPLYING\020\010\022" + "\027\n\023CAPABILITY_DISABLED\020\t\022\031\n\025TRY_ALTERNAT" + "E_BACKEND\020\n\022\025\n\021SAFE_TIME_TOO_OLD\020\013\022\026\n\022RE" + "SOURCE_EXHAUSTED\020\014\022\034\n\030SNAPSHOT_VERSION_T" + "OO_OLD\020\022\022\r\n\tNOT_FOUND\020\r\022\022\n\016ALREADY_EXIST" + "S\020\016\022\027\n\023FAILED_PRECONDITION\020\017\022\023\n\017UNAUTHEN" + "TICATED\020\020\022\013\n\007ABORTED\020\021\"\267\002\n\004Cost\022\024\n\014index" + "_writes\030\001 \001(\005\022\031\n\021index_write_bytes\030\002 \001(\005" + "\022\025\n\rentity_writes\030\003 \001(\005\022\032\n\022entity_write_" + "bytes\030\004 \001(\005\022<\n\ncommitcost\030\005 \001(\n2(.apphos" + "ting_datastore_v3.Cost.CommitCost\022!\n\031app" + "roximate_storage_delta\030\010 \001(\005\022\033\n\023id_seque" + "nce_updates\030\t \001(\005\032M\n\nCommitCost\022\035\n\025reque" + "sted_entity_puts\030\006 \001(\005\022 \n\030requested_enti" + "ty_deletes\030\007 \001(\005\"\270\001\n\nGetRequest\022+\n\003key\030\001" + " \003(\0132\036.storage_onestore_v3.Reference\0229\n\013" + "transaction\030\002 \001(\0132$.apphosting_datastore" + "_v3.Transaction\022\023\n\013failover_ms\030\003 \001(\003\022\016\n\006" + "strong\030\004 \001(\010\022\035\n\016allow_deferred\030\005 \001(\010:\005fa" + "lse\"\216\002\n\013GetResponse\022;\n\006entity\030\001 \003(\n2+.ap" + "phosting_datastore_v3.GetResponse.Entity" + "\0220\n\010deferred\030\005 \003(\0132\036.storage_onestore_v3" + ".Reference\022\026\n\010in_order\030\006 \001(\010:\004true\032x\n\006En" + "tity\0220\n\006entity\030\002 \001(\0132 .storage_onestore_" + "v3.EntityProto\022+\n\003key\030\004 \001(\0132\036.storage_on" + "estore_v3.Reference\022\017\n\007version\030\003 \001(\003\"\314\003\n" + "\nPutRequest\0220\n\006entity\030\001 \003(\0132 .storage_on" + "estore_v3.EntityProto\0229\n\013transaction\030\002 \001" + "(\0132$.apphosting_datastore_v3.Transaction" + "\022<\n\017composite_index\030\003 \003(\0132#.storage_ones" + "tore_v3.CompositeIndex\022\026\n\007trusted\030\004 \001(\010:" + "\005false\022\024\n\005force\030\007 \001(\010:\005false\022\033\n\014mark_cha" + "nges\030\010 \001(\010:\005false\022/\n\010snapshot\030\t \003(\0132\035.st" + "orage_onestore_v3.Snapshot\022Q\n\016auto_id_po" + "licy\030\n \001(\01620.apphosting_datastore_v3.Put" + "Request.AutoIdPolicy:\007CURRENT\022\027\n\017sequenc" + "e_number\030\014 \001(\003\"+\n\014AutoIdPolicy\022\013\n\007CURREN" + "T\020\000\022\016\n\nSEQUENTIAL\020\001\"x\n\013PutResponse\022+\n\003ke" + "y\030\001 \003(\0132\036.storage_onestore_v3.Reference\022" + "+\n\004cost\030\002 \001(\0132\035.apphosting_datastore_v3." + "Cost\022\017\n\007version\030\003 \003(\003\"\300\001\n\014TouchRequest\022+" + "\n\003key\030\001 \003(\0132\036.storage_onestore_v3.Refere" + "nce\022<\n\017composite_index\030\002 \003(\0132#.storage_o" + "nestore_v3.CompositeIndex\022\024\n\005force\030\003 \001(\010" + ":\005false\022/\n\010snapshot\030\t \003(\0132\035.storage_ones" + "tore_v3.Snapshot\"<\n\rTouchResponse\022+\n\004cos" + "t\030\001 \001(\0132\035.apphosting_datastore_v3.Cost\"\312" + "\002\n\rDeleteRequest\022+\n\003key\030\006 \003(\0132\036.storage_" + "onestore_v3.Reference\0229\n\013transaction\030\005 \001" + "(\0132$.apphosting_datastore_v3.Transaction" + "\022<\n\017composite_index\030\013 \003(\0132#.storage_ones" + "tore_v3.CompositeIndex\022\026\n\007trusted\030\004 \001(\010:" + "\005false\022\024\n\005force\030\007 \001(\010:\005false\022\033\n\014mark_cha" + "nges\030\010 \001(\010:\005false\022/\n\010snapshot\030\t \003(\0132\035.st" + "orage_onestore_v3.Snapshot\022\027\n\017sequence_n" + "umber\030\014 \001(\003\"N\n\016DeleteResponse\022+\n\004cost\030\001 " + "\001(\0132\035.apphosting_datastore_v3.Cost\022\017\n\007ve" + "rsion\030\003 \003(\003\"|\n\013NextRequest\022/\n\006cursor\030\001 \002" + "(\0132\037.apphosting_datastore_v3.Cursor\022\r\n\005c" + "ount\030\002 \001(\005\022\025\n\006offset\030\004 \001(\005:\0010B\002\030\001\022\026\n\007com" + "pile\030\003 \001(\010:\005false\"\273\004\n\013QueryResult\022/\n\006cur" + "sor\030\001 \001(\0132\037.apphosting_datastore_v3.Curs" + "or\0220\n\006result\030\002 \003(\0132 .storage_onestore_v3" + ".EntityProto\022\027\n\017skipped_results\030\007 \001(\005\022\024\n" + "\014more_results\030\003 \002(\010\022\021\n\tkeys_only\030\004 \001(\010\022\022" + "\n\nindex_only\030\t \001(\010\022\021\n\tsmall_ops\030\n \001(\010\022>\n" + "\016compiled_query\030\005 \001(\0132&.apphosting_datas" + "tore_v3.CompiledQuery\022@\n\017compiled_cursor" + "\030\006 \001(\0132\'.apphosting_datastore_v3.Compile" + "dCursor\0222\n\005index\030\010 \003(\0132#.storage_onestor" + "e_v3.CompositeIndex\022\017\n\007version\030\013 \003(\003\022G\n\026" + "result_compiled_cursor\030\014 \003(\0132\'.apphostin" + "g_datastore_v3.CompiledCursor\022P\n\037skipped" + "_results_compiled_cursor\030\r \001(\0132\'.apphost" + "ing_datastore_v3.CompiledCursor\"\253\001\n\022Allo" + "cateIdsRequest\0221\n\tmodel_key\030\001 \001(\0132\036.stor" + "age_onestore_v3.Reference\022\014\n\004size\030\002 \001(\003\022" + "\013\n\003max\030\003 \001(\003\022/\n\007reserve\030\005 \003(\0132\036.storage_" + "onestore_v3.Reference\022\026\n\007trusted\030\006 \001(\010:\005" + "false\"^\n\023AllocateIdsResponse\022\r\n\005start\030\001 " + "\002(\003\022\013\n\003end\030\002 \002(\003\022+\n\004cost\030\003 \001(\0132\035.apphost" + "ing_datastore_v3.Cost\"F\n\020CompositeIndice" + "s\0222\n\005index\030\001 \003(\0132#.storage_onestore_v3.C" + "ompositeIndex\"{\n\021AddActionsRequest\0229\n\013tr" + "ansaction\030\001 \002(\0132$.apphosting_datastore_v" + "3.Transaction\022+\n\006action\030\002 \003(\0132\033.storage_" + "onestore_v3.Action\"\024\n\022AddActionsResponse" + "\"\271\002\n\027BeginTransactionRequest\022\013\n\003app\030\001 \002(" + "\t\022 \n\021allow_multiple_eg\030\002 \001(\010:\005false\022\023\n\013d" + "atabase_id\030\004 \001(\t\022W\n\004mode\030\005 \001(\[email protected]" + "ing_datastore_v3.BeginTransactionRequest" + ".TransactionMode:\007UNKNOWN\022B\n\024previous_tr" + "ansaction\030\007 \001(\0132$.apphosting_datastore_v" + "3.Transaction\"=\n\017TransactionMode\022\013\n\007UNKN" + "OWN\020\000\022\r\n\tREAD_ONLY\020\001\022\016\n\nREAD_WRITE\020\002\"\324\001\n" + "\016CommitResponse\022+\n\004cost\030\001 \001(\0132\035.apphosti" + "ng_datastore_v3.Cost\022@\n\007version\030\003 \003(\n2/." + "apphosting_datastore_v3.CommitResponse.V" + "ersion\032S\n\007Version\0227\n\017root_entity_key\030\004 \002" + "(\0132\036.storage_onestore_v3.Reference\022\017\n\007ve" + "rsion\030\005 \002(\003\"8\n\021GetIndicesRequest\022\016\n\006app_" + "id\030\001 \002(\t\022\023\n\013database_id\030\002 \001(\t\"6\n\023UpdateI" + "ndexResponse\022\020\n\010type_url\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\014\"\206\002\n\022DatastoreService_3\"\357\001\n\006Method\022" + "\007\n\003Get\020\001\022\007\n\003Put\020\002\022\t\n\005Touch\020\003\022\n\n\006Delete\020\004" + "\022\014\n\010RunQuery\020\005\022\016\n\nAddActions\020\006\022\010\n\004Next\020\007" + "\022\020\n\014DeleteCursor\020\010\022\024\n\020BeginTransaction\020\t" + "\022\n\n\006Commit\020\n\022\014\n\010Rollback\020\013\022\017\n\013AllocateId" + "s\020\014\022\017\n\013CreateIndex\020\r\022\017\n\013UpdateIndex\020\016\022\016\n" + "\nGetIndices\020\017\022\017\n\013DeleteIndex\020\020B:\n)com.go" + "ogle.apphosting.datastore.proto2apiB\rDat" + "astoreV3Pb" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.storage.onestore.v3.proto2api.OnestoreAction.getDescriptor(), com.google.storage.onestore.v3.proto2api.OnestoreEntity.getDescriptor(), com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.getDescriptor(), }); internal_static_apphosting_datastore_v3_Transaction_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_apphosting_datastore_v3_Transaction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_Transaction_descriptor, new java.lang.String[] { "Handle", "App", "DatabaseId", "MarkChanges", "CompositeIndex", }); internal_static_apphosting_datastore_v3_Query_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_apphosting_datastore_v3_Query_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_Query_descriptor, new java.lang.String[] { "App", "DatabaseId", "NameSpace", "Kind", "Ancestor", "Shallow", "Filter", "SearchQuery", "Order", "Hint", "Count", "Offset", "Limit", "CompiledCursor", "EndCompiledCursor", "CompositeIndex", "RequirePerfectPlan", "KeysOnly", "Transaction", "Compile", "FailoverMs", "Strong", "PropertyName", "GroupByPropertyName", "Distinct", "MinSafeTimeSeconds", "SafeReplicaName", "PersistOffset", "ReadTimeUs", }); internal_static_apphosting_datastore_v3_Query_Filter_descriptor = internal_static_apphosting_datastore_v3_Query_descriptor.getNestedTypes().get(0); internal_static_apphosting_datastore_v3_Query_Filter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_Query_Filter_descriptor, new java.lang.String[] { "Op", "Property", "GeoRegion", }); internal_static_apphosting_datastore_v3_Query_Order_descriptor = internal_static_apphosting_datastore_v3_Query_descriptor.getNestedTypes().get(1); internal_static_apphosting_datastore_v3_Query_Order_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_Query_Order_descriptor, new java.lang.String[] { "Property", "Direction", }); internal_static_apphosting_datastore_v3_RegionPoint_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_apphosting_datastore_v3_RegionPoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_RegionPoint_descriptor, new java.lang.String[] { "Latitude", "Longitude", }); internal_static_apphosting_datastore_v3_CircleRegion_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_apphosting_datastore_v3_CircleRegion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_CircleRegion_descriptor, new java.lang.String[] { "Center", "RadiusMeters", }); internal_static_apphosting_datastore_v3_RectangleRegion_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_apphosting_datastore_v3_RectangleRegion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_RectangleRegion_descriptor, new java.lang.String[] { "Southwest", "Northeast", }); internal_static_apphosting_datastore_v3_GeoRegion_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_apphosting_datastore_v3_GeoRegion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_GeoRegion_descriptor, new java.lang.String[] { "Circle", "Rectangle", }); internal_static_apphosting_datastore_v3_CompiledQuery_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_apphosting_datastore_v3_CompiledQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_CompiledQuery_descriptor, new java.lang.String[] { "PrimaryScan", "MergeJoinScan", "IndexDef", "Offset", "Limit", "KeysOnly", "PropertyName", "DistinctInfixSize", "KeyPathLength", "EntityFilter", "PlanLabel", }); internal_static_apphosting_datastore_v3_CompiledQuery_PrimaryScan_descriptor = internal_static_apphosting_datastore_v3_CompiledQuery_descriptor.getNestedTypes().get(0); internal_static_apphosting_datastore_v3_CompiledQuery_PrimaryScan_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_CompiledQuery_PrimaryScan_descriptor, new java.lang.String[] { "IndexName", "StartKey", "StartInclusive", "EndKey", "EndInclusive", "StartPostfixValue", "EndPostfixValue", "EndUnappliedLogTimestampUs", }); internal_static_apphosting_datastore_v3_CompiledQuery_MergeJoinScan_descriptor = internal_static_apphosting_datastore_v3_CompiledQuery_descriptor.getNestedTypes().get(1); internal_static_apphosting_datastore_v3_CompiledQuery_MergeJoinScan_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_CompiledQuery_MergeJoinScan_descriptor, new java.lang.String[] { "IndexName", "PrefixValue", "ValuePrefix", }); internal_static_apphosting_datastore_v3_CompiledQuery_EntityFilter_descriptor = internal_static_apphosting_datastore_v3_CompiledQuery_descriptor.getNestedTypes().get(2); internal_static_apphosting_datastore_v3_CompiledQuery_EntityFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_CompiledQuery_EntityFilter_descriptor, new java.lang.String[] { "Distinct", "Kind", "Ancestor", }); internal_static_apphosting_datastore_v3_CompiledCursor_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_apphosting_datastore_v3_CompiledCursor_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_CompiledCursor_descriptor, new java.lang.String[] { "Position", "PostfixPosition", "AbsolutePosition", }); internal_static_apphosting_datastore_v3_CompiledCursor_Position_descriptor = internal_static_apphosting_datastore_v3_CompiledCursor_descriptor.getNestedTypes().get(0); internal_static_apphosting_datastore_v3_CompiledCursor_Position_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_CompiledCursor_Position_descriptor, new java.lang.String[] { "StartKey", "IndexValue", "Key", "StartInclusive", "BeforeAscending", }); internal_static_apphosting_datastore_v3_CompiledCursor_Position_IndexValue_descriptor = internal_static_apphosting_datastore_v3_CompiledCursor_Position_descriptor.getNestedTypes().get(0); internal_static_apphosting_datastore_v3_CompiledCursor_Position_IndexValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_CompiledCursor_Position_IndexValue_descriptor, new java.lang.String[] { "Property", "Value", }); internal_static_apphosting_datastore_v3_Cursor_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_apphosting_datastore_v3_Cursor_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_Cursor_descriptor, new java.lang.String[] { "Cursor", "App", "DatabaseId", }); internal_static_apphosting_datastore_v3_Error_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_apphosting_datastore_v3_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_Error_descriptor, new java.lang.String[] { }); internal_static_apphosting_datastore_v3_Cost_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_apphosting_datastore_v3_Cost_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_Cost_descriptor, new java.lang.String[] { "IndexWrites", "IndexWriteBytes", "EntityWrites", "EntityWriteBytes", "CommitCost", "ApproximateStorageDelta", "IdSequenceUpdates", }); internal_static_apphosting_datastore_v3_Cost_CommitCost_descriptor = internal_static_apphosting_datastore_v3_Cost_descriptor.getNestedTypes().get(0); internal_static_apphosting_datastore_v3_Cost_CommitCost_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_Cost_CommitCost_descriptor, new java.lang.String[] { "RequestedEntityPuts", "RequestedEntityDeletes", }); internal_static_apphosting_datastore_v3_GetRequest_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_apphosting_datastore_v3_GetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_GetRequest_descriptor, new java.lang.String[] { "Key", "Transaction", "FailoverMs", "Strong", "AllowDeferred", }); internal_static_apphosting_datastore_v3_GetResponse_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_apphosting_datastore_v3_GetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_GetResponse_descriptor, new java.lang.String[] { "Entity", "Deferred", "InOrder", }); internal_static_apphosting_datastore_v3_GetResponse_Entity_descriptor = internal_static_apphosting_datastore_v3_GetResponse_descriptor.getNestedTypes().get(0); internal_static_apphosting_datastore_v3_GetResponse_Entity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_GetResponse_Entity_descriptor, new java.lang.String[] { "Entity", "Key", "Version", }); internal_static_apphosting_datastore_v3_PutRequest_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_apphosting_datastore_v3_PutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_PutRequest_descriptor, new java.lang.String[] { "Entity", "Transaction", "CompositeIndex", "Trusted", "Force", "MarkChanges", "Snapshot", "AutoIdPolicy", "SequenceNumber", }); internal_static_apphosting_datastore_v3_PutResponse_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_apphosting_datastore_v3_PutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_PutResponse_descriptor, new java.lang.String[] { "Key", "Cost", "Version", }); internal_static_apphosting_datastore_v3_TouchRequest_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_apphosting_datastore_v3_TouchRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_TouchRequest_descriptor, new java.lang.String[] { "Key", "CompositeIndex", "Force", "Snapshot", }); internal_static_apphosting_datastore_v3_TouchResponse_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_apphosting_datastore_v3_TouchResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_TouchResponse_descriptor, new java.lang.String[] { "Cost", }); internal_static_apphosting_datastore_v3_DeleteRequest_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_apphosting_datastore_v3_DeleteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_DeleteRequest_descriptor, new java.lang.String[] { "Key", "Transaction", "CompositeIndex", "Trusted", "Force", "MarkChanges", "Snapshot", "SequenceNumber", }); internal_static_apphosting_datastore_v3_DeleteResponse_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_apphosting_datastore_v3_DeleteResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_DeleteResponse_descriptor, new java.lang.String[] { "Cost", "Version", }); internal_static_apphosting_datastore_v3_NextRequest_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_apphosting_datastore_v3_NextRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_NextRequest_descriptor, new java.lang.String[] { "Cursor", "Count", "Offset", "Compile", }); internal_static_apphosting_datastore_v3_QueryResult_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_apphosting_datastore_v3_QueryResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_QueryResult_descriptor, new java.lang.String[] { "Cursor", "Result", "SkippedResults", "MoreResults", "KeysOnly", "IndexOnly", "SmallOps", "CompiledQuery", "CompiledCursor", "Index", "Version", "ResultCompiledCursor", "SkippedResultsCompiledCursor", }); internal_static_apphosting_datastore_v3_AllocateIdsRequest_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_apphosting_datastore_v3_AllocateIdsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_AllocateIdsRequest_descriptor, new java.lang.String[] { "ModelKey", "Size", "Max", "Reserve", "Trusted", }); internal_static_apphosting_datastore_v3_AllocateIdsResponse_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_apphosting_datastore_v3_AllocateIdsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_AllocateIdsResponse_descriptor, new java.lang.String[] { "Start", "End", "Cost", }); internal_static_apphosting_datastore_v3_CompositeIndices_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_apphosting_datastore_v3_CompositeIndices_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_CompositeIndices_descriptor, new java.lang.String[] { "Index", }); internal_static_apphosting_datastore_v3_AddActionsRequest_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_apphosting_datastore_v3_AddActionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_AddActionsRequest_descriptor, new java.lang.String[] { "Transaction", "Action", }); internal_static_apphosting_datastore_v3_AddActionsResponse_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_apphosting_datastore_v3_AddActionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_AddActionsResponse_descriptor, new java.lang.String[] { }); internal_static_apphosting_datastore_v3_BeginTransactionRequest_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_apphosting_datastore_v3_BeginTransactionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_BeginTransactionRequest_descriptor, new java.lang.String[] { "App", "AllowMultipleEg", "DatabaseId", "Mode", "PreviousTransaction", }); internal_static_apphosting_datastore_v3_CommitResponse_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_apphosting_datastore_v3_CommitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_CommitResponse_descriptor, new java.lang.String[] { "Cost", "Version", }); internal_static_apphosting_datastore_v3_CommitResponse_Version_descriptor = internal_static_apphosting_datastore_v3_CommitResponse_descriptor.getNestedTypes().get(0); internal_static_apphosting_datastore_v3_CommitResponse_Version_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_CommitResponse_Version_descriptor, new java.lang.String[] { "RootEntityKey", "Version", }); internal_static_apphosting_datastore_v3_GetIndicesRequest_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_apphosting_datastore_v3_GetIndicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_GetIndicesRequest_descriptor, new java.lang.String[] { "AppId", "DatabaseId", }); internal_static_apphosting_datastore_v3_UpdateIndexResponse_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_apphosting_datastore_v3_UpdateIndexResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_UpdateIndexResponse_descriptor, new java.lang.String[] { "TypeUrl", "Value", }); internal_static_apphosting_datastore_v3_DatastoreService_3_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_apphosting_datastore_v3_DatastoreService_3_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_datastore_v3_DatastoreService_3_descriptor, new java.lang.String[] { }); com.google.storage.onestore.v3.proto2api.OnestoreAction.getDescriptor(); com.google.storage.onestore.v3.proto2api.OnestoreEntity.getDescriptor(); com.google.storage.onestore.v3.proto2api.OnestoreSnapshot.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy