Class ReportDetail.Builder

  • All Implemented Interfaces:
    ReportDetailOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ReportDetail

    public static final class ReportDetail.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ReportDetail.Builder>
    implements ReportDetailOrBuilder
     Message describing ReportDetail object. ReportDetail represents metadata of
     generated reports for a ReportConfig.
     Next ID: 10
     
    Protobuf type google.cloud.storageinsights.v1.ReportDetail
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ReportDetail.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ReportDetail.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ReportDetail.Builder>
      • clear

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

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

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

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

        public ReportDetail.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ReportDetail.Builder>
      • setField

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

        public ReportDetail.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ReportDetail.Builder>
      • clearOneof

        public ReportDetail.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ReportDetail.Builder>
      • setRepeatedField

        public ReportDetail.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<ReportDetail.Builder>
      • addRepeatedField

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

        public ReportDetail.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<ReportDetail.Builder>
      • isInitialized

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

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

        public String getName()
         Name of resource. It will be of form
         projects/<project>/locations/<location>/reportConfigs/<report-config-id>/reportDetails/<report-detail-id>.
         
        string name = 1;
        Specified by:
        getName in interface ReportDetailOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name of resource. It will be of form
         projects/<project>/locations/<location>/reportConfigs/<report-config-id>/reportDetails/<report-detail-id>.
         
        string name = 1;
        Specified by:
        getNameBytes in interface ReportDetailOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ReportDetail.Builder setName​(String value)
         Name of resource. It will be of form
         projects/<project>/locations/<location>/reportConfigs/<report-config-id>/reportDetails/<report-detail-id>.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ReportDetail.Builder clearName()
         Name of resource. It will be of form
         projects/<project>/locations/<location>/reportConfigs/<report-config-id>/reportDetails/<report-detail-id>.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public ReportDetail.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name of resource. It will be of form
         projects/<project>/locations/<location>/reportConfigs/<report-config-id>/reportDetails/<report-detail-id>.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasSnapshotTime

        public boolean hasSnapshotTime()
         The snapshot time.
         All the report data is referenced at this point of time.
         
        .google.protobuf.Timestamp snapshot_time = 2;
        Specified by:
        hasSnapshotTime in interface ReportDetailOrBuilder
        Returns:
        Whether the snapshotTime field is set.
      • getSnapshotTime

        public com.google.protobuf.Timestamp getSnapshotTime()
         The snapshot time.
         All the report data is referenced at this point of time.
         
        .google.protobuf.Timestamp snapshot_time = 2;
        Specified by:
        getSnapshotTime in interface ReportDetailOrBuilder
        Returns:
        The snapshotTime.
      • setSnapshotTime

        public ReportDetail.Builder setSnapshotTime​(com.google.protobuf.Timestamp value)
         The snapshot time.
         All the report data is referenced at this point of time.
         
        .google.protobuf.Timestamp snapshot_time = 2;
      • setSnapshotTime

        public ReportDetail.Builder setSnapshotTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The snapshot time.
         All the report data is referenced at this point of time.
         
        .google.protobuf.Timestamp snapshot_time = 2;
      • mergeSnapshotTime

        public ReportDetail.Builder mergeSnapshotTime​(com.google.protobuf.Timestamp value)
         The snapshot time.
         All the report data is referenced at this point of time.
         
        .google.protobuf.Timestamp snapshot_time = 2;
      • clearSnapshotTime

        public ReportDetail.Builder clearSnapshotTime()
         The snapshot time.
         All the report data is referenced at this point of time.
         
        .google.protobuf.Timestamp snapshot_time = 2;
      • getSnapshotTimeBuilder

        public com.google.protobuf.Timestamp.Builder getSnapshotTimeBuilder()
         The snapshot time.
         All the report data is referenced at this point of time.
         
        .google.protobuf.Timestamp snapshot_time = 2;
      • getSnapshotTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder()
         The snapshot time.
         All the report data is referenced at this point of time.
         
        .google.protobuf.Timestamp snapshot_time = 2;
        Specified by:
        getSnapshotTimeOrBuilder in interface ReportDetailOrBuilder
      • getReportPathPrefix

        public String getReportPathPrefix()
         Prefix of the object name of each report's shard. This will have full
         prefix except the "extension" and "shard_id".
         For example, if the `destination_path` is
         `{{report-config-id}}/dt={{datetime}}`, the shard object name would be
         `gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv`
         and the value of `report_path_prefix` field would be
         `gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_`.
         
        string report_path_prefix = 8;
        Specified by:
        getReportPathPrefix in interface ReportDetailOrBuilder
        Returns:
        The reportPathPrefix.
      • getReportPathPrefixBytes

        public com.google.protobuf.ByteString getReportPathPrefixBytes()
         Prefix of the object name of each report's shard. This will have full
         prefix except the "extension" and "shard_id".
         For example, if the `destination_path` is
         `{{report-config-id}}/dt={{datetime}}`, the shard object name would be
         `gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv`
         and the value of `report_path_prefix` field would be
         `gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_`.
         
        string report_path_prefix = 8;
        Specified by:
        getReportPathPrefixBytes in interface ReportDetailOrBuilder
        Returns:
        The bytes for reportPathPrefix.
      • setReportPathPrefix

        public ReportDetail.Builder setReportPathPrefix​(String value)
         Prefix of the object name of each report's shard. This will have full
         prefix except the "extension" and "shard_id".
         For example, if the `destination_path` is
         `{{report-config-id}}/dt={{datetime}}`, the shard object name would be
         `gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv`
         and the value of `report_path_prefix` field would be
         `gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_`.
         
        string report_path_prefix = 8;
        Parameters:
        value - The reportPathPrefix to set.
        Returns:
        This builder for chaining.
      • clearReportPathPrefix

        public ReportDetail.Builder clearReportPathPrefix()
         Prefix of the object name of each report's shard. This will have full
         prefix except the "extension" and "shard_id".
         For example, if the `destination_path` is
         `{{report-config-id}}/dt={{datetime}}`, the shard object name would be
         `gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv`
         and the value of `report_path_prefix` field would be
         `gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_`.
         
        string report_path_prefix = 8;
        Returns:
        This builder for chaining.
      • setReportPathPrefixBytes

        public ReportDetail.Builder setReportPathPrefixBytes​(com.google.protobuf.ByteString value)
         Prefix of the object name of each report's shard. This will have full
         prefix except the "extension" and "shard_id".
         For example, if the `destination_path` is
         `{{report-config-id}}/dt={{datetime}}`, the shard object name would be
         `gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_5.csv`
         and the value of `report_path_prefix` field would be
         `gs://my-insights/1A34-F2E456-12B456-1C3D/dt=2022-05-20T06:35/1A34-F2E456-12B456-1C3D_2022-05-20T06:35_`.
         
        string report_path_prefix = 8;
        Parameters:
        value - The bytes for reportPathPrefix to set.
        Returns:
        This builder for chaining.
      • getShardsCount

        public long getShardsCount()
         Total shards generated for the report.
         
        int64 shards_count = 9;
        Specified by:
        getShardsCount in interface ReportDetailOrBuilder
        Returns:
        The shardsCount.
      • setShardsCount

        public ReportDetail.Builder setShardsCount​(long value)
         Total shards generated for the report.
         
        int64 shards_count = 9;
        Parameters:
        value - The shardsCount to set.
        Returns:
        This builder for chaining.
      • clearShardsCount

        public ReportDetail.Builder clearShardsCount()
         Total shards generated for the report.
         
        int64 shards_count = 9;
        Returns:
        This builder for chaining.
      • hasStatus

        public boolean hasStatus()
         Status of the ReportDetail.
         
        .google.rpc.Status status = 4;
        Specified by:
        hasStatus in interface ReportDetailOrBuilder
        Returns:
        Whether the status field is set.
      • getStatus

        public com.google.rpc.Status getStatus()
         Status of the ReportDetail.
         
        .google.rpc.Status status = 4;
        Specified by:
        getStatus in interface ReportDetailOrBuilder
        Returns:
        The status.
      • setStatus

        public ReportDetail.Builder setStatus​(com.google.rpc.Status value)
         Status of the ReportDetail.
         
        .google.rpc.Status status = 4;
      • setStatus

        public ReportDetail.Builder setStatus​(com.google.rpc.Status.Builder builderForValue)
         Status of the ReportDetail.
         
        .google.rpc.Status status = 4;
      • mergeStatus

        public ReportDetail.Builder mergeStatus​(com.google.rpc.Status value)
         Status of the ReportDetail.
         
        .google.rpc.Status status = 4;
      • clearStatus

        public ReportDetail.Builder clearStatus()
         Status of the ReportDetail.
         
        .google.rpc.Status status = 4;
      • getStatusBuilder

        public com.google.rpc.Status.Builder getStatusBuilder()
         Status of the ReportDetail.
         
        .google.rpc.Status status = 4;
      • getStatusOrBuilder

        public com.google.rpc.StatusOrBuilder getStatusOrBuilder()
         Status of the ReportDetail.
         
        .google.rpc.Status status = 4;
        Specified by:
        getStatusOrBuilder in interface ReportDetailOrBuilder
      • removeLabels

        public ReportDetail.Builder removeLabels​(String key)
         Labels as key value pairs
         
        map<string, string> labels = 5;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • hasTargetDatetime

        public boolean hasTargetDatetime()
         The date for which report is generated. The time part of target_datetime
         will be zero till we support multiple reports per day.
         
        .google.type.DateTime target_datetime = 6;
        Specified by:
        hasTargetDatetime in interface ReportDetailOrBuilder
        Returns:
        Whether the targetDatetime field is set.
      • getTargetDatetime

        public com.google.type.DateTime getTargetDatetime()
         The date for which report is generated. The time part of target_datetime
         will be zero till we support multiple reports per day.
         
        .google.type.DateTime target_datetime = 6;
        Specified by:
        getTargetDatetime in interface ReportDetailOrBuilder
        Returns:
        The targetDatetime.
      • setTargetDatetime

        public ReportDetail.Builder setTargetDatetime​(com.google.type.DateTime value)
         The date for which report is generated. The time part of target_datetime
         will be zero till we support multiple reports per day.
         
        .google.type.DateTime target_datetime = 6;
      • setTargetDatetime

        public ReportDetail.Builder setTargetDatetime​(com.google.type.DateTime.Builder builderForValue)
         The date for which report is generated. The time part of target_datetime
         will be zero till we support multiple reports per day.
         
        .google.type.DateTime target_datetime = 6;
      • mergeTargetDatetime

        public ReportDetail.Builder mergeTargetDatetime​(com.google.type.DateTime value)
         The date for which report is generated. The time part of target_datetime
         will be zero till we support multiple reports per day.
         
        .google.type.DateTime target_datetime = 6;
      • clearTargetDatetime

        public ReportDetail.Builder clearTargetDatetime()
         The date for which report is generated. The time part of target_datetime
         will be zero till we support multiple reports per day.
         
        .google.type.DateTime target_datetime = 6;
      • getTargetDatetimeBuilder

        public com.google.type.DateTime.Builder getTargetDatetimeBuilder()
         The date for which report is generated. The time part of target_datetime
         will be zero till we support multiple reports per day.
         
        .google.type.DateTime target_datetime = 6;
      • getTargetDatetimeOrBuilder

        public com.google.type.DateTimeOrBuilder getTargetDatetimeOrBuilder()
         The date for which report is generated. The time part of target_datetime
         will be zero till we support multiple reports per day.
         
        .google.type.DateTime target_datetime = 6;
        Specified by:
        getTargetDatetimeOrBuilder in interface ReportDetailOrBuilder
      • hasReportMetrics

        public boolean hasReportMetrics()
         Metrics of the report.
         
        .google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;
        Specified by:
        hasReportMetrics in interface ReportDetailOrBuilder
        Returns:
        Whether the reportMetrics field is set.
      • clearReportMetrics

        public ReportDetail.Builder clearReportMetrics()
         Metrics of the report.
         
        .google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;
      • getReportMetricsBuilder

        public ReportDetail.Metrics.Builder getReportMetricsBuilder()
         Metrics of the report.
         
        .google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;
      • setUnknownFields

        public final ReportDetail.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<ReportDetail.Builder>
      • mergeUnknownFields

        public final ReportDetail.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<ReportDetail.Builder>