Class OSPolicyAssignmentReport.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OSPolicyAssignmentReport.Builder>
com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.Builder
All Implemented Interfaces:
OSPolicyAssignmentReportOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
OSPolicyAssignmentReport

public static final class OSPolicyAssignmentReport.Builder extends com.google.protobuf.GeneratedMessage.Builder<OSPolicyAssignmentReport.Builder> implements OSPolicyAssignmentReportOrBuilder
 A report of the OS policy assignment status for a given instance.
 
Protobuf type google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport
  • 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<OSPolicyAssignmentReport.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<OSPolicyAssignmentReport.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<OSPolicyAssignmentReport.Builder>
    • getDefaultInstanceForType

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

      public OSPolicyAssignmentReport build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public OSPolicyAssignmentReport.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<OSPolicyAssignmentReport.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<OSPolicyAssignmentReport.Builder>
    • mergeFrom

      public OSPolicyAssignmentReport.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<OSPolicyAssignmentReport.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The `OSPolicyAssignmentReport` API resource name.
      
       Format:
       `projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report`
       
      string name = 1;
      Specified by:
      getName in interface OSPolicyAssignmentReportOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The `OSPolicyAssignmentReport` API resource name.
      
       Format:
       `projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report`
       
      string name = 1;
      Specified by:
      getNameBytes in interface OSPolicyAssignmentReportOrBuilder
      Returns:
      The bytes for name.
    • setName

      public OSPolicyAssignmentReport.Builder setName(String value)
       The `OSPolicyAssignmentReport` API resource name.
      
       Format:
       `projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report`
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       The `OSPolicyAssignmentReport` API resource name.
      
       Format:
       `projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report`
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public OSPolicyAssignmentReport.Builder setNameBytes(com.google.protobuf.ByteString value)
       The `OSPolicyAssignmentReport` API resource name.
      
       Format:
       `projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report`
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getInstance

      public String getInstance()
       The Compute Engine VM instance name.
       
      string instance = 2;
      Specified by:
      getInstance in interface OSPolicyAssignmentReportOrBuilder
      Returns:
      The instance.
    • getInstanceBytes

      public com.google.protobuf.ByteString getInstanceBytes()
       The Compute Engine VM instance name.
       
      string instance = 2;
      Specified by:
      getInstanceBytes in interface OSPolicyAssignmentReportOrBuilder
      Returns:
      The bytes for instance.
    • setInstance

      public OSPolicyAssignmentReport.Builder setInstance(String value)
       The Compute Engine VM instance name.
       
      string instance = 2;
      Parameters:
      value - The instance to set.
      Returns:
      This builder for chaining.
    • clearInstance

      public OSPolicyAssignmentReport.Builder clearInstance()
       The Compute Engine VM instance name.
       
      string instance = 2;
      Returns:
      This builder for chaining.
    • setInstanceBytes

      public OSPolicyAssignmentReport.Builder setInstanceBytes(com.google.protobuf.ByteString value)
       The Compute Engine VM instance name.
       
      string instance = 2;
      Parameters:
      value - The bytes for instance to set.
      Returns:
      This builder for chaining.
    • getOsPolicyAssignment

      public String getOsPolicyAssignment()
       Reference to the `OSPolicyAssignment` API resource that the `OSPolicy`
       belongs to.
      
       Format:
       `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`
       
      string os_policy_assignment = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getOsPolicyAssignment in interface OSPolicyAssignmentReportOrBuilder
      Returns:
      The osPolicyAssignment.
    • getOsPolicyAssignmentBytes

      public com.google.protobuf.ByteString getOsPolicyAssignmentBytes()
       Reference to the `OSPolicyAssignment` API resource that the `OSPolicy`
       belongs to.
      
       Format:
       `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`
       
      string os_policy_assignment = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getOsPolicyAssignmentBytes in interface OSPolicyAssignmentReportOrBuilder
      Returns:
      The bytes for osPolicyAssignment.
    • setOsPolicyAssignment

      public OSPolicyAssignmentReport.Builder setOsPolicyAssignment(String value)
       Reference to the `OSPolicyAssignment` API resource that the `OSPolicy`
       belongs to.
      
       Format:
       `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`
       
      string os_policy_assignment = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The osPolicyAssignment to set.
      Returns:
      This builder for chaining.
    • clearOsPolicyAssignment

      public OSPolicyAssignmentReport.Builder clearOsPolicyAssignment()
       Reference to the `OSPolicyAssignment` API resource that the `OSPolicy`
       belongs to.
      
       Format:
       `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`
       
      string os_policy_assignment = 3 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setOsPolicyAssignmentBytes

      public OSPolicyAssignmentReport.Builder setOsPolicyAssignmentBytes(com.google.protobuf.ByteString value)
       Reference to the `OSPolicyAssignment` API resource that the `OSPolicy`
       belongs to.
      
       Format:
       `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`
       
      string os_policy_assignment = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for osPolicyAssignment to set.
      Returns:
      This builder for chaining.
    • getOsPolicyCompliancesList

      public List<OSPolicyAssignmentReport.OSPolicyCompliance> getOsPolicyCompliancesList()
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
      Specified by:
      getOsPolicyCompliancesList in interface OSPolicyAssignmentReportOrBuilder
    • getOsPolicyCompliancesCount

      public int getOsPolicyCompliancesCount()
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
      Specified by:
      getOsPolicyCompliancesCount in interface OSPolicyAssignmentReportOrBuilder
    • getOsPolicyCompliances

      public OSPolicyAssignmentReport.OSPolicyCompliance getOsPolicyCompliances(int index)
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
      Specified by:
      getOsPolicyCompliances in interface OSPolicyAssignmentReportOrBuilder
    • setOsPolicyCompliances

      public OSPolicyAssignmentReport.Builder setOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance value)
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
    • setOsPolicyCompliances

      public OSPolicyAssignmentReport.Builder setOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance.Builder builderForValue)
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
    • addOsPolicyCompliances

       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
    • addOsPolicyCompliances

      public OSPolicyAssignmentReport.Builder addOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance value)
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
    • addOsPolicyCompliances

       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
    • addOsPolicyCompliances

      public OSPolicyAssignmentReport.Builder addOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance.Builder builderForValue)
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
    • addAllOsPolicyCompliances

      public OSPolicyAssignmentReport.Builder addAllOsPolicyCompliances(Iterable<? extends OSPolicyAssignmentReport.OSPolicyCompliance> values)
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
    • clearOsPolicyCompliances

      public OSPolicyAssignmentReport.Builder clearOsPolicyCompliances()
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
    • removeOsPolicyCompliances

      public OSPolicyAssignmentReport.Builder removeOsPolicyCompliances(int index)
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
    • getOsPolicyCompliancesBuilder

      public OSPolicyAssignmentReport.OSPolicyCompliance.Builder getOsPolicyCompliancesBuilder(int index)
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
    • getOsPolicyCompliancesOrBuilder

      public OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder getOsPolicyCompliancesOrBuilder(int index)
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
      Specified by:
      getOsPolicyCompliancesOrBuilder in interface OSPolicyAssignmentReportOrBuilder
    • getOsPolicyCompliancesOrBuilderList

      public List<? extends OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder> getOsPolicyCompliancesOrBuilderList()
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
      Specified by:
      getOsPolicyCompliancesOrBuilderList in interface OSPolicyAssignmentReportOrBuilder
    • addOsPolicyCompliancesBuilder

      public OSPolicyAssignmentReport.OSPolicyCompliance.Builder addOsPolicyCompliancesBuilder()
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
    • addOsPolicyCompliancesBuilder

      public OSPolicyAssignmentReport.OSPolicyCompliance.Builder addOsPolicyCompliancesBuilder(int index)
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
    • getOsPolicyCompliancesBuilderList

      public List<OSPolicyAssignmentReport.OSPolicyCompliance.Builder> getOsPolicyCompliancesBuilderList()
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
    • hasUpdateTime

      public boolean hasUpdateTime()
       Timestamp for when the report was last generated.
       
      .google.protobuf.Timestamp update_time = 5;
      Specified by:
      hasUpdateTime in interface OSPolicyAssignmentReportOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Timestamp for when the report was last generated.
       
      .google.protobuf.Timestamp update_time = 5;
      Specified by:
      getUpdateTime in interface OSPolicyAssignmentReportOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public OSPolicyAssignmentReport.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Timestamp for when the report was last generated.
       
      .google.protobuf.Timestamp update_time = 5;
    • setUpdateTime

      public OSPolicyAssignmentReport.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp for when the report was last generated.
       
      .google.protobuf.Timestamp update_time = 5;
    • mergeUpdateTime

      public OSPolicyAssignmentReport.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Timestamp for when the report was last generated.
       
      .google.protobuf.Timestamp update_time = 5;
    • clearUpdateTime

      public OSPolicyAssignmentReport.Builder clearUpdateTime()
       Timestamp for when the report was last generated.
       
      .google.protobuf.Timestamp update_time = 5;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Timestamp for when the report was last generated.
       
      .google.protobuf.Timestamp update_time = 5;
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Timestamp for when the report was last generated.
       
      .google.protobuf.Timestamp update_time = 5;
      Specified by:
      getUpdateTimeOrBuilder in interface OSPolicyAssignmentReportOrBuilder
    • getLastRunId

      public String getLastRunId()
       Unique identifier of the last attempted run to apply the OS policies
       associated with this assignment on the VM.
      
       This ID is logged by the OS Config agent while applying the OS
       policies associated with this assignment on the VM.
       NOTE: If the service is unable to successfully connect to the agent for
       this run, then this id will not be available in the agent logs.
       
      string last_run_id = 6;
      Specified by:
      getLastRunId in interface OSPolicyAssignmentReportOrBuilder
      Returns:
      The lastRunId.
    • getLastRunIdBytes

      public com.google.protobuf.ByteString getLastRunIdBytes()
       Unique identifier of the last attempted run to apply the OS policies
       associated with this assignment on the VM.
      
       This ID is logged by the OS Config agent while applying the OS
       policies associated with this assignment on the VM.
       NOTE: If the service is unable to successfully connect to the agent for
       this run, then this id will not be available in the agent logs.
       
      string last_run_id = 6;
      Specified by:
      getLastRunIdBytes in interface OSPolicyAssignmentReportOrBuilder
      Returns:
      The bytes for lastRunId.
    • setLastRunId

      public OSPolicyAssignmentReport.Builder setLastRunId(String value)
       Unique identifier of the last attempted run to apply the OS policies
       associated with this assignment on the VM.
      
       This ID is logged by the OS Config agent while applying the OS
       policies associated with this assignment on the VM.
       NOTE: If the service is unable to successfully connect to the agent for
       this run, then this id will not be available in the agent logs.
       
      string last_run_id = 6;
      Parameters:
      value - The lastRunId to set.
      Returns:
      This builder for chaining.
    • clearLastRunId

      public OSPolicyAssignmentReport.Builder clearLastRunId()
       Unique identifier of the last attempted run to apply the OS policies
       associated with this assignment on the VM.
      
       This ID is logged by the OS Config agent while applying the OS
       policies associated with this assignment on the VM.
       NOTE: If the service is unable to successfully connect to the agent for
       this run, then this id will not be available in the agent logs.
       
      string last_run_id = 6;
      Returns:
      This builder for chaining.
    • setLastRunIdBytes

      public OSPolicyAssignmentReport.Builder setLastRunIdBytes(com.google.protobuf.ByteString value)
       Unique identifier of the last attempted run to apply the OS policies
       associated with this assignment on the VM.
      
       This ID is logged by the OS Config agent while applying the OS
       policies associated with this assignment on the VM.
       NOTE: If the service is unable to successfully connect to the agent for
       this run, then this id will not be available in the agent logs.
       
      string last_run_id = 6;
      Parameters:
      value - The bytes for lastRunId to set.
      Returns:
      This builder for chaining.