Class OSPolicyAssignmentReport.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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
      • setRepeatedField

        public OSPolicyAssignmentReport.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.Builder>
      • addRepeatedField

        public OSPolicyAssignmentReport.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.Builder>
      • isInitialized

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

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

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

        public OSPolicyAssignmentReport.Builder clearOsPolicyCompliances()
         Compliance data for each `OSPolicy` that is applied to the VM.
         
        repeated .google.cloud.osconfig.v1.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.v1.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.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
      • addOsPolicyCompliancesBuilder

        public OSPolicyAssignmentReport.OSPolicyCompliance.Builder addOsPolicyCompliancesBuilder()
         Compliance data for each `OSPolicy` that is applied to the VM.
         
        repeated .google.cloud.osconfig.v1.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.v1.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.v1.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.
      • setUnknownFields

        public final OSPolicyAssignmentReport.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.Builder>
      • mergeUnknownFields

        public final OSPolicyAssignmentReport.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.Builder>