Class Instance.GcsBackupSource.Builder (0.8.0)

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

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

Protobuf type google.cloud.memorystore.v1.Instance.GcsBackupSource

Static Methods

getDescriptor()

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

Methods

addAllUris(Iterable<String> values)

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

Optional. 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
Instance.GcsBackupSource.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUris(String value)

public Instance.GcsBackupSource.Builder addUris(String value)

Optional. 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
Instance.GcsBackupSource.Builder

This builder for chaining.

addUrisBytes(ByteString value)

public Instance.GcsBackupSource.Builder addUrisBytes(ByteString value)

Optional. 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
Instance.GcsBackupSource.Builder

This builder for chaining.

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUris()

public Instance.GcsBackupSource.Builder clearUris()

Optional. Example: gs://bucket1/object1, gs://bucket2/folder2/object2

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

Returns
Type Description
Instance.GcsBackupSource.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getUris(int index)

public String getUris(int index)

Optional. 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. 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. 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. 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(Instance.GcsBackupSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUris(int index, String value)

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

Optional. 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
Instance.GcsBackupSource.Builder

This builder for chaining.