Class BackupPlanRevision.Builder (0.34.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass BackupPlanRevision.BuilderextendsGeneratedMessageV3.Builder<BackupPlanRevision.Builder>implementsBackupPlanRevisionOrBuilder BackupPlanRevision represents a snapshot of a BackupPlan at a point in
time.
Protobuf type google.cloud.backupdr.v1.BackupPlanRevision
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BackupPlanRevision.BuilderImplements
BackupPlanRevisionOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicBackupPlanRevision.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
build()
publicBackupPlanRevisionbuild()| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision |
|
buildPartial()
publicBackupPlanRevisionbuildPartial()| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision |
|
clear()
publicBackupPlanRevision.Builderclear()| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
clearBackupPlanSnapshot()
publicBackupPlanRevision.BuilderclearBackupPlanSnapshot()The Backup Plan being encompassed by this revision.
.google.cloud.backupdr.v1.BackupPlan backup_plan_snapshot = 4;
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
clearCreateTime()
publicBackupPlanRevision.BuilderclearCreateTime()Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicBackupPlanRevision.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
clearName()
publicBackupPlanRevision.BuilderclearName() Output only. Identifier. The resource name of the BackupPlanRevision.
Format:
projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicBackupPlanRevision.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
clearRevisionId()
publicBackupPlanRevision.BuilderclearRevisionId() Output only. The user friendly revision ID of the BackupPlanRevision.
Example: v0, v1, v2, etc.
string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
This builder for chaining. |
clearState()
publicBackupPlanRevision.BuilderclearState()Output only. Resource State
.google.cloud.backupdr.v1.BackupPlanRevision.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
This builder for chaining. |
clone()
publicBackupPlanRevision.Builderclone()| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
getBackupPlanSnapshot()
publicBackupPlangetBackupPlanSnapshot()The Backup Plan being encompassed by this revision.
.google.cloud.backupdr.v1.BackupPlan backup_plan_snapshot = 4;
| Returns | |
|---|---|
| Type | Description |
BackupPlan |
The backupPlanSnapshot. |
getBackupPlanSnapshotBuilder()
publicBackupPlan.BuildergetBackupPlanSnapshotBuilder()The Backup Plan being encompassed by this revision.
.google.cloud.backupdr.v1.BackupPlan backup_plan_snapshot = 4;
| Returns | |
|---|---|
| Type | Description |
BackupPlan.Builder |
|
getBackupPlanSnapshotOrBuilder()
publicBackupPlanOrBuildergetBackupPlanSnapshotOrBuilder()The Backup Plan being encompassed by this revision.
.google.cloud.backupdr.v1.BackupPlan backup_plan_snapshot = 4;
| Returns | |
|---|---|
| Type | Description |
BackupPlanOrBuilder |
|
getCreateTime()
publicTimestampgetCreateTime()Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
publicTimestamp.BuildergetCreateTimeBuilder()Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
publicTimestampOrBuildergetCreateTimeOrBuilder()Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
publicBackupPlanRevisiongetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
publicStringgetName() Output only. Identifier. The resource name of the BackupPlanRevision.
Format:
projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
publicByteStringgetNameBytes() Output only. Identifier. The resource name of the BackupPlanRevision.
Format:
projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getRevisionId()
publicStringgetRevisionId() Output only. The user friendly revision ID of the BackupPlanRevision.
Example: v0, v1, v2, etc.
string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The revisionId. |
getRevisionIdBytes()
publicByteStringgetRevisionIdBytes() Output only. The user friendly revision ID of the BackupPlanRevision.
Example: v0, v1, v2, etc.
string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for revisionId. |
getState()
publicBackupPlanRevision.StategetState()Output only. Resource State
.google.cloud.backupdr.v1.BackupPlanRevision.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.State |
The state. |
getStateValue()
publicintgetStateValue()Output only. Resource State
.google.cloud.backupdr.v1.BackupPlanRevision.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
hasBackupPlanSnapshot()
publicbooleanhasBackupPlanSnapshot()The Backup Plan being encompassed by this revision.
.google.cloud.backupdr.v1.BackupPlan backup_plan_snapshot = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the backupPlanSnapshot field is set. |
hasCreateTime()
publicbooleanhasCreateTime()Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBackupPlanSnapshot(BackupPlan value)
publicBackupPlanRevision.BuildermergeBackupPlanSnapshot(BackupPlanvalue)The Backup Plan being encompassed by this revision.
.google.cloud.backupdr.v1.BackupPlan backup_plan_snapshot = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
BackupPlan |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
mergeCreateTime(Timestamp value)
publicBackupPlanRevision.BuildermergeCreateTime(Timestampvalue)Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
mergeFrom(BackupPlanRevision other)
publicBackupPlanRevision.BuildermergeFrom(BackupPlanRevisionother)| Parameter | |
|---|---|
| Name | Description |
other |
BackupPlanRevision |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicBackupPlanRevision.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicBackupPlanRevision.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalBackupPlanRevision.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
setBackupPlanSnapshot(BackupPlan value)
publicBackupPlanRevision.BuildersetBackupPlanSnapshot(BackupPlanvalue)The Backup Plan being encompassed by this revision.
.google.cloud.backupdr.v1.BackupPlan backup_plan_snapshot = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
BackupPlan |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
setBackupPlanSnapshot(BackupPlan.Builder builderForValue)
publicBackupPlanRevision.BuildersetBackupPlanSnapshot(BackupPlan.BuilderbuilderForValue)The Backup Plan being encompassed by this revision.
.google.cloud.backupdr.v1.BackupPlan backup_plan_snapshot = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BackupPlan.Builder |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
setCreateTime(Timestamp value)
publicBackupPlanRevision.BuildersetCreateTime(Timestampvalue)Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
publicBackupPlanRevision.BuildersetCreateTime(Timestamp.BuilderbuilderForValue)Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicBackupPlanRevision.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
setName(String value)
publicBackupPlanRevision.BuildersetName(Stringvalue) Output only. Identifier. The resource name of the BackupPlanRevision.
Format:
projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
String The name to set. |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
publicBackupPlanRevision.BuildersetNameBytes(ByteStringvalue) Output only. Identifier. The resource name of the BackupPlanRevision.
Format:
projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicBackupPlanRevision.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|
setRevisionId(String value)
publicBackupPlanRevision.BuildersetRevisionId(Stringvalue) Output only. The user friendly revision ID of the BackupPlanRevision.
Example: v0, v1, v2, etc.
string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
String The revisionId to set. |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
This builder for chaining. |
setRevisionIdBytes(ByteString value)
publicBackupPlanRevision.BuildersetRevisionIdBytes(ByteStringvalue) Output only. The user friendly revision ID of the BackupPlanRevision.
Example: v0, v1, v2, etc.
string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for revisionId to set. |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
This builder for chaining. |
setState(BackupPlanRevision.State value)
publicBackupPlanRevision.BuildersetState(BackupPlanRevision.Statevalue)Output only. Resource State
.google.cloud.backupdr.v1.BackupPlanRevision.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
BackupPlanRevision.State The state to set. |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
This builder for chaining. |
setStateValue(int value)
publicBackupPlanRevision.BuildersetStateValue(intvalue)Output only. Resource State
.google.cloud.backupdr.v1.BackupPlanRevision.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalBackupPlanRevision.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
BackupPlanRevision.Builder |
|