Class UpdateWorkloadRequest.Builder (2.19.0)

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

Request for Updating a workload.

Protobuf type google.cloud.assuredworkloads.v1.UpdateWorkloadRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateWorkloadRequest build()
Returns
TypeDescription
UpdateWorkloadRequest

buildPartial()

public UpdateWorkloadRequest buildPartial()
Returns
TypeDescription
UpdateWorkloadRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateWorkloadRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateWorkloadRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateWorkloadRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateWorkloadRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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
TypeDescription
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.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the workload field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateWorkloadRequest other)

public UpdateWorkloadRequest.Builder mergeFrom(UpdateWorkloadRequest other)
Parameter
NameDescription
otherUpdateWorkloadRequest
Returns
TypeDescription
UpdateWorkloadRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateWorkloadRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWorkload
Returns
TypeDescription
UpdateWorkloadRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateWorkloadRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWorkload
Returns
TypeDescription
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.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueWorkload.Builder
Returns
TypeDescription
UpdateWorkloadRequest.Builder