Class EnrollDataSourcesRequest.Builder

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

public static final class EnrollDataSourcesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<EnrollDataSourcesRequest.Builder> implements EnrollDataSourcesRequestOrBuilder
 A request to enroll a set of data sources so they are visible in the
 BigQuery UI's `Transfer` tab.
 
Protobuf type google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest
  • 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<EnrollDataSourcesRequest.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<EnrollDataSourcesRequest.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<EnrollDataSourcesRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getName()
       Required. The name of the project resource in the form:
       `projects/{project_id}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface EnrollDataSourcesRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The name of the project resource in the form:
       `projects/{project_id}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface EnrollDataSourcesRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public EnrollDataSourcesRequest.Builder setName(String value)
       Required. The name of the project resource in the form:
       `projects/{project_id}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. The name of the project resource in the form:
       `projects/{project_id}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public EnrollDataSourcesRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the project resource in the form:
       `projects/{project_id}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDataSourceIdsList

      public com.google.protobuf.ProtocolStringList getDataSourceIdsList()
       Data sources that are enrolled. It is required to provide at least one
       data source id.
       
      repeated string data_source_ids = 2;
      Specified by:
      getDataSourceIdsList in interface EnrollDataSourcesRequestOrBuilder
      Returns:
      A list containing the dataSourceIds.
    • getDataSourceIdsCount

      public int getDataSourceIdsCount()
       Data sources that are enrolled. It is required to provide at least one
       data source id.
       
      repeated string data_source_ids = 2;
      Specified by:
      getDataSourceIdsCount in interface EnrollDataSourcesRequestOrBuilder
      Returns:
      The count of dataSourceIds.
    • getDataSourceIds

      public String getDataSourceIds(int index)
       Data sources that are enrolled. It is required to provide at least one
       data source id.
       
      repeated string data_source_ids = 2;
      Specified by:
      getDataSourceIds in interface EnrollDataSourcesRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The dataSourceIds at the given index.
    • getDataSourceIdsBytes

      public com.google.protobuf.ByteString getDataSourceIdsBytes(int index)
       Data sources that are enrolled. It is required to provide at least one
       data source id.
       
      repeated string data_source_ids = 2;
      Specified by:
      getDataSourceIdsBytes in interface EnrollDataSourcesRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the dataSourceIds at the given index.
    • setDataSourceIds

      public EnrollDataSourcesRequest.Builder setDataSourceIds(int index, String value)
       Data sources that are enrolled. It is required to provide at least one
       data source id.
       
      repeated string data_source_ids = 2;
      Parameters:
      index - The index to set the value at.
      value - The dataSourceIds to set.
      Returns:
      This builder for chaining.
    • addDataSourceIds

      public EnrollDataSourcesRequest.Builder addDataSourceIds(String value)
       Data sources that are enrolled. It is required to provide at least one
       data source id.
       
      repeated string data_source_ids = 2;
      Parameters:
      value - The dataSourceIds to add.
      Returns:
      This builder for chaining.
    • addAllDataSourceIds

      public EnrollDataSourcesRequest.Builder addAllDataSourceIds(Iterable<String> values)
       Data sources that are enrolled. It is required to provide at least one
       data source id.
       
      repeated string data_source_ids = 2;
      Parameters:
      values - The dataSourceIds to add.
      Returns:
      This builder for chaining.
    • clearDataSourceIds

      public EnrollDataSourcesRequest.Builder clearDataSourceIds()
       Data sources that are enrolled. It is required to provide at least one
       data source id.
       
      repeated string data_source_ids = 2;
      Returns:
      This builder for chaining.
    • addDataSourceIdsBytes

      public EnrollDataSourcesRequest.Builder addDataSourceIdsBytes(com.google.protobuf.ByteString value)
       Data sources that are enrolled. It is required to provide at least one
       data source id.
       
      repeated string data_source_ids = 2;
      Parameters:
      value - The bytes of the dataSourceIds to add.
      Returns:
      This builder for chaining.