/** * * * <pre> * Required. The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>string display_name = 3;</code> */ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; onChanged(); return this; } /**
/** * * * <pre> * Required. The name of the instance's configuration. Values are of the form * `projects/<project>/instanceConfigs/<configuration>`. See * also [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. * </pre> * * <code>string config = 2;</code> */ public Builder setConfigBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); config_ = value; onChanged(); return this; }
/** * * * <pre> * Required. A unique identifier for the instance, which cannot be changed * after the instance is created. Values are of the form * `projects/<project>/instances/[a-z][-a-z0-9]*[a-z0-9]`. The final * segment of the name must be between 6 and 30 characters in length. * </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> * Output only. The current instance state. For * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], the state must be * either omitted or set to `CREATING`. For * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance], the state must be * either omitted or set to `READY`. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance.State state = 6;</code> */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /**
/** * * * <pre> * Required. The number of nodes allocated to this instance. This may be zero * in API responses for instances that are not yet in state `READY`. * See [the documentation](https://cloud.google.com/spanner/docs/instances#node_count) * for more information about nodes. * </pre> * * <code>int32 node_count = 5;</code> */ public Builder clearNodeCount() { nodeCount_ = 0; onChanged(); return this; }
/** * * * <pre> * Required. The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>string display_name = 3;</code> */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /**
private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableLabels() { onChanged(); ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; }
public Builder mergeFrom(com.google.spanner.admin.instance.v1.Instance other) { if (other == com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getConfig().isEmpty()) { config_ = other.config_; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); } if (other.getNodeCount() != 0) { setNodeCount(other.getNodeCount()); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * Output only. The current instance state. For * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], the state must be * either omitted or set to `CREATING`. For * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance], the state must be * either omitted or set to `READY`. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance.State state = 6;</code> */ public Builder setState(com.google.spanner.admin.instance.v1.Instance.State value) { if (value == null) { throw new NullPointerException(); } state_ = value.getNumber(); onChanged(); return this; } /**
/** * * * <pre> * Required. The name of the instance's configuration. Values are of the form * `projects/<project>/instanceConfigs/<configuration>`. See * also [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. * </pre> * * <code>string config = 2;</code> */ public Builder setConfig(java.lang.String value) { if (value == null) { throw new NullPointerException(); } config_ = value; onChanged(); return this; } /**
/** * * * <pre> * Required. A unique identifier for the instance, which cannot be changed * after the instance is created. Values are of the form * `projects/<project>/instances/[a-z][-a-z0-9]*[a-z0-9]`. The final * segment of the name must be between 6 and 30 characters in length. * </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 instance state. For * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], the state must be * either omitted or set to `CREATING`. For * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance], the state must be * either omitted or set to `READY`. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance.State state = 6;</code> */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /**
/** * * * <pre> * Required. The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>string display_name = 3;</code> */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; onChanged(); return this; }
/** * * * <pre> * Required. The name of the instance's configuration. Values are of the form * `projects/<project>/instanceConfigs/<configuration>`. See * also [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. * </pre> * * <code>string config = 2;</code> */ public Builder clearConfig() { config_ = getDefaultInstance().getConfig(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The current instance state. For * [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], the state must be * either omitted or set to `CREATING`. For * [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance], the state must be * either omitted or set to `READY`. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance.State state = 6;</code> */ public Builder clearState() { state_ = 0; onChanged(); return this; }
/** * * * <pre> * Required. A unique identifier for the instance, which cannot be changed * after the instance is created. Values are of the form * `projects/<project>/instances/[a-z][-a-z0-9]*[a-z0-9]`. The final * segment of the name must be between 6 and 30 characters in length. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * Required. The number of nodes allocated to this instance. This may be zero * in API responses for instances that are not yet in state `READY`. * See [the documentation](https://cloud.google.com/spanner/docs/instances#node_count) * for more information about nodes. * </pre> * * <code>int32 node_count = 5;</code> */ public Builder setNodeCount(int value) { nodeCount_ = value; onChanged(); return this; } /**
/** * * * <pre> * Required. The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. * </pre> * * <code>string display_name = 3;</code> */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /**
/** * * * <pre> * Required. The number of nodes allocated to this instance. This may be zero * in API responses for instances that are not yet in state `READY`. * See [the documentation](https://cloud.google.com/spanner/docs/instances#node_count) * for more information about nodes. * </pre> * * <code>int32 node_count = 5;</code> */ public Builder clearNodeCount() { nodeCount_ = 0; onChanged(); return this; }
private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableLabels() { onChanged(); ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; }