Class AlloyDBClusterDataSourceProperties.Builder (0.58.0)

public static final class AlloyDBClusterDataSourceProperties.Builder extends GeneratedMessage.Builder<AlloyDBClusterDataSourceProperties.Builder> implements AlloyDBClusterDataSourcePropertiesOrBuilder

AlloyDBClusterDataSourceProperties represents the properties of a AlloyDB cluster resource that are stored in the DataSource. .

Protobuf type google.cloud.backupdr.v1beta.AlloyDBClusterDataSourceProperties

Static Methods

getDescriptor()

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

Methods

addAllPitrWindows(Iterable<? extends AlloyDbPitrWindow> values)

public AlloyDBClusterDataSourceProperties.Builder addAllPitrWindows(Iterable<? extends AlloyDbPitrWindow> values)

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.backupdr.v1beta.AlloyDbPitrWindow>
Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder

addPitrWindows(AlloyDbPitrWindow value)

public AlloyDBClusterDataSourceProperties.Builder addPitrWindows(AlloyDbPitrWindow value)

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AlloyDbPitrWindow
Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder

addPitrWindows(AlloyDbPitrWindow.Builder builderForValue)

public AlloyDBClusterDataSourceProperties.Builder addPitrWindows(AlloyDbPitrWindow.Builder builderForValue)

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue AlloyDbPitrWindow.Builder
Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder

addPitrWindows(int index, AlloyDbPitrWindow value)

public AlloyDBClusterDataSourceProperties.Builder addPitrWindows(int index, AlloyDbPitrWindow value)

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value AlloyDbPitrWindow
Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder

addPitrWindows(int index, AlloyDbPitrWindow.Builder builderForValue)

public AlloyDBClusterDataSourceProperties.Builder addPitrWindows(int index, AlloyDbPitrWindow.Builder builderForValue)

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue AlloyDbPitrWindow.Builder
Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder

addPitrWindowsBuilder()

public AlloyDbPitrWindow.Builder addPitrWindowsBuilder()

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AlloyDbPitrWindow.Builder

addPitrWindowsBuilder(int index)

public AlloyDbPitrWindow.Builder addPitrWindowsBuilder(int index)

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AlloyDbPitrWindow.Builder

build()

public AlloyDBClusterDataSourceProperties build()
Returns
Type Description
AlloyDBClusterDataSourceProperties

buildPartial()

public AlloyDBClusterDataSourceProperties buildPartial()
Returns
Type Description
AlloyDBClusterDataSourceProperties

clear()

public AlloyDBClusterDataSourceProperties.Builder clear()
Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder
Overrides

clearClusterUid()

public AlloyDBClusterDataSourceProperties.Builder clearClusterUid()

Output only. The cluster UID of the AlloyDB cluster backed up by the datasource.

string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder

This builder for chaining.

clearName()

public AlloyDBClusterDataSourceProperties.Builder clearName()

Output only. Name of the AlloyDB cluster backed up by the datasource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder

This builder for chaining.

clearPitrWindows()

public AlloyDBClusterDataSourceProperties.Builder clearPitrWindows()

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder

getClusterUid()

public String getClusterUid()

Output only. The cluster UID of the AlloyDB cluster backed up by the datasource.

string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The clusterUid.

getClusterUidBytes()

public ByteString getClusterUidBytes()

Output only. The cluster UID of the AlloyDB cluster backed up by the datasource.

string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for clusterUid.

getDefaultInstanceForType()

public AlloyDBClusterDataSourceProperties getDefaultInstanceForType()
Returns
Type Description
AlloyDBClusterDataSourceProperties

getDescriptorForType()

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

getName()

public String getName()

Output only. Name of the AlloyDB cluster backed up by the datasource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Name of the AlloyDB cluster backed up by the datasource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getPitrWindows(int index)

public AlloyDbPitrWindow getPitrWindows(int index)

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AlloyDbPitrWindow

getPitrWindowsBuilder(int index)

public AlloyDbPitrWindow.Builder getPitrWindowsBuilder(int index)

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AlloyDbPitrWindow.Builder

getPitrWindowsBuilderList()

public List<AlloyDbPitrWindow.Builder> getPitrWindowsBuilderList()

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getPitrWindowsCount()

public int getPitrWindowsCount()

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getPitrWindowsList()

public List<AlloyDbPitrWindow> getPitrWindowsList()

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<AlloyDbPitrWindow>

getPitrWindowsOrBuilder(int index)

public AlloyDbPitrWindowOrBuilder getPitrWindowsOrBuilder(int index)

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AlloyDbPitrWindowOrBuilder

getPitrWindowsOrBuilderList()

public List<? extends AlloyDbPitrWindowOrBuilder> getPitrWindowsOrBuilderList()

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.backupdr.v1beta.AlloyDbPitrWindowOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AlloyDBClusterDataSourceProperties other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removePitrWindows(int index)

public AlloyDBClusterDataSourceProperties.Builder removePitrWindows(int index)

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder

setClusterUid(String value)

public AlloyDBClusterDataSourceProperties.Builder setClusterUid(String value)

Output only. The cluster UID of the AlloyDB cluster backed up by the datasource.

string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The clusterUid to set.

Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder

This builder for chaining.

setClusterUidBytes(ByteString value)

public AlloyDBClusterDataSourceProperties.Builder setClusterUidBytes(ByteString value)

Output only. The cluster UID of the AlloyDB cluster backed up by the datasource.

string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for clusterUid to set.

Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder

This builder for chaining.

setName(String value)

public AlloyDBClusterDataSourceProperties.Builder setName(String value)

Output only. Name of the AlloyDB cluster backed up by the datasource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AlloyDBClusterDataSourceProperties.Builder setNameBytes(ByteString value)

Output only. Name of the AlloyDB cluster backed up by the datasource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder

This builder for chaining.

setPitrWindows(int index, AlloyDbPitrWindow value)

public AlloyDBClusterDataSourceProperties.Builder setPitrWindows(int index, AlloyDbPitrWindow value)

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value AlloyDbPitrWindow
Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder

setPitrWindows(int index, AlloyDbPitrWindow.Builder builderForValue)

public AlloyDBClusterDataSourceProperties.Builder setPitrWindows(int index, AlloyDbPitrWindow.Builder builderForValue)

Output only. Point in time recovery windows. The order is guaranteed to be ascending by start time.

repeated .google.cloud.backupdr.v1beta.AlloyDbPitrWindow pitr_windows = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue AlloyDbPitrWindow.Builder
Returns
Type Description
AlloyDBClusterDataSourceProperties.Builder