Class RestorePlanBinding.Builder (0.61.0)

public static final class RestorePlanBinding.Builder extends GeneratedMessageV3.Builder<RestorePlanBinding.Builder> implements RestorePlanBindingOrBuilder

A RestorePlanBinding binds a RestorePlan with a RestoreChannel. This resource is created automatically when a RestorePlan is created using a RestoreChannel. This also serves as a holder for cross-project fields that need to be displayed in the current project.

Protobuf type google.cloud.gkebackup.v1.RestorePlanBinding

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RestorePlanBinding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RestorePlanBinding.Builder
Overrides

build()

public RestorePlanBinding build()
Returns
Type Description
RestorePlanBinding

buildPartial()

public RestorePlanBinding buildPartial()
Returns
Type Description
RestorePlanBinding

clear()

public RestorePlanBinding.Builder clear()
Returns
Type Description
RestorePlanBinding.Builder
Overrides

clearBackupPlan()

public RestorePlanBinding.Builder clearBackupPlan()

Output only. The fully qualified name of the BackupPlan bound to the specified RestorePlan. projects/*/locations/*/backukpPlans/{backup_plan}

string backup_plan = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
RestorePlanBinding.Builder

This builder for chaining.

clearCreateTime()

public RestorePlanBinding.Builder clearCreateTime()

Output only. The timestamp when this binding was created.

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

Returns
Type Description
RestorePlanBinding.Builder

clearEtag()

public RestorePlanBinding.Builder clearEtag()

Output only. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a RestorePlanBinding from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestorePlanBinding updates in order to avoid race conditions: An etag is returned in the response to GetRestorePlanBinding, and systems are expected to put that etag in the request to UpdateRestorePlanBinding or DeleteRestorePlanBinding to ensure that their change will be applied to the same version of the resource.

string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RestorePlanBinding.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RestorePlanBinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RestorePlanBinding.Builder
Overrides

clearName()

public RestorePlanBinding.Builder clearName()

