- 0.72.0 (latest)
- 0.70.0
- 0.68.0
- 0.67.0
- 0.64.0
- 0.63.0
- 0.62.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.5
- 0.2.1
- 0.1.2
public static final class WorkerPoolRevisionTemplate.Builder extends GeneratedMessageV3.Builder<WorkerPoolRevisionTemplate.Builder> implements WorkerPoolRevisionTemplateOrBuilder
WorkerPoolRevisionTemplate describes the data a worker pool revision should have when created from a template.
Protobuf type google.cloud.run.v2.WorkerPoolRevisionTemplate
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > WorkerPoolRevisionTemplate.BuilderImplements
WorkerPoolRevisionTemplateOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllContainers(Iterable<? extends Container> values)
public WorkerPoolRevisionTemplate.Builder addAllContainers(Iterable<? extends Container> values)
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.run.v2.Container> |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
addAllVolumes(Iterable<? extends Volume> values)
public WorkerPoolRevisionTemplate.Builder addAllVolumes(Iterable<? extends Volume> values)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.run.v2.Volume> |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
addContainers(Container value)
public WorkerPoolRevisionTemplate.Builder addContainers(Container value)
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Parameter | |
---|---|
Name | Description |
value |
Container |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
addContainers(Container.Builder builderForValue)
public WorkerPoolRevisionTemplate.Builder addContainers(Container.Builder builderForValue)
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Parameter | |
---|---|
Name | Description |
builderForValue |
Container.Builder |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
addContainers(int index, Container value)
public WorkerPoolRevisionTemplate.Builder addContainers(int index, Container value)
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Container |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
addContainers(int index, Container.Builder builderForValue)
public WorkerPoolRevisionTemplate.Builder addContainers(int index, Container.Builder builderForValue)
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Container.Builder |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
addContainersBuilder()
public Container.Builder addContainersBuilder()
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Returns | |
---|---|
Type | Description |
Container.Builder |
addContainersBuilder(int index)
public Container.Builder addContainersBuilder(int index)
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Container.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WorkerPoolRevisionTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
addVolumes(Volume value)
public WorkerPoolRevisionTemplate.Builder addVolumes(Volume value)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
Volume |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
addVolumes(Volume.Builder builderForValue)
public WorkerPoolRevisionTemplate.Builder addVolumes(Volume.Builder builderForValue)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
Volume.Builder |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
addVolumes(int index, Volume value)
public WorkerPoolRevisionTemplate.Builder addVolumes(int index, Volume value)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Volume |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
addVolumes(int index, Volume.Builder builderForValue)
public WorkerPoolRevisionTemplate.Builder addVolumes(int index, Volume.Builder builderForValue)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Volume.Builder |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
addVolumesBuilder()
public Volume.Builder addVolumesBuilder()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Volume.Builder |
addVolumesBuilder(int index)
public Volume.Builder addVolumesBuilder(int index)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Volume.Builder |
build()
public WorkerPoolRevisionTemplate build()
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate |
buildPartial()
public WorkerPoolRevisionTemplate buildPartial()
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate |
clear()
public WorkerPoolRevisionTemplate.Builder clear()
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
clearAnnotations()
public WorkerPoolRevisionTemplate.Builder clearAnnotations()
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
clearContainers()
public WorkerPoolRevisionTemplate.Builder clearContainers()
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
clearEncryptionKey()
public WorkerPoolRevisionTemplate.Builder clearEncryptionKey()
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
string encryption_key = 8 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
This builder for chaining. |
clearEncryptionKeyRevocationAction()
public WorkerPoolRevisionTemplate.Builder clearEncryptionKeyRevocationAction()
Optional. The action to take if the encryption key is revoked.
.google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
This builder for chaining. |
clearEncryptionKeyShutdownDuration()
public WorkerPoolRevisionTemplate.Builder clearEncryptionKeyShutdownDuration()
Optional. If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
.google.protobuf.Duration encryption_key_shutdown_duration = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
clearField(Descriptors.FieldDescriptor field)
public WorkerPoolRevisionTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
clearLabels()
public WorkerPoolRevisionTemplate.Builder clearLabels()
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
clearNodeSelector()
public WorkerPoolRevisionTemplate.Builder clearNodeSelector()
Optional. The node selector for the revision template.
.google.cloud.run.v2.NodeSelector node_selector = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public WorkerPoolRevisionTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
clearRevision()
public WorkerPoolRevisionTemplate.Builder clearRevision()
Optional. The unique name for the revision. If this field is omitted, it will be automatically generated based on the WorkerPool name.
string revision = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
This builder for chaining. |
clearServiceAccount()
public WorkerPoolRevisionTemplate.Builder clearServiceAccount()
Optional. Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.
string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
This builder for chaining. |
clearServiceMesh()
public WorkerPoolRevisionTemplate.Builder clearServiceMesh()
Optional. Enables service mesh connectivity.
.google.cloud.run.v2.ServiceMesh service_mesh = 9 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
clearVolumes()
public WorkerPoolRevisionTemplate.Builder clearVolumes()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
clearVpcAccess()
public WorkerPoolRevisionTemplate.Builder clearVpcAccess()
Optional. VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
.google.cloud.run.v2.VpcAccess vpc_access = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
clone()
public WorkerPoolRevisionTemplate.Builder clone()
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
containsAnnotations(String key)
public boolean containsAnnotations(String key)
Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
Cloud Run API v2 does not support annotations with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now
have a corresponding field in v2 WorkerPoolRevisionTemplate.
This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
boolean |
containsLabels(String key)
public boolean containsLabels(String key)
Optional. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.
Cloud Run API v2 does not support labels with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a
corresponding field in v2 WorkerPoolRevisionTemplate.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
boolean |
getAnnotations() (deprecated)
public Map<String,String> getAnnotations()
Use #getAnnotationsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getAnnotationsCount()
public int getAnnotationsCount()
Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
Cloud Run API v2 does not support annotations with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now
have a corresponding field in v2 WorkerPoolRevisionTemplate.
This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getAnnotationsMap()
public Map<String,String> getAnnotationsMap()
Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
Cloud Run API v2 does not support annotations with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now
have a corresponding field in v2 WorkerPoolRevisionTemplate.
This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Map<String,String> |
getAnnotationsOrDefault(String key, String defaultValue)
public String getAnnotationsOrDefault(String key, String defaultValue)
Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
Cloud Run API v2 does not support annotations with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now
have a corresponding field in v2 WorkerPoolRevisionTemplate.
This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
key |
String |
defaultValue |
String |
Returns | |
---|---|
Type | Description |
String |
getAnnotationsOrThrow(String key)
public String getAnnotationsOrThrow(String key)
Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
Cloud Run API v2 does not support annotations with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now
have a corresponding field in v2 WorkerPoolRevisionTemplate.
This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
String |
getContainers(int index)
public Container getContainers(int index)
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Container |
getContainersBuilder(int index)
public Container.Builder getContainersBuilder(int index)
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Container.Builder |
getContainersBuilderList()
public List<Container.Builder> getContainersBuilderList()
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Returns | |
---|---|
Type | Description |
List<Builder> |
getContainersCount()
public int getContainersCount()
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Returns | |
---|---|
Type | Description |
int |
getContainersList()
public List<Container> getContainersList()
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Returns | |
---|---|
Type | Description |
List<Container> |
getContainersOrBuilder(int index)
public ContainerOrBuilder getContainersOrBuilder(int index)
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ContainerOrBuilder |
getContainersOrBuilderList()
public List<? extends ContainerOrBuilder> getContainersOrBuilderList()
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.run.v2.ContainerOrBuilder> |
getDefaultInstanceForType()
public WorkerPoolRevisionTemplate getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEncryptionKey()
public String getEncryptionKey()
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
string encryption_key = 8 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The encryptionKey. |
getEncryptionKeyBytes()
public ByteString getEncryptionKeyBytes()
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
string encryption_key = 8 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for encryptionKey. |
getEncryptionKeyRevocationAction()
public EncryptionKeyRevocationAction getEncryptionKeyRevocationAction()
Optional. The action to take if the encryption key is revoked.
.google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
EncryptionKeyRevocationAction |
The encryptionKeyRevocationAction. |
getEncryptionKeyRevocationActionValue()
public int getEncryptionKeyRevocationActionValue()
Optional. The action to take if the encryption key is revoked.
.google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for encryptionKeyRevocationAction. |
getEncryptionKeyShutdownDuration()
public Duration getEncryptionKeyShutdownDuration()
Optional. If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
.google.protobuf.Duration encryption_key_shutdown_duration = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Duration |
The encryptionKeyShutdownDuration. |
getEncryptionKeyShutdownDurationBuilder()
public Duration.Builder getEncryptionKeyShutdownDurationBuilder()
Optional. If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
.google.protobuf.Duration encryption_key_shutdown_duration = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Builder |
getEncryptionKeyShutdownDurationOrBuilder()
public DurationOrBuilder getEncryptionKeyShutdownDurationOrBuilder()
Optional. If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
.google.protobuf.Duration encryption_key_shutdown_duration = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
DurationOrBuilder |
getLabels() (deprecated)
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Optional. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.
Cloud Run API v2 does not support labels with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a
corresponding field in v2 WorkerPoolRevisionTemplate.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Optional. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.
Cloud Run API v2 does not support labels with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a
corresponding field in v2 WorkerPoolRevisionTemplate.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Optional. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.
Cloud Run API v2 does not support labels with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a
corresponding field in v2 WorkerPoolRevisionTemplate.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
key |
String |
defaultValue |
String |
Returns | |
---|---|
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Optional. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.
Cloud Run API v2 does not support labels with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a
corresponding field in v2 WorkerPoolRevisionTemplate.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
String |
getMutableAnnotations() (deprecated)
public Map<String,String> getMutableAnnotations()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getNodeSelector()
public NodeSelector getNodeSelector()
Optional. The node selector for the revision template.
.google.cloud.run.v2.NodeSelector node_selector = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NodeSelector |
The nodeSelector. |
getNodeSelectorBuilder()
public NodeSelector.Builder getNodeSelectorBuilder()
Optional. The node selector for the revision template.
.google.cloud.run.v2.NodeSelector node_selector = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NodeSelector.Builder |
getNodeSelectorOrBuilder()
public NodeSelectorOrBuilder getNodeSelectorOrBuilder()
Optional. The node selector for the revision template.
.google.cloud.run.v2.NodeSelector node_selector = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
NodeSelectorOrBuilder |
getRevision()
public String getRevision()
Optional. The unique name for the revision. If this field is omitted, it will be automatically generated based on the WorkerPool name.
string revision = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The revision. |
getRevisionBytes()
public ByteString getRevisionBytes()
Optional. The unique name for the revision. If this field is omitted, it will be automatically generated based on the WorkerPool name.
string revision = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for revision. |
getServiceAccount()
public String getServiceAccount()
Optional. Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.
string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The serviceAccount. |
getServiceAccountBytes()
public ByteString getServiceAccountBytes()
Optional. Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.
string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for serviceAccount. |
getServiceMesh()
public ServiceMesh getServiceMesh()
Optional. Enables service mesh connectivity.
.google.cloud.run.v2.ServiceMesh service_mesh = 9 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ServiceMesh |
The serviceMesh. |
getServiceMeshBuilder()
public ServiceMesh.Builder getServiceMeshBuilder()
Optional. Enables service mesh connectivity.
.google.cloud.run.v2.ServiceMesh service_mesh = 9 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ServiceMesh.Builder |
getServiceMeshOrBuilder()
public ServiceMeshOrBuilder getServiceMeshOrBuilder()
Optional. Enables service mesh connectivity.
.google.cloud.run.v2.ServiceMesh service_mesh = 9 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ServiceMeshOrBuilder |
getVolumes(int index)
public Volume getVolumes(int index)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Volume |
getVolumesBuilder(int index)
public Volume.Builder getVolumesBuilder(int index)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Volume.Builder |
getVolumesBuilderList()
public List<Volume.Builder> getVolumesBuilderList()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Builder> |
getVolumesCount()
public int getVolumesCount()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getVolumesList()
public List<Volume> getVolumesList()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Volume> |
getVolumesOrBuilder(int index)
public VolumeOrBuilder getVolumesOrBuilder(int index)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
VolumeOrBuilder |
getVolumesOrBuilderList()
public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.run.v2.VolumeOrBuilder> |
getVpcAccess()
public VpcAccess getVpcAccess()
Optional. VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
.google.cloud.run.v2.VpcAccess vpc_access = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
VpcAccess |
The vpcAccess. |
getVpcAccessBuilder()
public VpcAccess.Builder getVpcAccessBuilder()
Optional. VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
.google.cloud.run.v2.VpcAccess vpc_access = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
VpcAccess.Builder |
getVpcAccessOrBuilder()
public VpcAccessOrBuilder getVpcAccessOrBuilder()
Optional. VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
.google.cloud.run.v2.VpcAccess vpc_access = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
VpcAccessOrBuilder |
hasEncryptionKeyShutdownDuration()
public boolean hasEncryptionKeyShutdownDuration()
Optional. If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
.google.protobuf.Duration encryption_key_shutdown_duration = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the encryptionKeyShutdownDuration field is set. |
hasNodeSelector()
public boolean hasNodeSelector()
Optional. The node selector for the revision template.
.google.cloud.run.v2.NodeSelector node_selector = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the nodeSelector field is set. |
hasServiceMesh()
public boolean hasServiceMesh()
Optional. Enables service mesh connectivity.
.google.cloud.run.v2.ServiceMesh service_mesh = 9 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the serviceMesh field is set. |
hasVpcAccess()
public boolean hasVpcAccess()
Optional. VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
.google.cloud.run.v2.VpcAccess vpc_access = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the vpcAccess field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeEncryptionKeyShutdownDuration(Duration value)
public WorkerPoolRevisionTemplate.Builder mergeEncryptionKeyShutdownDuration(Duration value)
Optional. If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
.google.protobuf.Duration encryption_key_shutdown_duration = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
Duration |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
mergeFrom(WorkerPoolRevisionTemplate other)
public WorkerPoolRevisionTemplate.Builder mergeFrom(WorkerPoolRevisionTemplate other)
Parameter | |
---|---|
Name | Description |
other |
WorkerPoolRevisionTemplate |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WorkerPoolRevisionTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public WorkerPoolRevisionTemplate.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
mergeNodeSelector(NodeSelector value)
public WorkerPoolRevisionTemplate.Builder mergeNodeSelector(NodeSelector value)
Optional. The node selector for the revision template.
.google.cloud.run.v2.NodeSelector node_selector = 13 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
NodeSelector |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
mergeServiceMesh(ServiceMesh value)
public WorkerPoolRevisionTemplate.Builder mergeServiceMesh(ServiceMesh value)
Optional. Enables service mesh connectivity.
.google.cloud.run.v2.ServiceMesh service_mesh = 9 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ServiceMesh |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WorkerPoolRevisionTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
mergeVpcAccess(VpcAccess value)
public WorkerPoolRevisionTemplate.Builder mergeVpcAccess(VpcAccess value)
Optional. VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
.google.cloud.run.v2.VpcAccess vpc_access = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
VpcAccess |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
putAllAnnotations(Map<String,String> values)
public WorkerPoolRevisionTemplate.Builder putAllAnnotations(Map<String,String> values)
Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
Cloud Run API v2 does not support annotations with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now
have a corresponding field in v2 WorkerPoolRevisionTemplate.
This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Map<String,String> |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
putAllLabels(Map<String,String> values)
public WorkerPoolRevisionTemplate.Builder putAllLabels(Map<String,String> values)
Optional. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.
Cloud Run API v2 does not support labels with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a
corresponding field in v2 WorkerPoolRevisionTemplate.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Map<String,String> |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
putAnnotations(String key, String value)
public WorkerPoolRevisionTemplate.Builder putAnnotations(String key, String value)
Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
Cloud Run API v2 does not support annotations with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now
have a corresponding field in v2 WorkerPoolRevisionTemplate.
This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
key |
String |
value |
String |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
putLabels(String key, String value)
public WorkerPoolRevisionTemplate.Builder putLabels(String key, String value)
Optional. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.
Cloud Run API v2 does not support labels with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a
corresponding field in v2 WorkerPoolRevisionTemplate.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
key |
String |
value |
String |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
removeAnnotations(String key)
public WorkerPoolRevisionTemplate.Builder removeAnnotations(String key)
Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
Cloud Run API v2 does not support annotations with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now
have a corresponding field in v2 WorkerPoolRevisionTemplate.
This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
removeContainers(int index)
public WorkerPoolRevisionTemplate.Builder removeContainers(int index)
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
removeLabels(String key)
public WorkerPoolRevisionTemplate.Builder removeLabels(String key)
Optional. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.
Cloud Run API v2 does not support labels with run.googleapis.com
,
cloud.googleapis.com
, serving.knative.dev
, or autoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a
corresponding field in v2 WorkerPoolRevisionTemplate.
map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
removeVolumes(int index)
public WorkerPoolRevisionTemplate.Builder removeVolumes(int index)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
setContainers(int index, Container value)
public WorkerPoolRevisionTemplate.Builder setContainers(int index, Container value)
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Container |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
setContainers(int index, Container.Builder builderForValue)
public WorkerPoolRevisionTemplate.Builder setContainers(int index, Container.Builder builderForValue)
Holds list of the containers that defines the unit of execution for this Revision.
repeated .google.cloud.run.v2.Container containers = 6;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Container.Builder |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
setEncryptionKey(String value)
public WorkerPoolRevisionTemplate.Builder setEncryptionKey(String value)
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
string encryption_key = 8 [(.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The encryptionKey to set. |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
This builder for chaining. |
setEncryptionKeyBytes(ByteString value)
public WorkerPoolRevisionTemplate.Builder setEncryptionKeyBytes(ByteString value)
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
string encryption_key = 8 [(.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for encryptionKey to set. |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
This builder for chaining. |
setEncryptionKeyRevocationAction(EncryptionKeyRevocationAction value)
public WorkerPoolRevisionTemplate.Builder setEncryptionKeyRevocationAction(EncryptionKeyRevocationAction value)
Optional. The action to take if the encryption key is revoked.
.google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 10 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
EncryptionKeyRevocationAction The encryptionKeyRevocationAction to set. |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
This builder for chaining. |
setEncryptionKeyRevocationActionValue(int value)
public WorkerPoolRevisionTemplate.Builder setEncryptionKeyRevocationActionValue(int value)
Optional. The action to take if the encryption key is revoked.
.google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 10 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for encryptionKeyRevocationAction to set. |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
This builder for chaining. |
setEncryptionKeyShutdownDuration(Duration value)
public WorkerPoolRevisionTemplate.Builder setEncryptionKeyShutdownDuration(Duration value)
Optional. If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
.google.protobuf.Duration encryption_key_shutdown_duration = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
Duration |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
setEncryptionKeyShutdownDuration(Duration.Builder builderForValue)
public WorkerPoolRevisionTemplate.Builder setEncryptionKeyShutdownDuration(Duration.Builder builderForValue)
Optional. If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
.google.protobuf.Duration encryption_key_shutdown_duration = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public WorkerPoolRevisionTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
setNodeSelector(NodeSelector value)
public WorkerPoolRevisionTemplate.Builder setNodeSelector(NodeSelector value)
Optional. The node selector for the revision template.
.google.cloud.run.v2.NodeSelector node_selector = 13 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
NodeSelector |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
setNodeSelector(NodeSelector.Builder builderForValue)
public WorkerPoolRevisionTemplate.Builder setNodeSelector(NodeSelector.Builder builderForValue)
Optional. The node selector for the revision template.
.google.cloud.run.v2.NodeSelector node_selector = 13 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
NodeSelector.Builder |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WorkerPoolRevisionTemplate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
setRevision(String value)
public WorkerPoolRevisionTemplate.Builder setRevision(String value)
Optional. The unique name for the revision. If this field is omitted, it will be automatically generated based on the WorkerPool name.
string revision = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The revision to set. |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
This builder for chaining. |
setRevisionBytes(ByteString value)
public WorkerPoolRevisionTemplate.Builder setRevisionBytes(ByteString value)
Optional. The unique name for the revision. If this field is omitted, it will be automatically generated based on the WorkerPool name.
string revision = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for revision to set. |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
This builder for chaining. |
setServiceAccount(String value)
public WorkerPoolRevisionTemplate.Builder setServiceAccount(String value)
Optional. Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.
string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The serviceAccount to set. |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
This builder for chaining. |
setServiceAccountBytes(ByteString value)
public WorkerPoolRevisionTemplate.Builder setServiceAccountBytes(ByteString value)
Optional. Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.
string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for serviceAccount to set. |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
This builder for chaining. |
setServiceMesh(ServiceMesh value)
public WorkerPoolRevisionTemplate.Builder setServiceMesh(ServiceMesh value)
Optional. Enables service mesh connectivity.
.google.cloud.run.v2.ServiceMesh service_mesh = 9 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ServiceMesh |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
setServiceMesh(ServiceMesh.Builder builderForValue)
public WorkerPoolRevisionTemplate.Builder setServiceMesh(ServiceMesh.Builder builderForValue)
Optional. Enables service mesh connectivity.
.google.cloud.run.v2.ServiceMesh service_mesh = 9 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
ServiceMesh.Builder |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final WorkerPoolRevisionTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
setVolumes(int index, Volume value)
public WorkerPoolRevisionTemplate.Builder setVolumes(int index, Volume value)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Volume |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
setVolumes(int index, Volume.Builder builderForValue)
public WorkerPoolRevisionTemplate.Builder setVolumes(int index, Volume.Builder builderForValue)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Volume.Builder |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
setVpcAccess(VpcAccess value)
public WorkerPoolRevisionTemplate.Builder setVpcAccess(VpcAccess value)
Optional. VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
.google.cloud.run.v2.VpcAccess vpc_access = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
VpcAccess |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |
setVpcAccess(VpcAccess.Builder builderForValue)
public WorkerPoolRevisionTemplate.Builder setVpcAccess(VpcAccess.Builder builderForValue)
Optional. VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
.google.cloud.run.v2.VpcAccess vpc_access = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
VpcAccess.Builder |
Returns | |
---|---|
Type | Description |
WorkerPoolRevisionTemplate.Builder |