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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateOSPolicyAssignmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public UpdateOSPolicyAssignmentRequest build()
Returns
buildPartial()
public UpdateOSPolicyAssignmentRequest buildPartial()
Returns
clear()
public UpdateOSPolicyAssignmentRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public UpdateOSPolicyAssignmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateOSPolicyAssignmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public UpdateOSPolicyAssignmentRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public UpdateOSPolicyAssignmentRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(UpdateOSPolicyAssignmentRequest other)
public UpdateOSPolicyAssignmentRequest.Builder mergeFrom(UpdateOSPolicyAssignmentRequest other)
Parameter
Returns
public UpdateOSPolicyAssignmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public UpdateOSPolicyAssignmentRequest.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateOSPolicyAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateOSPolicyAssignmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateOSPolicyAssignmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateOSPolicyAssignmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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