Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
    // Generated by the protocol buffer compiler.  DO NOT EDIT!
    // source: datastore_v1.proto
    
    package com.google.api.services.datastore;
    
    public final class DatastoreV1 {
      private DatastoreV1() {}
      public static void registerAllExtensions(
          com.google.protobuf.ExtensionRegistry registry) {
     }
     public interface PartitionIdOrBuilder
         extends com.google.protobuf.MessageOrBuilder {
   
       // optional string dataset_id = 3;
       
optional string dataset_id = 3;
 The dataset ID.
 
   
       boolean hasDatasetId();
    
optional string dataset_id = 3;
 The dataset ID.
 
   
       java.lang.String getDatasetId();
    
optional string dataset_id = 3;
 The dataset ID.
 
   
           getDatasetIdBytes();
   
       // optional string namespace = 4;
       
optional string namespace = 4;
 The namespace.
 
   
       boolean hasNamespace();
    
optional string namespace = 4;
 The namespace.
 
   
       java.lang.String getNamespace();
    
optional string namespace = 4;
 The namespace.
 
   
           getNamespaceBytes();
     }
  
Protobuf type api.services.datastore.PartitionId
 An identifier for a particular subset of entities.

 Entities are partitioned into various subsets, each used by different
 datasets and different namespaces within a dataset and so forth.

 All input partition IDs are normalized before use.
 A partition ID is normalized as follows:
   If the partition ID is unset, replace it with an empty partition ID.
   If the partition ID has no dataset ID, assign it the context dataset ID.

 A partition ID is empty if all of its fields are unset.

 Partition dimension:
 A dimension may be unset.
 A dimension's value must never contain "!".
 A dimension's value must never be "".
 If the value of any dimension matches regex "__.*__",
 the partition is reserved/read-only.
 A reserved/read-only partition ID is forbidden in certain documented contexts.
 
   
     public static final class PartitionId extends
         implements PartitionIdOrBuilder {
       // Use PartitionId.newBuilder() to construct.
       private PartitionId(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
         super(builder);
         this. = builder.getUnknownFields();
      }
      private PartitionId(boolean noInit) { this. = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
  
      private static final PartitionId defaultInstance;
      public static PartitionId getDefaultInstance() {
        return ;
      }
  
      public PartitionId getDefaultInstanceForType() {
        return ;
      }
  
      private final com.google.protobuf.UnknownFieldSet unknownFields;
      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
          getUnknownFields() {
        return this.;
      }
      private PartitionId(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        initFields();
        int mutable_bitField0_ = 0;
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              default: {
                if (!parseUnknownField(inputunknownFields,
                                       extensionRegistrytag)) {
                  done = true;
                }
                break;
              }
              case 26: {
                 |= 0x00000001;
                 = input.readBytes();
                break;
              }
              case 34: {
                 |= 0x00000002;
                 = input.readBytes();
                break;
              }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(
              e.getMessage()).setUnfinishedMessage(this);
        } finally {
          this. = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
      }
  
          internalGetFieldAccessorTable() {
            .ensureFieldAccessorsInitialized(
      }
  
      public static com.google.protobuf.Parser<PartitionIdPARSER =
          new com.google.protobuf.AbstractParser<PartitionId>() {
        public PartitionId parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new PartitionId(inputextensionRegistry);
        }
      };
  
      @java.lang.Override
        return ;
      }
  
      private int bitField0_;
      // optional string dataset_id = 3;
      public static final int DATASET_ID_FIELD_NUMBER = 3;
      private java.lang.Object datasetId_;
    
optional string dataset_id = 3;
 The dataset ID.
 
  
      public boolean hasDatasetId() {
        return (( & 0x00000001) == 0x00000001);
      }
    
optional string dataset_id = 3;
 The dataset ID.
 
  
      public java.lang.String getDatasetId() {
        java.lang.Object ref = ;
        if (ref instanceof java.lang.String) {
          return (java.lang.Stringref;
        } else {
          com.google.protobuf.ByteString bs = 
              (com.google.protobuf.ByteStringref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
             = s;
          }
          return s;
        }
      }
    
optional string dataset_id = 3;
 The dataset ID.
 
  
      public com.google.protobuf.ByteString
          getDatasetIdBytes() {
        java.lang.Object ref = ;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.Stringref);
           = b;
          return b;
        } else {
          return (com.google.protobuf.ByteStringref;
        }
      }
  
      // optional string namespace = 4;
      public static final int NAMESPACE_FIELD_NUMBER = 4;
      private java.lang.Object namespace_;
    
optional string namespace = 4;
 The namespace.
 
  
      public boolean hasNamespace() {
        return (( & 0x00000002) == 0x00000002);
      }
    
optional string namespace = 4;
 The namespace.
 
  
      public java.lang.String getNamespace() {
        java.lang.Object ref = ;
        if (ref instanceof java.lang.String) {
          return (java.lang.Stringref;
        } else {
          com.google.protobuf.ByteString bs = 
              (com.google.protobuf.ByteStringref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
             = s;
          }
          return s;
        }
      }
    
optional string namespace = 4;
 The namespace.
 
  
      public com.google.protobuf.ByteString
          getNamespaceBytes() {
        java.lang.Object ref = ;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.Stringref);
           = b;
          return b;
        } else {
          return (com.google.protobuf.ByteStringref;
        }
      }
  
      private void initFields() {
         = "";
         = "";
      }
      private byte memoizedIsInitialized = -1;
      public final boolean isInitialized() {
        byte isInitialized = ;
        if (isInitialized != -1) return isInitialized == 1;
  
         = 1;
        return true;
      }
  
      public void writeTo(com.google.protobuf.CodedOutputStream output)
                          throws java.io.IOException {
        getSerializedSize();
        if ((( & 0x00000001) == 0x00000001)) {
          output.writeBytes(3, getDatasetIdBytes());
        }
        if ((( & 0x00000002) == 0x00000002)) {
          output.writeBytes(4, getNamespaceBytes());
        }
        getUnknownFields().writeTo(output);
      }
  
      private int memoizedSerializedSize = -1;
      public int getSerializedSize() {
        int size = ;
        if (size != -1) return size;
  
        size = 0;
        if ((( & 0x00000001) == 0x00000001)) {
          size += com.google.protobuf.CodedOutputStream
            .computeBytesSize(3, getDatasetIdBytes());
        }
        if ((( & 0x00000002) == 0x00000002)) {
          size += com.google.protobuf.CodedOutputStream
            .computeBytesSize(4, getNamespaceBytes());
        }
        size += getUnknownFields().getSerializedSize();
         = size;
        return size;
      }
  
      private static final long serialVersionUID = 0L;
      @java.lang.Override
      protected java.lang.Object writeReplace()
          throws java.io.ObjectStreamException {
        return super.writeReplace();
      }
  
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return .parseFrom(data);
      }
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return .parseFrom(dataextensionRegistry);
      }
      public static com.google.api.services.datastore.DatastoreV1.PartitionId parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return .parseFrom(data);
      }
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return .parseFrom(dataextensionRegistry);
      }
          throws java.io.IOException {
        return .parseFrom(input);
      }
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return .parseFrom(inputextensionRegistry);
      }
          throws java.io.IOException {
        return .parseDelimitedFrom(input);
      }
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return .parseDelimitedFrom(inputextensionRegistry);
      }
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return .parseFrom(input);
      }
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return .parseFrom(inputextensionRegistry);
      }
  
      public static Builder newBuilder() { return Builder.create(); }
      public Builder newBuilderForType() { return newBuilder(); }
      public static Builder newBuilder(com.google.api.services.datastore.DatastoreV1.PartitionId prototype) {
        return newBuilder().mergeFrom(prototype);
      }
      public Builder toBuilder() { return newBuilder(this); }
  
      @java.lang.Override
      protected Builder newBuilderForType(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
      }
    
