/** * * * <pre> * Required. The name of the database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`, * where `<database>` is as specified in the `CREATE DATABASE` * statement. This name can be passed to other API methods to * identify the database. * </pre> * * <code>string name = 1;</code> */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <pre> * Required. The name of the database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`, * where `<database>` is as specified in the `CREATE DATABASE` * statement. This name can be passed to other API methods to * identify the database. * </pre> * * <code>string name = 1;</code> */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <pre> * Output only. The current database state. * </pre> * * <code>.google.spanner.admin.database.v1.Database.State state = 2;</code> */ public Builder setState(com.google.spanner.admin.database.v1.Database.State value) { if (value == null) { throw new NullPointerException(); } state_ = value.getNumber(); onChanged(); return this; } /**
/** * * * <pre> * Required. The name of the database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`, * where `<database>` is as specified in the `CREATE DATABASE` * statement. This name can be passed to other API methods to * identify the database. * </pre> * * <code>string name = 1;</code> */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <pre> * Required. The name of the database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`, * where `<database>` is as specified in the `CREATE DATABASE` * statement. This name can be passed to other API methods to * identify the database. * </pre> * * <code>string name = 1;</code> */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <pre> * Required. The name of the database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`, * where `<database>` is as specified in the `CREATE DATABASE` * statement. This name can be passed to other API methods to * identify the database. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The current database state. * </pre> * * <code>.google.spanner.admin.database.v1.Database.State state = 2;</code> */ public Builder setState(com.google.spanner.admin.database.v1.Database.State value) { if (value == null) { throw new NullPointerException(); } state_ = value.getNumber(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The current database state. * </pre> * * <code>.google.spanner.admin.database.v1.Database.State state = 2;</code> */ public Builder clearState() { state_ = 0; onChanged(); return this; }
/** * * * <pre> * Output only. The current database state. * </pre> * * <code>.google.spanner.admin.database.v1.Database.State state = 2;</code> */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /**
public Builder mergeFrom(com.google.spanner.admin.database.v1.Database other) { if (other == com.google.spanner.admin.database.v1.Database.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * Required. The name of the database. Values are of the form * `projects/<project>/instances/<instance>/databases/<database>`, * where `<database>` is as specified in the `CREATE DATABASE` * statement. This name can be passed to other API methods to * identify the database. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The current database state. * </pre> * * <code>.google.spanner.admin.database.v1.Database.State state = 2;</code> */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /**
/** * * * <pre> * Output only. The current database state. * </pre> * * <code>.google.spanner.admin.database.v1.Database.State state = 2;</code> */ public Builder clearState() { state_ = 0; onChanged(); return this; }
public Builder mergeFrom(com.google.spanner.admin.database.v1.Database other) { if (other == com.google.spanner.admin.database.v1.Database.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }