Class DataSource

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.bigquery.datatransfer.v1.DataSource
All Implemented Interfaces:
DataSourceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class DataSource extends com.google.protobuf.GeneratedMessage implements DataSourceOrBuilder
 Defines the properties and custom parameters for a data source.
 
Protobuf type google.cloud.bigquery.datatransfer.v1.DataSource
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DATA_SOURCE_ID_FIELD_NUMBER

      public static final int DATA_SOURCE_ID_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • CLIENT_ID_FIELD_NUMBER

      public static final int CLIENT_ID_FIELD_NUMBER
      See Also:
    • SCOPES_FIELD_NUMBER

      public static final int SCOPES_FIELD_NUMBER
      See Also:
    • TRANSFER_TYPE_FIELD_NUMBER

      public static final int TRANSFER_TYPE_FIELD_NUMBER
      See Also:
    • SUPPORTS_MULTIPLE_TRANSFERS_FIELD_NUMBER

      public static final int SUPPORTS_MULTIPLE_TRANSFERS_FIELD_NUMBER
      See Also:
    • UPDATE_DEADLINE_SECONDS_FIELD_NUMBER

      public static final int UPDATE_DEADLINE_SECONDS_FIELD_NUMBER
      See Also:
    • DEFAULT_SCHEDULE_FIELD_NUMBER

      public static final int DEFAULT_SCHEDULE_FIELD_NUMBER
      See Also:
    • SUPPORTS_CUSTOM_SCHEDULE_FIELD_NUMBER

      public static final int SUPPORTS_CUSTOM_SCHEDULE_FIELD_NUMBER
      See Also:
    • PARAMETERS_FIELD_NUMBER

      public static final int PARAMETERS_FIELD_NUMBER
      See Also:
    • HELP_URL_FIELD_NUMBER

      public static final int HELP_URL_FIELD_NUMBER
      See Also:
    • AUTHORIZATION_TYPE_FIELD_NUMBER

      public static final int AUTHORIZATION_TYPE_FIELD_NUMBER
      See Also:
    • DATA_REFRESH_TYPE_FIELD_NUMBER

      public static final int DATA_REFRESH_TYPE_FIELD_NUMBER
      See Also:
    • DEFAULT_DATA_REFRESH_WINDOW_DAYS_FIELD_NUMBER

      public static final int DEFAULT_DATA_REFRESH_WINDOW_DAYS_FIELD_NUMBER
      See Also:
    • MANUAL_RUNS_DISABLED_FIELD_NUMBER

      public static final int MANUAL_RUNS_DISABLED_FIELD_NUMBER
      See Also:
    • MINIMUM_SCHEDULE_INTERVAL_FIELD_NUMBER

      public static final int MINIMUM_SCHEDULE_INTERVAL_FIELD_NUMBER
      See Also:
  • 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
    • getName

      public String getName()
       Output only. Data source resource name.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface DataSourceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Data source resource name.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for name.
    • getDataSourceId

      public String getDataSourceId()
       Data source id.
       
      string data_source_id = 2;
      Specified by:
      getDataSourceId in interface DataSourceOrBuilder
      Returns:
      The dataSourceId.
    • getDataSourceIdBytes

      public com.google.protobuf.ByteString getDataSourceIdBytes()
       Data source id.
       
      string data_source_id = 2;
      Specified by:
      getDataSourceIdBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for dataSourceId.
    • getDisplayName

      public String getDisplayName()
       User friendly data source name.
       
      string display_name = 3;
      Specified by:
      getDisplayName in interface DataSourceOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       User friendly data source name.
       
      string display_name = 3;
      Specified by:
      getDisplayNameBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for displayName.
    • getDescription

      public String getDescription()
       User friendly data source description string.
       
      string description = 4;
      Specified by:
      getDescription in interface DataSourceOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       User friendly data source description string.
       
      string description = 4;
      Specified by:
      getDescriptionBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for description.
    • getClientId

      public String getClientId()
       Data source client id which should be used to receive refresh token.
       
      string client_id = 5;
      Specified by:
      getClientId in interface DataSourceOrBuilder
      Returns:
      The clientId.
    • getClientIdBytes

      public com.google.protobuf.ByteString getClientIdBytes()
       Data source client id which should be used to receive refresh token.
       
      string client_id = 5;
      Specified by:
      getClientIdBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for clientId.
    • getScopesList

      public com.google.protobuf.ProtocolStringList getScopesList()
       Api auth scopes for which refresh token needs to be obtained. These are
       scopes needed by a data source to prepare data and ingest them into
       BigQuery, e.g., https://www.googleapis.com/auth/bigquery
       
      repeated string scopes = 6;
      Specified by:
      getScopesList in interface DataSourceOrBuilder
      Returns:
      A list containing the scopes.
    • getScopesCount

      public int getScopesCount()
       Api auth scopes for which refresh token needs to be obtained. These are
       scopes needed by a data source to prepare data and ingest them into
       BigQuery, e.g., https://www.googleapis.com/auth/bigquery
       
      repeated string scopes = 6;
      Specified by:
      getScopesCount in interface DataSourceOrBuilder
      Returns:
      The count of scopes.
    • getScopes

      public String getScopes(int index)
       Api auth scopes for which refresh token needs to be obtained. These are
       scopes needed by a data source to prepare data and ingest them into
       BigQuery, e.g., https://www.googleapis.com/auth/bigquery
       
      repeated string scopes = 6;
      Specified by:
      getScopes in interface DataSourceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The scopes at the given index.
    • getScopesBytes

      public com.google.protobuf.ByteString getScopesBytes(int index)
       Api auth scopes for which refresh token needs to be obtained. These are
       scopes needed by a data source to prepare data and ingest them into
       BigQuery, e.g., https://www.googleapis.com/auth/bigquery
       
      repeated string scopes = 6;
      Specified by:
      getScopesBytes in interface DataSourceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the scopes at the given index.
    • getTransferTypeValue

      @Deprecated public int getTransferTypeValue()
      Deprecated.
      google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=396
       Deprecated. This field has no effect.
       
      .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true];
      Specified by:
      getTransferTypeValue in interface DataSourceOrBuilder
      Returns:
      The enum numeric value on the wire for transferType.
    • getTransferType

      @Deprecated public TransferType getTransferType()
      Deprecated.
      google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=396
       Deprecated. This field has no effect.
       
      .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true];
      Specified by:
      getTransferType in interface DataSourceOrBuilder
      Returns:
      The transferType.
    • getSupportsMultipleTransfers

      @Deprecated public boolean getSupportsMultipleTransfers()
      Deprecated.
      google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=399
       Deprecated. This field has no effect.
       
      bool supports_multiple_transfers = 8 [deprecated = true];
      Specified by:
      getSupportsMultipleTransfers in interface DataSourceOrBuilder
      Returns:
      The supportsMultipleTransfers.
    • getUpdateDeadlineSeconds

      public int getUpdateDeadlineSeconds()
       The number of seconds to wait for an update from the data source
       before the Data Transfer Service marks the transfer as FAILED.
       
      int32 update_deadline_seconds = 9;
      Specified by:
      getUpdateDeadlineSeconds in interface DataSourceOrBuilder
      Returns:
      The updateDeadlineSeconds.
    • getDefaultSchedule

      public String getDefaultSchedule()
       Default data transfer schedule.
       Examples of valid schedules include:
       `1st,3rd monday of month 15:30`,
       `every wed,fri of jan,jun 13:15`, and
       `first sunday of quarter 00:00`.
       
      string default_schedule = 10;
      Specified by:
      getDefaultSchedule in interface DataSourceOrBuilder
      Returns:
      The defaultSchedule.
    • getDefaultScheduleBytes

      public com.google.protobuf.ByteString getDefaultScheduleBytes()
       Default data transfer schedule.
       Examples of valid schedules include:
       `1st,3rd monday of month 15:30`,
       `every wed,fri of jan,jun 13:15`, and
       `first sunday of quarter 00:00`.
       
      string default_schedule = 10;
      Specified by:
      getDefaultScheduleBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for defaultSchedule.
    • getSupportsCustomSchedule

      public boolean getSupportsCustomSchedule()
       Specifies whether the data source supports a user defined schedule, or
       operates on the default schedule.
       When set to `true`, user can override default schedule.
       
      bool supports_custom_schedule = 11;
      Specified by:
      getSupportsCustomSchedule in interface DataSourceOrBuilder
      Returns:
      The supportsCustomSchedule.
    • getParametersList

      public List<DataSourceParameter> getParametersList()
       Data source parameters.
       
      repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;
      Specified by:
      getParametersList in interface DataSourceOrBuilder
    • getParametersOrBuilderList

      public List<? extends DataSourceParameterOrBuilder> getParametersOrBuilderList()
       Data source parameters.
       
      repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;
      Specified by:
      getParametersOrBuilderList in interface DataSourceOrBuilder
    • getParametersCount

      public int getParametersCount()
       Data source parameters.
       
      repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;
      Specified by:
      getParametersCount in interface DataSourceOrBuilder
    • getParameters

      public DataSourceParameter getParameters(int index)
       Data source parameters.
       
      repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;
      Specified by:
      getParameters in interface DataSourceOrBuilder
    • getParametersOrBuilder

      public DataSourceParameterOrBuilder getParametersOrBuilder(int index)
       Data source parameters.
       
      repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;
      Specified by:
      getParametersOrBuilder in interface DataSourceOrBuilder
    • getHelpUrl

      public String getHelpUrl()
       Url for the help document for this data source.
       
      string help_url = 13;
      Specified by:
      getHelpUrl in interface DataSourceOrBuilder
      Returns:
      The helpUrl.
    • getHelpUrlBytes

      public com.google.protobuf.ByteString getHelpUrlBytes()
       Url for the help document for this data source.
       
      string help_url = 13;
      Specified by:
      getHelpUrlBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for helpUrl.
    • getAuthorizationTypeValue

      public int getAuthorizationTypeValue()
       Indicates the type of authorization.
       
      .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14;
      Specified by:
      getAuthorizationTypeValue in interface DataSourceOrBuilder
      Returns:
      The enum numeric value on the wire for authorizationType.
    • getAuthorizationType

      public DataSource.AuthorizationType getAuthorizationType()
       Indicates the type of authorization.
       
      .google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14;
      Specified by:
      getAuthorizationType in interface DataSourceOrBuilder
      Returns:
      The authorizationType.
    • getDataRefreshTypeValue

      public int getDataRefreshTypeValue()
       Specifies whether the data source supports automatic data refresh for the
       past few days, and how it's supported.
       For some data sources, data might not be complete until a few days later,
       so it's useful to refresh data automatically.
       
      .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15;
      Specified by:
      getDataRefreshTypeValue in interface DataSourceOrBuilder
      Returns:
      The enum numeric value on the wire for dataRefreshType.
    • getDataRefreshType

      public DataSource.DataRefreshType getDataRefreshType()
       Specifies whether the data source supports automatic data refresh for the
       past few days, and how it's supported.
       For some data sources, data might not be complete until a few days later,
       so it's useful to refresh data automatically.
       
      .google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15;
      Specified by:
      getDataRefreshType in interface DataSourceOrBuilder
      Returns:
      The dataRefreshType.
    • getDefaultDataRefreshWindowDays

      public int getDefaultDataRefreshWindowDays()
       Default data refresh window on days.
       Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
       
      int32 default_data_refresh_window_days = 16;
      Specified by:
      getDefaultDataRefreshWindowDays in interface DataSourceOrBuilder
      Returns:
      The defaultDataRefreshWindowDays.
    • getManualRunsDisabled

      public boolean getManualRunsDisabled()
       Disables backfilling and manual run scheduling
       for the data source.
       
      bool manual_runs_disabled = 17;
      Specified by:
      getManualRunsDisabled in interface DataSourceOrBuilder
      Returns:
      The manualRunsDisabled.
    • hasMinimumScheduleInterval

      public boolean hasMinimumScheduleInterval()
       The minimum interval for scheduler to schedule runs.
       
      .google.protobuf.Duration minimum_schedule_interval = 18;
      Specified by:
      hasMinimumScheduleInterval in interface DataSourceOrBuilder
      Returns:
      Whether the minimumScheduleInterval field is set.
    • getMinimumScheduleInterval

      public com.google.protobuf.Duration getMinimumScheduleInterval()
       The minimum interval for scheduler to schedule runs.
       
      .google.protobuf.Duration minimum_schedule_interval = 18;
      Specified by:
      getMinimumScheduleInterval in interface DataSourceOrBuilder
      Returns:
      The minimumScheduleInterval.
    • getMinimumScheduleIntervalOrBuilder

      public com.google.protobuf.DurationOrBuilder getMinimumScheduleIntervalOrBuilder()
       The minimum interval for scheduler to schedule runs.
       
      .google.protobuf.Duration minimum_schedule_interval = 18;
      Specified by:
      getMinimumScheduleIntervalOrBuilder in interface DataSourceOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 DataSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static DataSource parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataSource parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static DataSource.Builder newBuilder()
    • newBuilder

      public static DataSource.Builder newBuilder(DataSource prototype)
    • toBuilder

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

      protected DataSource.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static DataSource getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DataSource> parser()
    • getParserForType

      public com.google.protobuf.Parser<DataSource> 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.GeneratedMessage
    • getDefaultInstanceForType

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