Class UpdateBackupPolicyRequest.Builder (0.18.0)

public static final class UpdateBackupPolicyRequest.Builder extends GeneratedMessageV3.Builder<UpdateBackupPolicyRequest.Builder> implements UpdateBackupPolicyRequestOrBuilder

UpdateBackupPolicyRequest for updating a backup policy.

Protobuf type google.cloud.netapp.v1.UpdateBackupPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateBackupPolicyRequest build()
Returns
TypeDescription
UpdateBackupPolicyRequest

buildPartial()

public UpdateBackupPolicyRequest buildPartial()
Returns
TypeDescription
UpdateBackupPolicyRequest

clear()

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

clearBackupPolicy()

public UpdateBackupPolicyRequest.Builder clearBackupPolicy()

Required. The backup policy being updated

.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateBackupPolicyRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateBackupPolicyRequest.Builder clearUpdateMask()

Required. Field mask is used to specify the fields to be overwritten in the Backup Policy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateBackupPolicyRequest.Builder

clone()

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

getBackupPolicy()

public BackupPolicy getBackupPolicy()

Required. The backup policy being updated

.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BackupPolicy

The backupPolicy.

getBackupPolicyBuilder()

public BackupPolicy.Builder getBackupPolicyBuilder()

Required. The backup policy being updated

.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BackupPolicy.Builder

getBackupPolicyOrBuilder()

public BackupPolicyOrBuilder getBackupPolicyOrBuilder()

Required. The backup policy being updated

.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BackupPolicyOrBuilder

getDefaultInstanceForType()

public UpdateBackupPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateBackupPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUpdateMask()

public FieldMask getUpdateMask()

Required. Field mask is used to specify the fields to be overwritten in the Backup Policy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Field mask is used to specify the fields to be overwritten in the Backup Policy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Field mask is used to specify the fields to be overwritten in the Backup Policy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMaskOrBuilder

hasBackupPolicy()

public boolean hasBackupPolicy()

Required. The backup policy being updated

.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the backupPolicy field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Field mask is used to specify the fields to be overwritten in the Backup Policy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBackupPolicy(BackupPolicy value)

public UpdateBackupPolicyRequest.Builder mergeBackupPolicy(BackupPolicy value)

Required. The backup policy being updated

.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueBackupPolicy
Returns
TypeDescription
UpdateBackupPolicyRequest.Builder

mergeFrom(UpdateBackupPolicyRequest other)

public UpdateBackupPolicyRequest.Builder mergeFrom(UpdateBackupPolicyRequest other)
Parameter
NameDescription
otherUpdateBackupPolicyRequest
Returns
TypeDescription
UpdateBackupPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateBackupPolicyRequest.Builder mergeUpdateMask(FieldMask value)

Required. Field mask is used to specify the fields to be overwritten in the Backup Policy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateBackupPolicyRequest.Builder

setBackupPolicy(BackupPolicy value)

public UpdateBackupPolicyRequest.Builder setBackupPolicy(BackupPolicy value)

Required. The backup policy being updated

.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueBackupPolicy
Returns
TypeDescription
UpdateBackupPolicyRequest.Builder

setBackupPolicy(BackupPolicy.Builder builderForValue)

public UpdateBackupPolicyRequest.Builder setBackupPolicy(BackupPolicy.Builder builderForValue)

Required. The backup policy being updated

.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBackupPolicy.Builder
Returns
TypeDescription
UpdateBackupPolicyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateBackupPolicyRequest.Builder setUpdateMask(FieldMask value)

Required. Field mask is used to specify the fields to be overwritten in the Backup Policy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateBackupPolicyRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateBackupPolicyRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Field mask is used to specify the fields to be overwritten in the Backup Policy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateBackupPolicyRequest.Builder