Class OSPolicyAssignmentOperationMetadata.Builder (2.3.2)

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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OSPolicyAssignmentOperationMetadata.APIMethod api_method = 2;

Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.APIMethod

The apiMethod.

getApiMethodValue()

public int getApiMethodValue()

The OS policy assignment API method.

.google.cloud.osconfig.v1alpha.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
ByteString

The bytes for osPolicyAssignment.

getRolloutStartTime()

public Timestamp getRolloutStartTime()

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Returns
TypeDescription
Timestamp

The rolloutStartTime.

getRolloutStartTimeBuilder()

public Timestamp.Builder getRolloutStartTimeBuilder()

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Returns
TypeDescription
Builder

getRolloutStartTimeOrBuilder()

public TimestampOrBuilder getRolloutStartTimeOrBuilder()

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getRolloutState()

public OSPolicyAssignmentOperationMetadata.RolloutState getRolloutState()

State of the rollout

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

Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.RolloutState

The rolloutState.

getRolloutStateValue()

public int getRolloutStateValue()

State of the rollout

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

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

The rolloutUpdateTime.

getRolloutUpdateTimeBuilder()

public Timestamp.Builder getRolloutUpdateTimeBuilder()

Rollout update time

.google.protobuf.Timestamp rollout_update_time = 5;

Returns
TypeDescription
Builder

getRolloutUpdateTimeOrBuilder()

public TimestampOrBuilder getRolloutUpdateTimeOrBuilder()

Rollout update time

.google.protobuf.Timestamp rollout_update_time = 5;

Returns
TypeDescription
TimestampOrBuilder

hasRolloutStartTime()

public boolean hasRolloutStartTime()

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Returns
TypeDescription
boolean

Whether the rolloutStartTime field is set.

hasRolloutUpdateTime()

public boolean hasRolloutUpdateTime()

Rollout update time

.google.protobuf.Timestamp rollout_update_time = 5;

Returns
TypeDescription
boolean

Whether the rolloutUpdateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OSPolicyAssignmentOperationMetadata other)

public OSPolicyAssignmentOperationMetadata.Builder mergeFrom(OSPolicyAssignmentOperationMetadata other)
Parameter
NameDescription
otherOSPolicyAssignmentOperationMetadata
Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OSPolicyAssignmentOperationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public OSPolicyAssignmentOperationMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder
Overrides

mergeRolloutStartTime(Timestamp value)

public OSPolicyAssignmentOperationMetadata.Builder mergeRolloutStartTime(Timestamp value)

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder

mergeRolloutUpdateTime(Timestamp value)

public OSPolicyAssignmentOperationMetadata.Builder mergeRolloutUpdateTime(Timestamp value)

Rollout update time

.google.protobuf.Timestamp rollout_update_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicyAssignmentOperationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder
Overrides

setApiMethod(OSPolicyAssignmentOperationMetadata.APIMethod value)

public OSPolicyAssignmentOperationMetadata.Builder setApiMethod(OSPolicyAssignmentOperationMetadata.APIMethod value)

The OS policy assignment API method.

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

Parameter
NameDescription
valueOSPolicyAssignmentOperationMetadata.APIMethod

The apiMethod to set.

Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder

This builder for chaining.

setApiMethodValue(int value)

public OSPolicyAssignmentOperationMetadata.Builder setApiMethodValue(int value)

The OS policy assignment API method.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public OSPolicyAssignmentOperationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The osPolicyAssignment to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for osPolicyAssignment to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder
Overrides

setRolloutStartTime(Timestamp value)

public OSPolicyAssignmentOperationMetadata.Builder setRolloutStartTime(Timestamp value)

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder

setRolloutStartTime(Timestamp.Builder builderForValue)

public OSPolicyAssignmentOperationMetadata.Builder setRolloutStartTime(Timestamp.Builder builderForValue)

Rollout start time

.google.protobuf.Timestamp rollout_start_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder

setRolloutState(OSPolicyAssignmentOperationMetadata.RolloutState value)

public OSPolicyAssignmentOperationMetadata.Builder setRolloutState(OSPolicyAssignmentOperationMetadata.RolloutState value)

State of the rollout

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

Parameter
NameDescription
valueOSPolicyAssignmentOperationMetadata.RolloutState

The rolloutState to set.

Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder

This builder for chaining.

setRolloutStateValue(int value)

public OSPolicyAssignmentOperationMetadata.Builder setRolloutStateValue(int value)

State of the rollout

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder

setRolloutUpdateTime(Timestamp.Builder builderForValue)

public OSPolicyAssignmentOperationMetadata.Builder setRolloutUpdateTime(Timestamp.Builder builderForValue)

Rollout update time

.google.protobuf.Timestamp rollout_update_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicyAssignmentOperationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OSPolicyAssignmentOperationMetadata.Builder
Overrides