Class Backup.Builder (2.35.0)

public static final class Backup.Builder extends GeneratedMessageV3.Builder<Backup.Builder> implements BackupOrBuilder

The details of a backup resource.

Protobuf type google.cloud.metastore.v1alpha.Backup

Implements

BackupOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllRestoringServices(Iterable<String> values)

public Backup.Builder addAllRestoringServices(Iterable<String> values)

Output only. Services that are restoring from the backup.

repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<String>

The restoringServices to add.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRestoringServices(String value)

public Backup.Builder addRestoringServices(String value)

Output only. Services that are restoring from the backup.

repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The restoringServices to add.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

addRestoringServicesBytes(ByteString value)

public Backup.Builder addRestoringServicesBytes(ByteString value)

Output only. Services that are restoring from the backup.

repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes of the restoringServices to add.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

build()

public Backup build()
Returns
TypeDescription
Backup

buildPartial()

public Backup buildPartial()
Returns
TypeDescription
Backup

clear()

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

clearCreateTime()

public Backup.Builder clearCreateTime()

Output only. The time when the backup was started.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

clearDescription()

public Backup.Builder clearDescription()

The description of the backup.

string description = 6;

Returns
TypeDescription
Backup.Builder

This builder for chaining.

clearEndTime()

public Backup.Builder clearEndTime()

Output only. The time when the backup finished creating.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Backup.Builder clearName()

Immutable. The relative resource name of the backup, in the following form:

projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Backup.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRestoringServices()

public Backup.Builder clearRestoringServices()

Output only. Services that are restoring from the backup.

repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

This builder for chaining.

clearServiceRevision()

public Backup.Builder clearServiceRevision()

Output only. The revision of the service at the time of backup.

.google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

clearState()

public Backup.Builder clearState()

Output only. The current state of the backup.

.google.cloud.metastore.v1alpha.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

This builder for chaining.

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the backup was started.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the backup was started.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the backup was started.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Backup getDefaultInstanceForType()
Returns
TypeDescription
Backup

getDescription()

public String getDescription()

The description of the backup.

string description = 6;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the backup.

string description = 6;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

Output only. The time when the backup finished creating.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. The time when the backup finished creating.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The time when the backup finished creating.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

Immutable. The relative resource name of the backup, in the following form:

projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. The relative resource name of the backup, in the following form:

projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for name.

getRestoringServices(int index)

public String getRestoringServices(int index)

Output only. Services that are restoring from the backup.

repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The restoringServices at the given index.

getRestoringServicesBytes(int index)

public ByteString getRestoringServicesBytes(int index)

Output only. Services that are restoring from the backup.

repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the restoringServices at the given index.

getRestoringServicesCount()

public int getRestoringServicesCount()

Output only. Services that are restoring from the backup.

repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The count of restoringServices.

getRestoringServicesList()

public ProtocolStringList getRestoringServicesList()

Output only. Services that are restoring from the backup.

repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ProtocolStringList

A list containing the restoringServices.

getServiceRevision()

public Service getServiceRevision()

Output only. The revision of the service at the time of backup.

.google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Service

The serviceRevision.

getServiceRevisionBuilder()

public Service.Builder getServiceRevisionBuilder()

Output only. The revision of the service at the time of backup.

.google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Service.Builder

getServiceRevisionOrBuilder()

public ServiceOrBuilder getServiceRevisionOrBuilder()

Output only. The revision of the service at the time of backup.

.google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ServiceOrBuilder

getState()

public Backup.State getState()

Output only. The current state of the backup.

.google.cloud.metastore.v1alpha.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the backup.

.google.cloud.metastore.v1alpha.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the backup was started.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasEndTime()

public boolean hasEndTime()

Output only. The time when the backup finished creating.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasServiceRevision()

public boolean hasServiceRevision()

Output only. The revision of the service at the time of backup.

.google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the serviceRevision field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Backup.Builder mergeCreateTime(Timestamp value)

Output only. The time when the backup was started.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

mergeEndTime(Timestamp value)

public Backup.Builder mergeEndTime(Timestamp value)

Output only. The time when the backup finished creating.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

mergeFrom(Backup other)

public Backup.Builder mergeFrom(Backup other)
Parameter
NameDescription
otherBackup
Returns
TypeDescription
Backup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeServiceRevision(Service value)

public Backup.Builder mergeServiceRevision(Service value)

Output only. The revision of the service at the time of backup.

.google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueService
Returns
TypeDescription
Backup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCreateTime(Timestamp value)

public Backup.Builder setCreateTime(Timestamp value)

Output only. The time when the backup was started.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Backup.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the backup was started.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Backup.Builder

setDescription(String value)

public Backup.Builder setDescription(String value)

The description of the backup.

string description = 6;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Backup.Builder setDescriptionBytes(ByteString value)

The description of the backup.

string description = 6;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setEndTime(Timestamp value)

public Backup.Builder setEndTime(Timestamp value)

Output only. The time when the backup finished creating.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

setEndTime(Timestamp.Builder builderForValue)

public Backup.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. The time when the backup finished creating.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Backup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Backup.Builder setName(String value)

Immutable. The relative resource name of the backup, in the following form:

projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Backup.Builder setNameBytes(ByteString value)

Immutable. The relative resource name of the backup, in the following form:

projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

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

public Backup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Backup.Builder
Overrides

setRestoringServices(int index, String value)

public Backup.Builder setRestoringServices(int index, String value)

Output only. Services that are restoring from the backup.

repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The restoringServices to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setServiceRevision(Service value)

public Backup.Builder setServiceRevision(Service value)

Output only. The revision of the service at the time of backup.

.google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueService
Returns
TypeDescription
Backup.Builder

setServiceRevision(Service.Builder builderForValue)

public Backup.Builder setServiceRevision(Service.Builder builderForValue)

Output only. The revision of the service at the time of backup.

.google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueService.Builder
Returns
TypeDescription
Backup.Builder

setState(Backup.State value)

public Backup.Builder setState(Backup.State value)

Output only. The current state of the backup.

.google.cloud.metastore.v1alpha.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueBackup.State

The state to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setStateValue(int value)

public Backup.Builder setStateValue(int value)

Output only. The current state of the backup.

.google.cloud.metastore.v1alpha.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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