public final class CreateOSPolicyAssignmentRequest extends GeneratedMessageV3 implements CreateOSPolicyAssignmentRequestOrBuilder
A request message to create an OS policy assignment
Protobuf type google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest
Static Fields
OS_POLICY_ASSIGNMENT_FIELD_NUMBER
public static final int OS_POLICY_ASSIGNMENT_FIELD_NUMBER
Field Value
OS_POLICY_ASSIGNMENT_ID_FIELD_NUMBER
public static final int OS_POLICY_ASSIGNMENT_ID_FIELD_NUMBER
Field Value
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static CreateOSPolicyAssignmentRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static CreateOSPolicyAssignmentRequest.Builder newBuilder()
Returns
newBuilder(CreateOSPolicyAssignmentRequest prototype)
public static CreateOSPolicyAssignmentRequest.Builder newBuilder(CreateOSPolicyAssignmentRequest prototype)
Parameter
Returns
public static CreateOSPolicyAssignmentRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateOSPolicyAssignmentRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static CreateOSPolicyAssignmentRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CreateOSPolicyAssignmentRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static CreateOSPolicyAssignmentRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreateOSPolicyAssignmentRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateOSPolicyAssignmentRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CreateOSPolicyAssignmentRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateOSPolicyAssignmentRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateOSPolicyAssignmentRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static CreateOSPolicyAssignmentRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CreateOSPolicyAssignmentRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<CreateOSPolicyAssignmentRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public CreateOSPolicyAssignmentRequest getDefaultInstanceForType()
Returns
getOsPolicyAssignment()
public OSPolicyAssignment getOsPolicyAssignment()
Required. The OS policy assignment to be created.
.google.cloud.osconfig.v1.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.v1.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
getParserForType()
public Parser<CreateOSPolicyAssignmentRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasOsPolicyAssignment()
public boolean hasOsPolicyAssignment()
Required. The OS policy assignment to be created.
.google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the osPolicyAssignment field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public CreateOSPolicyAssignmentRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CreateOSPolicyAssignmentRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public CreateOSPolicyAssignmentRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions