public static final class Backup.Builder extends GeneratedMessageV3.Builder<Backup.Builder> implements BackupOrBuilder
The details of a backup resource.
Protobuf type google.events.cloud.metastore.v1.Backup
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Backup.BuilderImplements
BackupOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
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;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The restoringServices to add. |
Returns | |
---|---|
Type | Description |
Backup.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Backup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Backup.Builder |
addRestoringServices(String value)
public Backup.Builder addRestoringServices(String value)
Output only. Services that are restoring from the backup.
repeated string restoring_services = 7;
Parameter | |
---|---|
Name | Description |
value | String The restoringServices to add. |
Returns | |
---|---|
Type | Description |
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the restoringServices to add. |
Returns | |
---|---|
Type | Description |
Backup.Builder | This builder for chaining. |
build()
public Backup build()
Returns | |
---|---|
Type | Description |
Backup |
buildPartial()
public Backup buildPartial()
Returns | |
---|---|
Type | Description |
Backup |
clear()
public Backup.Builder clear()
Returns | |
---|---|
Type | Description |
Backup.Builder |
clearCreateTime()
public Backup.Builder clearCreateTime()
Output only. The time when the backup was started.
.google.protobuf.Timestamp create_time = 2;
Returns | |
---|---|
Type | Description |
Backup.Builder |
clearDescription()
public Backup.Builder clearDescription()
The description of the backup.
string description = 6;
Returns | |
---|---|
Type | Description |
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;
Returns | |
---|---|
Type | Description |
Backup.Builder |
clearField(Descriptors.FieldDescriptor field)
public Backup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Backup.Builder |
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;
Returns | |
---|---|
Type | Description |
Backup.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Backup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Backup.Builder |
clearRestoringServices()
public Backup.Builder clearRestoringServices()
Output only. Services that are restoring from the backup.
repeated string restoring_services = 7;
Returns | |
---|---|
Type | Description |
Backup.Builder | This builder for chaining. |
clearServiceRevision()
public Backup.Builder clearServiceRevision()
Output only. The revision of the service at the time of backup.
.google.events.cloud.metastore.v1.Service service_revision = 5;
Returns | |
---|---|
Type | Description |
Backup.Builder |
clearState()
public Backup.Builder clearState()
Output only. The current state of the backup.
.google.events.cloud.metastore.v1.Backup.State state = 4;
Returns | |
---|---|
Type | Description |
Backup.Builder | This builder for chaining. |
clone()
public Backup.Builder clone()
Returns | |
---|---|
Type | Description |
Backup.Builder |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time when the backup was started.
.google.protobuf.Timestamp create_time = 2;
Returns | |
---|---|
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the backup was started.
.google.protobuf.Timestamp create_time = 2;
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the backup was started.
.google.protobuf.Timestamp create_time = 2;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Backup getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Backup |
getDescription()
public String getDescription()
The description of the backup.
string description = 6;
Returns | |
---|---|
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
The description of the backup.
string description = 6;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEndTime()
public Timestamp getEndTime()
Output only. The time when the backup finished creating.
.google.protobuf.Timestamp end_time = 3;
Returns | |
---|---|
Type | Description |
Timestamp | The endTime. |
getEndTimeBuilder()
public Timestamp.Builder getEndTimeBuilder()
Output only. The time when the backup finished creating.
.google.protobuf.Timestamp end_time = 3;
Returns | |
---|---|
Type | Description |
Builder |
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()
Output only. The time when the backup finished creating.
.google.protobuf.Timestamp end_time = 3;
Returns | |
---|---|
Type | Description |
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;
Returns | |
---|---|
Type | Description |
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;
Returns | |
---|---|
Type | Description |
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;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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;
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
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;
Returns | |
---|---|
Type | Description |
int | The count of restoringServices. |
getRestoringServicesList()
public ProtocolStringList getRestoringServicesList()
Output only. Services that are restoring from the backup.
repeated string restoring_services = 7;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the restoringServices. |
getServiceRevision()
public Service getServiceRevision()
Output only. The revision of the service at the time of backup.
.google.events.cloud.metastore.v1.Service service_revision = 5;
Returns | |
---|---|
Type | Description |
Service | The serviceRevision. |
getServiceRevisionBuilder()
public Service.Builder getServiceRevisionBuilder()
Output only. The revision of the service at the time of backup.
.google.events.cloud.metastore.v1.Service service_revision = 5;
Returns | |
---|---|
Type | Description |
Service.Builder |
getServiceRevisionOrBuilder()
public ServiceOrBuilder getServiceRevisionOrBuilder()
Output only. The revision of the service at the time of backup.
.google.events.cloud.metastore.v1.Service service_revision = 5;
Returns | |
---|---|
Type | Description |
ServiceOrBuilder |
getState()
public Backup.State getState()
Output only. The current state of the backup.
.google.events.cloud.metastore.v1.Backup.State state = 4;
Returns | |
---|---|
Type | Description |
Backup.State | The state. |
getStateValue()
public int getStateValue()
Output only. The current state of the backup.
.google.events.cloud.metastore.v1.Backup.State state = 4;
Returns | |
---|---|
Type | Description |
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;
Returns | |
---|---|
Type | Description |
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;
Returns | |
---|---|
Type | Description |
boolean | Whether the endTime field is set. |
hasServiceRevision()
public boolean hasServiceRevision()
Output only. The revision of the service at the time of backup.
.google.events.cloud.metastore.v1.Service service_revision = 5;
Returns | |
---|---|
Type | Description |
boolean | Whether the serviceRevision field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public Backup.Builder mergeCreateTime(Timestamp value)
Output only. The time when the backup was started.
.google.protobuf.Timestamp create_time = 2;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
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;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
Backup.Builder |
mergeFrom(Backup other)
public Backup.Builder mergeFrom(Backup other)
Parameter | |
---|---|
Name | Description |
other | Backup |
Returns | |
---|---|
Type | Description |
Backup.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Backup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Backup.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Backup.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Backup.Builder |
mergeServiceRevision(Service value)
public Backup.Builder mergeServiceRevision(Service value)
Output only. The revision of the service at the time of backup.
.google.events.cloud.metastore.v1.Service service_revision = 5;
Parameter | |
---|---|
Name | Description |
value | Service |
Returns | |
---|---|
Type | Description |
Backup.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Backup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Backup.Builder |
setCreateTime(Timestamp value)
public Backup.Builder setCreateTime(Timestamp value)
Output only. The time when the backup was started.
.google.protobuf.Timestamp create_time = 2;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
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;
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
Backup.Builder |
setDescription(String value)
public Backup.Builder setDescription(String value)
The description of the backup.
string description = 6;
Parameter | |
---|---|
Name | Description |
value | String The description to set. |
Returns | |
---|---|
Type | Description |
Backup.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public Backup.Builder setDescriptionBytes(ByteString value)
The description of the backup.
string description = 6;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
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;
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
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;
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
Backup.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Backup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Backup.Builder |
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;
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
Backup.Builder |
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;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The restoringServices to set. |
Returns | |
---|---|
Type | Description |
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.events.cloud.metastore.v1.Service service_revision = 5;
Parameter | |
---|---|
Name | Description |
value | Service |
Returns | |
---|---|
Type | Description |
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.events.cloud.metastore.v1.Service service_revision = 5;
Parameter | |
---|---|
Name | Description |
builderForValue | Service.Builder |
Returns | |
---|---|
Type | Description |
Backup.Builder |
setState(Backup.State value)
public Backup.Builder setState(Backup.State value)
Output only. The current state of the backup.
.google.events.cloud.metastore.v1.Backup.State state = 4;
Parameter | |
---|---|
Name | Description |
value | Backup.State The state to set. |
Returns | |
---|---|
Type | Description |
Backup.Builder | This builder for chaining. |
setStateValue(int value)
public Backup.Builder setStateValue(int value)
Output only. The current state of the backup.
.google.events.cloud.metastore.v1.Backup.State state = 4;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Returns | |
---|---|
Type | Description |
Backup.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Backup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Backup.Builder |