/** * * * <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.v1beta1.Instance instances = 1;</code> */ public Builder setInstances( int index, com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.set(index, builderForValue.build()); onChanged(); } else { instancesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); onChanged(); internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getLocationId().isEmpty()) { locationId_ = other.locationId_; onChanged(); onChanged(); onChanged(); onChanged(); onChanged(); setPort(other.getPort()); onChanged(); mergeCreateTime(other.getCreateTime()); setStateValue(other.getStateValue()); onChanged();
com.google.cloud.redis.v1beta1.Instance.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(instance_); instance_ = subBuilder.buildPartial();
com.google.cloud.redis.v1beta1.Instance.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(instance_); instance_ = subBuilder.buildPartial();
com.google.cloud.redis.v1beta1.Instance.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(instance_); instance_ = subBuilder.buildPartial();
if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); onChanged(); internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getLocationId().isEmpty()) { locationId_ = other.locationId_; onChanged(); onChanged(); onChanged(); onChanged(); onChanged(); setPort(other.getPort()); onChanged(); mergeCreateTime(other.getCreateTime()); setStateValue(other.getStateValue()); onChanged();
/** * * * <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.v1beta1.Instance instances = 1;</code> */ public Builder addInstances( int index, com.google.cloud.redis.v1beta1.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.v1beta1.Instance instances = 1;</code> */ public Builder setInstances( int index, com.google.cloud.redis.v1beta1.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.v1beta1.Instance instances = 1;</code> */ public Builder addInstances(com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(builderForValue.build()); onChanged(); } else { instancesBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Required. A Redis [Instance] resource * </pre> * * <code>.google.cloud.redis.v1beta1.Instance instance = 3;</code> */ public Builder mergeInstance(com.google.cloud.redis.v1beta1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = com.google.cloud.redis.v1beta1.Instance.newBuilder(instance_) .mergeFrom(value) .buildPartial(); } else { instance_ = value; } onChanged(); } else { instanceBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * Required. Update description. * Only fields specified in update_mask are updated. * </pre> * * <code>.google.cloud.redis.v1beta1.Instance instance = 2;</code> */ public Builder mergeInstance(com.google.cloud.redis.v1beta1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = com.google.cloud.redis.v1beta1.Instance.newBuilder(instance_) .mergeFrom(value) .buildPartial(); } else { instance_ = value; } onChanged(); } else { instanceBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * Output only. The time the instance was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 13;</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; }
/** * * * <pre> * Required. Update description. * Only fields specified in update_mask are updated. * </pre> * * <code>.google.cloud.redis.v1beta1.Instance instance = 2;</code> */ public Builder setInstance(com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); } else { instanceBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Required. A Redis [Instance] resource * </pre> * * <code>.google.cloud.redis.v1beta1.Instance instance = 3;</code> */ public Builder setInstance(com.google.cloud.redis.v1beta1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); } else { instanceBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Output only. The time the instance was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 13;</code> */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /**
/** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getLabels() { return getLabelsMap(); } /**
@java.lang.Override public com.google.cloud.redis.v1beta1.Instance build() { com.google.cloud.redis.v1beta1.Instance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** Use {@link #getRedisConfigsMap()} instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getRedisConfigs() { return getRedisConfigsMap(); } /**
@java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**