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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateOSPolicyAssignmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateOSPolicyAssignmentRequest build()
Returns
buildPartial()
public CreateOSPolicyAssignmentRequest buildPartial()
Returns
clear()
public CreateOSPolicyAssignmentRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateOSPolicyAssignmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateOSPolicyAssignmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
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
clone()
public CreateOSPolicyAssignmentRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateOSPolicyAssignmentRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getOsPolicyAssignment()
public OSPolicyAssignment getOsPolicyAssignment()
Required. The OS policy assignment to be created.
.google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getOsPolicyAssignmentBuilder()
public OSPolicyAssignment.Builder getOsPolicyAssignmentBuilder()
Required. The OS policy assignment to be created.
.google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getOsPolicyAssignmentId()
public String getOsPolicyAssignmentId()
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
Type | Description |
String | The osPolicyAssignmentId.
|
getOsPolicyAssignmentIdBytes()
public ByteString getOsPolicyAssignmentIdBytes()
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
Type | Description |
ByteString | The bytes for osPolicyAssignmentId.
|
getOsPolicyAssignmentOrBuilder()
public OSPolicyAssignmentOrBuilder getOsPolicyAssignmentOrBuilder()
Required. The OS policy assignment to be created.
.google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getParent()
public String getParent()
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
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
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
hasOsPolicyAssignment()
public boolean hasOsPolicyAssignment()
Required. The OS policy assignment to be created.
.google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the osPolicyAssignment field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateOSPolicyAssignmentRequest other)
public CreateOSPolicyAssignmentRequest.Builder mergeFrom(CreateOSPolicyAssignmentRequest other)
Parameter
Returns
public CreateOSPolicyAssignmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateOSPolicyAssignmentRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeOsPolicyAssignment(OSPolicyAssignment value)
public CreateOSPolicyAssignmentRequest.Builder mergeOsPolicyAssignment(OSPolicyAssignment value)
Required. The OS policy assignment to be created.
.google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateOSPolicyAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateOSPolicyAssignmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setOsPolicyAssignment(OSPolicyAssignment value)
public CreateOSPolicyAssignmentRequest.Builder setOsPolicyAssignment(OSPolicyAssignment value)
Required. The OS policy assignment to be created.
.google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setOsPolicyAssignment(OSPolicyAssignment.Builder builderForValue)
public CreateOSPolicyAssignmentRequest.Builder setOsPolicyAssignment(OSPolicyAssignment.Builder builderForValue)
Required. The OS policy assignment to be created.
.google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setOsPolicyAssignmentId(String value)
public CreateOSPolicyAssignmentRequest.Builder setOsPolicyAssignmentId(String value)
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];
Parameter
Name | Description |
value | String
The osPolicyAssignmentId to set.
|
Returns
setOsPolicyAssignmentIdBytes(ByteString value)
public CreateOSPolicyAssignmentRequest.Builder setOsPolicyAssignmentIdBytes(ByteString value)
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];
Parameter
Name | Description |
value | ByteString
The bytes for osPolicyAssignmentId to set.
|
Returns
setParent(String value)
public CreateOSPolicyAssignmentRequest.Builder setParent(String value)
Required. The parent resource name in the form:
projects/{project}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
setParentBytes(ByteString value)
public CreateOSPolicyAssignmentRequest.Builder setParentBytes(ByteString value)
Required. The parent resource name in the form:
projects/{project}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateOSPolicyAssignmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateOSPolicyAssignmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides