Class OSPolicyResourceConfigStep.Builder (2.14.0)

public static final class OSPolicyResourceConfigStep.Builder extends GeneratedMessageV3.Builder<OSPolicyResourceConfigStep.Builder> implements OSPolicyResourceConfigStepOrBuilder

Step performed by the OS Config agent for configuring an OSPolicyResource to its desired state.

Protobuf type google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OSPolicyResourceConfigStep build()
Returns
TypeDescription
OSPolicyResourceConfigStep

buildPartial()

public OSPolicyResourceConfigStep buildPartial()
Returns
TypeDescription
OSPolicyResourceConfigStep

clear()

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

clearErrorMessage()

public OSPolicyResourceConfigStep.Builder clearErrorMessage()

An error message recorded during the execution of this step. Only populated when outcome is FAILED.

string error_message = 3;

Returns
TypeDescription
OSPolicyResourceConfigStep.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOutcome()

public OSPolicyResourceConfigStep.Builder clearOutcome()

Outcome of the configuration step.

.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome outcome = 2;

Returns
TypeDescription
OSPolicyResourceConfigStep.Builder

This builder for chaining.

clearType()

public OSPolicyResourceConfigStep.Builder clearType()

Configuration step type.

.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type type = 1;

Returns
TypeDescription
OSPolicyResourceConfigStep.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public OSPolicyResourceConfigStep getDefaultInstanceForType()
Returns
TypeDescription
OSPolicyResourceConfigStep

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getErrorMessage()

public String getErrorMessage()

An error message recorded during the execution of this step. Only populated when outcome is FAILED.

string error_message = 3;

Returns
TypeDescription
String

The errorMessage.

getErrorMessageBytes()

public ByteString getErrorMessageBytes()

An error message recorded during the execution of this step. Only populated when outcome is FAILED.

string error_message = 3;

Returns
TypeDescription
ByteString

The bytes for errorMessage.

getOutcome()

public OSPolicyResourceConfigStep.Outcome getOutcome()

Outcome of the configuration step.

.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome outcome = 2;

Returns
TypeDescription
OSPolicyResourceConfigStep.Outcome

The outcome.

getOutcomeValue()

public int getOutcomeValue()

Outcome of the configuration step.

.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome outcome = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for outcome.

getType()

public OSPolicyResourceConfigStep.Type getType()

Configuration step type.

.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type type = 1;

Returns
TypeDescription
OSPolicyResourceConfigStep.Type

The type.

getTypeValue()

public int getTypeValue()

Configuration step type.

.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OSPolicyResourceConfigStep other)

public OSPolicyResourceConfigStep.Builder mergeFrom(OSPolicyResourceConfigStep other)
Parameter
NameDescription
otherOSPolicyResourceConfigStep
Returns
TypeDescription
OSPolicyResourceConfigStep.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setErrorMessage(String value)

public OSPolicyResourceConfigStep.Builder setErrorMessage(String value)

An error message recorded during the execution of this step. Only populated when outcome is FAILED.

string error_message = 3;

Parameter
NameDescription
valueString

The errorMessage to set.

Returns
TypeDescription
OSPolicyResourceConfigStep.Builder

This builder for chaining.

setErrorMessageBytes(ByteString value)

public OSPolicyResourceConfigStep.Builder setErrorMessageBytes(ByteString value)

An error message recorded during the execution of this step. Only populated when outcome is FAILED.

string error_message = 3;

Parameter
NameDescription
valueByteString

The bytes for errorMessage to set.

Returns
TypeDescription
OSPolicyResourceConfigStep.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setOutcome(OSPolicyResourceConfigStep.Outcome value)

public OSPolicyResourceConfigStep.Builder setOutcome(OSPolicyResourceConfigStep.Outcome value)

Outcome of the configuration step.

.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome outcome = 2;

Parameter
NameDescription
valueOSPolicyResourceConfigStep.Outcome

The outcome to set.

Returns
TypeDescription
OSPolicyResourceConfigStep.Builder

This builder for chaining.

setOutcomeValue(int value)

public OSPolicyResourceConfigStep.Builder setOutcomeValue(int value)

Outcome of the configuration step.

.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome outcome = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
OSPolicyResourceConfigStep.Builder

This builder for chaining.

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

public OSPolicyResourceConfigStep.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OSPolicyResourceConfigStep.Builder
Overrides

setType(OSPolicyResourceConfigStep.Type value)

public OSPolicyResourceConfigStep.Builder setType(OSPolicyResourceConfigStep.Type value)

Configuration step type.

.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type type = 1;

Parameter
NameDescription
valueOSPolicyResourceConfigStep.Type

The type to set.

Returns
TypeDescription
OSPolicyResourceConfigStep.Builder

This builder for chaining.

setTypeValue(int value)

public OSPolicyResourceConfigStep.Builder setTypeValue(int value)

Configuration step type.

.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type type = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
OSPolicyResourceConfigStep.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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