Class OSPolicyAssignmentOperationMetadata.Builder (2.29.0)

public static final class OSPolicyAssignmentOperationMetadata.Builder extends GeneratedMessageV3.Builder<OSPolicyAssignmentOperationMetadata.Builder> implements OSPolicyAssignmentOperationMetadataOrBuilder

OS policy assignment operation metadata provided by OS policy assignment API methods that return long running operations.

Protobuf type google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OSPolicyAssignmentOperationMetadata build()
Returns
TypeDescription
OSPolicyAssignmentOperationMetadata

buildPartial()

public OSPolicyAssignmentOperationMetadata buildPartial()
Returns
TypeDescription
OSPolicyAssignmentOperationMetadata

clear()

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

clearApiMethod()

public OSPolicyAssignmentOperationMetadata.Builder clearApiMethod()

The OS policy assignment API method.

.google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod api_method = 2;

Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOsPolicyAssignment()

public OSPolicyAssignmentOperationMetadata.Builder clearOsPolicyAssignment()

Reference to the OSPolicyAssignment API resource.

Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}

string os_policy_assignment = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder

This builder for chaining.

clearRolloutStartTime()

public OSPolicyAssignmentOperationMetadata.Builder clearRolloutStartTime()

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder

clearRolloutState()

public OSPolicyAssignmentOperationMetadata.Builder clearRolloutState()

State of the rollout

.google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState rollout_state = 3;

Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder

This builder for chaining.

clearRolloutUpdateTime()

public OSPolicyAssignmentOperationMetadata.Builder clearRolloutUpdateTime()

Rollout update time

.google.protobuf.Timestamp rollout_update_time = 5;

Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder

clone()

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

getApiMethod()

public OSPolicyAssignmentOperationMetadata.APIMethod getApiMethod()

The OS policy assignment API method.

.google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod api_method = 2;

Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.APIMethod

The apiMethod.

getApiMethodValue()

public int getApiMethodValue()

The OS policy assignment API method.

.google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod api_method = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for apiMethod.

getDefaultInstanceForType()

public OSPolicyAssignmentOperationMetadata getDefaultInstanceForType()
Returns
TypeDescription
OSPolicyAssignmentOperationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOsPolicyAssignment()

public String getOsPolicyAssignment()

Reference to the OSPolicyAssignment API resource.

Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}

string os_policy_assignment = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The osPolicyAssignment.

getOsPolicyAssignmentBytes()

public ByteString getOsPolicyAssignmentBytes()

Reference to the OSPolicyAssignment API resource.

Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}

string os_policy_assignment = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription