Class Cluster.GcsBackupSource.Builder (0.57.0)

public static final class Cluster.GcsBackupSource.Builder extends GeneratedMessage.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.

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

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.

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 GeneratedMessage.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

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.