Package com.google.cloud.osconfig.v1beta
Class PatchJobs.PatchJobInstanceDetails.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
- com.google.cloud.osconfig.v1beta.PatchJobs.PatchJobInstanceDetails.Builder
-
- All Implemented Interfaces:
PatchJobs.PatchJobInstanceDetailsOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- PatchJobs.PatchJobInstanceDetails
public static final class PatchJobs.PatchJobInstanceDetails.Builder extends com.google.protobuf.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](https://cloud.google.com/compute/docs/os-patch-management/manage-patch-jobs#list-instance-details).
Protobuf typegoogle.cloud.osconfig.v1beta.PatchJobInstanceDetails
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchJobs.PatchJobInstanceDetails.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PatchJobs.PatchJobInstanceDetails
build()
PatchJobs.PatchJobInstanceDetails
buildPartial()
PatchJobs.PatchJobInstanceDetails.Builder
clear()
PatchJobs.PatchJobInstanceDetails.Builder
clearAttemptCount()
The number of times the agent that the agent attempts to apply the patch.PatchJobs.PatchJobInstanceDetails.Builder
clearFailureReason()
If the patch fails, this field provides the reason.PatchJobs.PatchJobInstanceDetails.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
PatchJobs.PatchJobInstanceDetails.Builder
clearInstanceSystemId()
The unique identifier for the instance.PatchJobs.PatchJobInstanceDetails.Builder
clearName()
The instance name in the form `projects/*/zones/*/instances/*`PatchJobs.PatchJobInstanceDetails.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
PatchJobs.PatchJobInstanceDetails.Builder
clearState()
Current state of instance patch.PatchJobs.PatchJobInstanceDetails.Builder
clone()
long
getAttemptCount()
The number of times the agent that the agent attempts to apply the patch.PatchJobs.PatchJobInstanceDetails
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFailureReason()
If the patch fails, this field provides the reason.com.google.protobuf.ByteString
getFailureReasonBytes()
If the patch fails, this field provides the reason.String
getInstanceSystemId()
The unique identifier for the instance.com.google.protobuf.ByteString
getInstanceSystemIdBytes()
The unique identifier for the instance.String
getName()
The instance name in the form `projects/*/zones/*/instances/*`com.google.protobuf.ByteString
getNameBytes()
The instance name in the form `projects/*/zones/*/instances/*`PatchJobs.Instance.PatchState
getState()
Current state of instance patch.int
getStateValue()
Current state of instance patch.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
PatchJobs.PatchJobInstanceDetails.Builder
mergeFrom(PatchJobs.PatchJobInstanceDetails other)
PatchJobs.PatchJobInstanceDetails.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
PatchJobs.PatchJobInstanceDetails.Builder
mergeFrom(com.google.protobuf.Message other)
PatchJobs.PatchJobInstanceDetails.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PatchJobs.PatchJobInstanceDetails.Builder
setAttemptCount(long value)
The number of times the agent that the agent attempts to apply the patch.PatchJobs.PatchJobInstanceDetails.Builder
setFailureReason(String value)
If the patch fails, this field provides the reason.PatchJobs.PatchJobInstanceDetails.Builder
setFailureReasonBytes(com.google.protobuf.ByteString value)
If the patch fails, this field provides the reason.PatchJobs.PatchJobInstanceDetails.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PatchJobs.PatchJobInstanceDetails.Builder
setInstanceSystemId(String value)
The unique identifier for the instance.PatchJobs.PatchJobInstanceDetails.Builder
setInstanceSystemIdBytes(com.google.protobuf.ByteString value)
The unique identifier for the instance.PatchJobs.PatchJobInstanceDetails.Builder
setName(String value)
The instance name in the form `projects/*/zones/*/instances/*`PatchJobs.PatchJobInstanceDetails.Builder
setNameBytes(com.google.protobuf.ByteString value)
The instance name in the form `projects/*/zones/*/instances/*`PatchJobs.PatchJobInstanceDetails.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
PatchJobs.PatchJobInstanceDetails.Builder
setState(PatchJobs.Instance.PatchState value)
Current state of instance patch.PatchJobs.PatchJobInstanceDetails.Builder
setStateValue(int value)
Current state of instance patch.PatchJobs.PatchJobInstanceDetails.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
clear
public PatchJobs.PatchJobInstanceDetails.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
getDefaultInstanceForType
public PatchJobs.PatchJobInstanceDetails getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PatchJobs.PatchJobInstanceDetails build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PatchJobs.PatchJobInstanceDetails buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PatchJobs.PatchJobInstanceDetails.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
setField
public PatchJobs.PatchJobInstanceDetails.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
clearField
public PatchJobs.PatchJobInstanceDetails.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
clearOneof
public PatchJobs.PatchJobInstanceDetails.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
setRepeatedField
public PatchJobs.PatchJobInstanceDetails.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
addRepeatedField
public PatchJobs.PatchJobInstanceDetails.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
mergeFrom
public PatchJobs.PatchJobInstanceDetails.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
mergeFrom
public PatchJobs.PatchJobInstanceDetails.Builder mergeFrom(PatchJobs.PatchJobInstanceDetails other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
mergeFrom
public PatchJobs.PatchJobInstanceDetails.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
- Throws:
IOException
-
getName
public String getName()
The instance name in the form `projects/*/zones/*/instances/*`
string name = 1;
- Specified by:
getName
in interfacePatchJobs.PatchJobInstanceDetailsOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The instance name in the form `projects/*/zones/*/instances/*`
string name = 1;
- Specified by:
getNameBytes
in interfacePatchJobs.PatchJobInstanceDetailsOrBuilder
- Returns:
- The bytes for name.
-
setName
public PatchJobs.PatchJobInstanceDetails.Builder setName(String value)
The instance name in the form `projects/*/zones/*/instances/*`
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public PatchJobs.PatchJobInstanceDetails.Builder clearName()
The instance name in the form `projects/*/zones/*/instances/*`
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public PatchJobs.PatchJobInstanceDetails.Builder setNameBytes(com.google.protobuf.ByteString value)
The instance name in the form `projects/*/zones/*/instances/*`
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getInstanceSystemId
public String getInstanceSystemId()
The unique identifier for the instance. This identifier is defined by the server.
string instance_system_id = 2;
- Specified by:
getInstanceSystemId
in interfacePatchJobs.PatchJobInstanceDetailsOrBuilder
- Returns:
- The instanceSystemId.
-
getInstanceSystemIdBytes
public com.google.protobuf.ByteString getInstanceSystemIdBytes()
The unique identifier for the instance. This identifier is defined by the server.
string instance_system_id = 2;
- Specified by:
getInstanceSystemIdBytes
in interfacePatchJobs.PatchJobInstanceDetailsOrBuilder
- Returns:
- The bytes for instanceSystemId.
-
setInstanceSystemId
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;
- Parameters:
value
- The instanceSystemId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setInstanceSystemIdBytes
public PatchJobs.PatchJobInstanceDetails.Builder setInstanceSystemIdBytes(com.google.protobuf.ByteString value)
The unique identifier for the instance. This identifier is defined by the server.
string instance_system_id = 2;
- Parameters:
value
- The bytes for instanceSystemId to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()
Current state of instance patch.
.google.cloud.osconfig.v1beta.Instance.PatchState state = 3;
- Specified by:
getStateValue
in interfacePatchJobs.PatchJobInstanceDetailsOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public PatchJobs.PatchJobInstanceDetails.Builder setStateValue(int value)
Current state of instance patch.
.google.cloud.osconfig.v1beta.Instance.PatchState state = 3;
- Parameters:
value
- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public PatchJobs.Instance.PatchState getState()
Current state of instance patch.
.google.cloud.osconfig.v1beta.Instance.PatchState state = 3;
- Specified by:
getState
in interfacePatchJobs.PatchJobInstanceDetailsOrBuilder
- Returns:
- The state.
-
setState
public PatchJobs.PatchJobInstanceDetails.Builder setState(PatchJobs.Instance.PatchState value)
Current state of instance patch.
.google.cloud.osconfig.v1beta.Instance.PatchState state = 3;
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
clearState
public PatchJobs.PatchJobInstanceDetails.Builder clearState()
Current state of instance patch.
.google.cloud.osconfig.v1beta.Instance.PatchState state = 3;
- Returns:
- This builder for chaining.
-
getFailureReason
public String getFailureReason()
If the patch fails, this field provides the reason.
string failure_reason = 4;
- Specified by:
getFailureReason
in interfacePatchJobs.PatchJobInstanceDetailsOrBuilder
- Returns:
- The failureReason.
-
getFailureReasonBytes
public com.google.protobuf.ByteString getFailureReasonBytes()
If the patch fails, this field provides the reason.
string failure_reason = 4;
- Specified by:
getFailureReasonBytes
in interfacePatchJobs.PatchJobInstanceDetailsOrBuilder
- Returns:
- The bytes for failureReason.
-
setFailureReason
public PatchJobs.PatchJobInstanceDetails.Builder setFailureReason(String value)
If the patch fails, this field provides the reason.
string failure_reason = 4;
- Parameters:
value
- The failureReason to set.- Returns:
- This builder for chaining.
-
clearFailureReason
public PatchJobs.PatchJobInstanceDetails.Builder clearFailureReason()
If the patch fails, this field provides the reason.
string failure_reason = 4;
- Returns:
- This builder for chaining.
-
setFailureReasonBytes
public PatchJobs.PatchJobInstanceDetails.Builder setFailureReasonBytes(com.google.protobuf.ByteString value)
If the patch fails, this field provides the reason.
string failure_reason = 4;
- Parameters:
value
- The bytes for failureReason to set.- Returns:
- This builder for chaining.
-
getAttemptCount
public long getAttemptCount()
The number of times the agent that the agent attempts to apply the patch.
int64 attempt_count = 5;
- Specified by:
getAttemptCount
in interfacePatchJobs.PatchJobInstanceDetailsOrBuilder
- Returns:
- The attemptCount.
-
setAttemptCount
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;
- Parameters:
value
- The attemptCount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setUnknownFields
public final PatchJobs.PatchJobInstanceDetails.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
mergeUnknownFields
public final PatchJobs.PatchJobInstanceDetails.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
-