Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/datalabeling_v1beta1/classes.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb

Overview

Request message of SearchExampleComparisons.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest

Returns a new instance of GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest.



4137
4138
4139
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4137

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#page_sizeFixnum

Optional. Requested page size. Server may return fewer results than requested. Default value is 100. Corresponds to the JSON property pageSize

Returns:

  • (Fixnum)


4127
4128
4129
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4127

def page_size
  @page_size
end

#page_tokenString

Optional. A token identifying a page of results for the server to return. Typically obtained by the nextPageToken of the response to a previous search rquest. If you don't specify this field, the API call requests the first page of the search. Corresponds to the JSON property pageToken

Returns:

  • (String)


4135
4136
4137
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4135

def page_token
  @page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4142
4143
4144
4145
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4142

def update!(**args)
  @page_size = args[:page_size] if args.key?(:page_size)
  @page_token = args[:page_token] if args.key?(:page_token)
end