/** * * * <pre> * The descriptive name for this instance as it appears in UIs. * Can be changed at any time, but should be kept globally unique * to avoid confusion. * </pre> * * <code>string display_name = 2;</code> */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; onChanged(); return this; }
/** * * * <pre> * (`OutputOnly`) * The unique name of the instance. Values are of the form * `projects/<project>/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. * </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> * (`OutputOnly`) * The unique name of the instance. Values are of the form * `projects/<project>/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. * </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> * (`OutputOnly`) * The current state of the instance. * </pre> * * <code>.google.bigtable.admin.v2.Instance.State state = 3;</code> */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /**
/** * <pre> * The type of the instance. Defaults to `PRODUCTION`. * </pre> * * <code>.google.bigtable.admin.v2.Instance.Type type = 4;</code> */ public Builder clearType() { type_ = 0; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * (`OutputOnly`) * The current state of the instance. * </pre> * * <code>.google.bigtable.admin.v2.Instance.State state = 3;</code> */ public Builder clearState() { state_ = 0; onChanged(); return this; }
/** * <pre> * The type of the instance. Defaults to `PRODUCTION`. * </pre> * * <code>.google.bigtable.admin.v2.Instance.Type type = 4;</code> */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /**
/** * * * <pre> * (`OutputOnly`) * The current state of the instance. * </pre> * * <code>.google.bigtable.admin.v2.Instance.State state = 3;</code> */ public Builder clearState() { state_ = 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_; }
/** * * * <pre> * The descriptive name for this instance as it appears in UIs. * Can be changed at any time, but should be kept globally unique * to avoid confusion. * </pre> * * <code>string display_name = 2;</code> */ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; onChanged(); return this; } /**
public Builder mergeFrom(com.google.bigtable.admin.v2.Instance other) { if (other == com.google.bigtable.admin.v2.Instance.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * (`OutputOnly`) * The current state of the instance. * </pre> * * <code>.google.bigtable.admin.v2.Instance.State state = 3;</code> */ public Builder setState(com.google.bigtable.admin.v2.Instance.State value) { if (value == null) { throw new NullPointerException(); } state_ = value.getNumber(); onChanged(); return this; } /**
/** * * * <pre> * The type of the instance. Defaults to `PRODUCTION`. * </pre> * * <code>.google.bigtable.admin.v2.Instance.Type type = 4;</code> */ public Builder setType(com.google.bigtable.admin.v2.Instance.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /**
/** * * * <pre> * The descriptive name for this instance as it appears in UIs. * Can be changed at any time, but should be kept globally unique * to avoid confusion. * </pre> * * <code>string display_name = 2;</code> */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /**
/** * * * <pre> * (`OutputOnly`) * The unique name of the instance. Values are of the form * `projects/<project>/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * (`OutputOnly`) * The current state of the instance. * </pre> * * <code>.google.bigtable.admin.v2.Instance.State state = 3;</code> */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /**
/** * * * <pre> * The type of the instance. Defaults to `PRODUCTION`. * </pre> * * <code>.google.bigtable.admin.v2.Instance.Type type = 4;</code> */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /**
/** * * * <pre> * (`OutputOnly`) * The current state of the instance. * </pre> * * <code>.google.bigtable.admin.v2.Instance.State state = 3;</code> */ public Builder clearState() { state_ = 0; onChanged(); return this; }
/** * * * <pre> * The type of the instance. Defaults to `PRODUCTION`. * </pre> * * <code>.google.bigtable.admin.v2.Instance.Type type = 4;</code> */ public Builder clearType() { type_ = 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_; }