Class ListTransferRunsRequest.Builder

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

public static final class ListTransferRunsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListTransferRunsRequest.Builder> implements ListTransferRunsRequestOrBuilder
 A request to list data transfer runs.
 
Protobuf type google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest
  • 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<ListTransferRunsRequest.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<ListTransferRunsRequest.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<ListTransferRunsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListTransferRunsRequest.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<ListTransferRunsRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. Name of transfer configuration for which transfer runs should be
       retrieved. Format of transfer configuration resource name is:
       `projects/{project_id}/transferConfigs/{config_id}` or
       `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface ListTransferRunsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Name of transfer configuration for which transfer runs should be
       retrieved. Format of transfer configuration resource name is:
       `projects/{project_id}/transferConfigs/{config_id}` or
       `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface ListTransferRunsRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ListTransferRunsRequest.Builder setParent(String value)
       Required. Name of transfer configuration for which transfer runs should be
       retrieved. Format of transfer configuration resource name is:
       `projects/{project_id}/transferConfigs/{config_id}` or
       `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public ListTransferRunsRequest.Builder clearParent()
       Required. Name of transfer configuration for which transfer runs should be
       retrieved. Format of transfer configuration resource name is:
       `projects/{project_id}/transferConfigs/{config_id}` or
       `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public ListTransferRunsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Name of transfer configuration for which transfer runs should be
       retrieved. Format of transfer configuration resource name is:
       `projects/{project_id}/transferConfigs/{config_id}` or
       `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getStatesList

      public List<TransferState> getStatesList()
       When specified, only transfer runs with requested states are returned.
       
      repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2;
      Specified by:
      getStatesList in interface ListTransferRunsRequestOrBuilder
      Returns:
      A list containing the states.
    • getStatesCount

      public int getStatesCount()
       When specified, only transfer runs with requested states are returned.
       
      repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2;
      Specified by:
      getStatesCount in interface ListTransferRunsRequestOrBuilder
      Returns:
      The count of states.
    • getStates

      public TransferState getStates(int index)
       When specified, only transfer runs with requested states are returned.
       
      repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2;
      Specified by:
      getStates in interface ListTransferRunsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The states at the given index.
    • setStates

      public ListTransferRunsRequest.Builder setStates(int index, TransferState value)
       When specified, only transfer runs with requested states are returned.
       
      repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2;
      Parameters:
      index - The index to set the value at.
      value - The states to set.
      Returns:
      This builder for chaining.
    • addStates

       When specified, only transfer runs with requested states are returned.
       
      repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2;
      Parameters:
      value - The states to add.
      Returns:
      This builder for chaining.
    • addAllStates

      public ListTransferRunsRequest.Builder addAllStates(Iterable<? extends TransferState> values)
       When specified, only transfer runs with requested states are returned.
       
      repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2;
      Parameters:
      values - The states to add.
      Returns:
      This builder for chaining.
    • clearStates

      public ListTransferRunsRequest.Builder clearStates()
       When specified, only transfer runs with requested states are returned.
       
      repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2;
      Returns:
      This builder for chaining.
    • getStatesValueList

      public List<Integer> getStatesValueList()
       When specified, only transfer runs with requested states are returned.
       
      repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2;
      Specified by:
      getStatesValueList in interface ListTransferRunsRequestOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for states.
    • getStatesValue

      public int getStatesValue(int index)
       When specified, only transfer runs with requested states are returned.
       
      repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2;
      Specified by:
      getStatesValue in interface ListTransferRunsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of states at the given index.
    • setStatesValue

      public ListTransferRunsRequest.Builder setStatesValue(int index, int value)
       When specified, only transfer runs with requested states are returned.
       
      repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for states to set.
      Returns:
      This builder for chaining.
    • addStatesValue

      public ListTransferRunsRequest.Builder addStatesValue(int value)
       When specified, only transfer runs with requested states are returned.
       
      repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2;
      Parameters:
      value - The enum numeric value on the wire for states to add.
      Returns:
      This builder for chaining.
    • addAllStatesValue

      public ListTransferRunsRequest.Builder addAllStatesValue(Iterable<Integer> values)
       When specified, only transfer runs with requested states are returned.
       
      repeated .google.cloud.bigquery.datatransfer.v1.TransferState states = 2;
      Parameters:
      values - The enum numeric values on the wire for states to add.
      Returns:
      This builder for chaining.
    • getPageToken

      public String getPageToken()
       Pagination token, which can be used to request a specific page
       of `ListTransferRunsRequest` list results. For multiple-page
       results, `ListTransferRunsResponse` outputs
       a `next_page` token, which can be used as the
       `page_token` value to request the next page of list results.
       
      string page_token = 3;
      Specified by:
      getPageToken in interface ListTransferRunsRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       Pagination token, which can be used to request a specific page
       of `ListTransferRunsRequest` list results. For multiple-page
       results, `ListTransferRunsResponse` outputs
       a `next_page` token, which can be used as the
       `page_token` value to request the next page of list results.
       
      string page_token = 3;
      Specified by:
      getPageTokenBytes in interface ListTransferRunsRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public ListTransferRunsRequest.Builder setPageToken(String value)
       Pagination token, which can be used to request a specific page
       of `ListTransferRunsRequest` list results. For multiple-page
       results, `ListTransferRunsResponse` outputs
       a `next_page` token, which can be used as the
       `page_token` value to request the next page of list results.
       
      string page_token = 3;
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public ListTransferRunsRequest.Builder clearPageToken()
       Pagination token, which can be used to request a specific page
       of `ListTransferRunsRequest` list results. For multiple-page
       results, `ListTransferRunsResponse` outputs
       a `next_page` token, which can be used as the
       `page_token` value to request the next page of list results.
       
      string page_token = 3;
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public ListTransferRunsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       Pagination token, which can be used to request a specific page
       of `ListTransferRunsRequest` list results. For multiple-page
       results, `ListTransferRunsResponse` outputs
       a `next_page` token, which can be used as the
       `page_token` value to request the next page of list results.
       
      string page_token = 3;
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.
    • getPageSize

      public int getPageSize()
       Page size. The default page size is the maximum value of 1000 results.
       
      int32 page_size = 4;
      Specified by:
      getPageSize in interface ListTransferRunsRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public ListTransferRunsRequest.Builder setPageSize(int value)
       Page size. The default page size is the maximum value of 1000 results.
       
      int32 page_size = 4;
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public ListTransferRunsRequest.Builder clearPageSize()
       Page size. The default page size is the maximum value of 1000 results.
       
      int32 page_size = 4;
      Returns:
      This builder for chaining.
    • getRunAttemptValue

      public int getRunAttemptValue()
       Indicates how run attempts are to be pulled.
       
      .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5;
      Specified by:
      getRunAttemptValue in interface ListTransferRunsRequestOrBuilder
      Returns:
      The enum numeric value on the wire for runAttempt.
    • setRunAttemptValue

      public ListTransferRunsRequest.Builder setRunAttemptValue(int value)
       Indicates how run attempts are to be pulled.
       
      .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5;
      Parameters:
      value - The enum numeric value on the wire for runAttempt to set.
      Returns:
      This builder for chaining.
    • getRunAttempt

      public ListTransferRunsRequest.RunAttempt getRunAttempt()
       Indicates how run attempts are to be pulled.
       
      .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5;
      Specified by:
      getRunAttempt in interface ListTransferRunsRequestOrBuilder
      Returns:
      The runAttempt.
    • setRunAttempt

       Indicates how run attempts are to be pulled.
       
      .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5;
      Parameters:
      value - The runAttempt to set.
      Returns:
      This builder for chaining.
    • clearRunAttempt

      public ListTransferRunsRequest.Builder clearRunAttempt()
       Indicates how run attempts are to be pulled.
       
      .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5;
      Returns:
      This builder for chaining.