public final class ExecutionTemplate extends GeneratedMessageV3 implements ExecutionTemplateOrBuilder
ExecutionTemplate describes the data an execution should have when created
from a template.
Protobuf type google.cloud.run.v2.ExecutionTemplate
Static Fields
ANNOTATIONS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
Field Value
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value
PARALLELISM_FIELD_NUMBER
public static final int PARALLELISM_FIELD_NUMBER
Field Value
TASK_COUNT_FIELD_NUMBER
public static final int TASK_COUNT_FIELD_NUMBER
Field Value
TEMPLATE_FIELD_NUMBER
public static final int TEMPLATE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ExecutionTemplate getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ExecutionTemplate.Builder newBuilder()
Returns
newBuilder(ExecutionTemplate prototype)
public static ExecutionTemplate.Builder newBuilder(ExecutionTemplate prototype)
Parameter
Returns
public static ExecutionTemplate parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ExecutionTemplate parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ExecutionTemplate parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ExecutionTemplate parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ExecutionTemplate parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ExecutionTemplate parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExecutionTemplate parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ExecutionTemplate parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExecutionTemplate parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ExecutionTemplate parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ExecutionTemplate parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ExecutionTemplate parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ExecutionTemplate> parser()
Returns
Methods
containsAnnotations(String key)
public boolean containsAnnotations(String key)
KRM-style annotations for the resource.
map<string, string> annotations = 2;
Parameter
Returns
containsLabels(String key)
public boolean containsLabels(String key)
KRM-style labels for the resource.
map<string, string> labels = 1;
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAnnotations()
public Map<String,String> getAnnotations()
Returns
getAnnotationsCount()
public int getAnnotationsCount()
KRM-style annotations for the resource.
map<string, string> annotations = 2;
Returns
getAnnotationsMap()
public Map<String,String> getAnnotationsMap()
KRM-style annotations for the resource.
map<string, string> annotations = 2;
Returns
getAnnotationsOrDefault(String key, String defaultValue)
public String getAnnotationsOrDefault(String key, String defaultValue)
KRM-style annotations for the resource.
map<string, string> annotations = 2;
Parameters
Returns
getAnnotationsOrThrow(String key)
public String getAnnotationsOrThrow(String key)
KRM-style annotations for the resource.
map<string, string> annotations = 2;
Parameter
Returns
getDefaultInstanceForType()
public ExecutionTemplate getDefaultInstanceForType()
Returns
getLabels()
public Map<String,String> getLabels()
Returns
getLabelsCount()
public int getLabelsCount()
KRM-style labels for the resource.
map<string, string> labels = 1;
Returns
getLabelsMap()
public Map<String,String> getLabelsMap()
KRM-style labels for the resource.
map<string, string> labels = 1;
Returns
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
KRM-style labels for the resource.
map<string, string> labels = 1;
Parameters
Returns
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
KRM-style labels for the resource.
map<string, string> labels = 1;
Parameter
Returns
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.
|
getParserForType()
public Parser<ExecutionTemplate> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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];
Returns
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];
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ExecutionTemplate.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ExecutionTemplate.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ExecutionTemplate.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions