Class Backup.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
com.google.cloud.metastore.v1beta.Backup.Builder
- All Implemented Interfaces:
BackupOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Backup
public static final class Backup.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
implements BackupOrBuilder
The details of a backup resource.Protobuf type
google.cloud.metastore.v1beta.Backup-
Method Summary
Modifier and TypeMethodDescriptionaddAllRestoringServices(Iterable<String> values) Output only.addRestoringServices(String value) Output only.addRestoringServicesBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.The description of the backup.Output only.Immutable.Output only.Output only.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.The description of the backup.com.google.protobuf.ByteStringThe description of the backup.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getName()Immutable.com.google.protobuf.ByteStringImmutable.getRestoringServices(int index) Output only.com.google.protobuf.ByteStringgetRestoringServicesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.Output only.Output only.Output only.getState()Output only.intOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeEndTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeServiceRevision(Service value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDescription(String value) The description of the backup.setDescriptionBytes(com.google.protobuf.ByteString value) The description of the backup.setEndTime(com.google.protobuf.Timestamp value) Output only.setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Immutable.setNameBytes(com.google.protobuf.ByteString value) Immutable.setRestoringServices(int index, String value) Output only.setServiceRevision(Service value) Output only.setServiceRevision(Service.Builder builderForValue) Output only.setState(Backup.State value) Output only.setStateValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Backup.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
-
mergeFrom
public Backup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Backup.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceBackupOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];- Specified by:
getNameBytesin interfaceBackupOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasCreateTimein interfaceBackupOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time when the backup was started.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceBackupOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The time when the backup was started.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The time when the backup was started.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The time when the backup was started.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The time when the backup was started.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The time when the backup was started.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time when the backup was started.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceBackupOrBuilder
-
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];- Specified by:
hasEndTimein interfaceBackupOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.Timestamp getEndTime()Output only. The time when the backup finished creating.
.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEndTimein interfaceBackupOrBuilder- Returns:
- The endTime.
-
setEndTime
Output only. The time when the backup finished creating.
.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setEndTime
Output only. The time when the backup finished creating.
.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeEndTime
Output only. The time when the backup finished creating.
.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearEndTime
Output only. The time when the backup finished creating.
.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getEndTimeBuilder
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()Output only. The time when the backup finished creating.
.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()Output only. The time when the backup finished creating.
.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEndTimeOrBuilderin interfaceBackupOrBuilder
-
getStateValue
public int getStateValue()Output only. The current state of the backup.
.google.cloud.metastore.v1beta.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceBackupOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. The current state of the backup.
.google.cloud.metastore.v1beta.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Output only. The current state of the backup.
.google.cloud.metastore.v1beta.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceBackupOrBuilder- Returns:
- The state.
-
setState
Output only. The current state of the backup.
.google.cloud.metastore.v1beta.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. The current state of the backup.
.google.cloud.metastore.v1beta.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasServiceRevision
public boolean hasServiceRevision()Output only. The revision of the service at the time of backup.
.google.cloud.metastore.v1beta.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasServiceRevisionin interfaceBackupOrBuilder- Returns:
- Whether the serviceRevision field is set.
-
getServiceRevision
Output only. The revision of the service at the time of backup.
.google.cloud.metastore.v1beta.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServiceRevisionin interfaceBackupOrBuilder- Returns:
- The serviceRevision.
-
setServiceRevision
Output only. The revision of the service at the time of backup.
.google.cloud.metastore.v1beta.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setServiceRevision
Output only. The revision of the service at the time of backup.
.google.cloud.metastore.v1beta.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeServiceRevision
Output only. The revision of the service at the time of backup.
.google.cloud.metastore.v1beta.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearServiceRevision
Output only. The revision of the service at the time of backup.
.google.cloud.metastore.v1beta.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getServiceRevisionBuilder
Output only. The revision of the service at the time of backup.
.google.cloud.metastore.v1beta.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getServiceRevisionOrBuilder
Output only. The revision of the service at the time of backup.
.google.cloud.metastore.v1beta.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServiceRevisionOrBuilderin interfaceBackupOrBuilder
-
getDescription
The description of the backup.
string description = 6;- Specified by:
getDescriptionin interfaceBackupOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()The description of the backup.
string description = 6;- Specified by:
getDescriptionBytesin interfaceBackupOrBuilder- Returns:
- The bytes for description.
-
setDescription
The description of the backup.
string description = 6;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
The description of the backup.
string description = 6;- Returns:
- This builder for chaining.
-
setDescriptionBytes
The description of the backup.
string description = 6;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getRestoringServicesList
public com.google.protobuf.ProtocolStringList getRestoringServicesList()Output only. Services that are restoring from the backup.
repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRestoringServicesListin interfaceBackupOrBuilder- Returns:
- A list containing the restoringServices.
-
getRestoringServicesCount
public int getRestoringServicesCount()Output only. Services that are restoring from the backup.
repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRestoringServicesCountin interfaceBackupOrBuilder- Returns:
- The count of restoringServices.
-
getRestoringServices
Output only. Services that are restoring from the backup.
repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRestoringServicesin interfaceBackupOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The restoringServices at the given index.
-
getRestoringServicesBytes
public com.google.protobuf.ByteString getRestoringServicesBytes(int index) Output only. Services that are restoring from the backup.
repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRestoringServicesBytesin interfaceBackupOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the restoringServices at the given index.
-
setRestoringServices
Output only. Services that are restoring from the backup.
repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The restoringServices to set.- Returns:
- This builder for chaining.
-
addRestoringServices
Output only. Services that are restoring from the backup.
repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The restoringServices to add.- Returns:
- This builder for chaining.
-
addAllRestoringServices
Output only. Services that are restoring from the backup.
repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The restoringServices to add.- Returns:
- This builder for chaining.
-
clearRestoringServices
Output only. Services that are restoring from the backup.
repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addRestoringServicesBytes
Output only. Services that are restoring from the backup.
repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the restoringServices to add.- Returns:
- This builder for chaining.
-