Class UpdateOSPolicyAssignmentRequest (2.36.0)

public final class UpdateOSPolicyAssignmentRequest extends GeneratedMessageV3 implements UpdateOSPolicyAssignmentRequestOrBuilder

A request message to update an OS policy assignment

Protobuf type google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > UpdateOSPolicyAssignmentRequest

Static Fields

OS_POLICY_ASSIGNMENT_FIELD_NUMBER

public static final int OS_POLICY_ASSIGNMENT_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_MASK_FIELD_NUMBER

public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UpdateOSPolicyAssignmentRequest getDefaultInstance()
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest

getDescriptor()

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

newBuilder()

public static UpdateOSPolicyAssignmentRequest.Builder newBuilder()
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest.Builder

newBuilder(UpdateOSPolicyAssignmentRequest prototype)

public static UpdateOSPolicyAssignmentRequest.Builder newBuilder(UpdateOSPolicyAssignmentRequest prototype)
Parameter
NameDescription
prototypeUpdateOSPolicyAssignmentRequest
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest.Builder

parseDelimitedFrom(InputStream input)

public static UpdateOSPolicyAssignmentRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateOSPolicyAssignmentRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static UpdateOSPolicyAssignmentRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UpdateOSPolicyAssignmentRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UpdateOSPolicyAssignmentRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UpdateOSPolicyAssignmentRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UpdateOSPolicyAssignmentRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateOSPolicyAssignmentRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static UpdateOSPolicyAssignmentRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateOSPolicyAssignmentRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static UpdateOSPolicyAssignmentRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UpdateOSPolicyAssignmentRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<UpdateOSPolicyAssignmentRequest> parser()
Returns
TypeDescription
Parser<UpdateOSPolicyAssignmentRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public UpdateOSPolicyAssignmentRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest

getOsPolicyAssignment()

public OSPolicyAssignment getOsPolicyAssignment()

Required. The updated OS policy assignment.

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

Returns
TypeDescription
OSPolicyAssignment

The osPolicyAssignment.

getOsPolicyAssignmentOrBuilder()

public OSPolicyAssignmentOrBuilder getOsPolicyAssignmentOrBuilder()

Required. The updated OS policy assignment.

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

Returns
TypeDescription
OSPolicyAssignmentOrBuilder

getParserForType()

public Parser<UpdateOSPolicyAssignmentRequest> getParserForType()
Returns
TypeDescription
Parser<UpdateOSPolicyAssignmentRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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
TypeDescription
FieldMask

The updateMask.

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
TypeDescription
FieldMaskOrBuilder

hasOsPolicyAssignment()

public boolean hasOsPolicyAssignment()

Required. The updated OS policy assignment.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public UpdateOSPolicyAssignmentRequest.Builder newBuilderForType()
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UpdateOSPolicyAssignmentRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public UpdateOSPolicyAssignmentRequest.Builder toBuilder()
Returns
TypeDescription
UpdateOSPolicyAssignmentRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException