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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateOSPolicyAssignmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateOSPolicyAssignmentRequest build()
buildPartial()
public CreateOSPolicyAssignmentRequest buildPartial()
clear()
public CreateOSPolicyAssignmentRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateOSPolicyAssignmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateOSPolicyAssignmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
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];
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) = { ... }
clone()
public CreateOSPolicyAssignmentRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateOSPolicyAssignmentRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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];
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];
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 |
---|
Type | Description |
ByteString | The bytes for parent.
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateOSPolicyAssignmentRequest other)
public CreateOSPolicyAssignmentRequest.Builder mergeFrom(CreateOSPolicyAssignmentRequest other)
public CreateOSPolicyAssignmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateOSPolicyAssignmentRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateOSPolicyAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateOSPolicyAssignmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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];
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];
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.
|
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.
|
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateOSPolicyAssignmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateOSPolicyAssignmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides