Class DataSourceExportSettings.Builder

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

public static final class DataSourceExportSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataSourceExportSettings.Builder> implements DataSourceExportSettingsOrBuilder
 The export settings for a data source.
 
Protobuf type google.cloud.chronicle.v1.DataSourceExportSettings
  • 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<DataSourceExportSettings.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<DataSourceExportSettings.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<DataSourceExportSettings.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public DataSourceExportSettings.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<DataSourceExportSettings.Builder>
      Throws:
      IOException
    • getEnabled

      public boolean getEnabled()
       Required. Whether the data source is enabled for export.
       
      bool enabled = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEnabled in interface DataSourceExportSettingsOrBuilder
      Returns:
      The enabled.
    • setEnabled

      public DataSourceExportSettings.Builder setEnabled(boolean value)
       Required. Whether the data source is enabled for export.
       
      bool enabled = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enabled to set.
      Returns:
      This builder for chaining.
    • clearEnabled

      public DataSourceExportSettings.Builder clearEnabled()
       Required. Whether the data source is enabled for export.
       
      bool enabled = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getRetentionDays

      public int getRetentionDays()
       Required. The retention period for the data source in days.
       
      int32 retention_days = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRetentionDays in interface DataSourceExportSettingsOrBuilder
      Returns:
      The retentionDays.
    • setRetentionDays

      public DataSourceExportSettings.Builder setRetentionDays(int value)
       Required. The retention period for the data source in days.
       
      int32 retention_days = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The retentionDays to set.
      Returns:
      This builder for chaining.
    • clearRetentionDays

      public DataSourceExportSettings.Builder clearRetentionDays()
       Required. The retention period for the data source in days.
       
      int32 retention_days = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getLatestExportJobStateValue

      public int getLatestExportJobStateValue()
       Output only. The state of the latest data source export job.
       
      .google.cloud.chronicle.v1.LatestExportJobState latest_export_job_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLatestExportJobStateValue in interface DataSourceExportSettingsOrBuilder
      Returns:
      The enum numeric value on the wire for latestExportJobState.
    • setLatestExportJobStateValue

      public DataSourceExportSettings.Builder setLatestExportJobStateValue(int value)
       Output only. The state of the latest data source export job.
       
      .google.cloud.chronicle.v1.LatestExportJobState latest_export_job_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for latestExportJobState to set.
      Returns:
      This builder for chaining.
    • getLatestExportJobState

      public LatestExportJobState getLatestExportJobState()
       Output only. The state of the latest data source export job.
       
      .google.cloud.chronicle.v1.LatestExportJobState latest_export_job_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLatestExportJobState in interface DataSourceExportSettingsOrBuilder
      Returns:
      The latestExportJobState.
    • setLatestExportJobState

      public DataSourceExportSettings.Builder setLatestExportJobState(LatestExportJobState value)
       Output only. The state of the latest data source export job.
       
      .google.cloud.chronicle.v1.LatestExportJobState latest_export_job_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The latestExportJobState to set.
      Returns:
      This builder for chaining.
    • clearLatestExportJobState

      public DataSourceExportSettings.Builder clearLatestExportJobState()
       Output only. The state of the latest data source export job.
       
      .google.cloud.chronicle.v1.LatestExportJobState latest_export_job_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasDataFreshnessTime

      public boolean hasDataFreshnessTime()
       Output only. The data freshness of the given export which represents the
       time bucket at which the latest event was exported.
       
      .google.protobuf.Timestamp data_freshness_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDataFreshnessTime in interface DataSourceExportSettingsOrBuilder
      Returns:
      Whether the dataFreshnessTime field is set.
    • getDataFreshnessTime

      public com.google.protobuf.Timestamp getDataFreshnessTime()
       Output only. The data freshness of the given export which represents the
       time bucket at which the latest event was exported.
       
      .google.protobuf.Timestamp data_freshness_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDataFreshnessTime in interface DataSourceExportSettingsOrBuilder
      Returns:
      The dataFreshnessTime.
    • setDataFreshnessTime

      public DataSourceExportSettings.Builder setDataFreshnessTime(com.google.protobuf.Timestamp value)
       Output only. The data freshness of the given export which represents the
       time bucket at which the latest event was exported.
       
      .google.protobuf.Timestamp data_freshness_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDataFreshnessTime

      public DataSourceExportSettings.Builder setDataFreshnessTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The data freshness of the given export which represents the
       time bucket at which the latest event was exported.
       
      .google.protobuf.Timestamp data_freshness_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDataFreshnessTime

      public DataSourceExportSettings.Builder mergeDataFreshnessTime(com.google.protobuf.Timestamp value)
       Output only. The data freshness of the given export which represents the
       time bucket at which the latest event was exported.
       
      .google.protobuf.Timestamp data_freshness_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDataFreshnessTime

      public DataSourceExportSettings.Builder clearDataFreshnessTime()
       Output only. The data freshness of the given export which represents the
       time bucket at which the latest event was exported.
       
      .google.protobuf.Timestamp data_freshness_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDataFreshnessTimeBuilder

      public com.google.protobuf.Timestamp.Builder getDataFreshnessTimeBuilder()
       Output only. The data freshness of the given export which represents the
       time bucket at which the latest event was exported.
       
      .google.protobuf.Timestamp data_freshness_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDataFreshnessTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDataFreshnessTimeOrBuilder()
       Output only. The data freshness of the given export which represents the
       time bucket at which the latest event was exported.
       
      .google.protobuf.Timestamp data_freshness_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDataFreshnessTimeOrBuilder in interface DataSourceExportSettingsOrBuilder
    • getDataVolume

      public long getDataVolume()
       Output only. The stored data volume of all the exports.
       
      int64 data_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDataVolume in interface DataSourceExportSettingsOrBuilder
      Returns:
      The dataVolume.
    • setDataVolume

      public DataSourceExportSettings.Builder setDataVolume(long value)
       Output only. The stored data volume of all the exports.
       
      int64 data_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The dataVolume to set.
      Returns:
      This builder for chaining.
    • clearDataVolume

      public DataSourceExportSettings.Builder clearDataVolume()
       Output only. The stored data volume of all the exports.
       
      int64 data_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.