Identifier. The fully qualified name of the RestorePlanBinding. projects/*/locations/*/restoreChannels/*/restorePlanBindings/*

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

Returns
Type Description
RestorePlanBinding.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RestorePlanBinding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RestorePlanBinding.Builder
Overrides

clearRestorePlan()

public RestorePlanBinding.Builder clearRestorePlan()

Output only. The fully qualified name of the RestorePlan bound to this RestoreChannel. projects/*/locations/*/restorePlans/{restore_plan}

string restore_plan = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
RestorePlanBinding.Builder

This builder for chaining.

clearUid()

public RestorePlanBinding.Builder clearUid()

Output only. Server generated global unique identifier of UUID4

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
RestorePlanBinding.Builder

This builder for chaining.

clearUpdateTime()

public RestorePlanBinding.Builder clearUpdateTime()

Output only. The timestamp when this binding was created.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RestorePlanBinding.Builder

clone()

public RestorePlanBinding.Builder clone()
Returns
Type Description
RestorePlanBinding.Builder
Overrides

getBackupPlan()

public String getBackupPlan()

Output only. The fully qualified name of the BackupPlan bound to the specified RestorePlan. projects/*/locations/*/backukpPlans/{backup_plan}

string backup_plan = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The backupPlan.

getBackupPlanBytes()

public ByteString getBackupPlanBytes()

Output only. The fully qualified name of the BackupPlan bound to the specified RestorePlan. projects/*/locations/*/backukpPlans/{backup_plan}

string backup_plan = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for backupPlan.

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when this binding was created.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when this binding was created.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when this binding was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public RestorePlanBinding getDefaultInstanceForType()
Returns
Type Description
RestorePlanBinding

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEtag()

public String getEtag()

Output only. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a RestorePlanBinding from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestorePlanBinding updates in order to avoid race conditions: An etag is returned in the response to GetRestorePlanBinding, and systems are expected to put that etag in the request to UpdateRestorePlanBinding or DeleteRestorePlanBinding to ensure that their change will be applied to the same version of the resource.

string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Output only. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a RestorePlanBinding from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestorePlanBinding updates in order to avoid race conditions: An etag is returned in the response to GetRestorePlanBinding, and systems are expected to put that etag in the request to UpdateRestorePlanBinding or DeleteRestorePlanBinding to ensure that their change will be applied to the same version of the resource.

string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for etag.

getName()

public String getName()

Identifier. The fully qualified name of the RestorePlanBinding. projects/*/locations/*/restoreChannels/*/restorePlanBindings/*

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The fully qualified name of the RestorePlanBinding. projects/*/locations/*/restoreChannels/*/restorePlanBindings/*

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

Returns
Type Description
ByteString

The bytes for name.

getRestorePlan()

public String getRestorePlan()

Output only. The fully qualified name of the RestorePlan bound to this RestoreChannel. projects/*/locations/*/restorePlans/{restore_plan}

string restore_plan = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The restorePlan.

getRestorePlanBytes()

public ByteString getRestorePlanBytes()

Output only. The fully qualified name of the RestorePlan bound to this RestoreChannel. projects/*/locations/*/restorePlans/{restore_plan}

string restore_plan = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for restorePlan.

getUid()

public String getUid()

Output only. Server generated global unique identifier of UUID4

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. Server generated global unique identifier of UUID4

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when this binding was created.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when this binding was created.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when this binding was created.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when this binding was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when this binding was created.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public RestorePlanBinding.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when this binding was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
RestorePlanBinding.Builder

mergeFrom(RestorePlanBinding other)

public RestorePlanBinding.Builder mergeFrom(RestorePlanBinding other)
Parameter
Name Description
other RestorePlanBinding
Returns
Type Description
RestorePlanBinding.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RestorePlanBinding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestorePlanBinding.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RestorePlanBinding.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RestorePlanBinding.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RestorePlanBinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RestorePlanBinding.Builder
Overrides

mergeUpdateTime(Timestamp value)

public RestorePlanBinding.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when this binding was created.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
RestorePlanBinding.Builder

setBackupPlan(String value)

public RestorePlanBinding.Builder setBackupPlan(String value)

Output only. The fully qualified name of the BackupPlan bound to the specified RestorePlan. projects/*/locations/*/backukpPlans/{backup_plan}

string backup_plan = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The backupPlan to set.

Returns
Type Description
RestorePlanBinding.Builder

This builder for chaining.

setBackupPlanBytes(ByteString value)

public RestorePlanBinding.Builder setBackupPlanBytes(ByteString value)

Output only. The fully qualified name of the BackupPlan bound to the specified RestorePlan. projects/*/locations/*/backukpPlans/{backup_plan}

string backup_plan = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for backupPlan to set.

Returns
Type Description
RestorePlanBinding.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public RestorePlanBinding.Builder setCreateTime(Timestamp value)

Output only. The timestamp when this binding was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
RestorePlanBinding.Builder

setCreateTime(Timestamp.Builder builderForValue)

public RestorePlanBinding.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when this binding was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RestorePlanBinding.Builder

setEtag(String value)

public RestorePlanBinding.Builder setEtag(String value)

Output only. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a RestorePlanBinding from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestorePlanBinding updates in order to avoid race conditions: An etag is returned in the response to GetRestorePlanBinding, and systems are expected to put that etag in the request to UpdateRestorePlanBinding or DeleteRestorePlanBinding to ensure that their change will be applied to the same version of the resource.

string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
RestorePlanBinding.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public RestorePlanBinding.Builder setEtagBytes(ByteString value)

Output only. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a RestorePlanBinding from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestorePlanBinding updates in order to avoid race conditions: An etag is returned in the response to GetRestorePlanBinding, and systems are expected to put that etag in the request to UpdateRestorePlanBinding or DeleteRestorePlanBinding to ensure that their change will be applied to the same version of the resource.

string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
RestorePlanBinding.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RestorePlanBinding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RestorePlanBinding.Builder
Overrides

setName(String value)

public RestorePlanBinding.Builder setName(String value)

Identifier. The fully qualified name of the RestorePlanBinding. projects/*/locations/*/restoreChannels/*/restorePlanBindings/*

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RestorePlanBinding.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RestorePlanBinding.Builder setNameBytes(ByteString value)

Identifier. The fully qualified name of the RestorePlanBinding. projects/*/locations/*/restoreChannels/*/restorePlanBindings/*

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RestorePlanBinding.Builder

This builder for chaining.

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

public RestorePlanBinding.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RestorePlanBinding.Builder
Overrides

setRestorePlan(String value)

public RestorePlanBinding.Builder setRestorePlan(String value)

Output only. The fully qualified name of the RestorePlan bound to this RestoreChannel. projects/*/locations/*/restorePlans/{restore_plan}

string restore_plan = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The restorePlan to set.

Returns
Type Description
RestorePlanBinding.Builder

This builder for chaining.

setRestorePlanBytes(ByteString value)

public RestorePlanBinding.Builder setRestorePlanBytes(ByteString value)

Output only. The fully qualified name of the RestorePlan bound to this RestoreChannel. projects/*/locations/*/restorePlans/{restore_plan}

string restore_plan = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for restorePlan to set.

Returns
Type Description
RestorePlanBinding.Builder

This builder for chaining.

setUid(String value)

public RestorePlanBinding.Builder setUid(String value)

Output only. Server generated global unique identifier of UUID4

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
RestorePlanBinding.Builder

This builder for chaining.

setUidBytes(ByteString value)

public RestorePlanBinding.Builder setUidBytes(ByteString value)

Output only. Server generated global unique identifier of UUID4

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
RestorePlanBinding.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RestorePlanBinding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RestorePlanBinding.Builder
Overrides

setUpdateTime(Timestamp value)

public RestorePlanBinding.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when this binding was created.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
RestorePlanBinding.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public RestorePlanBinding.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when this binding was created.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RestorePlanBinding.Builder