Class PatchJobs.PatchJobInstanceDetails.Builder (2.24.0)

public static final class PatchJobs.PatchJobInstanceDetails.Builder extends GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder> implements PatchJobs.PatchJobInstanceDetailsOrBuilder

Patch details for a VM instance. For more information about reviewing VM instance details, see Listing all VM instance details for a specific patch job.

Protobuf type google.cloud.osconfig.v1.PatchJobInstanceDetails

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PatchJobs.PatchJobInstanceDetails build()
Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails

buildPartial()

public PatchJobs.PatchJobInstanceDetails buildPartial()
Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails

clear()

public PatchJobs.PatchJobInstanceDetails.Builder clear()
Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder
Overrides

clearAttemptCount()

public PatchJobs.PatchJobInstanceDetails.Builder clearAttemptCount()

The number of times the agent that the agent attempts to apply the patch.

int64 attempt_count = 5;

Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder

This builder for chaining.

clearFailureReason()

public PatchJobs.PatchJobInstanceDetails.Builder clearFailureReason()

If the patch fails, this field provides the reason.

string failure_reason = 4;

Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceSystemId()

public PatchJobs.PatchJobInstanceDetails.Builder clearInstanceSystemId()

The unique identifier for the instance. This identifier is defined by the server.

string instance_system_id = 2;

Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder

This builder for chaining.

clearName()

public PatchJobs.PatchJobInstanceDetails.Builder clearName()

The instance name in the form projects/*/zones/*/instances/*

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

Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public PatchJobs.PatchJobInstanceDetails.Builder clearState()

Current state of instance patch.

.google.cloud.osconfig.v1.Instance.PatchState state = 3;

Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder

This builder for chaining.

clone()

public PatchJobs.PatchJobInstanceDetails.Builder clone()
Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder
Overrides

getAttemptCount()

public long getAttemptCount()

The number of times the agent that the agent attempts to apply the patch.

int64 attempt_count = 5;

Returns
TypeDescription
long

The attemptCount.

getDefaultInstanceForType()

public PatchJobs.PatchJobInstanceDetails getDefaultInstanceForType()
Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFailureReason()

public String getFailureReason()

If the patch fails, this field provides the reason.

string failure_reason = 4;

Returns
TypeDescription
String

The failureReason.

getFailureReasonBytes()

public ByteString getFailureReasonBytes()

If the patch fails, this field provides the reason.

string failure_reason = 4;

Returns
TypeDescription
ByteString

The bytes for failureReason.

getInstanceSystemId()

public String getInstanceSystemId()

The unique identifier for the instance. This identifier is defined by the server.

string instance_system_id = 2;

Returns
TypeDescription
String

The instanceSystemId.

getInstanceSystemIdBytes()

public ByteString getInstanceSystemIdBytes()

The unique identifier for the instance. This identifier is defined by the server.

string instance_system_id = 2;

Returns
TypeDescription
ByteString

The bytes for instanceSystemId.

getName()

public String getName()

The instance name in the form projects/*/zones/*/instances/*

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The instance name in the form projects/*/zones/*/instances/*

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

Returns
TypeDescription
ByteString

The bytes for name.

getState()

public PatchJobs.Instance.PatchState getState()

Current state of instance patch.

.google.cloud.osconfig.v1.Instance.PatchState state = 3;

Returns
TypeDescription
PatchJobs.Instance.PatchState

The state.

getStateValue()

public int getStateValue()

Current state of instance patch.

.google.cloud.osconfig.v1.Instance.PatchState state = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PatchJobs.PatchJobInstanceDetails other)

public PatchJobs.PatchJobInstanceDetails.Builder mergeFrom(PatchJobs.PatchJobInstanceDetails other)
Parameter
NameDescription
otherPatchJobs.PatchJobInstanceDetails
Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAttemptCount(long value)

public PatchJobs.PatchJobInstanceDetails.Builder setAttemptCount(long value)

The number of times the agent that the agent attempts to apply the patch.

int64 attempt_count = 5;

Parameter
NameDescription
valuelong

The attemptCount to set.

Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder

This builder for chaining.

setFailureReason(String value)

public PatchJobs.PatchJobInstanceDetails.Builder setFailureReason(String value)

If the patch fails, this field provides the reason.

string failure_reason = 4;

Parameter
NameDescription
valueString

The failureReason to set.

Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder

This builder for chaining.

setFailureReasonBytes(ByteString value)

public PatchJobs.PatchJobInstanceDetails.Builder setFailureReasonBytes(ByteString value)

If the patch fails, this field provides the reason.

string failure_reason = 4;

Parameter
NameDescription
valueByteString

The bytes for failureReason to set.

Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceSystemId(String value)

public PatchJobs.PatchJobInstanceDetails.Builder setInstanceSystemId(String value)

The unique identifier for the instance. This identifier is defined by the server.

string instance_system_id = 2;

Parameter
NameDescription
valueString

The instanceSystemId to set.

Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder

This builder for chaining.

setInstanceSystemIdBytes(ByteString value)

public PatchJobs.PatchJobInstanceDetails.Builder setInstanceSystemIdBytes(ByteString value)

The unique identifier for the instance. This identifier is defined by the server.

string instance_system_id = 2;

Parameter
NameDescription
valueByteString

The bytes for instanceSystemId to set.

Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder

This builder for chaining.

setName(String value)

public PatchJobs.PatchJobInstanceDetails.Builder setName(String value)

The instance name in the form projects/*/zones/*/instances/*

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PatchJobs.PatchJobInstanceDetails.Builder setNameBytes(ByteString value)

The instance name in the form projects/*/zones/*/instances/*

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder

This builder for chaining.

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

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

setState(PatchJobs.Instance.PatchState value)

public PatchJobs.PatchJobInstanceDetails.Builder setState(PatchJobs.Instance.PatchState value)

Current state of instance patch.

.google.cloud.osconfig.v1.Instance.PatchState state = 3;

Parameter
NameDescription
valuePatchJobs.Instance.PatchState

The state to set.

Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder

This builder for chaining.

setStateValue(int value)

public PatchJobs.PatchJobInstanceDetails.Builder setStateValue(int value)

Current state of instance patch.

.google.cloud.osconfig.v1.Instance.PatchState state = 3;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
PatchJobs.PatchJobInstanceDetails.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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