/** * * * <pre> * Required. A Redis [Instance] resource * </pre> * * <code>.google.cloud.redis.v1.Instance instance = 3;</code> */ public com.google.cloud.redis.v1.Instance getInstance() { return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; } /**
@java.lang.Override public com.google.cloud.redis.v1.Instance getDefaultInstanceForType() { return com.google.cloud.redis.v1.Instance.getDefaultInstance(); }
/** * * * <pre> * Required. Update description. * Only fields specified in update_mask are updated. * </pre> * * <code>.google.cloud.redis.v1.Instance instance = 2;</code> */ public com.google.cloud.redis.v1.Instance getInstance() { return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; } /**
/** * * * <pre> * Required. A Redis [Instance] resource * </pre> * * <code>.google.cloud.redis.v1.Instance instance = 3;</code> */ public com.google.cloud.redis.v1.Instance getInstance() { if (instanceBuilder_ == null) { return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /**
/** * * * <pre> * Required. A Redis [Instance] resource * </pre> * * <code>.google.cloud.redis.v1.Instance instance = 3;</code> */ public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; } } /**
/** * * * <pre> * Required. Update description. * Only fields specified in update_mask are updated. * </pre> * * <code>.google.cloud.redis.v1.Instance instance = 2;</code> */ public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; } } /**
/** * * * <pre> * Required. Update description. * Only fields specified in update_mask are updated. * </pre> * * <code>.google.cloud.redis.v1.Instance instance = 2;</code> */ public com.google.cloud.redis.v1.Instance getInstance() { if (instanceBuilder_ == null) { return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /**
/** * * * <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 com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder(int index) { return getInstancesFieldBuilder() .addBuilder(index, com.google.cloud.redis.v1.Instance.getDefaultInstance()); } /**
/** * * * <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 com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder() { return getInstancesFieldBuilder() .addBuilder(com.google.cloud.redis.v1.Instance.getDefaultInstance()); } /**
/** * * * <pre> * An arbitrary and optional user-provided name for the instance. * </pre> * * <code>string display_name = 2;</code> */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /**
/** * * * <pre> * Output only. Hostname or IP address of the exposed Redis endpoint used by * clients to connect to the service. * </pre> * * <code>string host = 10;</code> */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); onChanged(); return this; } /**
/** * * * <pre> * Output only. Additional information about the current status of this * instance, if available. * </pre> * * <code>string status_message = 15;</code> */ public Builder clearStatusMessage() { statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /**
/** * * * <pre> * Optional. The version of Redis software. * If not provided, latest supported version will be used. Updating the * version will perform an upgrade/downgrade to the new version. Currently, * the supported values are `REDIS_3_2` for Redis 3.2. * </pre> * * <code>string redis_version = 7;</code> */ public Builder clearRedisVersion() { redisVersion_ = getDefaultInstance().getRedisVersion(); onChanged(); return this; } /**
/** * * * <pre> * Optional. Only applicable to STANDARD_HA tier which protects the instance * against zonal failures by provisioning it across two zones. If provided, it * must be a different zone from the one provided in [location_id]. * </pre> * * <code>string alternative_location_id = 5;</code> */ public Builder clearAlternativeLocationId() { alternativeLocationId_ = getDefaultInstance().getAlternativeLocationId(); onChanged(); return this; } /**
/** * * * <pre> * Optional. The CIDR range of internal addresses that are reserved for this * instance. If not provided, the service will choose an unused /29 block, * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique * and non-overlapping with existing subnets in an authorized network. * </pre> * * <code>string reserved_ip_range = 9;</code> */ public Builder clearReservedIpRange() { reservedIpRange_ = getDefaultInstance().getReservedIpRange(); onChanged(); return this; } /**
/** * * * <pre> * Optional. The full name of the Google Compute Engine * [network](/compute/docs/networks-and-firewalls#networks) to which the * instance is connected. If left unspecified, the `default` network * will be used. * </pre> * * <code>string authorized_network = 20;</code> */ public Builder clearAuthorizedNetwork() { authorizedNetwork_ = getDefaultInstance().getAuthorizedNetwork(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The current zone where the Redis endpoint is placed. For Basic * Tier instances, this will always be the same as the [location_id] * provided by the user at creation time. For Standard Tier instances, * this can be either [location_id] or [alternative_location_id] and can * change after a failover event. * </pre> * * <code>string current_location_id = 12;</code> */ public Builder clearCurrentLocationId() { currentLocationId_ = getDefaultInstance().getCurrentLocationId(); onChanged(); return this; } /**
/** * * * <pre> * Optional. The zone where the instance will be provisioned. If not provided, * the service will choose a zone for the instance. For STANDARD_HA tier, * instances will be created across two zones for protection against zonal * failures. If [alternative_location_id] is also provided, it must be * different from [location_id]. * </pre> * * <code>string location_id = 4;</code> */ public Builder clearLocationId() { locationId_ = getDefaultInstance().getLocationId(); onChanged(); return this; } /**
/** * * * <pre> * Required. Unique name of the resource in this scope including project and * location using the form: * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` * Note: Redis instances are managed and addressed at regional level so * location_id here refers to a GCP region; however, users may choose which * specific zone (or collection of zones for cross-zone instances) an instance * should be provisioned in. Refer to [location_id] and * [alternative_location_id] fields for more details. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.redis.v1.Instance.getDefaultInstance())) .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("GetInstance")) .build();