Interface CreateServiceRequestOrBuilder (0.21.0)

publicinterface CreateServiceRequestOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getParent()

publicabstractStringgetParent()

Required. The location and project in which this service 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 service 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.

getService()

publicabstractServicegetService()

Required. The Service instance to create.

.google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Service

The service.

getServiceId()

publicabstractStringgetServiceId()

Required. The unique identifier for the Service. It must begin with letter, and cannot end with hyphen; must contain fewer than 50 characters. The name of the service becomes {parent}/services/{service_id}.

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

Returns
Type Description
String

The serviceId.

getServiceIdBytes()

publicabstractByteStringgetServiceIdBytes()

Required. The unique identifier for the Service. It must begin with letter, and cannot end with hyphen; must contain fewer than 50 characters. The name of the service becomes {parent}/services/{service_id}.

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

Returns
Type Description
ByteString

The bytes for serviceId.

getServiceOrBuilder()

publicabstractServiceOrBuildergetServiceOrBuilder()

Required. The Service instance to create.

.google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ServiceOrBuilder

getValidateOnly()

publicabstractbooleangetValidateOnly()

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

bool validate_only = 4;

Returns
Type Description
boolean

The validateOnly.

hasService()

publicabstractbooleanhasService()

Required. The Service instance to create.

.google.cloud.run.v2.Service service = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the service 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.