Class Cluster.GcsBackupSource.Builder (0.29.0)

public static final class Cluster.GcsBackupSource.Builder extends GeneratedMessageV3.Builder<Cluster.GcsBackupSource.Builder> implements Cluster.GcsBackupSourceOrBuilder

Backups stored in Cloud Storage buckets. The Cloud Storage buckets need to be the same region as the clusters.

Protobuf type google.cloud.redis.cluster.v1.Cluster.GcsBackupSource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllUris(Iterable<String> values)

public Cluster.GcsBackupSource.Builder addAllUris(Iterable<String> values)

Optional. URIs of the GCS objects to import. Example: gs://bucket1/object1, gs://bucket2/folder2/object2

repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The uris to add.

Returns
Type Description
Cluster.GcsBackupSource.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Cluster.GcsBackupSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Cluster.GcsBackupSource.Builder
Overrides

addUris(String value)

public Cluster.GcsBackupSource.Builder addUris(String value)

Optional. URIs of the GCS objects to import. Example: gs://bucket1/object1, gs://bucket2/folder2/object2

repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The uris to add.

Returns
Type Description
Cluster.GcsBackupSource.Builder

This builder for chaining.

addUrisBytes(ByteString value)

public Cluster.GcsBackupSource.Builder addUrisBytes(ByteString value)

Optional. URIs of the GCS objects to import. Example: gs://bucket1/object1, gs://bucket2/folder2/object2

repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the uris to add.

Returns
Type Description
Cluster.GcsBackupSource.Builder

This builder for chaining.

build()

public Cluster.GcsBackupSource build()
Returns
Type Description
Cluster.GcsBackupSource

buildPartial()

public Cluster.GcsBackupSource buildPartial()
Returns
Type Description
Cluster.GcsBackupSource

clear()

public Cluster.GcsBackupSource.Builder clear()
Returns
Type Description
Cluster.GcsBackupSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Cluster.GcsBackupSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Cluster.GcsBackupSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Cluster.GcsBackupSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Cluster.GcsBackupSource.Builder
Overrides

clearUris()

public Cluster.GcsBackupSource.Builder clearUris()

Optional. URIs of the GCS objects to import. Example: gs://bucket1/object1, gs://bucket2/folder2/object2

repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Cluster.GcsBackupSource.Builder

This builder for chaining.

clone()

public Cluster.GcsBackupSource.Builder clone()
Returns
Type Description
Cluster.GcsBackupSource.Builder
Overrides

getDefaultInstanceForType()

public Cluster.GcsBackupSource getDefaultInstanceForType()
Returns
Type Description
Cluster.GcsBackupSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUris(int index)

public String getUris(int index)

Optional. URIs of the GCS objects to import. Example: gs://bucket1/object1, gs://bucket2/folder2/object2

repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The uris at the given index.

getUrisBytes(int index)

public ByteString getUrisBytes(int index)

Optional. URIs of the GCS objects to import. Example: gs://bucket1/object1, gs://bucket2/folder2/object2

repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the uris at the given index.

getUrisCount()

public int getUrisCount()

Optional. URIs of the GCS objects to import. Example: gs://bucket1/object1, gs://bucket2/folder2/object2

repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of uris.

getUrisList()

public ProtocolStringList getUrisList()

Optional. URIs of the GCS objects to import. Example: gs://bucket1/object1, gs://bucket2/folder2/object2

repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the uris.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Cluster.GcsBackupSource other)

public Cluster.GcsBackupSource.Builder mergeFrom(Cluster.GcsBackupSource other)
Parameter
Name Description
other Cluster.GcsBackupSource
Returns
Type Description
Cluster.GcsBackupSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Cluster.GcsBackupSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Cluster.GcsBackupSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Cluster.GcsBackupSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Cluster.GcsBackupSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.GcsBackupSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Cluster.GcsBackupSource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Cluster.GcsBackupSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Cluster.GcsBackupSource.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Cluster.GcsBackupSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Cluster.GcsBackupSource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.GcsBackupSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Cluster.GcsBackupSource.Builder
Overrides

setUris(int index, String value)

public Cluster.GcsBackupSource.Builder setUris(int index, String value)

Optional. URIs of the GCS objects to import. Example: gs://bucket1/object1, gs://bucket2/folder2/object2

repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The uris to set.

Returns
Type Description
Cluster.GcsBackupSource.Builder

This builder for chaining.