Class UpdateWorkloadRequest.Builder (2.51.0)

public static final class UpdateWorkloadRequest.Builder extends GeneratedMessageV3.Builder<UpdateWorkloadRequest.Builder> implements UpdateWorkloadRequestOrBuilder

Request for Updating a workload.

Protobuf type google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateWorkloadRequest build()
Returns
Type Description
UpdateWorkloadRequest

buildPartial()

public UpdateWorkloadRequest buildPartial()
Returns
Type Description
UpdateWorkloadRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateWorkloadRequest.Builder clearUpdateMask()

Required. The list of fields to be updated.

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

Returns
Type Description
UpdateWorkloadRequest.Builder

clearWorkload()

public UpdateWorkloadRequest.Builder clearWorkload()

Required. The workload to update. The workload's name field is used to identify the workload to be updated. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id}

.google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateWorkloadRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateWorkloadRequest getDefaultInstanceForType()
Returns
Type Description
UpdateWorkloadRequest

getDescriptorForType()

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

getUpdateMask()

public FieldMask getUpdateMask()

Required. The list of fields to be updated.

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

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. The list of fields to be updated.

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

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. The list of fields to be updated.

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

Returns
Type Description
FieldMaskOrBuilder

getWorkload()

public Workload getWorkload()

Required. The workload to update. The workload's name field is used to identify the workload to be updated. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id}

.google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Workload

The workload.

getWorkloadBuilder()

public Workload.Builder getWorkloadBuilder()

Required. The workload to update. The workload's name field is used to identify the workload to be updated. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id}

.google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Workload.Builder

getWorkloadOrBuilder()

public WorkloadOrBuilder getWorkloadOrBuilder()

Required. The workload to update. The workload's name field is used to identify the workload to be updated. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id}

.google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WorkloadOrBuilder

hasUpdateMask()

public boolean hasUpdateMask()

Required. The list of fields to be updated.

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

Returns
Type Description
boolean

Whether the updateMask field is set.

hasWorkload()

public boolean hasWorkload()

Required. The workload to update. The workload's name field is used to identify the workload to be updated. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id}

.google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the workload field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateWorkloadRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateWorkloadRequest.Builder mergeUpdateMask(FieldMask value)

Required. The list of fields to be updated.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateWorkloadRequest.Builder

mergeWorkload(Workload value)

public UpdateWorkloadRequest.Builder mergeWorkload(Workload value)

Required. The workload to update. The workload's name field is used to identify the workload to be updated. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id}

.google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Workload
Returns
Type Description
UpdateWorkloadRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateWorkloadRequest.Builder setUpdateMask(FieldMask value)

Required. The list of fields to be updated.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateWorkloadRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateWorkloadRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. The list of fields to be updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateWorkloadRequest.Builder

setWorkload(Workload value)

public UpdateWorkloadRequest.Builder setWorkload(Workload value)

Required. The workload to update. The workload's name field is used to identify the workload to be updated. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id}

.google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Workload
Returns
Type Description
UpdateWorkloadRequest.Builder

setWorkload(Workload.Builder builderForValue)

public UpdateWorkloadRequest.Builder setWorkload(Workload.Builder builderForValue)

Required. The workload to update. The workload's name field is used to identify the workload to be updated. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id}

.google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Workload.Builder
Returns
Type Description
UpdateWorkloadRequest.Builder