Package com.google.cloud.run.v2
Class ExecutionTemplate.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder>
-
- com.google.cloud.run.v2.ExecutionTemplate.Builder
-
- All Implemented Interfaces:
ExecutionTemplateOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ExecutionTemplate
public static final class ExecutionTemplate.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder> implements ExecutionTemplateOrBuilder
ExecutionTemplate describes the data an execution should have when created from a template.
Protobuf typegoogle.cloud.run.v2.ExecutionTemplate
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExecutionTemplate.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ExecutionTemplate
build()
ExecutionTemplate
buildPartial()
ExecutionTemplate.Builder
clear()
ExecutionTemplate.Builder
clearAnnotations()
ExecutionTemplate.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ExecutionTemplate.Builder
clearLabels()
ExecutionTemplate.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ExecutionTemplate.Builder
clearParallelism()
Specifies the maximum desired number of tasks the execution should run at given time.ExecutionTemplate.Builder
clearTaskCount()
Specifies the desired number of tasks the execution should run.ExecutionTemplate.Builder
clearTemplate()
Required.ExecutionTemplate.Builder
clone()
boolean
containsAnnotations(String key)
Unstructured key value map that may be set by external tools to store and arbitrary metadata.boolean
containsLabels(String key)
Unstructured key value map that can be used to organize and categorize objects.Map<String,String>
getAnnotations()
Deprecated.int
getAnnotationsCount()
Unstructured key value map that may be set by external tools to store and arbitrary metadata.Map<String,String>
getAnnotationsMap()
Unstructured key value map that may be set by external tools to store and arbitrary metadata.String
getAnnotationsOrDefault(String key, String defaultValue)
Unstructured key value map that may be set by external tools to store and arbitrary metadata.String
getAnnotationsOrThrow(String key)
Unstructured key value map that may be set by external tools to store and arbitrary metadata.ExecutionTemplate
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Unstructured key value map that can be used to organize and categorize objects.Map<String,String>
getLabelsMap()
Unstructured key value map that can be used to organize and categorize objects.String
getLabelsOrDefault(String key, String defaultValue)
Unstructured key value map that can be used to organize and categorize objects.String
getLabelsOrThrow(String key)
Unstructured key value map that can be used to organize and categorize objects.Map<String,String>
getMutableAnnotations()
Deprecated.Map<String,String>
getMutableLabels()
Deprecated.int
getParallelism()
Specifies the maximum desired number of tasks the execution should run at given time.int
getTaskCount()
Specifies the desired number of tasks the execution should run.TaskTemplate
getTemplate()
Required.TaskTemplate.Builder
getTemplateBuilder()
Required.TaskTemplateOrBuilder
getTemplateOrBuilder()
Required.boolean
hasTemplate()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
ExecutionTemplate.Builder
mergeFrom(ExecutionTemplate other)
ExecutionTemplate.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ExecutionTemplate.Builder
mergeFrom(com.google.protobuf.Message other)
ExecutionTemplate.Builder
mergeTemplate(TaskTemplate value)
Required.ExecutionTemplate.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ExecutionTemplate.Builder
putAllAnnotations(Map<String,String> values)
Unstructured key value map that may be set by external tools to store and arbitrary metadata.ExecutionTemplate.Builder
putAllLabels(Map<String,String> values)
Unstructured key value map that can be used to organize and categorize objects.ExecutionTemplate.Builder
putAnnotations(String key, String value)
Unstructured key value map that may be set by external tools to store and arbitrary metadata.ExecutionTemplate.Builder
putLabels(String key, String value)
Unstructured key value map that can be used to organize and categorize objects.ExecutionTemplate.Builder
removeAnnotations(String key)
Unstructured key value map that may be set by external tools to store and arbitrary metadata.ExecutionTemplate.Builder
removeLabels(String key)
Unstructured key value map that can be used to organize and categorize objects.ExecutionTemplate.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ExecutionTemplate.Builder
setParallelism(int value)
Specifies the maximum desired number of tasks the execution should run at given time.ExecutionTemplate.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ExecutionTemplate.Builder
setTaskCount(int value)
Specifies the desired number of tasks the execution should run.ExecutionTemplate.Builder
setTemplate(TaskTemplate value)
Required.ExecutionTemplate.Builder
setTemplate(TaskTemplate.Builder builderForValue)
Required.ExecutionTemplate.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder>
-
clear
public ExecutionTemplate.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder>
-
getDefaultInstanceForType
public ExecutionTemplate getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExecutionTemplate build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExecutionTemplate buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExecutionTemplate.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder>
-
setField
public ExecutionTemplate.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder>
-
clearField
public ExecutionTemplate.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder>
-
clearOneof
public ExecutionTemplate.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder>
-
setRepeatedField
public ExecutionTemplate.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder>
-
addRepeatedField
public ExecutionTemplate.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder>
-
mergeFrom
public ExecutionTemplate.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExecutionTemplate.Builder>
-
mergeFrom
public ExecutionTemplate.Builder mergeFrom(ExecutionTemplate other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder>
-
mergeFrom
public ExecutionTemplate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExecutionTemplate.Builder>
- Throws:
IOException
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ExecutionTemplateOrBuilder
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. <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;
- Specified by:
getLabelsCount
in interfaceExecutionTemplateOrBuilder
-
containsLabels
public boolean containsLabels(String key)
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. <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;
- Specified by:
containsLabels
in interfaceExecutionTemplateOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceExecutionTemplateOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
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. <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;
- Specified by:
getLabelsMap
in interfaceExecutionTemplateOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
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. <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;
- Specified by:
getLabelsOrDefault
in interfaceExecutionTemplateOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
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. <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;
- Specified by:
getLabelsOrThrow
in interfaceExecutionTemplateOrBuilder
-
clearLabels
public ExecutionTemplate.Builder clearLabels()
-
removeLabels
public ExecutionTemplate.Builder removeLabels(String key)
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. <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;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public ExecutionTemplate.Builder putLabels(String key, String value)
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. <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;
-
putAllLabels
public ExecutionTemplate.Builder putAllLabels(Map<String,String> values)
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. <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;
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:ExecutionTemplateOrBuilder
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. <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. <p>This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 2;
- Specified by:
getAnnotationsCount
in interfaceExecutionTemplateOrBuilder
-
containsAnnotations
public boolean containsAnnotations(String key)
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. <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. <p>This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 2;
- Specified by:
containsAnnotations
in interfaceExecutionTemplateOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()
instead.- Specified by:
getAnnotations
in interfaceExecutionTemplateOrBuilder
-
getAnnotationsMap
public Map<String,String> getAnnotationsMap()
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. <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. <p>This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 2;
- Specified by:
getAnnotationsMap
in interfaceExecutionTemplateOrBuilder
-
getAnnotationsOrDefault
public String getAnnotationsOrDefault(String key, String defaultValue)
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. <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. <p>This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 2;
- Specified by:
getAnnotationsOrDefault
in interfaceExecutionTemplateOrBuilder
-
getAnnotationsOrThrow
public String getAnnotationsOrThrow(String key)
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. <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. <p>This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 2;
- Specified by:
getAnnotationsOrThrow
in interfaceExecutionTemplateOrBuilder
-
clearAnnotations
public ExecutionTemplate.Builder clearAnnotations()
-
removeAnnotations
public ExecutionTemplate.Builder removeAnnotations(String key)
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. <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. <p>This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 2;
-
getMutableAnnotations
@Deprecated public Map<String,String> getMutableAnnotations()
Deprecated.Use alternate mutation accessors instead.
-
putAnnotations
public ExecutionTemplate.Builder putAnnotations(String key, String value)
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. <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. <p>This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 2;
-
putAllAnnotations
public ExecutionTemplate.Builder putAllAnnotations(Map<String,String> values)
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. <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. <p>This field follows Kubernetes annotations' namespacing, limits, and rules.
map<string, string> annotations = 2;
-
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;
- Specified by:
getParallelism
in interfaceExecutionTemplateOrBuilder
- Returns:
- The parallelism.
-
setParallelism
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;
- Parameters:
value
- The parallelism to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
getTaskCount
public int getTaskCount()
Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. Defaults to 1.
int32 task_count = 4;
- Specified by:
getTaskCount
in interfaceExecutionTemplateOrBuilder
- Returns:
- The taskCount.
-
setTaskCount
public ExecutionTemplate.Builder setTaskCount(int value)
Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. Defaults to 1.
int32 task_count = 4;
- Parameters:
value
- The taskCount to set.- Returns:
- This builder for chaining.
-
clearTaskCount
public ExecutionTemplate.Builder clearTaskCount()
Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. Defaults to 1.
int32 task_count = 4;
- Returns:
- This builder for chaining.
-
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];
- Specified by:
hasTemplate
in interfaceExecutionTemplateOrBuilder
- Returns:
- Whether the template field is set.
-
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];
- Specified by:
getTemplate
in interfaceExecutionTemplateOrBuilder
- Returns:
- The template.
-
setTemplate
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
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];
-
mergeTemplate
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];
-
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];
-
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];
- Specified by:
getTemplateOrBuilder
in interfaceExecutionTemplateOrBuilder
-
setUnknownFields
public final ExecutionTemplate.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder>
-
mergeUnknownFields
public final ExecutionTemplate.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExecutionTemplate.Builder>
-
-