Class UpdateOSPolicyAssignmentRequest.Builder (2.4.3)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateOSPolicyAssignmentRequest build()
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest

buildPartial()

public UpdateOSPolicyAssignmentRequest buildPartial()
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateOSPolicyAssignmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UpdateOSPolicyAssignmentRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateOSPolicyAssignmentRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
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(UpdateOSPolicyAssignmentRequest other)

public UpdateOSPolicyAssignmentRequest.Builder mergeFrom(UpdateOSPolicyAssignmentRequest other)
Parameter
NameDescription
otherUpdateOSPolicyAssignmentRequest
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public UpdateOSPolicyAssignmentRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueOSPolicyAssignment
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateOSPolicyAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateOSPolicyAssignmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueOSPolicyAssignment
Returns
TypeDescription
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
NameDescription
builderForValueOSPolicyAssignment.Builder
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateOSPolicyAssignmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest.Builder