Class ReportDetail.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReportDetail.Builder>
com.google.cloud.storageinsights.v1.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.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ReportDetail.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ReportDetail.Builder>
    • internalGetFieldAccessorTable

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

      public ReportDetail.Builder mergeFrom(ReportDetail other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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 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(Status value)
       Status of the ReportDetail.
       
      .google.rpc.Status status = 4;
    • setStatus

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

      public ReportDetail.Builder mergeStatus(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 Status.Builder getStatusBuilder()
       Status of the ReportDetail.
       
      .google.rpc.Status status = 4;
    • getStatusOrBuilder

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

      public int getLabelsCount()
      Description copied from interface: ReportDetailOrBuilder
       Labels as key value pairs
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsCount in interface ReportDetailOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Labels as key value pairs
       
      map<string, string> labels = 5;
      Specified by:
      containsLabels in interface ReportDetailOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface ReportDetailOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Labels as key value pairs
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsMap in interface ReportDetailOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels as key value pairs
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsOrDefault in interface ReportDetailOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels as key value pairs
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsOrThrow in interface ReportDetailOrBuilder
    • clearLabels

      public ReportDetail.Builder clearLabels()
    • 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.
    • putLabels

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

      public ReportDetail.Builder putAllLabels(Map<String,String> values)
       Labels as key value pairs
       
      map<string, string> labels = 5;
    • 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 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(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(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(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 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 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.
    • getReportMetrics

      public ReportDetail.Metrics getReportMetrics()
       Metrics of the report.
       
      .google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;
      Specified by:
      getReportMetrics in interface ReportDetailOrBuilder
      Returns:
      The reportMetrics.
    • setReportMetrics

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

      public ReportDetail.Builder setReportMetrics(ReportDetail.Metrics.Builder builderForValue)
       Metrics of the report.
       
      .google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;
    • mergeReportMetrics

      public ReportDetail.Builder mergeReportMetrics(ReportDetail.Metrics value)
       Metrics of the report.
       
      .google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;
    • 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;
    • getReportMetricsOrBuilder

      public ReportDetail.MetricsOrBuilder getReportMetricsOrBuilder()
       Metrics of the report.
       
      .google.cloud.storageinsights.v1.ReportDetail.Metrics report_metrics = 7;
      Specified by:
      getReportMetricsOrBuilder in interface ReportDetailOrBuilder