Interface CreateWorkerPoolRequestOrBuilder (0.78.0)

publicinterface CreateWorkerPoolRequestOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getParent()

publicabstractStringgetParent()

Required. The location and project in which this worker pool should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number. Only lowercase characters, digits, and hyphens.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

publicabstractByteStringgetParentBytes()

Required. The location and project in which this worker pool should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number. Only lowercase characters, digits, and hyphens.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getValidateOnly()

publicabstractbooleangetValidateOnly()

Optional. Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

getWorkerPool()

publicabstractWorkerPoolgetWorkerPool()

Required. The WorkerPool instance to create.

.google.cloud.run.v2.WorkerPool worker_pool = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WorkerPool

The workerPool.

getWorkerPoolId()

publicabstractStringgetWorkerPoolId()

Required. The unique identifier for the WorkerPool. It must begin with letter, and cannot end with hyphen; must contain fewer than 50 characters. The name of the worker pool becomes {parent}/workerPools/{worker_pool_id}.

string worker_pool_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The workerPoolId.

getWorkerPoolIdBytes()

publicabstractByteStringgetWorkerPoolIdBytes()

Required. The unique identifier for the WorkerPool. It must begin with letter, and cannot end with hyphen; must contain fewer than 50 characters. The name of the worker pool becomes {parent}/workerPools/{worker_pool_id}.

string worker_pool_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for workerPoolId.

getWorkerPoolOrBuilder()

publicabstractWorkerPoolOrBuildergetWorkerPoolOrBuilder()

Required. The WorkerPool instance to create.

.google.cloud.run.v2.WorkerPool worker_pool = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WorkerPoolOrBuilder

hasWorkerPool()

publicabstractbooleanhasWorkerPool()

Required. The WorkerPool instance to create.

.google.cloud.run.v2.WorkerPool worker_pool = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the workerPool field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.