# Modify the configuration for all Messages clients::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.configuredo|config|config.timeout=10.0end
The configuration is set to the derived mode, meaning that values can be changed,
but structural changes (adding new fields, etc.) are not allowed. Structural changes
should be made on Client.configure.
See Configuration
for a description of the configuration fields.
# Create a client using the default configurationclient=::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new# Create a client using a custom configurationclient=::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.newdo|config|config.timeout=10.0end
To request the status of a job, we recommend using
projects.locations.jobs.messages.list with a regional endpoint. Using
projects.jobs.messages.list is not recommended, as you can only request
the status of jobs that are running in us-central1.
Pass arguments to list_job_messages via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
Parameters
project_id (::String) — A project id.
job_id (::String) — The job to get messages about.
page_size (::Integer) — If specified, determines the maximum number of messages to
return. If unspecified, the service may choose an appropriate
default, or may return an arbitrarily large number of results.
page_token (::String) — If supplied, this should be the value of next_page_token returned
by an earlier call. This will cause the next page of results to
be returned.
start_time (::Google::Protobuf::Timestamp, ::Hash) — If specified, return only messages with timestamps >= start_time.
The default is the job creation time (i.e. beginning of messages).
end_time (::Google::Protobuf::Timestamp, ::Hash) — Return only messages with timestamps < end_time. The default is now
(i.e. return up to the latest messages available).
location (::String) — The regional endpoint that
contains the job specified by job_id.
Yields
(result, operation) — Access the result along with the TransportOperation object
(::Google::Cloud::Error) — if the REST call is aborted.
Example
Basic example
require"google/cloud/dataflow/v1beta3"# Create a client object. The client can be reused for multiple calls.client=Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new# Create a request. To set request fields, pass in keyword arguments.request=Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new# Call the list_job_messages method.result=client.list_job_messagesrequest# The returned object is of type Gapic::PagedEnumerable. You can iterate# over elements, and API calls will be issued to fetch pages as needed.result.eachdo|item|# Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage.pitemend
#logger
deflogger()->Logger
The logger used for request/response debug logging.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Dataflow V1beta3 API - Class Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client (v0.13.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.13.1 (latest)](/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client)\n- [0.13.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.13.0/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client)\n- [0.12.1](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.12.1/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client)\n- [0.11.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.11.0/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client)\n- [0.10.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.10.0/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client)\n- [0.9.1](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.9.1/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client)\n- [0.8.2](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.8.2/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client)\n- [0.7.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.7.0/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client)\n- [0.6.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.6.0/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client)\n- [0.5.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.5.0/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client)\n- [0.4.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.4.0/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client)\n- [0.3.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.3.0/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client)\n- [0.2.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.2.0/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client)\n- [0.1.4](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.1.4/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client) \nReference documentation and code samples for the Dataflow V1beta3 API class Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.\n\nREST client for the Messages service.\n\n\n\u003cbr /\u003e\n\nThe Dataflow Messages API is used for monitoring the progress of\nDataflow jobs. \n\nInherits\n--------\n\n- Object\n\nMethods\n-------\n\n### .configure\n\n def self.configure() { |config| ... } -\u003e Client::Configuration\n\nConfigure the Messages Client class.\n\n\n\u003cbr /\u003e\n\nSee [Configuration](/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client-Configuration \"Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration (class)\")\nfor a description of the configuration fields. \n**Yields**\n\n- (config) --- Configure the Client client. \n**Yield Parameter**\n\n- **config** ([Client::Configuration](./Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client-Configuration)) \n**Returns**\n\n- ([Client::Configuration](./Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client-Configuration))\n**Example** \n\n```ruby\n# Modify the configuration for all Messages clients\n::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.configure do |config|\n config.timeout = 10.0\nend\n```\n\n### #configure\n\n def configure() { |config| ... } -\u003e Client::Configuration\n\nConfigure the Messages Client instance.\n\n\nThe configuration is set to the derived mode, meaning that values can be changed,\nbut structural changes (adding new fields, etc.) are not allowed. Structural changes\nshould be made on [Client.configure](/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client#Google__Cloud__Dataflow__V1beta3__Messages__Rest__Client_configure_class_ \"Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.configure (method)\").\n\n\u003cbr /\u003e\n\nSee [Configuration](/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client-Configuration \"Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration (class)\")\nfor a description of the configuration fields. \n**Yields**\n\n- (config) --- Configure the Client client. \n**Yield Parameter**\n\n- **config** ([Client::Configuration](./Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client-Configuration)) \n**Returns**\n\n- ([Client::Configuration](./Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client-Configuration))\n\n### #initialize\n\n def initialize() { |config| ... } -\u003e Client\n\nCreate a new Messages REST client object. \n**Yields**\n\n- (config) --- Configure the Messages client. \n**Yield Parameter**\n\n- **config** ([Client::Configuration](./Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client-Configuration)) \n**Returns**\n\n- ([Client](./Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client)) --- a new instance of Client\n**Example** \n\n```ruby\n# Create a client using the default configuration\nclient = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new\n\n# Create a client using a custom configuration\nclient = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config|\n config.timeout = 10.0\nend\n```\n\n### #list_job_messages\n\n def list_job_messages(request, options = nil) -\u003e ::Gapic::Rest::PagedEnumerable\u003c::Google::Cloud::Dataflow::V1beta3::JobMessage\u003e\n def list_job_messages(project_id: nil, job_id: nil, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil) -\u003e ::Gapic::Rest::PagedEnumerable\u003c::Google::Cloud::Dataflow::V1beta3::JobMessage\u003e\n\nRequest the job status.\n\n\n\u003cbr /\u003e\n\nTo request the status of a job, we recommend using\n`projects.locations.jobs.messages.list` with a [regional endpoint](https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using\n`projects.jobs.messages.list` is not recommended, as you can only request\nthe status of jobs that are running in `us-central1`. \n**Overloads** \n\n def list_job_messages(request, options = nil) -\u003e ::Gapic::Rest::PagedEnumerable\u003c::Google::Cloud::Dataflow::V1beta3::JobMessage\u003e\n\nPass arguments to `list_job_messages` via a request object, either of type [ListJobMessagesRequest](/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-ListJobMessagesRequest \"Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest (class)\") or an equivalent Hash. \n**Parameters**\n\n- **request** ([::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest](./Google-Cloud-Dataflow-V1beta3-ListJobMessagesRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.\n- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional. \n\n def list_job_messages(project_id: nil, job_id: nil, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil) -\u003e ::Gapic::Rest::PagedEnumerable\u003c::Google::Cloud::Dataflow::V1beta3::JobMessage\u003e\n\nPass arguments to `list_job_messages` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). \n**Parameters**\n\n- **project_id** (::String) --- A project id.\n- **job_id** (::String) --- The job to get messages about.\n- **minimum_importance** ([::Google::Cloud::Dataflow::V1beta3::JobMessageImportance](./Google-Cloud-Dataflow-V1beta3-JobMessageImportance)) --- Filter to only get messages with importance \\\u003e= level\n- **page_size** (::Integer) --- If specified, determines the maximum number of messages to return. If unspecified, the service may choose an appropriate default, or may return an arbitrarily large number of results.\n- **page_token** (::String) --- If supplied, this should be the value of next_page_token returned by an earlier call. This will cause the next page of results to be returned.\n- **start_time** ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp), ::Hash) --- If specified, return only messages with timestamps \\\u003e= start_time. The default is the job creation time (i.e. beginning of messages).\n- **end_time** ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp), ::Hash) --- Return only messages with timestamps \\\u003c end_time. The default is now (i.e. return up to the latest messages available).\n- **location** (::String) --- The [regional endpoint](https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. \n**Yields**\n\n- (result, operation) --- Access the result along with the TransportOperation object \n**Yield Parameters**\n\n- **result** (::Gapic::Rest::PagedEnumerable\\\u003c[::Google::Cloud::Dataflow::V1beta3::JobMessage](./Google-Cloud-Dataflow-V1beta3-JobMessage)\\\u003e)\n- **operation** (::Gapic::Rest::TransportOperation) \n**Returns**\n\n- (::Gapic::Rest::PagedEnumerable\\\u003c[::Google::Cloud::Dataflow::V1beta3::JobMessage](./Google-Cloud-Dataflow-V1beta3-JobMessage)\\\u003e) \n**Raises**\n\n- (::Google::Cloud::Error) --- if the REST call is aborted.\n**Example**\n\nBasic example \n\n```ruby\nrequire \"google/cloud/dataflow/v1beta3\"\n\n# Create a client object. The client can be reused for multiple calls.\nclient = Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new\n\n# Create a request. To set request fields, pass in keyword arguments.\nrequest = Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new\n\n# Call the list_job_messages method.\nresult = client.list_job_messages request\n\n# The returned object is of type Gapic::PagedEnumerable. You can iterate\n# over elements, and API calls will be issued to fetch pages as needed.\nresult.each do |item|\n # Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage.\n p item\nend\n```\n\n### #logger\n\n def logger() -\u003e Logger\n\nThe logger used for request/response debug logging. \n**Returns**\n\n- (Logger)\n\n### #universe_domain\n\n def universe_domain() -\u003e String\n\nThe effective universe domain \n**Returns**\n\n- (String)"]]