Class CreateOSPolicyAssignmentRequest.Builder (2.13.0)

public static final class CreateOSPolicyAssignmentRequest.Builder extends GeneratedMessageV3.Builder<CreateOSPolicyAssignmentRequest.Builder> implements CreateOSPolicyAssignmentRequestOrBuilder

A request message to create an OS policy assignment

Protobuf type google.cloud.osconfig.v1alpha.CreateOSPolicyAssignmentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateOSPolicyAssignmentRequest build()
Returns
TypeDescription
CreateOSPolicyAssignmentRequest

buildPartial()

public CreateOSPolicyAssignmentRequest buildPartial()
Returns
TypeDescription
CreateOSPolicyAssignmentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateOSPolicyAssignmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateOSPolicyAssignmentRequest.Builder
Overrides

clearOsPolicyAssignment()

public CreateOSPolicyAssignmentRequest.Builder clearOsPolicyAssignment()

Required. The OS policy assignment to be created.

.google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateOSPolicyAssignmentRequest.Builder

clearOsPolicyAssignmentId()

public CreateOSPolicyAssignmentRequest.Builder clearOsPolicyAssignmentId()

Required. The logical name of the OS policy assignment in the project with the following restrictions:

  • Must contain only lowercase letters, numbers, and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the project.

string os_policy_assignment_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateOSPolicyAssignmentRequest.Builder

This builder for chaining.

clearParent()

public CreateOSPolicyAssignmentRequest.Builder clearParent()

Required. The parent resource name in the form: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CreateOSPolicyAssignmentRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateOSPolicyAssignmentRequest getDefaultInstanceForType()
Returns
TypeDescription