public static final class ExecutionTemplate.Builder extends GeneratedMessageV3.Builder<ExecutionTemplate.Builder> implements ExecutionTemplateOrBuilder
ExecutionTemplate describes the data an execution should have when created
from a template.
Protobuf type google.cloud.run.v2.ExecutionTemplate
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExecutionTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ExecutionTemplate build()
buildPartial()
public ExecutionTemplate buildPartial()
clear()
public ExecutionTemplate.Builder clear()
Overrides
clearAnnotations()
public ExecutionTemplate.Builder clearAnnotations()
clearField(Descriptors.FieldDescriptor field)
public ExecutionTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLabels()
public ExecutionTemplate.Builder clearLabels()
clearOneof(Descriptors.OneofDescriptor oneof)
public ExecutionTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParallelism()
public ExecutionTemplate.Builder clearParallelism()
Specifies the maximum desired number of tasks the execution should run at
given time. Must be <= task_count.
When the job is run, if this field is 0 or unset, the maximum possible
value will be used for that execution.
The actual number of tasks running in steady state will be less than this
number when there are fewer tasks waiting to be completed remaining,
i.e. when the work left to do is less than max parallelism.
int32 parallelism = 3;
clearTaskCount()
public ExecutionTemplate.Builder clearTaskCount()
clearTemplate()
public ExecutionTemplate.Builder clearTemplate()
Required. Describes the task(s) that will be created when executing an
execution.
.google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED];
clone()
public ExecutionTemplate.Builder clone()
Overrides
containsAnnotations(String key)
public boolean containsAnnotations(String key)
KRM-style annotations for the resource.
<p>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 ExecutionTemplate.
map<string, string> annotations = 2;
Parameter |
---|
Name | Description |
key | String
|
containsLabels(String key)
public boolean containsLabels(String key)
KRM-style labels for the resource.
<p>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 ExecutionTemplate.
map<string, string> labels = 1;
Parameter |
---|
Name | Description |
key | String
|
getAnnotations()
public Map<String,String> getAnnotations()
getAnnotationsCount()
public int getAnnotationsCount()
KRM-style annotations for the resource.
<p>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 ExecutionTemplate.
map<string, string> annotations = 2;
Returns |
---|
Type | Description |
int | |
getAnnotationsMap()
public Map<String,String> getAnnotationsMap()
KRM-style annotations for the resource.
<p>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 ExecutionTemplate.
map<string, string> annotations = 2;
getAnnotationsOrDefault(String key, String defaultValue)
public String getAnnotationsOrDefault(String key, String defaultValue)
KRM-style annotations for the resource.
<p>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 ExecutionTemplate.
map<string, string> annotations = 2;
getAnnotationsOrThrow(String key)
public String getAnnotationsOrThrow(String key)
KRM-style annotations for the resource.
<p>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 ExecutionTemplate.
map<string, string> annotations = 2;
Parameter |
---|
Name | Description |
key | String
|
getDefaultInstanceForType()
public ExecutionTemplate getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLabels()
public Map<String,String> getLabels()
getLabelsCount()
public int getLabelsCount()
KRM-style labels for the resource.
<p>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 ExecutionTemplate.
map<string, string> labels = 1;
Returns |
---|
Type | Description |
int | |
getLabelsMap()
public Map<String,String> getLabelsMap()
KRM-style labels for the resource.
<p>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 ExecutionTemplate.
map<string, string> labels = 1;
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
KRM-style labels for the resource.
<p>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 ExecutionTemplate.
map<string, string> labels = 1;
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
KRM-style labels for the resource.
<p>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 ExecutionTemplate.
map<string, string> labels = 1;
Parameter |
---|
Name | Description |
key | String
|
getMutableAnnotations()
public Map<String,String> getMutableAnnotations()
Use alternate mutation accessors instead.
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
getParallelism()
public int getParallelism()
Specifies the maximum desired number of tasks the execution should run at
given time. Must be <= task_count.
When the job is run, if this field is 0 or unset, the maximum possible
value will be used for that execution.
The actual number of tasks running in steady state will be less than this
number when there are fewer tasks waiting to be completed remaining,
i.e. when the work left to do is less than max parallelism.
int32 parallelism = 3;
Returns |
---|
Type | Description |
int | The parallelism.
|
getTaskCount()
public int getTaskCount()
Returns |
---|
Type | Description |
int | The taskCount.
|
getTemplate()
public TaskTemplate getTemplate()
Required. Describes the task(s) that will be created when executing an
execution.
.google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED];
getTemplateBuilder()
public TaskTemplate.Builder getTemplateBuilder()
Required. Describes the task(s) that will be created when executing an
execution.
.google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED];
getTemplateOrBuilder()
public TaskTemplateOrBuilder getTemplateOrBuilder()
Required. Describes the task(s) that will be created when executing an
execution.
.google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED];
hasTemplate()
public boolean hasTemplate()
Required. Describes the task(s) that will be created when executing an
execution.
.google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the template field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ExecutionTemplate other)
public ExecutionTemplate.Builder mergeFrom(ExecutionTemplate other)
public ExecutionTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ExecutionTemplate.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeTemplate(TaskTemplate value)
public ExecutionTemplate.Builder mergeTemplate(TaskTemplate value)
Required. Describes the task(s) that will be created when executing an
execution.
.google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExecutionTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
putAllAnnotations(Map<String,String> values)
public ExecutionTemplate.Builder putAllAnnotations(Map<String,String> values)
KRM-style annotations for the resource.
<p>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 ExecutionTemplate.
map<string, string> annotations = 2;
putAllLabels(Map<String,String> values)
public ExecutionTemplate.Builder putAllLabels(Map<String,String> values)
KRM-style labels for the resource.
<p>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 ExecutionTemplate.
map<string, string> labels = 1;
putAnnotations(String key, String value)
public ExecutionTemplate.Builder putAnnotations(String key, String value)
KRM-style annotations for the resource.
<p>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 ExecutionTemplate.
map<string, string> annotations = 2;
putLabels(String key, String value)
public ExecutionTemplate.Builder putLabels(String key, String value)
KRM-style labels for the resource.
<p>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 ExecutionTemplate.
map<string, string> labels = 1;
removeAnnotations(String key)
public ExecutionTemplate.Builder removeAnnotations(String key)
KRM-style annotations for the resource.
<p>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 ExecutionTemplate.
map<string, string> annotations = 2;
Parameter |
---|
Name | Description |
key | String
|
removeLabels(String key)
public ExecutionTemplate.Builder removeLabels(String key)
KRM-style labels for the resource.
<p>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 ExecutionTemplate.
map<string, string> labels = 1;
Parameter |
---|
Name | Description |
key | String
|
setField(Descriptors.FieldDescriptor field, Object value)
public ExecutionTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setParallelism(int value)
public ExecutionTemplate.Builder setParallelism(int value)
Specifies the maximum desired number of tasks the execution should run at
given time. Must be <= task_count.
When the job is run, if this field is 0 or unset, the maximum possible
value will be used for that execution.
The actual number of tasks running in steady state will be less than this
number when there are fewer tasks waiting to be completed remaining,
i.e. when the work left to do is less than max parallelism.
int32 parallelism = 3;
Parameter |
---|
Name | Description |
value | int
The parallelism to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExecutionTemplate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setTaskCount(int value)
public ExecutionTemplate.Builder setTaskCount(int value)
Parameter |
---|
Name | Description |
value | int
The taskCount to set.
|
setTemplate(TaskTemplate value)
public ExecutionTemplate.Builder setTemplate(TaskTemplate value)
Required. Describes the task(s) that will be created when executing an
execution.
.google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED];
setTemplate(TaskTemplate.Builder builderForValue)
public ExecutionTemplate.Builder setTemplate(TaskTemplate.Builder builderForValue)
Required. Describes the task(s) that will be created when executing an
execution.
.google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED];
setUnknownFields(UnknownFieldSet unknownFields)
public final ExecutionTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides