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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PatchJobs.PatchJobInstanceDetailsbuild()PatchJobs.PatchJobInstanceDetailsbuildPartial()PatchJobs.PatchJobInstanceDetails.Builderclear()PatchJobs.PatchJobInstanceDetails.BuilderclearAttemptCount()The number of times the agent that the agent attempts to apply the patch.PatchJobs.PatchJobInstanceDetails.BuilderclearFailureReason()If the patch fails, this field provides the reason.PatchJobs.PatchJobInstanceDetails.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PatchJobs.PatchJobInstanceDetails.BuilderclearInstanceSystemId()The unique identifier for the instance.PatchJobs.PatchJobInstanceDetails.BuilderclearName()The instance name in the form `projects/*/zones/*/instances/*`PatchJobs.PatchJobInstanceDetails.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PatchJobs.PatchJobInstanceDetails.BuilderclearState()Current state of instance patch.PatchJobs.PatchJobInstanceDetails.Builderclone()longgetAttemptCount()The number of times the agent that the agent attempts to apply the patch.PatchJobs.PatchJobInstanceDetailsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFailureReason()If the patch fails, this field provides the reason.com.google.protobuf.ByteStringgetFailureReasonBytes()If the patch fails, this field provides the reason.StringgetInstanceSystemId()The unique identifier for the instance.com.google.protobuf.ByteStringgetInstanceSystemIdBytes()The unique identifier for the instance.StringgetName()The instance name in the form `projects/*/zones/*/instances/*`com.google.protobuf.ByteStringgetNameBytes()The instance name in the form `projects/*/zones/*/instances/*`PatchJobs.Instance.PatchStategetState()Current state of instance patch.intgetStateValue()Current state of instance patch.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PatchJobs.PatchJobInstanceDetails.BuildermergeFrom(PatchJobs.PatchJobInstanceDetails other)PatchJobs.PatchJobInstanceDetails.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PatchJobs.PatchJobInstanceDetails.BuildermergeFrom(com.google.protobuf.Message other)PatchJobs.PatchJobInstanceDetails.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PatchJobs.PatchJobInstanceDetails.BuildersetAttemptCount(long value)The number of times the agent that the agent attempts to apply the patch.PatchJobs.PatchJobInstanceDetails.BuildersetFailureReason(String value)If the patch fails, this field provides the reason.PatchJobs.PatchJobInstanceDetails.BuildersetFailureReasonBytes(com.google.protobuf.ByteString value)If the patch fails, this field provides the reason.PatchJobs.PatchJobInstanceDetails.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PatchJobs.PatchJobInstanceDetails.BuildersetInstanceSystemId(String value)The unique identifier for the instance.PatchJobs.PatchJobInstanceDetails.BuildersetInstanceSystemIdBytes(com.google.protobuf.ByteString value)The unique identifier for the instance.PatchJobs.PatchJobInstanceDetails.BuildersetName(String value)The instance name in the form `projects/*/zones/*/instances/*`PatchJobs.PatchJobInstanceDetails.BuildersetNameBytes(com.google.protobuf.ByteString value)The instance name in the form `projects/*/zones/*/instances/*`PatchJobs.PatchJobInstanceDetails.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PatchJobs.PatchJobInstanceDetails.BuildersetState(PatchJobs.Instance.PatchState value)Current state of instance patch.PatchJobs.PatchJobInstanceDetails.BuildersetStateValue(int value)Current state of instance patch.PatchJobs.PatchJobInstanceDetails.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
getDefaultInstanceForType
public PatchJobs.PatchJobInstanceDetails getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PatchJobs.PatchJobInstanceDetails build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PatchJobs.PatchJobInstanceDetails buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PatchJobs.PatchJobInstanceDetails.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
setField
public PatchJobs.PatchJobInstanceDetails.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
clearField
public PatchJobs.PatchJobInstanceDetails.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
clearOneof
public PatchJobs.PatchJobInstanceDetails.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
addRepeatedField
public PatchJobs.PatchJobInstanceDetails.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
mergeFrom
public PatchJobs.PatchJobInstanceDetails.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
mergeFrom
public PatchJobs.PatchJobInstanceDetails.Builder mergeFrom(PatchJobs.PatchJobInstanceDetails other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
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
public String 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
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:
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
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:
getStateValuein 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:
getStatein 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:
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
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:
getAttemptCountin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
mergeUnknownFields
public final PatchJobs.PatchJobInstanceDetails.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
-
-