/** * * * <pre> * The entity's key. * An entity must have a key, unless otherwise documented (for example, * an entity in `Value.entity_value` may have no key). * An entity's kind is its key path's last element's kind, * or null if it has no key. * </pre> * * <code>.google.datastore.v1.Key key = 1;</code> */ public Builder setKey(com.google.datastore.v1.Key value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * The entity's key. * An entity must have a key, unless otherwise documented (for example, * an entity in `Value.entity_value` may have no key). * An entity's kind is its key path's last element's kind, * or null if it has no key. * </pre> * * <code>.google.datastore.v1.Key key = 1;</code> */ public com.google.datastore.v1.Key.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /**
/** * * * <pre> * The entity's key. * An entity must have a key, unless otherwise documented (for example, * an entity in `Value.entity_value` may have no key). * An entity's kind is its key path's last element's kind, * or null if it has no key. * </pre> * * <code>.google.datastore.v1.Key key = 1;</code> */ public Builder setKey(com.google.datastore.v1.Key.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The entity's key. * An entity must have a key, unless otherwise documented (for example, * an entity in `Value.entity_value` may have no key). * An entity's kind is its key path's last element's kind, * or null if it has no key. * </pre> * * <code>optional .google.datastore.v1.Key key = 1;</code> */ public Builder mergeKey(com.google.datastore.v1.Key value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = com.google.datastore.v1.Key.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * The entity's key. * An entity must have a key, unless otherwise documented (for example, * an entity in `Value.entity_value` may have no key). * An entity's kind is its key path's last element's kind, * or null if it has no key. * </pre> * * <code>.google.datastore.v1.Key key = 1;</code> */ public Builder setKey(com.google.datastore.v1.Key value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } return this; } /**
/** * <pre> * The entity's key. * An entity must have a key, unless otherwise documented (for example, * an entity in `Value.entity_value` may have no key). * An entity's kind is its key path's last element's kind, * or null if it has no key. * </pre> * * <code>optional .google.datastore.v1.Key key = 1;</code> */ public Builder setKey(com.google.datastore.v1.Key value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * The entity's key. * An entity must have a key, unless otherwise documented (for example, * an entity in `Value.entity_value` may have no key). * An entity's kind is its key path's last element's kind, * or null if it has no key. * </pre> * * <code>.google.datastore.v1.Key key = 1;</code> */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /**
/** * <pre> * The entity's key. * An entity must have a key, unless otherwise documented (for example, * an entity in `Value.entity_value` may have no key). * An entity's kind is its key path's last element's kind, * or null if it has no key. * </pre> * * <code>optional .google.datastore.v1.Key key = 1;</code> */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /**
/** * * * <pre> * The entity's key. * An entity must have a key, unless otherwise documented (for example, * an entity in `Value.entity_value` may have no key). * An entity's kind is its key path's last element's kind, * or null if it has no key. * </pre> * * <code>.google.datastore.v1.Key key = 1;</code> */ public Builder setKey(com.google.datastore.v1.Key.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The entity's key. * An entity must have a key, unless otherwise documented (for example, * an entity in `Value.entity_value` may have no key). * An entity's kind is its key path's last element's kind, * or null if it has no key. * </pre> * * <code>optional .google.datastore.v1.Key key = 1;</code> */ public Builder setKey( com.google.datastore.v1.Key.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The entity's key. * An entity must have a key, unless otherwise documented (for example, * an entity in `Value.entity_value` may have no key). * An entity's kind is its key path's last element's kind, * or null if it has no key. * </pre> * * <code>optional .google.datastore.v1.Key key = 1;</code> */ public com.google.datastore.v1.Key.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /**
/** * * * <pre> * The entity's key. * An entity must have a key, unless otherwise documented (for example, * an entity in `Value.entity_value` may have no key). * An entity's kind is its key path's last element's kind, * or null if it has no key. * </pre> * * <code>.google.datastore.v1.Key key = 1;</code> */ public com.google.datastore.v1.Key.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /**
private com.google.protobuf.MapField<java.lang.String, com.google.datastore.v1.Value> internalGetMutableProperties() { onChanged(); ; if (properties_ == null) { properties_ = com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); } return properties_; }
public Builder mergeFrom(com.google.datastore.v1.Entity other) { if (other == com.google.datastore.v1.Entity.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } internalGetMutableProperties().mergeFrom( other.internalGetProperties()); onChanged(); return this; }
private com.google.protobuf.MapField<java.lang.String, com.google.datastore.v1.Value> internalGetMutableProperties() { onChanged();; if (properties_ == null) { properties_ = com.google.protobuf.MapField.newMapField( PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); } return properties_; }
public Builder mergeFrom(com.google.datastore.v1.Entity other) { if (other == com.google.datastore.v1.Entity.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } internalGetMutableProperties().mergeFrom(other.internalGetProperties()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The entity's key. * An entity must have a key, unless otherwise documented (for example, * an entity in `Value.entity_value` may have no key). * An entity's kind is its key path's last element's kind, * or null if it has no key. * </pre> * * <code>.google.datastore.v1.Key key = 1;</code> */ public Builder mergeKey(com.google.datastore.v1.Key value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = com.google.datastore.v1.Key.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * The entity's key. * An entity must have a key, unless otherwise documented (for example, * an entity in `Value.entity_value` may have no key). * An entity's kind is its key path's last element's kind, * or null if it has no key. * </pre> * * <code>.google.datastore.v1.Key key = 1;</code> */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /**
private com.google.protobuf.MapField<java.lang.String, com.google.datastore.v1.Value> internalGetMutableProperties() { onChanged(); ; if (properties_ == null) { properties_ = com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); } return properties_; }
public Builder mergeFrom(com.google.datastore.v1.Entity other) { if (other == com.google.datastore.v1.Entity.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } internalGetMutableProperties().mergeFrom(other.internalGetProperties()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }