Class CreateBackupScheduleRequest.Builder (3.20.0)

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

The request for FirestoreAdmin.CreateBackupSchedule.

Protobuf type google.firestore.admin.v1.CreateBackupScheduleRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateBackupScheduleRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateBackupScheduleRequest.Builder
Overrides

build()

public CreateBackupScheduleRequest build()
Returns
TypeDescription
CreateBackupScheduleRequest

buildPartial()

public CreateBackupScheduleRequest buildPartial()
Returns
TypeDescription
CreateBackupScheduleRequest

clear()

public CreateBackupScheduleRequest.Builder clear()
Returns
TypeDescription
CreateBackupScheduleRequest.Builder
Overrides

clearBackupSchedule()

public CreateBackupScheduleRequest.Builder clearBackupSchedule()

Required. The backup schedule to create.

.google.firestore.admin.v1.BackupSchedule backup_schedule = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateBackupScheduleRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateBackupScheduleRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateBackupScheduleRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateBackupScheduleRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateBackupScheduleRequest.Builder
Overrides

clearParent()

public CreateBackupScheduleRequest.Builder clearParent()

Required. The parent database.

Format projects/{project}/databases/{database}

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

Returns
TypeDescription
CreateBackupScheduleRequest.Builder

This builder for chaining.

clone()

public CreateBackupScheduleRequest.Builder clone()
Returns
TypeDescription
CreateBackupScheduleRequest.Builder
Overrides

getBackupSchedule()

public BackupSchedule getBackupSchedule()

Required. The backup schedule to create.

.google.firestore.admin.v1.BackupSchedule backup_schedule = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BackupSchedule

The backupSchedule.

getBackupScheduleBuilder()

public BackupSchedule.Builder getBackupScheduleBuilder()

Required. The backup schedule to create.

.google.firestore.admin.v1.BackupSchedule backup_schedule = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BackupSchedule.Builder

getBackupScheduleOrBuilder()

public BackupScheduleOrBuilder getBackupScheduleOrBuilder()

Required. The backup schedule to create.

.google.firestore.admin.v1.BackupSchedule backup_schedule = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BackupScheduleOrBuilder

getDefaultInstanceForType()

public CreateBackupScheduleRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateBackupScheduleRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent database.

Format projects/{project}/databases/{database}

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent database.

Format projects/{project}/databases/{database}

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasBackupSchedule()

public boolean hasBackupSchedule()

Required. The backup schedule to create.

.google.firestore.admin.v1.BackupSchedule backup_schedule = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the backupSchedule field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBackupSchedule(BackupSchedule value)

public CreateBackupScheduleRequest.Builder mergeBackupSchedule(BackupSchedule value)

Required. The backup schedule to create.

.google.firestore.admin.v1.BackupSchedule backup_schedule = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueBackupSchedule
Returns
TypeDescription
CreateBackupScheduleRequest.Builder

mergeFrom(CreateBackupScheduleRequest other)

public CreateBackupScheduleRequest.Builder mergeFrom(CreateBackupScheduleRequest other)
Parameter
NameDescription
otherCreateBackupScheduleRequest
Returns
TypeDescription
CreateBackupScheduleRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateBackupScheduleRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBackupScheduleRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateBackupScheduleRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateBackupScheduleRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateBackupScheduleRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateBackupScheduleRequest.Builder
Overrides

setBackupSchedule(BackupSchedule value)

public CreateBackupScheduleRequest.Builder setBackupSchedule(BackupSchedule value)

Required. The backup schedule to create.

.google.firestore.admin.v1.BackupSchedule backup_schedule = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueBackupSchedule
Returns
TypeDescription
CreateBackupScheduleRequest.Builder

setBackupSchedule(BackupSchedule.Builder builderForValue)

public CreateBackupScheduleRequest.Builder setBackupSchedule(BackupSchedule.Builder builderForValue)

Required. The backup schedule to create.

.google.firestore.admin.v1.BackupSchedule backup_schedule = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBackupSchedule.Builder
Returns
TypeDescription
CreateBackupScheduleRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateBackupScheduleRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateBackupScheduleRequest.Builder
Overrides

setParent(String value)

public CreateBackupScheduleRequest.Builder setParent(String value)

Required. The parent database.

Format projects/{project}/databases/{database}

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateBackupScheduleRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateBackupScheduleRequest.Builder setParentBytes(ByteString value)

Required. The parent database.

Format projects/{project}/databases/{database}

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateBackupScheduleRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateBackupScheduleRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateBackupScheduleRequest.Builder
Overrides