Protobuf type api.services.datastore.PartitionId
 An identifier for a particular subset of entities.

 Entities are partitioned into various subsets, each used by different
 datasets and different namespaces within a dataset and so forth.

 All input partition IDs are normalized before use.
 A partition ID is normalized as follows:
   If the partition ID is unset, replace it with an empty partition ID.
   If the partition ID has no dataset ID, assign it the context dataset ID.

 A partition ID is empty if all of its fields are unset.

 Partition dimension:
 A dimension may be unset.
 A dimension's value must never contain "!".
 A dimension's value must never be "".
 If the value of any dimension matches regex "__.*__",
 the partition is reserved/read-only.
 A reserved/read-only partition ID is forbidden in certain documented contexts.
 
  
      public static final class Builder extends
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
        }
  
            internalGetFieldAccessorTable() {
              .ensureFieldAccessorsInitialized(
        }
  
        // Construct using com.google.api.services.datastore.DatastoreV1.PartitionId.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }
  
        private Builder(
            com.google.protobuf.GeneratedMessage.BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          }
        }
        private static Builder create() {
          return new Builder();
        }
  
        public Builder clear() {
          super.clear();
           = "";
           = ( & ~0x00000001);
           = "";
           = ( & ~0x00000002);
          return this;
        }
  
        public Builder clone() {
          return create().mergeFrom(buildPartial());
        }
  
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
        }
  
          return com.google.api.services.datastore.DatastoreV1.PartitionId.getDefaultInstance();
        }
  
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
  
          int from_bitField0_ = ;
          int to_bitField0_ = 0;
          if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
            to_bitField0_ |= 0x00000001;
          }
          result.datasetId_ = ;
          if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
            to_bitField0_ |= 0x00000002;
          }
          result.namespace_ = ;
          result.bitField0_ = to_bitField0_;
          onBuilt();
          return result;
        }
  
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.google.api.services.datastore.DatastoreV1.PartitionId) {
            return mergeFrom((com.google.api.services.datastore.DatastoreV1.PartitionId)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
  
          if (other == com.google.api.services.datastore.DatastoreV1.PartitionId.getDefaultInstance()) return this;
          if (other.hasDatasetId()) {
             |= 0x00000001;
             = other.datasetId_;
            onChanged();
          }
          if (other.hasNamespace()) {
             |= 0x00000002;
             = other.namespace_;
            onChanged();
          }
          this.mergeUnknownFields(other.getUnknownFields());
          return this;
        }
  
        public final boolean isInitialized() {
          return true;
        }
  
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          com.google.api.services.datastore.DatastoreV1.PartitionId parsedMessage = null;
          try {
            parsedMessage = .parsePartialFrom(inputextensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (com.google.api.services.datastore.DatastoreV1.PartitionIde.getUnfinishedMessage();
            throw e;
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }
        private int bitField0_;
  
        // optional string dataset_id = 3;
        private java.lang.Object datasetId_ = "";
      
optional string dataset_id = 3;
 The dataset ID.
 
  
        public boolean hasDatasetId() {
          return (( & 0x00000001) == 0x00000001);
        }
      
optional string dataset_id = 3;
 The dataset ID.
 
  
        public java.lang.String getDatasetId() {
          java.lang.Object ref = ;
          if (!(ref instanceof java.lang.String)) {
            java.lang.String s = ((com.google.protobuf.ByteStringref)
                .toStringUtf8();
             = s;
            return s;
          } else {
            return (java.lang.Stringref;
          }
        }
      
optional string dataset_id = 3;
 The dataset ID.
 
  
        public com.google.protobuf.ByteString
            getDatasetIdBytes() {
          java.lang.Object ref = ;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (java.lang.Stringref);
             = b;
            return b;
          } else {
            return (com.google.protobuf.ByteStringref;
          }
        }
      
optional string dataset_id = 3;
 The dataset ID.
 
  
        public Builder setDatasetId(
            java.lang.String value) {
          if (value == null) {
      throw new NullPointerException();
    }
     |= 0x00000001;
           = value;
          onChanged();
          return this;
        }
      
optional string dataset_id = 3;
 The dataset ID.
 
  
        public Builder clearDatasetId() {
           = ( & ~0x00000001);
           = getDefaultInstance().getDatasetId();
          onChanged();
          return this;
        }
      
optional string dataset_id = 3;
 The dataset ID.
 
  
        public Builder setDatasetIdBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) {
      throw new NullPointerException();
    }
     |= 0x00000001;
           = value;
          onChanged();
          return this;
        }
  
        // optional string namespace = 4;
        private java.lang.Object namespace_ = "";
      
optional string namespace = 4;
 The namespace.
 
  
        public boolean hasNamespace() {
          return (( & 0x00000002) == 0x00000002);
        }
      
optional string namespace = 4;
 The namespace.
 
  
        public java.lang.String getNamespace() {
          java.lang.Object ref = ;
          if (!(ref instanceof java.lang.String)) {
            java.lang.String s = ((com.google.protobuf.ByteStringref)
                .toStringUtf8();
             = s;
            return s;
          } else {
            return (java.lang.Stringref;
          }
        }
      
optional string namespace = 4;
 The namespace.
 
  
        public com.google.protobuf.ByteString
            getNamespaceBytes() {
          java.lang.Object ref = ;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (java.lang.Stringref);
             = b;
            return b;
          } else {
            return (com.google.protobuf.ByteStringref;
          }
        }
      
optional string namespace = 4;
 The namespace.
 
  
        public Builder setNamespace(
            java.lang.String value) {
          if (value == null) {
      throw new NullPointerException();
    }
     |= 0x00000002;
           = value;
          onChanged();
          return this;
        }
      
optional string namespace = 4;
 The namespace.
 
  
        public Builder clearNamespace() {
           = ( & ~0x00000002);
           = getDefaultInstance().getNamespace();
          onChanged();
          return this;
        }
      
optional string namespace = 4;
 The namespace.
 
  
        public Builder setNamespaceBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) {
      throw new NullPointerException();
    }
     |= 0x00000002;
           = value;
          onChanged();
          return this;
        }
  
        // @@protoc_insertion_point(builder_scope:api.services.datastore.PartitionId)
      }
  
      static {
         = new PartitionId(true);
        .initFields();
      }
  
      // @@protoc_insertion_point(class_scope:api.services.datastore.PartitionId)
    }
  
    public interface KeyOrBuilder
        extends com.google.protobuf.MessageOrBuilder {
  
      // optional .api.services.datastore.PartitionId partition_id = 1;
      
optional .api.services.datastore.PartitionId partition_id = 1;
 Entities are partitioned into subsets, currently identified by a dataset
 (usually implicitly specified by the project) and namespace ID.
 Queries are scoped to a single partition.
 
  
      boolean hasPartitionId();
    
optional .api.services.datastore.PartitionId partition_id = 1;
 Entities are partitioned into subsets, currently identified by a dataset
 (usually implicitly specified by the project) and namespace ID.
 Queries are scoped to a single partition.
 
  
optional .api.services.datastore.PartitionId partition_id = 1;
 Entities are partitioned into subsets, currently identified by a dataset
 (usually implicitly specified by the project) and namespace ID.
 Queries are scoped to a single partition.
 
  
  
      // repeated .api.services.datastore.Key.PathElement path_element = 2;
      
repeated .api.services.datastore.Key.PathElement path_element = 2;
 The entity path.
 An entity path consists of one or more elements composed of a kind and a
 string or numerical identifier, which identify entities. The first
 element identifies a <em>root entity</em>, the second element identifies
 a <em>child</em> of the root entity, the third element a child of the
 second entity, and so forth. The entities identified by all prefixes of
 the path are called the element's <em>ancestors</em>.
 An entity path is always fully complete: ALL of the entity's ancestors
 are required to be in the path along with the entity identifier itself.
 The only exception is that in some documented cases, the identifier in the
 last path element (for the entity) itself may be omitted. A path can never
 be empty.
 
  
          getPathElementList();
    
repeated .api.services.datastore.Key.PathElement path_element = 2;
 The entity path.
 An entity path consists of one or more elements composed of a kind and a
 string or numerical identifier, which identify entities. The first
 element identifies a <em>root entity</em>, the second element identifies
 a <em>child</em> of the root entity, the third element a child of the
 second entity, and so forth. The entities identified by all prefixes of
 the path are called the element's <em>ancestors</em>.
 An entity path is always fully complete: ALL of the entity's ancestors
 are required to be in the path along with the entity identifier itself.
 The only exception is that in some documented cases, the identifier in the
 last path element (for the entity) itself may be omitted. A path can never
 be empty.
 
  
repeated .api.services.datastore.Key.PathElement path_element = 2;
 The entity path.
 An entity path consists of one or more elements composed of a kind and a
 string or numerical identifier, which identify entities. The first
 element identifies a <em>root entity</em>, the second element identifies
 a <em>child</em> of the root entity, the third element a child of the
 second entity, and so forth. The entities identified by all prefixes of
 the path are called the element's <em>ancestors</em>.
 An entity path is always fully complete: ALL of the entity's ancestors
 are required to be in the path along with the entity identifier itself.
 The only exception is that in some documented cases, the identifier in the
 last path element (for the entity) itself may be omitted. A path can never
 be empty.
 
  
      int getPathElementCount();
    
repeated .api.services.datastore.Key.PathElement path_element = 2;
 The entity path.
 An entity path consists of one or more elements composed of a kind and a
 string or numerical identifier, which identify entities. The first
 element identifies a <em>root entity</em>, the second element identifies
 a <em>child</em> of the root entity, the third element a child of the
 second entity, and so forth. The entities identified by all prefixes of
 the path are called the element's <em>ancestors</em>.
 An entity path is always fully complete: ALL of the entity's ancestors
 are required to be in the path along with the entity identifier itself.
 The only exception is that in some documented cases, the identifier in the
 last path element (for the entity) itself may be omitted. A path can never
 be empty.
 
  
          getPathElementOrBuilderList();
    
repeated .api.services.datastore.Key.PathElement path_element = 2;
 The entity path.
 An entity path consists of one or more elements composed of a kind and a
 string or numerical identifier, which identify entities. The first
 element identifies a <em>root entity</em>, the second element identifies
 a <em>child</em> of the root entity, the third element a child of the
 second entity, and so forth. The entities identified by all prefixes of
 the path are called the element's <em>ancestors</em>.
 An entity path is always fully complete: ALL of the entity's ancestors
 are required to be in the path along with the entity identifier itself.
 The only exception is that in some documented cases, the identifier in the
 last path element (for the entity) itself may be omitted. A path can never
 be empty.
 
  
          int index);
    }
  
