Class CreateBackupScheduleRequest.Builder (6.77.0)

public static final class CreateBackupScheduleRequest.Builder extends GeneratedMessageV3.Builder<CreateBackupScheduleRequest.Builder> implements CreateBackupScheduleRequestOrBuilder

The request for CreateBackupSchedule.

Protobuf type google.spanner.admin.database.v1.CreateBackupScheduleRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateBackupScheduleRequest build()
Returns
Type Description
CreateBackupScheduleRequest

buildPartial()

public CreateBackupScheduleRequest buildPartial()
Returns
Type Description
CreateBackupScheduleRequest

clear()

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

clearBackupSchedule()

public CreateBackupScheduleRequest.Builder clearBackupSchedule()

Required. The backup schedule to create.

.google.spanner.admin.database.v1.BackupSchedule backup_schedule = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateBackupScheduleRequest.Builder

clearBackupScheduleId()

public CreateBackupScheduleRequest.Builder clearBackupScheduleId()

Required. The Id to use for the backup schedule. The backup_schedule_id appended to parent forms the full backup schedule name of the form projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>.

string backup_schedule_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateBackupScheduleRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateBackupScheduleRequest.Builder clearParent()

Required. The name of the database that this backup schedule applies to.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateBackupScheduleRequest.Builder

This builder for chaining.

clone()

public CreateBackupScheduleRequest.Builder clone()
Returns
Type Description
CreateBackupScheduleRequest.Builder
Overrides

getBackupSchedule()

public BackupSchedule getBackupSchedule()

Required. The backup schedule to create.

.google.spanner.admin.database.v1.BackupSchedule backup_schedule = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BackupSchedule

The backupSchedule.

getBackupScheduleBuilder()

public BackupSchedule.Builder getBackupScheduleBuilder()

Required. The backup schedule to create.

.google.spanner.admin.database.v1.BackupSchedule backup_schedule = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BackupSchedule.Builder

getBackupScheduleId()

public String getBackupScheduleId()

Required. The Id to use for the backup schedule. The backup_schedule_id appended to parent forms the full backup schedule name of the form projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>.

string backup_schedule_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The backupScheduleId.

getBackupScheduleIdBytes()

public ByteString getBackupScheduleIdBytes()

Required. The Id to use for the backup schedule. The backup_schedule_id appended to parent forms the full backup schedule name of the form projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>.

string backup_schedule_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for backupScheduleId.

getBackupScheduleOrBuilder()

public BackupScheduleOrBuilder getBackupScheduleOrBuilder()

Required. The backup schedule to create.

.google.spanner.admin.database.v1.BackupSchedule backup_schedule = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BackupScheduleOrBuilder

getDefaultInstanceForType()

public CreateBackupScheduleRequest getDefaultInstanceForType()
Returns
Type Description
CreateBackupScheduleRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The name of the database that this backup schedule applies to.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the database that this backup schedule applies to.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasBackupSchedule()

public boolean hasBackupSchedule()

Required. The backup schedule to create.

.google.spanner.admin.database.v1.BackupSchedule backup_schedule = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the backupSchedule field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBackupSchedule(BackupSchedule value)

public CreateBackupScheduleRequest.Builder mergeBackupSchedule(BackupSchedule value)

Required. The backup schedule to create.

.google.spanner.admin.database.v1.BackupSchedule backup_schedule = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BackupSchedule
Returns
Type Description
CreateBackupScheduleRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CreateBackupScheduleRequest other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBackupSchedule(BackupSchedule value)

public CreateBackupScheduleRequest.Builder setBackupSchedule(BackupSchedule value)

Required. The backup schedule to create.

.google.spanner.admin.database.v1.BackupSchedule backup_schedule = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BackupSchedule
Returns
Type Description
CreateBackupScheduleRequest.Builder

setBackupSchedule(BackupSchedule.Builder builderForValue)

public CreateBackupScheduleRequest.Builder setBackupSchedule(BackupSchedule.Builder builderForValue)

Required. The backup schedule to create.

.google.spanner.admin.database.v1.BackupSchedule backup_schedule = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue BackupSchedule.Builder
Returns
Type Description
CreateBackupScheduleRequest.Builder

setBackupScheduleId(String value)

public CreateBackupScheduleRequest.Builder setBackupScheduleId(String value)

Required. The Id to use for the backup schedule. The backup_schedule_id appended to parent forms the full backup schedule name of the form projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>.

string backup_schedule_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The backupScheduleId to set.

Returns
Type Description
CreateBackupScheduleRequest.Builder

This builder for chaining.

setBackupScheduleIdBytes(ByteString value)

public CreateBackupScheduleRequest.Builder setBackupScheduleIdBytes(ByteString value)

Required. The Id to use for the backup schedule. The backup_schedule_id appended to parent forms the full backup schedule name of the form projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>.

string backup_schedule_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for backupScheduleId to set.

Returns
Type Description
CreateBackupScheduleRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateBackupScheduleRequest.Builder setParent(String value)

Required. The name of the database that this backup schedule applies to.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateBackupScheduleRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateBackupScheduleRequest.Builder setParentBytes(ByteString value)

Required. The name of the database that this backup schedule applies to.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateBackupScheduleRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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