/** * * * <pre> * The name of the entity. * A name matching regex `__.*__` is reserved/read-only. * A name must not be more than 1500 bytes when UTF-8 encoded. * Cannot be `""`. * </pre> * * <code>string name = 3;</code> */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); idTypeCase_ = 3; idType_ = value; onChanged(); return this; }
/** * * * <pre> * The name of the entity. * A name matching regex `__.*__` is reserved/read-only. * A name must not be more than 1500 bytes when UTF-8 encoded. * Cannot be `""`. * </pre> * * <code>string name = 3;</code> */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } idTypeCase_ = 3; idType_ = value; onChanged(); return this; } /**
/** * * * <pre> * The kind of the entity. * A kind matching regex `__.*__` is reserved/read-only. * A kind must not contain more than 1500 bytes when UTF-8 encoded. * Cannot be `""`. * </pre> * * <code>string kind = 1;</code> */ public Builder setKind(java.lang.String value) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); return this; } /**
/** * <pre> * The kind of the entity. * A kind matching regex `__.*__` is reserved/read-only. * A kind must not contain more than 1500 bytes when UTF-8 encoded. * Cannot be `""`. * </pre> * * <code>optional string kind = 1;</code> */ public Builder setKindBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kind_ = value; onChanged(); return this; }
/** * <pre> * The name of the entity. * A name matching regex `__.*__` is reserved/read-only. * A name must not be more than 1500 bytes when UTF-8 encoded. * Cannot be `""`. * </pre> * * <code>optional string name = 3;</code> */ public Builder clearName() { if (idTypeCase_ == 3) { idTypeCase_ = 0; idType_ = null; onChanged(); } return this; } /**
/** * * * <pre> * The kind of the entity. * A kind matching regex `__.*__` is reserved/read-only. * A kind must not contain more than 1500 bytes when UTF-8 encoded. * Cannot be `""`. * </pre> * * <code>string kind = 1;</code> */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /**
/** * * * <pre> * The auto-allocated ID of the entity. * Never equal to zero. Values less than zero are discouraged and may not * be supported in the future. * </pre> * * <code>int64 id = 2;</code> */ public Builder clearId() { if (idTypeCase_ == 2) { idTypeCase_ = 0; idType_ = null; onChanged(); } return this; }
/** * * * <pre> * The auto-allocated ID of the entity. * Never equal to zero. Values less than zero are discouraged and may not * be supported in the future. * </pre> * * <code>int64 id = 2;</code> */ public Builder setId(long value) { idTypeCase_ = 2; idType_ = value; onChanged(); return this; } /**
/** * <pre> * The auto-allocated ID of the entity. * Never equal to zero. Values less than zero are discouraged and may not * be supported in the future. * </pre> * * <code>optional int64 id = 2;</code> */ public Builder clearId() { if (idTypeCase_ == 2) { idTypeCase_ = 0; idType_ = null; onChanged(); } return this; }
/** * <pre> * The auto-allocated ID of the entity. * Never equal to zero. Values less than zero are discouraged and may not * be supported in the future. * </pre> * * <code>optional int64 id = 2;</code> */ public Builder setId(long value) { idTypeCase_ = 2; idType_ = value; onChanged(); return this; } /**
/** * <pre> * The kind of the entity. * A kind matching regex `__.*__` is reserved/read-only. * A kind must not contain more than 1500 bytes when UTF-8 encoded. * Cannot be `""`. * </pre> * * <code>optional string kind = 1;</code> */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /**
public Builder clearIdType() { idTypeCase_ = 0; idType_ = null; onChanged(); return this; }
public Builder clearIdType() { idTypeCase_ = 0; idType_ = null; onChanged(); return this; }
public Builder mergeFrom(com.google.datastore.v1.Key.PathElement other) { if (other == com.google.datastore.v1.Key.PathElement.getDefaultInstance()) return this; if (!other.getKind().isEmpty()) { kind_ = other.kind_; onChanged(); } switch (other.getIdTypeCase()) { case ID: { setId(other.getId()); break; } case NAME: { idTypeCase_ = 3; idType_ = other.idType_; onChanged(); break; } case IDTYPE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The name of the entity. * A name matching regex `__.*__` is reserved/read-only. * A name must not be more than 1500 bytes when UTF-8 encoded. * Cannot be `""`. * </pre> * * <code>string name = 3;</code> */ public Builder clearName() { if (idTypeCase_ == 3) { idTypeCase_ = 0; idType_ = null; onChanged(); } return this; } /**
/** * * * <pre> * The kind of the entity. * A kind matching regex `__.*__` is reserved/read-only. * A kind must not contain more than 1500 bytes when UTF-8 encoded. * Cannot be `""`. * </pre> * * <code>string kind = 1;</code> */ public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kind_ = value; onChanged(); return this; }
/** * * * <pre> * The auto-allocated ID of the entity. * Never equal to zero. Values less than zero are discouraged and may not * be supported in the future. * </pre> * * <code>int64 id = 2;</code> */ public Builder clearId() { if (idTypeCase_ == 2) { idTypeCase_ = 0; idType_ = null; onChanged(); } return this; }
/** * * * <pre> * The auto-allocated ID of the entity. * Never equal to zero. Values less than zero are discouraged and may not * be supported in the future. * </pre> * * <code>int64 id = 2;</code> */ public Builder setId(long value) { idTypeCase_ = 2; idType_ = value; onChanged(); return this; } /**
/** * * * <pre> * The kind of the entity. * A kind matching regex `__.*__` is reserved/read-only. * A kind must not contain more than 1500 bytes when UTF-8 encoded. * Cannot be `""`. * </pre> * * <code>string kind = 1;</code> */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /**
public Builder clearIdType() { idTypeCase_ = 0; idType_ = null; onChanged(); return this; }