Class ReportJob.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReportJob.Builder>
com.google.cloud.channel.v1.ReportJob.Builder
All Implemented Interfaces:
ReportJobOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ReportJob

public static final class ReportJob.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReportJob.Builder> implements ReportJobOrBuilder
 The result of a [RunReportJob][] operation. Contains the name to use in
 [FetchReportResultsRequest.report_job][google.cloud.channel.v1.FetchReportResultsRequest.report_job]
 and the status of the operation.
 
Protobuf type google.cloud.channel.v1.ReportJob
  • 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<ReportJob.Builder>
    • clear

      public ReportJob.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<ReportJob.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<ReportJob.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ReportJob.Builder mergeFrom(ReportJob other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ReportJob.Builder>
    • mergeFrom

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

      public String getName()
       Required. The resource name of a report job.
       Name uses the format:
       `accounts/{account_id}/reportJobs/{report_job_id}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface ReportJobOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The resource name of a report job.
       Name uses the format:
       `accounts/{account_id}/reportJobs/{report_job_id}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface ReportJobOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ReportJob.Builder setName(String value)
       Required. The resource name of a report job.
       Name uses the format:
       `accounts/{account_id}/reportJobs/{report_job_id}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ReportJob.Builder clearName()
       Required. The resource name of a report job.
       Name uses the format:
       `accounts/{account_id}/reportJobs/{report_job_id}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public ReportJob.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The resource name of a report job.
       Name uses the format:
       `accounts/{account_id}/reportJobs/{report_job_id}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasReportStatus

      public boolean hasReportStatus()
       The current status of report generation.
       
      .google.cloud.channel.v1.ReportStatus report_status = 2;
      Specified by:
      hasReportStatus in interface ReportJobOrBuilder
      Returns:
      Whether the reportStatus field is set.
    • getReportStatus

      public ReportStatus getReportStatus()
       The current status of report generation.
       
      .google.cloud.channel.v1.ReportStatus report_status = 2;
      Specified by:
      getReportStatus in interface ReportJobOrBuilder
      Returns:
      The reportStatus.
    • setReportStatus

      public ReportJob.Builder setReportStatus(ReportStatus value)
       The current status of report generation.
       
      .google.cloud.channel.v1.ReportStatus report_status = 2;
    • setReportStatus

      public ReportJob.Builder setReportStatus(ReportStatus.Builder builderForValue)
       The current status of report generation.
       
      .google.cloud.channel.v1.ReportStatus report_status = 2;
    • mergeReportStatus

      public ReportJob.Builder mergeReportStatus(ReportStatus value)
       The current status of report generation.
       
      .google.cloud.channel.v1.ReportStatus report_status = 2;
    • clearReportStatus

      public ReportJob.Builder clearReportStatus()
       The current status of report generation.
       
      .google.cloud.channel.v1.ReportStatus report_status = 2;
    • getReportStatusBuilder

      public ReportStatus.Builder getReportStatusBuilder()
       The current status of report generation.
       
      .google.cloud.channel.v1.ReportStatus report_status = 2;
    • getReportStatusOrBuilder

      public ReportStatusOrBuilder getReportStatusOrBuilder()
       The current status of report generation.
       
      .google.cloud.channel.v1.ReportStatus report_status = 2;
      Specified by:
      getReportStatusOrBuilder in interface ReportJobOrBuilder