Class UpdateOSPolicyAssignmentRequest.Builder (2.54.0)

public static final class UpdateOSPolicyAssignmentRequest.Builder extends GeneratedMessageV3.Builder<UpdateOSPolicyAssignmentRequest.Builder> implements UpdateOSPolicyAssignmentRequestOrBuilder

A request message to update an OS policy assignment

Protobuf type google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateOSPolicyAssignmentRequest build()
Returns
Type Description
UpdateOSPolicyAssignmentRequest

buildPartial()

public UpdateOSPolicyAssignmentRequest buildPartial()
Returns
Type Description
UpdateOSPolicyAssignmentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOsPolicyAssignment()

public UpdateOSPolicyAssignmentRequest.Builder clearOsPolicyAssignment()

Required. The updated OS policy assignment.

.google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignment = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateOSPolicyAssignmentRequest.Builder

clearUpdateMask()

public UpdateOSPolicyAssignmentRequest.Builder clearUpdateMask()

Optional. Field mask that controls which fields of the assignment should be updated.

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

Returns
Type Description
UpdateOSPolicyAssignmentRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateOSPolicyAssignmentRequest getDefaultInstanceForType()
Returns
Type Description
UpdateOSPolicyAssignmentRequest

getDescriptorForType()

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

getOsPolicyAssignment()

public OSPolicyAssignment getOsPolicyAssignment()

Required. The updated OS policy assignment.

.google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignment = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OSPolicyAssignment

The osPolicyAssignment.

getOsPolicyAssignmentBuilder()

public OSPolicyAssignment.Builder getOsPolicyAssignmentBuilder()

Required. The updated OS policy assignment.

.google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignment = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OSPolicyAssignment.Builder

getOsPolicyAssignmentOrBuilder()

public OSPolicyAssignmentOrBuilder getOsPolicyAssignmentOrBuilder()

Required. The updated OS policy assignment.

.google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignment = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OSPolicyAssignmentOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Optional. Field mask that controls which fields of the assignment should be updated.

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

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. Field mask that controls which fields of the assignment should be updated.

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

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. Field mask that controls which fields of the assignment should be updated.

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

Returns
Type Description
FieldMaskOrBuilder

hasOsPolicyAssignment()

public boolean hasOsPolicyAssignment()

Required. The updated OS policy assignment.

.google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignment = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the osPolicyAssignment field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. Field mask that controls which fields of the assignment should be updated.

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

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateOSPolicyAssignmentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOsPolicyAssignment(OSPolicyAssignment value)

public UpdateOSPolicyAssignmentRequest.Builder mergeOsPolicyAssignment(OSPolicyAssignment value)

Required. The updated OS policy assignment.

.google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignment = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value OSPolicyAssignment
Returns
Type Description
UpdateOSPolicyAssignmentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateOSPolicyAssignmentRequest.Builder mergeUpdateMask(FieldMask value)

Optional. Field mask that controls which fields of the assignment should be updated.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateOSPolicyAssignmentRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOsPolicyAssignment(OSPolicyAssignment value)

public UpdateOSPolicyAssignmentRequest.Builder setOsPolicyAssignment(OSPolicyAssignment value)

Required. The updated OS policy assignment.

.google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignment = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value OSPolicyAssignment
Returns
Type Description
UpdateOSPolicyAssignmentRequest.Builder

setOsPolicyAssignment(OSPolicyAssignment.Builder builderForValue)

public UpdateOSPolicyAssignmentRequest.Builder setOsPolicyAssignment(OSPolicyAssignment.Builder builderForValue)

Required. The updated OS policy assignment.

.google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignment = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue OSPolicyAssignment.Builder
Returns
Type Description
UpdateOSPolicyAssignmentRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateOSPolicyAssignmentRequest.Builder setUpdateMask(FieldMask value)

Optional. Field mask that controls which fields of the assignment should be updated.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateOSPolicyAssignmentRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateOSPolicyAssignmentRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. Field mask that controls which fields of the assignment should be updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateOSPolicyAssignmentRequest.Builder