throw new NullPointerException(); ensureInstancesIsMutable(); instances_.add(index, value); onChanged();
throw new NullPointerException(); ensureInstancesIsMutable(); instances_.set(index, value); onChanged();
throw new NullPointerException(); ensureInstancesIsMutable(); instances_.add(value); onChanged();
bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInstancesIsMutable(); instances_.addAll(other.instances_);
/** * * * <pre> * A list of Redis instances in the project in the specified location, * or across all locations. * If the `location_id` in the parent field of the request is "-", all regions * available to the project are queried, and the results aggregated. * If in such an aggregated query a location is unavailable, a dummy Redis * entry is included in the response with the "name" field set to a value of * the form projects/{project_id}/locations/{location_id}/instances/- and the * "status" field set to ERROR and "status_message" field set to "location not * available for ListInstances". * </pre> * * <code>repeated .google.cloud.redis.v1.Instance instances = 1;</code> */ public Builder addInstances( int index, com.google.cloud.redis.v1.Instance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(index, builderForValue.build()); onChanged(); } else { instancesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * A list of Redis instances in the project in the specified location, * or across all locations. * If the `location_id` in the parent field of the request is "-", all regions * available to the project are queried, and the results aggregated. * If in such an aggregated query a location is unavailable, a dummy Redis * entry is included in the response with the "name" field set to a value of * the form projects/{project_id}/locations/{location_id}/instances/- and the * "status" field set to ERROR and "status_message" field set to "location not * available for ListInstances". * </pre> * * <code>repeated .google.cloud.redis.v1.Instance instances = 1;</code> */ public Builder setInstances( int index, com.google.cloud.redis.v1.Instance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.set(index, builderForValue.build()); onChanged(); } else { instancesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * A list of Redis instances in the project in the specified location, * or across all locations. * If the `location_id` in the parent field of the request is "-", all regions * available to the project are queried, and the results aggregated. * If in such an aggregated query a location is unavailable, a dummy Redis * entry is included in the response with the "name" field set to a value of * the form projects/{project_id}/locations/{location_id}/instances/- and the * "status" field set to ERROR and "status_message" field set to "location not * available for ListInstances". * </pre> * * <code>repeated .google.cloud.redis.v1.Instance instances = 1;</code> */ public Builder addAllInstances( java.lang.Iterable<? extends com.google.cloud.redis.v1.Instance> values) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); onChanged(); } else { instancesBuilder_.addAllMessages(values); } return this; } /**
/** * * * <pre> * A list of Redis instances in the project in the specified location, * or across all locations. * If the `location_id` in the parent field of the request is "-", all regions * available to the project are queried, and the results aggregated. * If in such an aggregated query a location is unavailable, a dummy Redis * entry is included in the response with the "name" field set to a value of * the form projects/{project_id}/locations/{location_id}/instances/- and the * "status" field set to ERROR and "status_message" field set to "location not * available for ListInstances". * </pre> * * <code>repeated .google.cloud.redis.v1.Instance instances = 1;</code> */ public Builder addInstances(com.google.cloud.redis.v1.Instance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(builderForValue.build()); onChanged(); } else { instancesBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * A list of Redis instances in the project in the specified location, * or across all locations. * If the `location_id` in the parent field of the request is "-", all regions * available to the project are queried, and the results aggregated. * If in such an aggregated query a location is unavailable, a dummy Redis * entry is included in the response with the "name" field set to a value of * the form projects/{project_id}/locations/{location_id}/instances/- and the * "status" field set to ERROR and "status_message" field set to "location not * available for ListInstances". * </pre> * * <code>repeated .google.cloud.redis.v1.Instance instances = 1;</code> */ public Builder removeInstances(int index) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.remove(index); onChanged(); } else { instancesBuilder_.remove(index); } return this; } /**