@java.lang.Override public com.google.cloud.redis.v1.CreateInstanceRequest getDefaultInstanceForType() { return com.google.cloud.redis.v1.CreateInstanceRequest.getDefaultInstance(); }
/** * * * <pre> * Required. The resource name of the instance location using the form: * `projects/{project_id}/locations/{location_id}` * where `location_id` refers to a GCP region * </pre> * * <code>string parent = 1;</code> */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /**
/** * * * <pre> * Required. The logical name of the Redis instance in the customer project * with the following restrictions: * * Must contain only lowercase letters, numbers, and hyphens. * * Must start with a letter. * * Must be between 1-40 characters. * * Must end with a number or a letter. * * Must be unique within the customer project / location * </pre> * * <code>string instance_id = 2;</code> */ public Builder clearInstanceId() { instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.cloud.redis.v1.CreateInstanceRequest other) { if (other == com.google.cloud.redis.v1.CreateInstanceRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); } if (other.hasInstance()) { mergeInstance(other.getInstance()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
.setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.redis.v1.CreateInstanceRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller(