@java.lang.Override public com.google.cloud.redis.v1.Instance getDefaultInstanceForType() { return com.google.cloud.redis.v1.Instance.getDefaultInstance(); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
result = result && getName().equals(other.getName()); result = result && getDisplayName().equals(other.getDisplayName()); result = result && internalGetLabels().equals(other.internalGetLabels()); result = result && getLocationId().equals(other.getLocationId()); result = result && getAlternativeLocationId().equals(other.getAlternativeLocationId()); result = result && getRedisVersion().equals(other.getRedisVersion()); result = result && getReservedIpRange().equals(other.getReservedIpRange()); result = result && getHost().equals(other.getHost()); result = result && (getPort() == other.getPort()); result = result && getCurrentLocationId().equals(other.getCurrentLocationId()); result = result && (hasCreateTime() == other.hasCreateTime()); if (hasCreateTime()) { result = result && getCreateTime().equals(other.getCreateTime()); result = result && getStatusMessage().equals(other.getStatusMessage()); result = result && internalGetRedisConfigs().equals(other.internalGetRedisConfigs()); result = result && tier_ == other.tier_; result = result && (getMemorySizeGb() == other.getMemorySizeGb()); result = result && getAuthorizedNetwork().equals(other.getAuthorizedNetwork()); result = result && unknownFields.equals(other.unknownFields); return result;
/** * * * <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. 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> * 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; } /**
public Builder mergeFrom(com.google.cloud.redis.v1.Instance other) { if (other == com.google.cloud.redis.v1.Instance.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); if (!other.getLocationId().isEmpty()) { locationId_ = other.locationId_; onChanged(); if (!other.getAlternativeLocationId().isEmpty()) { alternativeLocationId_ = other.alternativeLocationId_; onChanged(); if (!other.getRedisVersion().isEmpty()) { redisVersion_ = other.redisVersion_; onChanged(); if (!other.getReservedIpRange().isEmpty()) { reservedIpRange_ = other.reservedIpRange_; onChanged(); if (!other.getHost().isEmpty()) { host_ = other.host_; onChanged();
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); if (!getDisplayNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); if (!getLocationIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_); if (!getAlternativeLocationIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, alternativeLocationId_); if (!getRedisVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, redisVersion_); if (!getReservedIpRangeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, reservedIpRange_); if (!getHostBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, host_); if (!getCurrentLocationIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, currentLocationId_); output.writeMessage(13, getCreateTime()); if (!getStatusMessageBytes().isEmpty()) {
/** * * * <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 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> * 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. 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> * 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; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.redis.v1.CreateInstanceRequest)) { return super.equals(obj); } com.google.cloud.redis.v1.CreateInstanceRequest other = (com.google.cloud.redis.v1.CreateInstanceRequest) obj; boolean result = true; result = result && getParent().equals(other.getParent()); result = result && getInstanceId().equals(other.getInstanceId()); result = result && (hasInstance() == other.hasInstance()); if (hasInstance()) { result = result && getInstance().equals(other.getInstance()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * * * <pre> * Output only. The time the instance was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 13;</code> */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); }
@java.lang.Override public com.google.cloud.redis.v1.Instance buildPartial() { com.google.cloud.redis.v1.Instance result = new com.google.cloud.redis.v1.Instance(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); if (!getDisplayNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = LabelsDefaultEntryHolder.defaultEntry if (!getLocationIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locationId_); if (!getAlternativeLocationIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, alternativeLocationId_); if (!getRedisVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, redisVersion_); if (!getReservedIpRangeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, reservedIpRange_); if (!getHostBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, host_); if (!getCurrentLocationIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, currentLocationId_); size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.redis.v1.UpdateInstanceRequest)) { return super.equals(obj); } com.google.cloud.redis.v1.UpdateInstanceRequest other = (com.google.cloud.redis.v1.UpdateInstanceRequest) obj; boolean result = true; result = result && (hasUpdateMask() == other.hasUpdateMask()); if (hasUpdateMask()) { result = result && getUpdateMask().equals(other.getUpdateMask()); } result = result && (hasInstance() == other.hasInstance()); if (hasInstance()) { result = result && getInstance().equals(other.getInstance()); } result = result && unknownFields.equals(other.unknownFields); return result; }