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.GeneratedMessage.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.GeneratedMessage.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 type
google.cloud.osconfig.v1beta.PatchJobInstanceDetails-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The number of times the agent that the agent attempts to apply the patch.If the patch fails, this field provides the reason.The unique identifier for the instance.The instance name in the form `projects/*/zones/*/instances/*`Current state of instance patch.longThe number of times the agent that the agent attempts to apply the patch.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf the patch fails, this field provides the reason.com.google.protobuf.ByteStringIf the patch fails, this field provides the reason.The unique identifier for the instance.com.google.protobuf.ByteStringThe unique identifier for the instance.getName()The instance name in the form `projects/*/zones/*/instances/*`com.google.protobuf.ByteStringThe instance name in the form `projects/*/zones/*/instances/*`getState()Current state of instance patch.intCurrent state of instance patch.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAttemptCount(long value) The number of times the agent that the agent attempts to apply the patch.setFailureReason(String value) If the patch fails, this field provides the reason.setFailureReasonBytes(com.google.protobuf.ByteString value) If the patch fails, this field provides the reason.setInstanceSystemId(String value) The unique identifier for the instance.setInstanceSystemIdBytes(com.google.protobuf.ByteString value) The unique identifier for the instance.The instance name in the form `projects/*/zones/*/instances/*`setNameBytes(com.google.protobuf.ByteString value) The instance name in the form `projects/*/zones/*/instances/*`Current state of instance patch.setStateValue(int value) Current state of instance patch.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
mergeFrom
public PatchJobs.PatchJobInstanceDetails.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchJobInstanceDetails.Builder>- Throws:
IOException
-
getName
The instance name in the form `projects/*/zones/*/instances/*`
string name = 1;- Specified by:
getNamein 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:
getNameBytesin interfacePatchJobs.PatchJobInstanceDetailsOrBuilder- Returns:
- The bytes for name.
-
setName
The instance name in the form `projects/*/zones/*/instances/*`
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The instance name in the form `projects/*/zones/*/instances/*`
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
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
The unique identifier for the instance. This identifier is defined by the server.
string instance_system_id = 2;- Specified by:
getInstanceSystemIdin 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:
getInstanceSystemIdBytesin interfacePatchJobs.PatchJobInstanceDetailsOrBuilder- Returns:
- The bytes for instanceSystemId.
-
setInstanceSystemId
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
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:
getStateValuein interfacePatchJobs.PatchJobInstanceDetailsOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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
Current state of instance patch.
.google.cloud.osconfig.v1beta.Instance.PatchState state = 3;- Specified by:
getStatein interfacePatchJobs.PatchJobInstanceDetailsOrBuilder- Returns:
- The state.
-
setState
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
Current state of instance patch.
.google.cloud.osconfig.v1beta.Instance.PatchState state = 3;- Returns:
- This builder for chaining.
-
getFailureReason
If the patch fails, this field provides the reason.
string failure_reason = 4;- Specified by:
getFailureReasonin 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:
getFailureReasonBytesin interfacePatchJobs.PatchJobInstanceDetailsOrBuilder- Returns:
- The bytes for failureReason.
-
setFailureReason
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
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:
getAttemptCountin interfacePatchJobs.PatchJobInstanceDetailsOrBuilder- Returns:
- The attemptCount.
-
setAttemptCount
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
The number of times the agent that the agent attempts to apply the patch.
int64 attempt_count = 5;- Returns:
- This builder for chaining.
-