googleapis/google/dataflow/v1beta3/messages.proto
Google APIs 8105f2a92a fix!: An existing oauth_scope https://www.googleapis.com/auth/compute.readonly is removed from service JobsV1Beta3
fix!: An existing oauth_scope `https://www.googleapis.com/auth/userinfo.email` is removed from service `JobsV1Beta3`
fix!: An existing oauth_scope `https://www.googleapis.com/auth/compute.readonly` is removed from service `MessagesV1Beta3`
fix!: An existing oauth_scope `https://www.googleapis.com/auth/userinfo.email` is removed from service `MessagesV1Beta3`
fix!: An existing oauth_scope `https://www.googleapis.com/auth/compute.readonly` is removed from service `MetricsV1Beta3`
fix!: An existing oauth_scope `https://www.googleapis.com/auth/userinfo.email` is removed from service `MetricsV1Beta3`
fix!: An existing oauth_scope `https://www.googleapis.com/auth/compute.readonly` is removed from service `SnapshotsV1Beta3`
fix!: An existing oauth_scope `https://www.googleapis.com/auth/userinfo.email` is removed from service `SnapshotsV1Beta3`
fix!: An existing oauth_scope `https://www.googleapis.com/auth/compute.readonly` is removed from service `TemplatesService`
fix!: An existing oauth_scope `https://www.googleapis.com/auth/userinfo.email` is removed from service `TemplatesService`
fix!: An existing oauth_scope `https://www.googleapis.com/auth/compute.readonly` is removed from service `FlexTemplatesService`
fix!: An existing oauth_scope `https://www.googleapis.com/auth/userinfo.email` is removed from service `FlexTemplatesService
feat: A new field `use_streaming_engine_resource_based_billing` is added to message `.google.dataflow.v1beta3.Environment`
feat: A new field `streaming_mode` is added to message `.google.dataflow.v1beta3.Environment`
feat: A new message `DataSamplingConfig` is added
feat: A new field `data_sampling` is added to message `.google.dataflow.v1beta3.DebugOptions`
feat: A new enum `StreamingMode` is added
feat: A new method_signature `job,update_mask` is added to method `UpdateJob` in service `JobsV1Beta3`
feat: A new field `runtime_updatable_params` is added to message `.google.dataflow.v1beta3.Job`
feat: A new field `satisfies_pzi` is added to message `.google.dataflow.v1beta3.Job`
feat: A new field `service_resources` is added to message `.google.dataflow.v1beta3.Job`
feat: A new message `ServiceResources` is added
feat: A new message `RuntimeUpdatableParams` is added
feat: A new field `bugs` is added to message `.google.dataflow.v1beta3.SdkVersion`
feat: A new message `SdkBug` is added
feat: A new field `user_display_properties` is added to message `.google.dataflow.v1beta3.JobMetadata`
feat: A new field `step_names_hash` is added to message `.google.dataflow.v1beta3.PipelineDescription`
feat: A new field `update_mask` is added to message `.google.dataflow.v1beta3.UpdateJobRequest`
feat: A new field `name` is added to message `.google.dataflow.v1beta3.ListJobsRequest`
feat: A new field `trie` is added to message `.google.dataflow.v1beta3.MetricUpdate`
feat: A new message `StragglerInfo` is added
feat: A new message `StreamingStragglerInfo` is added
feat: A new message `Straggler` is added
feat: A new message `HotKeyDebuggingInfo` is added
feat: A new message `StragglerSummary` is added
feat: A new field `straggler_summary` is added to message `.google.dataflow.v1beta3.StageSummary`
feat: A new field `straggler_info` is added to message `.google.dataflow.v1beta3.WorkItemDetails`
feat: A new field `dynamic_destinations` is added to message `.google.dataflow.v1beta3.PubsubLocation`
feat: A new field `image_repository_username_secret_id` is added to message `.google.dataflow.v1beta3.ContainerSpec`
feat: A new field `image_repository_password_secret_id` is added to message `.google.dataflow.v1beta3.ContainerSpec`
feat: A new field `image_repository_cert_path` is added to message `.google.dataflow.v1beta3.ContainerSpec`
feat: A new field `enable_launcher_vm_serial_port_logging` is added to message `.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment`
feat: A new field `streaming_mode` is added to message `.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment`
feat: A new field `disk_size_gb` is added to message `.google.dataflow.v1beta3.RuntimeEnvironment`
feat: A new field `streaming_mode` is added to message `.google.dataflow.v1beta3.RuntimeEnvironment`
feat: A new message `ParameterMetadataEnumOption` is added
feat: A new field `group_name` is added to message `.google.dataflow.v1beta3.ParameterMetadata`
feat: A new field `parent_name` is added to message `.google.dataflow.v1beta3.ParameterMetadata`
feat: A new field `parent_trigger_values` is added to message `.google.dataflow.v1beta3.ParameterMetadata`
feat: A new field `enum_options` is added to message `.google.dataflow.v1beta3.ParameterMetadata`
feat: A new field `default_value` is added to message `.google.dataflow.v1beta3.ParameterMetadata`
feat: A new field `hidden_ui` is added to message `.google.dataflow.v1beta3.ParameterMetadata`
feat: A new field `streaming` is added to message `.google.dataflow.v1beta3.TemplateMetadata`
feat: A new field `supports_at_least_once` is added to message `.google.dataflow.v1beta3.TemplateMetadata`
feat: A new field `supports_exactly_once` is added to message `.google.dataflow.v1beta3.TemplateMetadata`
feat: A new field `default_streaming_mode` is added to message `.google.dataflow.v1beta3.TemplateMetadata`
feat: A new value `GO` is added to enum `Language`
feat: A new value `BIGQUERY_TABLE` is added to enum `ParameterType`
feat: A new value `JAVASCRIPT_UDF_FILE` is added to enum `ParameterType`
feat: A new value `SERVICE_ACCOUNT` is added to enum `ParameterType`
feat: A new value `MACHINE_TYPE` is added to enum `ParameterType`
feat: A new value `KMS_KEY_NAME` is added to enum `ParameterType`
feat: A new value `WORKER_REGION` is added to enum `ParameterType`
feat: A new value `WORKER_ZONE` is added to enum `ParameterType`
feat: A new value `BOOLEAN` is added to enum `ParameterType`
feat: A new value `ENUM` is added to enum `ParameterType`
feat: A new value `NUMBER` is added to enum `ParameterType`
feat: A new value `KAFKA_TOPIC` is added to enum `ParameterType`
feat: A new value `KAFKA_READ_TOPIC` is added to enum `ParameterType`
feat: A new value `KAFKA_WRITE_TOPIC` is added to enum `ParameterType`
docs: A comment for field `service_options` in message `.google.dataflow.v1beta3.Environment` is changed
docs: A comment for field `service_kms_key_name` in message `.google.dataflow.v1beta3.Environment` is changed
docs: A comment for field `dataset` in message `.google.dataflow.v1beta3.Environment` is changed
docs: A comment for field `service_account_email` in message `.google.dataflow.v1beta3.Environment` is changed
docs: A comment for field `flex_resource_scheduling_goal` in message `.google.dataflow.v1beta3.Environment` is changed
docs: A comment for field `worker_region` in message `.google.dataflow.v1beta3.Environment` is changed
docs: A comment for field `worker_zone` in message `.google.dataflow.v1beta3.Environment` is changed
docs: A comment for field `debug_options` in message `.google.dataflow.v1beta3.Environment` is changed
docs: A comment for enum `WorkerIPAddressConfiguration` is changed
docs: A comment for message `SdkHarnessContainerImage` is changed
docs: A comment for field `capabilities` in message `.google.dataflow.v1beta3.SdkHarnessContainerImage` is changed
docs: A comment for field `enable_hot_key_logging` in message `.google.dataflow.v1beta3.DebugOptions` is changed
docs: A comment for method `CreateJob` in service `JobsV1Beta3` is changed
docs: A comment for method `ListJobs` in service `JobsV1Beta3` is changed
docs: A comment for method `AggregatedListJobs` in service `JobsV1Beta3` is changed
docs: A comment for message `Job` is changed
docs: A comment for field `id` in message `.google.dataflow.v1beta3.Job` is changed
docs: A comment for field `project_id` in message `.google.dataflow.v1beta3.Job` is changed
docs: A comment for field `name` in message `.google.dataflow.v1beta3.Job` is changed
docs: A comment for field `type` in message `.google.dataflow.v1beta3.Job` is changed
docs: A comment for field `environment` in message `.google.dataflow.v1beta3.Job` is changed
docs: A comment for field `current_state` in message `.google.dataflow.v1beta3.Job` is changed
docs: A comment for field `requested_state` in message `.google.dataflow.v1beta3.Job` is changed
docs: A comment for field `transform_name_mapping` in message `.google.dataflow.v1beta3.Job` is changed
docs: A comment for field `location` in message `.google.dataflow.v1beta3.Job` is changed
docs: A comment for message `Step` is changed
docs: A comment for enum `JobState` is changed
docs: A comment for message `JobExecutionStageInfo` is changed
docs: A comment for enum value `JOB_VIEW_ALL` in enum `JobView` is changed
docs: A comment for message `MetricUpdate` is changed
docs: A comment for field `set` in message `.google.dataflow.v1beta3.MetricUpdate` is changed
docs: A comment for message `JobMetrics` is changed
docs: A comment for method `CreateJobFromTemplate` in service `TemplatesService` is changed
docs: A comment for method `LaunchTemplate` in service `TemplatesService` is changed
docs: A comment for method `GetTemplate` in service `TemplatesService` is changed
docs: A comment for service `FlexTemplatesService` is changed
docs: A comment for field `dump_heap_on_oom` in message `.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment` is changed
docs: A comment for field `save_heap_dumps_to_gcs_path` in message `.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment` is changed
docs: A comment for field `num_workers` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for field `max_workers` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for field `zone` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for field `service_account_email` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for field `temp_location` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for field `bypass_temp_dir_validation` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for field `machine_type` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for field `additional_experiments` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for field `network` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for field `subnetwork` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for field `additional_user_labels` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for field `kms_key_name` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for field `ip_configuration` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for field `worker_region` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for field `worker_zone` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for field `enable_streaming_engine` in message `.google.dataflow.v1beta3.RuntimeEnvironment` is changed
docs: A comment for message `LaunchTemplateParameters` is changed
docs: A comment for field `job_name` in message `.google.dataflow.v1beta3.LaunchTemplateParameters` is changed
docs: A comment for field `gcs_path` in message `.google.dataflow.v1beta3.LaunchTemplateRequest` is changed
docs: A comment for field `dynamic_template` in message `.google.dataflow.v1beta3.LaunchTemplateRequest` is changed
docs: A comment for field `launch_parameters` in message `.google.dataflow.v1beta3.LaunchTemplateRequest` is changed
docs: A comment for message `DynamicTemplateLaunchParams` is changed
docs: A comment for field `gcs_path` in message `.google.dataflow.v1beta3.DynamicTemplateLaunchParams` is changed

PiperOrigin-RevId: 753588060
2025-05-01 07:48:32 -07:00

237 lines
8.6 KiB
Protocol Buffer

// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.dataflow.v1beta3;
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";
option csharp_namespace = "Google.Cloud.Dataflow.V1Beta3";
option go_package = "cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb";
option java_multiple_files = true;
option java_outer_classname = "MessagesProto";
option java_package = "com.google.dataflow.v1beta3";
option php_namespace = "Google\\Cloud\\Dataflow\\V1beta3";
option ruby_package = "Google::Cloud::Dataflow::V1beta3";
// The Dataflow Messages API is used for monitoring the progress of
// Dataflow jobs.
service MessagesV1Beta3 {
option (google.api.default_host) = "dataflow.googleapis.com";
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/cloud-platform,"
"https://www.googleapis.com/auth/compute";
// Request the job status.
//
// To request the status of a job, we recommend using
// `projects.locations.jobs.messages.list` with a [regional endpoint]
// (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
// `projects.jobs.messages.list` is not recommended, as you can only request
// the status of jobs that are running in `us-central1`.
rpc ListJobMessages(ListJobMessagesRequest)
returns (ListJobMessagesResponse) {
option (google.api.http) = {
get: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/messages"
additional_bindings {
get: "/v1b3/projects/{project_id}/jobs/{job_id}/messages"
}
};
}
}
// A particular message pertaining to a Dataflow job.
message JobMessage {
// Deprecated.
string id = 1;
// The timestamp of the message.
google.protobuf.Timestamp time = 2;
// The text of the message.
string message_text = 3;
// Importance level of the message.
JobMessageImportance message_importance = 4;
}
// Indicates the importance of the message.
enum JobMessageImportance {
// The message importance isn't specified, or is unknown.
JOB_MESSAGE_IMPORTANCE_UNKNOWN = 0;
// The message is at the 'debug' level: typically only useful for
// software engineers working on the code the job is running.
// Typically, Dataflow pipeline runners do not display log messages
// at this level by default.
JOB_MESSAGE_DEBUG = 1;
// The message is at the 'detailed' level: somewhat verbose, but
// potentially useful to users. Typically, Dataflow pipeline
// runners do not display log messages at this level by default.
// These messages are displayed by default in the Dataflow
// monitoring UI.
JOB_MESSAGE_DETAILED = 2;
// The message is at the 'basic' level: useful for keeping
// track of the execution of a Dataflow pipeline. Typically,
// Dataflow pipeline runners display log messages at this level by
// default, and these messages are displayed by default in the
// Dataflow monitoring UI.
JOB_MESSAGE_BASIC = 5;
// The message is at the 'warning' level: indicating a condition
// pertaining to a job which may require human intervention.
// Typically, Dataflow pipeline runners display log messages at this
// level by default, and these messages are displayed by default in
// the Dataflow monitoring UI.
JOB_MESSAGE_WARNING = 3;
// The message is at the 'error' level: indicating a condition
// preventing a job from succeeding. Typically, Dataflow pipeline
// runners display log messages at this level by default, and these
// messages are displayed by default in the Dataflow monitoring UI.
JOB_MESSAGE_ERROR = 4;
}
// A rich message format, including a human readable string, a key for
// identifying the message, and structured data associated with the message for
// programmatic consumption.
message StructuredMessage {
// Structured data associated with this message.
message Parameter {
// Key or name for this parameter.
string key = 1;
// Value for this parameter.
google.protobuf.Value value = 2;
}
// Human-readable version of message.
string message_text = 1;
// Identifier for this message type. Used by external systems to
// internationalize or personalize message.
string message_key = 2;
// The structured data associated with this message.
repeated Parameter parameters = 3;
}
// A structured message reporting an autoscaling decision made by the Dataflow
// service.
message AutoscalingEvent {
// Indicates the type of autoscaling event.
enum AutoscalingEventType {
// Default type for the enum. Value should never be returned.
TYPE_UNKNOWN = 0;
// The TARGET_NUM_WORKERS_CHANGED type should be used when the target
// worker pool size has changed at the start of an actuation. An event
// should always be specified as TARGET_NUM_WORKERS_CHANGED if it reflects
// a change in the target_num_workers.
TARGET_NUM_WORKERS_CHANGED = 1;
// The CURRENT_NUM_WORKERS_CHANGED type should be used when actual worker
// pool size has been changed, but the target_num_workers has not changed.
CURRENT_NUM_WORKERS_CHANGED = 2;
// The ACTUATION_FAILURE type should be used when we want to report
// an error to the user indicating why the current number of workers
// in the pool could not be changed.
// Displayed in the current status and history widgets.
ACTUATION_FAILURE = 3;
// Used when we want to report to the user a reason why we are
// not currently adjusting the number of workers.
// Should specify both target_num_workers, current_num_workers and a
// decision_message.
NO_CHANGE = 4;
}
// The current number of workers the job has.
int64 current_num_workers = 1;
// The target number of workers the worker pool wants to resize to use.
int64 target_num_workers = 2;
// The type of autoscaling event to report.
AutoscalingEventType event_type = 3;
// A message describing why the system decided to adjust the current
// number of workers, why it failed, or why the system decided to
// not make any changes to the number of workers.
StructuredMessage description = 4;
// The time this event was emitted to indicate a new target or current
// num_workers value.
google.protobuf.Timestamp time = 5;
// A short and friendly name for the worker pool this event refers to.
string worker_pool = 7;
}
// Request to list job messages.
// Up to max_results messages will be returned in the time range specified
// starting with the oldest messages first. If no time range is specified
// the results with start with the oldest message.
message ListJobMessagesRequest {
// A project id.
string project_id = 1;
// The job to get messages about.
string job_id = 2;
// Filter to only get messages with importance >= level
JobMessageImportance minimum_importance = 3;
// 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.
int32 page_size = 4;
// 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.
string page_token = 5;
// If specified, return only messages with timestamps >= start_time.
// The default is the job creation time (i.e. beginning of messages).
google.protobuf.Timestamp start_time = 6;
// Return only messages with timestamps < end_time. The default is now
// (i.e. return up to the latest messages available).
google.protobuf.Timestamp end_time = 7;
// The [regional endpoint]
// (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
// contains the job specified by job_id.
string location = 8;
}
// Response to a request to list job messages.
message ListJobMessagesResponse {
// Messages in ascending timestamp order.
repeated JobMessage job_messages = 1;
// The token to obtain the next page of results if there are more.
string next_page_token = 2;
// Autoscaling events in ascending timestamp order.
repeated AutoscalingEvent autoscaling_events = 3;
}