Class UpdateSnapshotSchedulePolicyRequest.Builder (0.2.0)

public static final class UpdateSnapshotSchedulePolicyRequest.Builder extends GeneratedMessageV3.Builder<UpdateSnapshotSchedulePolicyRequest.Builder> implements UpdateSnapshotSchedulePolicyRequestOrBuilder

Message for updating a snapshot schedule policy in a project.

Protobuf type google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateSnapshotSchedulePolicyRequest build()
Returns
TypeDescription
UpdateSnapshotSchedulePolicyRequest

buildPartial()

public UpdateSnapshotSchedulePolicyRequest buildPartial()
Returns
TypeDescription
UpdateSnapshotSchedulePolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSnapshotSchedulePolicy()

public UpdateSnapshotSchedulePolicyRequest.Builder clearSnapshotSchedulePolicy()

Required. The snapshot schedule policy to update. The name field is used to identify the snapshot schedule policy to update. Format: projects/{project}/locations/global/snapshotSchedulePolicies/{policy}

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateSnapshotSchedulePolicyRequest.Builder

clearUpdateMask()

public UpdateSnapshotSchedulePolicyRequest.Builder clearUpdateMask()

Required. The list of fields to update.

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

Returns
TypeDescription
UpdateSnapshotSchedulePolicyRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateSnapshotSchedulePolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateSnapshotSchedulePolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSnapshotSchedulePolicy()

public SnapshotSchedulePolicy getSnapshotSchedulePolicy()

Required. The snapshot schedule policy to update. The name field is used to identify the snapshot schedule policy to update. Format: projects/{project}/locations/global/snapshotSchedulePolicies/{policy}

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SnapshotSchedulePolicy

The snapshotSchedulePolicy.

getSnapshotSchedulePolicyBuilder()

public SnapshotSchedulePolicy.Builder getSnapshotSchedulePolicyBuilder()

Required. The snapshot schedule policy to update. The name field is used to identify the snapshot schedule policy to update. Format: projects/{project}/locations/global/snapshotSchedulePolicies/{policy}

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SnapshotSchedulePolicy.Builder

getSnapshotSchedulePolicyOrBuilder()

public SnapshotSchedulePolicyOrBuilder getSnapshotSchedulePolicyOrBuilder()

Required. The snapshot schedule policy to update. The name field is used to identify the snapshot schedule policy to update. Format: projects/{project}/locations/global/snapshotSchedulePolicies/{policy}

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SnapshotSchedulePolicyOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. The list of fields to update.

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

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. The list of fields to update.

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

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. The list of fields to update.

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

Returns
TypeDescription
FieldMaskOrBuilder

hasSnapshotSchedulePolicy()

public boolean hasSnapshotSchedulePolicy()

Required. The snapshot schedule policy to update. The name field is used to identify the snapshot schedule policy to update. Format: projects/{project}/locations/global/snapshotSchedulePolicies/{policy}

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the snapshotSchedulePolicy field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.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

mergeFrom(UpdateSnapshotSchedulePolicyRequest other)

public UpdateSnapshotSchedulePolicyRequest.Builder mergeFrom(UpdateSnapshotSchedulePolicyRequest other)
Parameter
NameDescription
otherUpdateSnapshotSchedulePolicyRequest
Returns
TypeDescription
UpdateSnapshotSchedulePolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSnapshotSchedulePolicy(SnapshotSchedulePolicy value)

public UpdateSnapshotSchedulePolicyRequest.Builder mergeSnapshotSchedulePolicy(SnapshotSchedulePolicy value)

Required. The snapshot schedule policy to update. The name field is used to identify the snapshot schedule policy to update. Format: projects/{project}/locations/global/snapshotSchedulePolicies/{policy}

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueSnapshotSchedulePolicy
Returns
TypeDescription
UpdateSnapshotSchedulePolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateSnapshotSchedulePolicyRequest.Builder mergeUpdateMask(FieldMask value)

Required. The list of fields to update.

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

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateSnapshotSchedulePolicyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSnapshotSchedulePolicy(SnapshotSchedulePolicy value)

public UpdateSnapshotSchedulePolicyRequest.Builder setSnapshotSchedulePolicy(SnapshotSchedulePolicy value)

Required. The snapshot schedule policy to update. The name field is used to identify the snapshot schedule policy to update. Format: projects/{project}/locations/global/snapshotSchedulePolicies/{policy}

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueSnapshotSchedulePolicy
Returns
TypeDescription
UpdateSnapshotSchedulePolicyRequest.Builder

setSnapshotSchedulePolicy(SnapshotSchedulePolicy.Builder builderForValue)

public UpdateSnapshotSchedulePolicyRequest.Builder setSnapshotSchedulePolicy(SnapshotSchedulePolicy.Builder builderForValue)

Required. The snapshot schedule policy to update. The name field is used to identify the snapshot schedule policy to update. Format: projects/{project}/locations/global/snapshotSchedulePolicies/{policy}

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueSnapshotSchedulePolicy.Builder
Returns
TypeDescription
UpdateSnapshotSchedulePolicyRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateSnapshotSchedulePolicyRequest.Builder setUpdateMask(FieldMask value)

Required. The list of fields to update.

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

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateSnapshotSchedulePolicyRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSnapshotSchedulePolicyRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. The list of fields to update.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateSnapshotSchedulePolicyRequest.Builder