Class ReportResultsMetadata

  • All Implemented Interfaces:
    ReportResultsMetadataOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ReportResultsMetadata
    extends com.google.protobuf.GeneratedMessageV3
    implements ReportResultsMetadataOrBuilder
     The features describing the data. Returned by
     [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]
     and
     [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults].
     
    Protobuf type google.cloud.channel.v1.ReportResultsMetadata
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • hasReport

        public boolean hasReport()
         Details of the completed report.
         
        .google.cloud.channel.v1.Report report = 1;
        Specified by:
        hasReport in interface ReportResultsMetadataOrBuilder
        Returns:
        Whether the report field is set.
      • getRowCount

        public long getRowCount()
         The total number of rows of data in the final report.
         
        int64 row_count = 2;
        Specified by:
        getRowCount in interface ReportResultsMetadataOrBuilder
        Returns:
        The rowCount.
      • hasDateRange

        public boolean hasDateRange()
         The date range of reported usage.
         
        .google.cloud.channel.v1.DateRange date_range = 3;
        Specified by:
        hasDateRange in interface ReportResultsMetadataOrBuilder
        Returns:
        Whether the dateRange field is set.
      • hasPrecedingDateRange

        public boolean hasPrecedingDateRange()
         The usage dates immediately preceding `date_range` with the same duration.
         Use this to calculate trending usage and costs. This is only populated if
         you request trending data.
        
         For example, if `date_range` is July 1-15, `preceding_date_range` will be
         June 16-30.
         
        .google.cloud.channel.v1.DateRange preceding_date_range = 4;
        Specified by:
        hasPrecedingDateRange in interface ReportResultsMetadataOrBuilder
        Returns:
        Whether the precedingDateRange field is set.
      • getPrecedingDateRange

        public DateRange getPrecedingDateRange()
         The usage dates immediately preceding `date_range` with the same duration.
         Use this to calculate trending usage and costs. This is only populated if
         you request trending data.
        
         For example, if `date_range` is July 1-15, `preceding_date_range` will be
         June 16-30.
         
        .google.cloud.channel.v1.DateRange preceding_date_range = 4;
        Specified by:
        getPrecedingDateRange in interface ReportResultsMetadataOrBuilder
        Returns:
        The precedingDateRange.
      • getPrecedingDateRangeOrBuilder

        public DateRangeOrBuilder getPrecedingDateRangeOrBuilder()
         The usage dates immediately preceding `date_range` with the same duration.
         Use this to calculate trending usage and costs. This is only populated if
         you request trending data.
        
         For example, if `date_range` is July 1-15, `preceding_date_range` will be
         June 16-30.
         
        .google.cloud.channel.v1.DateRange preceding_date_range = 4;
        Specified by:
        getPrecedingDateRangeOrBuilder in interface ReportResultsMetadataOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ReportResultsMetadata parseFrom​(ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReportResultsMetadata parseFrom​(ByteBuffer data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReportResultsMetadata parseFrom​(com.google.protobuf.ByteString data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReportResultsMetadata parseFrom​(com.google.protobuf.ByteString data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReportResultsMetadata parseFrom​(byte[] data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReportResultsMetadata parseFrom​(byte[] data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public ReportResultsMetadata.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ReportResultsMetadata.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ReportResultsMetadata.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ReportResultsMetadata> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ReportResultsMetadata getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder