/** * * * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.bigtable.admin.v2.Instance instances = 1;</code> */ public Builder addInstances(com.google.bigtable.admin.v2.Instance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(builderForValue.build()); onChanged(); } else { instancesBuilder_.addMessage(builderForValue.build()); } return this; } /**
com.google.bigtable.admin.v2.Instance.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(instance_); instance_ = subBuilder.buildPartial();
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; }
com.google.bigtable.admin.v2.Instance.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(instance_); instance_ = subBuilder.buildPartial();
subBuilder.mergeFrom(instance_); instance_ = subBuilder.buildPartial();
com.google.bigtable.admin.v2.Instance.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(instance_); instance_ = subBuilder.buildPartial();
/** * * * <pre> * The Instance which will (partially) replace the current value. * </pre> * * <code>.google.bigtable.admin.v2.Instance instance = 1;</code> */ public Builder mergeInstance(com.google.bigtable.admin.v2.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = com.google.bigtable.admin.v2.Instance.newBuilder(instance_) .mergeFrom(value) .buildPartial(); } else { instance_ = value; } onChanged(); } else { instanceBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * The instance to create. * Fields marked `OutputOnly` must be left blank. * </pre> * * <code>.google.bigtable.admin.v2.Instance instance = 3;</code> */ public Builder mergeInstance(com.google.bigtable.admin.v2.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = com.google.bigtable.admin.v2.Instance.newBuilder(instance_) .mergeFrom(value) .buildPartial(); } else { instance_ = value; } onChanged(); } else { instanceBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * The instance to create. * Fields marked `OutputOnly` must be left blank. * </pre> * * <code>.google.bigtable.admin.v2.Instance instance = 3;</code> */ public Builder mergeInstance(com.google.bigtable.admin.v2.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = com.google.bigtable.admin.v2.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } onChanged(); } else { instanceBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * The Instance which will (partially) replace the current value. * </pre> * * <code>.google.bigtable.admin.v2.Instance instance = 1;</code> */ public Builder setInstance(com.google.bigtable.admin.v2.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); } else { instanceBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The instance to create. * Fields marked `OutputOnly` must be left blank. * </pre> * * <code>.google.bigtable.admin.v2.Instance instance = 3;</code> */ public Builder setInstance( com.google.bigtable.admin.v2.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); } else { instanceBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.bigtable.admin.v2.Instance instances = 1;</code> */ public Builder addInstances(com.google.bigtable.admin.v2.Instance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(builderForValue.build()); onChanged(); } else { instancesBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The instance to create. * Fields marked `OutputOnly` must be left blank. * </pre> * * <code>.google.bigtable.admin.v2.Instance instance = 3;</code> */ public Builder setInstance(com.google.bigtable.admin.v2.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); } else { instanceBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.bigtable.admin.v2.Instance instances = 1;</code> */ public Builder addInstances( int index, com.google.bigtable.admin.v2.Instance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(index, builderForValue.build()); onChanged(); } else { instancesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.bigtable.admin.v2.Instance instances = 1;</code> */ public Builder setInstances( int index, com.google.bigtable.admin.v2.Instance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.set(index, builderForValue.build()); onChanged(); } else { instancesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * The list of requested instances. * </pre> * * <code>repeated .google.bigtable.admin.v2.Instance instances = 1;</code> */ public Builder addInstances( com.google.bigtable.admin.v2.Instance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(builderForValue.build()); onChanged(); } else { instancesBuilder_.addMessage(builderForValue.build()); } return this; } /**
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.bigtable.admin.v2.Instance parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.bigtable.admin.v2.Instance) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.bigtable.admin.v2.Instance parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.bigtable.admin.v2.Instance) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * Adds an arbitrary label to the instance. * * <p>Labels are key-value pairs that you can use to group related instances and store metadata * about an instance. * * @see <a href="https://cloud.google.com/bigtable/docs/creating-managing-labels">For more * details</a> */ @SuppressWarnings("WeakerAccess") public CreateInstanceRequest addLabel(@Nonnull String key, @Nonnull String value) { Preconditions.checkNotNull(key, "Key can't be null"); Preconditions.checkNotNull(value, "Value can't be null"); builder.getInstanceBuilder().putLabels(key, value); return this; }
@java.lang.Override public com.google.bigtable.admin.v2.Instance buildPartial() { com.google.bigtable.admin.v2.Instance result = new com.google.bigtable.admin.v2.Instance(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; result.displayName_ = displayName_; result.state_ = state_; result.type_ = type_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.bitField0_ = to_bitField0_; onBuilt(); return result; }