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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
    • getDefaultInstanceForType

      public PatchJobs.PatchJobInstanceDetails getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PatchJobs.PatchJobInstanceDetails buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PatchJobs.PatchJobInstanceDetails.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchJobInstanceDetails.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface PatchJobs.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 interface PatchJobs.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

      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 interface PatchJobs.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 interface PatchJobs.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 interface PatchJobs.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 interface PatchJobs.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

      public String getFailureReason()
       If the patch fails, this field provides the reason.
       
      string failure_reason = 4;
      Specified by:
      getFailureReason in interface PatchJobs.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 interface PatchJobs.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 interface PatchJobs.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.