Class OSPolicyAssignmentOperationMetadata.Builder (2.53.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OSPolicyAssignmentOperationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder
Overrides

build()

public OSPolicyAssignmentOperationMetadata build()
Returns
Type Description
OSPolicyAssignmentOperationMetadata

buildPartial()

public OSPolicyAssignmentOperationMetadata buildPartial()
Returns
Type Description
OSPolicyAssignmentOperationMetadata

clear()

public OSPolicyAssignmentOperationMetadata.Builder clear()
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder
Overrides

clearApiMethod()

public OSPolicyAssignmentOperationMetadata.Builder clearApiMethod()

The OS policy assignment API method.

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

Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OSPolicyAssignmentOperationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public OSPolicyAssignmentOperationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
OSPolicyAssignmentOperationMetadata.Builder

This builder for chaining.

clearRolloutStartTime()

public OSPolicyAssignmentOperationMetadata.Builder clearRolloutStartTime()

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

clearRolloutState()

public OSPolicyAssignmentOperationMetadata.Builder clearRolloutState()

State of the rollout

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

Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

This builder for chaining.

clearRolloutUpdateTime()

public OSPolicyAssignmentOperationMetadata.Builder clearRolloutUpdateTime()

Rollout update time

.google.protobuf.Timestamp rollout_update_time = 5;

Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

clone()

public OSPolicyAssignmentOperationMetadata.Builder clone()
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder
Overrides

getApiMethod()

public OSPolicyAssignmentOperationMetadata.APIMethod getApiMethod()

The OS policy assignment API method.

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

Returns
Type Description
OSPolicyAssignmentOperationMetadata.APIMethod

The apiMethod.

getApiMethodValue()

public int getApiMethodValue()

The OS policy assignment API method.

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

Returns
Type Description
int

The enum numeric value on the wire for apiMethod.

getDefaultInstanceForType()

public OSPolicyAssignmentOperationMetadata getDefaultInstanceForType()
Returns
Type Description
OSPolicyAssignmentOperationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for osPolicyAssignment.

getRolloutStartTime()

public Timestamp getRolloutStartTime()

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Returns
Type Description
Timestamp

The rolloutStartTime.

getRolloutStartTimeBuilder()

public Timestamp.Builder getRolloutStartTimeBuilder()

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Returns
Type Description
Builder

getRolloutStartTimeOrBuilder()

public TimestampOrBuilder getRolloutStartTimeOrBuilder()

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Returns
Type Description
TimestampOrBuilder

getRolloutState()

public OSPolicyAssignmentOperationMetadata.RolloutState getRolloutState()

State of the rollout

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

Returns
Type Description
OSPolicyAssignmentOperationMetadata.RolloutState

The rolloutState.

getRolloutStateValue()

public int getRolloutStateValue()

State of the rollout

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

Returns
Type Description
int

The enum numeric value on the wire for rolloutState.

getRolloutUpdateTime()

public Timestamp getRolloutUpdateTime()

Rollout update time

.google.protobuf.Timestamp rollout_update_time = 5;

Returns
Type Description
Timestamp

The rolloutUpdateTime.

getRolloutUpdateTimeBuilder()

public Timestamp.Builder getRolloutUpdateTimeBuilder()

Rollout update time

.google.protobuf.Timestamp rollout_update_time = 5;

Returns
Type Description
Builder

getRolloutUpdateTimeOrBuilder()

public TimestampOrBuilder getRolloutUpdateTimeOrBuilder()

Rollout update time

.google.protobuf.Timestamp rollout_update_time = 5;

Returns
Type Description
TimestampOrBuilder

hasRolloutStartTime()

public boolean hasRolloutStartTime()

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Returns
Type Description
boolean

Whether the rolloutStartTime field is set.

hasRolloutUpdateTime()

public boolean hasRolloutUpdateTime()

Rollout update time

.google.protobuf.Timestamp rollout_update_time = 5;

Returns
Type Description
boolean

Whether the rolloutUpdateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OSPolicyAssignmentOperationMetadata other)

public OSPolicyAssignmentOperationMetadata.Builder mergeFrom(OSPolicyAssignmentOperationMetadata other)
Parameter
Name Description
other OSPolicyAssignmentOperationMetadata
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OSPolicyAssignmentOperationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OSPolicyAssignmentOperationMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder
Overrides

mergeRolloutStartTime(Timestamp value)

public OSPolicyAssignmentOperationMetadata.Builder mergeRolloutStartTime(Timestamp value)

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

mergeRolloutUpdateTime(Timestamp value)

public OSPolicyAssignmentOperationMetadata.Builder mergeRolloutUpdateTime(Timestamp value)

Rollout update time

.google.protobuf.Timestamp rollout_update_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicyAssignmentOperationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder
Overrides

setApiMethod(OSPolicyAssignmentOperationMetadata.APIMethod value)

public OSPolicyAssignmentOperationMetadata.Builder setApiMethod(OSPolicyAssignmentOperationMetadata.APIMethod value)

The OS policy assignment API method.

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

Parameter
Name Description
value OSPolicyAssignmentOperationMetadata.APIMethod

The apiMethod to set.

Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

This builder for chaining.

setApiMethodValue(int value)

public OSPolicyAssignmentOperationMetadata.Builder setApiMethodValue(int value)

The OS policy assignment API method.

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

Parameter
Name Description
value int

The enum numeric value on the wire for apiMethod to set.

Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public OSPolicyAssignmentOperationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder
Overrides

setOsPolicyAssignment(String value)

public OSPolicyAssignmentOperationMetadata.Builder setOsPolicyAssignment(String value)

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) = { ... }

Parameter
Name Description
value String

The osPolicyAssignment to set.

Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

This builder for chaining.

setOsPolicyAssignmentBytes(ByteString value)

public OSPolicyAssignmentOperationMetadata.Builder setOsPolicyAssignmentBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for osPolicyAssignment to set.

Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OSPolicyAssignmentOperationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder
Overrides

setRolloutStartTime(Timestamp value)

public OSPolicyAssignmentOperationMetadata.Builder setRolloutStartTime(Timestamp value)

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

setRolloutStartTime(Timestamp.Builder builderForValue)

public OSPolicyAssignmentOperationMetadata.Builder setRolloutStartTime(Timestamp.Builder builderForValue)

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

setRolloutState(OSPolicyAssignmentOperationMetadata.RolloutState value)

public OSPolicyAssignmentOperationMetadata.Builder setRolloutState(OSPolicyAssignmentOperationMetadata.RolloutState value)

State of the rollout

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

Parameter
Name Description
value OSPolicyAssignmentOperationMetadata.RolloutState

The rolloutState to set.

Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

This builder for chaining.

setRolloutStateValue(int value)

public OSPolicyAssignmentOperationMetadata.Builder setRolloutStateValue(int value)

State of the rollout

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

Parameter
Name Description
value int

The enum numeric value on the wire for rolloutState to set.

Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

This builder for chaining.

setRolloutUpdateTime(Timestamp value)

public OSPolicyAssignmentOperationMetadata.Builder setRolloutUpdateTime(Timestamp value)

Rollout update time

.google.protobuf.Timestamp rollout_update_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

setRolloutUpdateTime(Timestamp.Builder builderForValue)

public OSPolicyAssignmentOperationMetadata.Builder setRolloutUpdateTime(Timestamp.Builder builderForValue)

Rollout update time

.google.protobuf.Timestamp rollout_update_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicyAssignmentOperationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OSPolicyAssignmentOperationMetadata.Builder
Overrides