Protobuf type api.services.datastore.Key
 A unique identifier for an entity.
 If a key's partition id or any of its path kinds or names are
 reserved/read-only, the key is reserved/read-only.
 A reserved/read-only key is forbidden in certain documented contexts.
 
  
    public static final class Key extends
        implements KeyOrBuilder {
      // Use Key.newBuilder() to construct.
      private Key(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
        super(builder);
        this. = builder.getUnknownFields();
      }
      private Key(boolean noInit) { this. = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
  
      private static final Key defaultInstance;
      public static Key getDefaultInstance() {
        return ;
      }
  
      public Key getDefaultInstanceForType() {
        return ;
      }
  
      private final com.google.protobuf.UnknownFieldSet unknownFields;
      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
          getUnknownFields() {
        return this.;
      }
      private Key(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        initFields();
        int mutable_bitField0_ = 0;
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              default: {
                if (!parseUnknownField(inputunknownFields,
                                       extensionRegistrytag)) {
                  done = true;
                }
                break;
              }
              case 10: {
                com.google.api.services.datastore.DatastoreV1.PartitionId.Builder subBuilder = null;
                if ((( & 0x00000001) == 0x00000001)) {
                  subBuilder = .toBuilder();
                }
                 = input.readMessage(.......extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom();
                   = subBuilder.buildPartial();
                }
                 |= 0x00000001;
                break;
              }
              case 18: {
                if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                   = new java.util.ArrayList<com.google.api.services.datastore.DatastoreV1.Key.PathElement>();
                  mutable_bitField0_ |= 0x00000002;
                }
                .add(input.readMessage(........extensionRegistry));
                break;
              }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(
              e.getMessage()).setUnfinishedMessage(this);
        } finally {
         if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
            = java.util.Collections.unmodifiableList();
         }
         this. = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
     }
         internalGetFieldAccessorTable() {
           .ensureFieldAccessorsInitialized(
     }
     public static com.google.protobuf.Parser<KeyPARSER =
         new com.google.protobuf.AbstractParser<Key>() {
       public Key parsePartialFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return new Key(inputextensionRegistry);
       }
     };
       return ;
     }
     public interface PathElementOrBuilder
         extends com.google.protobuf.MessageOrBuilder {
       // required string kind = 1;
       
required string kind = 1;
 The kind of the entity.
 Kinds matching regex "__.*__" are reserved/read-only.
 Cannot be "".
 
       boolean hasKind();
      
required string kind = 1;
 The kind of the entity.
 Kinds matching regex "__.*__" are reserved/read-only.
 Cannot be "".
 
       java.lang.String getKind();
      
required string kind = 1;
 The kind of the entity.
 Kinds matching regex "__.*__" are reserved/read-only.
 Cannot be "".
 
           getKindBytes();
       // optional int64 id = 2;
       
optional int64 id = 2;
 The ID of the entity.
 Always > 0.
 
       boolean hasId();
      
optional int64 id = 2;
 The ID of the entity.
 Always > 0.
 
       long getId();
       // optional string name = 3;
       
optional string name = 3;
 The name of the entity.
 Names matching regex "__.*__" are reserved/read-only.
 Cannot be "".
 
       boolean hasName();
      
optional string name = 3;
 The name of the entity.
 Names matching regex "__.*__" are reserved/read-only.
 Cannot be "".
 
       java.lang.String getName();
      
optional string name = 3;
 The name of the entity.
 Names matching regex "__.*__" are reserved/read-only.
 Cannot be "".
 
           getNameBytes();
     }
    
