public static final class BackupCollection.Builder extends GeneratedMessageV3.Builder<BackupCollection.Builder> implements BackupCollectionOrBuilder
BackupCollection of a cluster.
Protobuf type google.cloud.redis.cluster.v1beta1.BackupCollection
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BackupCollection.BuilderImplements
BackupCollectionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BackupCollection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
build()
public BackupCollection build()
Returns | |
---|---|
Type | Description |
BackupCollection |
buildPartial()
public BackupCollection buildPartial()
Returns | |
---|---|
Type | Description |
BackupCollection |
clear()
public BackupCollection.Builder clear()
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
clearCluster()
public BackupCollection.Builder clearCluster()
Output only. The full resource path of the cluster the backup collection belongs to. Example: projects/{project}/locations/{location}/clusters/{cluster}
string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
This builder for chaining. |
clearClusterUid()
public BackupCollection.Builder clearClusterUid()
Output only. The cluster uid of the backup collection.
string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public BackupCollection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
clearKmsKey()
public BackupCollection.Builder clearKmsKey()
Output only. The KMS key used to encrypt the backups under this backup collection.
string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
This builder for chaining. |
clearName()
public BackupCollection.Builder clearName()
Identifier. Full resource path of the backup collection.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public BackupCollection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
clearUid()
public BackupCollection.Builder clearUid()
Output only. System assigned unique identifier of the backup collection.
string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
This builder for chaining. |
clone()
public BackupCollection.Builder clone()
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
getCluster()
public String getCluster()
Output only. The full resource path of the cluster the backup collection belongs to. Example: projects/{project}/locations/{location}/clusters/{cluster}
string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The cluster. |
getClusterBytes()
public ByteString getClusterBytes()
Output only. The full resource path of the cluster the backup collection belongs to. Example: projects/{project}/locations/{location}/clusters/{cluster}
string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for cluster. |
getClusterUid()
public String getClusterUid()
Output only. The cluster uid of the backup collection.
string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
String |
The clusterUid. |
getClusterUidBytes()
public ByteString getClusterUidBytes()
Output only. The cluster uid of the backup collection.
string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for clusterUid. |
getDefaultInstanceForType()
public BackupCollection getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
BackupCollection |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getKmsKey()
public String getKmsKey()
Output only. The KMS key used to encrypt the backups under this backup collection.
string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The kmsKey. |
getKmsKeyBytes()
public ByteString getKmsKeyBytes()
Output only. The KMS key used to encrypt the backups under this backup collection.
string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for kmsKey. |
getName()
public String getName()
Identifier. Full resource path of the backup collection.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Identifier. Full resource path of the backup collection.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getUid()
public String getUid()
Output only. System assigned unique identifier of the backup collection.
string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
String |
The uid. |
getUidBytes()
public ByteString getUidBytes()
Output only. System assigned unique identifier of the backup collection.
string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for uid. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(BackupCollection other)
public BackupCollection.Builder mergeFrom(BackupCollection other)
Parameter | |
---|---|
Name | Description |
other |
BackupCollection |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BackupCollection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public BackupCollection.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BackupCollection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
setCluster(String value)
public BackupCollection.Builder setCluster(String value)
Output only. The full resource path of the cluster the backup collection belongs to. Example: projects/{project}/locations/{location}/clusters/{cluster}
string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The cluster to set. |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
This builder for chaining. |
setClusterBytes(ByteString value)
public BackupCollection.Builder setClusterBytes(ByteString value)
Output only. The full resource path of the cluster the backup collection belongs to. Example: projects/{project}/locations/{location}/clusters/{cluster}
string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for cluster to set. |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
This builder for chaining. |
setClusterUid(String value)
public BackupCollection.Builder setClusterUid(String value)
Output only. The cluster uid of the backup collection.
string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The clusterUid to set. |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
This builder for chaining. |
setClusterUidBytes(ByteString value)
public BackupCollection.Builder setClusterUidBytes(ByteString value)
Output only. The cluster uid of the backup collection.
string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for clusterUid to set. |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public BackupCollection.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
setKmsKey(String value)
public BackupCollection.Builder setKmsKey(String value)
Output only. The KMS key used to encrypt the backups under this backup collection.
string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The kmsKey to set. |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
This builder for chaining. |
setKmsKeyBytes(ByteString value)
public BackupCollection.Builder setKmsKeyBytes(ByteString value)
Output only. The KMS key used to encrypt the backups under this backup collection.
string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for kmsKey to set. |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
This builder for chaining. |
setName(String value)
public BackupCollection.Builder setName(String value)
Identifier. Full resource path of the backup collection.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public BackupCollection.Builder setNameBytes(ByteString value)
Identifier. Full resource path of the backup collection.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BackupCollection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
setUid(String value)
public BackupCollection.Builder setUid(String value)
Output only. System assigned unique identifier of the backup collection.
string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The uid to set. |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
This builder for chaining. |
setUidBytes(ByteString value)
public BackupCollection.Builder setUidBytes(ByteString value)
Output only. System assigned unique identifier of the backup collection.
string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for uid to set. |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final BackupCollection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BackupCollection.Builder |