Protobuf type api.services.datastore.Key.PathElement
 A (kind, ID/name) pair used to construct a key path.

 At most one of name or ID may be set.
 If either is set, the element is complete.
 If neither is set, the element is incomplete.
 
     public static final class PathElement extends
         implements PathElementOrBuilder {
       // Use PathElement.newBuilder() to construct.
       private PathElement(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
         super(builder);
         this. = builder.getUnknownFields();
       }
       private PathElement(boolean noInit) { this. = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
       private static final PathElement defaultInstance;
       public static PathElement getDefaultInstance() {
         return ;
       }
       public PathElement getDefaultInstanceForType() {
         return ;
       }
       private final com.google.protobuf.UnknownFieldSet unknownFields;
       @java.lang.Override
       public final com.google.protobuf.UnknownFieldSet
           getUnknownFields() {
         return this.;
       }
       private PathElement(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         initFields();
         int mutable_bitField0_ = 0;
         com.google.protobuf.UnknownFieldSet.Builder unknownFields =
             com.google.protobuf.UnknownFieldSet.newBuilder();
         try {
           boolean done = false;
           while (!done) {
             int tag = input.readTag();
             switch (tag) {
               case 0:
                 done = true;
                 break;
               default: {
                 if (!parseUnknownField(inputunknownFields,
                                        extensionRegistrytag)) {
                   done = true;
                 }
                 break;
               }
               case 10: {
                  |= 0x00000001;
                  = input.readBytes();
                 break;
               }
               case 16: {
                  |= 0x00000002;
                  = input.readInt64();
                 break;
               }
               case 26: {
                  |= 0x00000004;
                  = input.readBytes();
                 break;
               }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
           throw new com.google.protobuf.InvalidProtocolBufferException(
               e.getMessage()).setUnfinishedMessage(this);
         } finally {
           this. = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
       }
           internalGetFieldAccessorTable() {
             .ensureFieldAccessorsInitialized(
                 com.google.