Class Job (0.35.0)

  public 
  
 final 
  
 class 
 Job 
  
 extends 
  
 GeneratedMessageV3 
  
 implements 
  
 JobOrBuilder 
 

Job represents the configuration of a single job, which references a container image that is run to completion.

Protobuf type google.cloud.run.v2.Job

Implements

JobOrBuilder

Static Fields

ANNOTATIONS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ANNOTATIONS_FIELD_NUMBER 
 
Field Value
Type
Description
int

BINARY_AUTHORIZATION_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 BINARY_AUTHORIZATION_FIELD_NUMBER 
 
Field Value
Type
Description
int

CLIENT_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CLIENT_FIELD_NUMBER 
 
Field Value
Type
Description
int

CLIENT_VERSION_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CLIENT_VERSION_FIELD_NUMBER 
 
Field Value
Type
Description
int

CONDITIONS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CONDITIONS_FIELD_NUMBER 
 
Field Value
Type
Description
int

CREATE_TIME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CREATE_TIME_FIELD_NUMBER 
 
Field Value
Type
Description
int

CREATOR_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CREATOR_FIELD_NUMBER 
 
Field Value
Type
Description
int

DELETE_TIME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 DELETE_TIME_FIELD_NUMBER 
 
Field Value
Type
Description
int

ETAG_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ETAG_FIELD_NUMBER 
 
Field Value
Type
Description
int

EXECUTION_COUNT_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 EXECUTION_COUNT_FIELD_NUMBER 
 
Field Value
Type
Description
int

EXPIRE_TIME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 EXPIRE_TIME_FIELD_NUMBER 
 
Field Value
Type
Description
int

GENERATION_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 GENERATION_FIELD_NUMBER 
 
Field Value
Type
Description
int

LABELS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 LABELS_FIELD_NUMBER 
 
Field Value
Type
Description
int

LAST_MODIFIER_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 LAST_MODIFIER_FIELD_NUMBER 
 
Field Value
Type
Description
int

LATEST_CREATED_EXECUTION_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 LATEST_CREATED_EXECUTION_FIELD_NUMBER 
 
Field Value
Type
Description
int

LAUNCH_STAGE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 LAUNCH_STAGE_FIELD_NUMBER 
 
Field Value
Type
Description
int

NAME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 NAME_FIELD_NUMBER 
 
Field Value
Type
Description
int

OBSERVED_GENERATION_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 OBSERVED_GENERATION_FIELD_NUMBER 
 
Field Value
Type
Description
int

RECONCILING_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 RECONCILING_FIELD_NUMBER 
 
Field Value
Type
Description
int

SATISFIES_PZS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 SATISFIES_PZS_FIELD_NUMBER 
 
Field Value
Type
Description
int

TEMPLATE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 TEMPLATE_FIELD_NUMBER 
 
Field Value
Type
Description
int

TERMINAL_CONDITION_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 TERMINAL_CONDITION_FIELD_NUMBER 
 
Field Value
Type
Description
int

UID_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 UID_FIELD_NUMBER 
 
Field Value
Type
Description
int

UPDATE_TIME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 UPDATE_TIME_FIELD_NUMBER 
 
Field Value
Type
Description
int

Static Methods

getDefaultInstance()

  public 
  
 static 
  
 Job 
  
 getDefaultInstance 
 () 
 
Returns
Type
Description
Job

getDescriptor()

  public 
  
 static 
  
 final 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptor 
 () 
 
Returns
Type
Description

newBuilder()

  public 
  
 static 
  
 Job 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

newBuilder(Job prototype)

  public 
  
 static 
  
 Job 
 . 
 Builder 
  
 newBuilder 
 ( 
 Job 
  
 prototype 
 ) 
 
Parameter
Name
Description
prototype
Job
Returns
Type
Description

parseDelimitedFrom(InputStream input)

  public 
  
 static 
  
 Job 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Job
Exceptions
Type
Description

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Job 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Job
Exceptions
Type
Description

parseFrom(byte[] data)

  public 
  
 static 
  
 Job 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 ) 
 
Parameter
Name
Description
data
byte []
Returns
Type
Description
Job
Exceptions
Type
Description

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Job 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
byte []
extensionRegistry
Returns
Type
Description
Job
Exceptions
Type
Description

parseFrom(ByteString data)

  public 
  
 static 
  
 Job 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Job
Exceptions
Type
Description

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Job 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Job
Exceptions
Type
Description

parseFrom(CodedInputStream input)

  public 
  
 static 
  
 Job 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Job
Exceptions
Type
Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Job 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
extensionRegistry
Returns
Type
Description
Job
Exceptions
Type
Description

parseFrom(InputStream input)

  public 
  
 static 
  
 Job 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Job
Exceptions
Type
Description

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Job 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Job
Exceptions
Type
Description

parseFrom(ByteBuffer data)

  public 
  
 static 
  
 Job 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Job
Exceptions
Type
Description

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Job 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Job
Exceptions
Type
Description

parser()

  public 
  
 static 
  
 Parser<Job> 
  
 parser 
 () 
 
Returns
Type
Description
Parser < Job >

Methods

containsAnnotations(String key)

  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 on new resources. All system annotations in v1 now have a corresponding field in v2 Job.

<p>This field follows Kubernetes annotations' namespacing, limits, and rules.

map<string, string> annotations = 5;

Parameter
Name
Description
key
Returns
Type
Description

containsLabels(String key)

  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 Job.

map<string, string> labels = 4;

Parameter
Name
Description
key
Returns
Type
Description

equals(Object obj)

  public 
  
 boolean 
  
 equals 
 ( 
 Object 
  
 obj 
 ) 
 
Parameter
Name
Description
obj
Returns
Type
Description
Overrides

getAnnotations() (deprecated)

  public 
  
 Map<String 
 , 
 String 
>  
 getAnnotations 
 () 
 

Use #getAnnotationsMap() instead.

Returns
Type
Description
Map < String , String >

getAnnotationsCount()

  public 
  
 int 
  
 getAnnotationsCount 
 () 
 

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 on new resources. All system annotations in v1 now have a corresponding field in v2 Job.

<p>This field follows Kubernetes annotations' namespacing, limits, and rules.

map<string, string> annotations = 5;

Returns
Type
Description
int

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 on new resources. All system annotations in v1 now have a corresponding field in v2 Job.

<p>This field follows Kubernetes annotations' namespacing, limits, and rules.

map<string, string> annotations = 5;

Returns
Type
Description
Map < String , String >

getAnnotationsOrDefault(String key, String defaultValue)

  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 on new resources. All system annotations in v1 now have a corresponding field in v2 Job.

<p>This field follows Kubernetes annotations' namespacing, limits, and rules.

map<string, string> annotations = 5;

Parameters
Name
Description
key
defaultValue
Returns
Type
Description

getAnnotationsOrThrow(String key)

  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 on new resources. All system annotations in v1 now have a corresponding field in v2 Job.

<p>This field follows Kubernetes annotations' namespacing, limits, and rules.

map<string, string> annotations = 5;

Parameter
Name
Description
key
Returns
Type
Description

getBinaryAuthorization()

  public 
  
 BinaryAuthorization 
  
 getBinaryAuthorization 
 () 
 

Settings for the Binary Authorization feature.

.google.cloud.run.v2.BinaryAuthorization binary_authorization = 15;

Returns
Type
Description

The binaryAuthorization.

getBinaryAuthorizationOrBuilder()

  public 
  
 BinaryAuthorizationOrBuilder 
  
 getBinaryAuthorizationOrBuilder 
 () 
 

Settings for the Binary Authorization feature.

.google.cloud.run.v2.BinaryAuthorization binary_authorization = 15;

Returns
Type
Description

getClient()

  public 
  
 String 
  
 getClient 
 () 
 

Arbitrary identifier for the API client.

string client = 12;

Returns
Type
Description

The client.

getClientBytes()

  public 
  
 ByteString 
  
 getClientBytes 
 () 
 

Arbitrary identifier for the API client.

string client = 12;

Returns
Type
Description

The bytes for client.

getClientVersion()

  public 
  
 String 
  
 getClientVersion 
 () 
 

Arbitrary version identifier for the API client.

string client_version = 13;

Returns
Type
Description

The clientVersion.

getClientVersionBytes()

  public 
  
 ByteString 
  
 getClientVersionBytes 
 () 
 

Arbitrary version identifier for the API client.

string client_version = 13;

Returns
Type
Description

The bytes for clientVersion.

getConditions(int index)

  public 
  
 Condition 
  
 getConditions 
 ( 
 int 
  
 index 
 ) 
 

Output only. The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run.

repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name
Description
index
int
Returns
Type
Description

getConditionsCount()

  public 
  
 int 
  
 getConditionsCount 
 () 
 

Output only. The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run.

repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description
int

getConditionsList()

  public 
  
 List<Condition> 
  
 getConditionsList 
 () 
 

Output only. The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run.

repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

getConditionsOrBuilder(int index)

  public 
  
 ConditionOrBuilder 
  
 getConditionsOrBuilder 
 ( 
 int 
  
 index 
 ) 
 

Output only. The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run.

repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name
Description
index
int
Returns
Type
Description

getConditionsOrBuilderList()

  public 
  
 List 
< ? 
  
 extends 
  
 ConditionOrBuilder 
>  
 getConditionsOrBuilderList 
 () 
 

Output only. The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on reconciliation process in Cloud Run.

repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description
List < ? extends com.google.cloud.run.v2.ConditionOrBuilder >

getCreateTime()

  public 
  
 Timestamp 
  
 getCreateTime 
 () 
 

Output only. The creation time.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The createTime.

getCreateTimeOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getCreateTimeOrBuilder 
 () 
 

Output only. The creation time.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

getCreator()

  public 
  
 String 
  
 getCreator 
 () 
 

Output only. Email address of the authenticated creator.

string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The creator.

getCreatorBytes()

  public 
  
 ByteString 
  
 getCreatorBytes 
 () 
 

Output only. Email address of the authenticated creator.

string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The bytes for creator.

getDefaultInstanceForType()

  public 
  
 Job 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description
Job

getDeleteTime()

  public 
  
 Timestamp 
  
 getDeleteTime 
 () 
 

Output only. The deletion time.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The deleteTime.

getDeleteTimeOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getDeleteTimeOrBuilder 
 () 
 

Output only. The deletion time.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

getEtag()

  public 
  
 String 
  
 getEtag 
 () 
 

Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.

string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The etag.

getEtagBytes()

  public 
  
 ByteString 
  
 getEtagBytes 
 () 
 

Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.

string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The bytes for etag.

getExecutionCount()

  public 
  
 int 
  
 getExecutionCount 
 () 
 

Output only. Number of executions created for this job.

int32 execution_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description
int

The executionCount.

getExpireTime()

  public 
  
 Timestamp 
  
 getExpireTime 
 () 
 

Output only. For a deleted resource, the time after which it will be permamently deleted.

.google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The expireTime.

getExpireTimeOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getExpireTimeOrBuilder 
 () 
 

Output only. For a deleted resource, the time after which it will be permamently deleted.

.google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

getGeneration()

  public 
  
 long 
  
 getGeneration 
 () 
 

Output only. A number that monotonically increases every time the user modifies the desired state.

int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The generation.

getLabels() (deprecated)

  public 
  
 Map<String 
 , 
 String 
>  
 getLabels 
 () 
 

Use #getLabelsMap() instead.

Returns
Type
Description
Map < String , String >

getLabelsCount()

  public 
  
 int 
  
 getLabelsCount 
 () 
 

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 Job.

map<string, string> labels = 4;

Returns
Type
Description
int

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 Job.

map<string, string> labels = 4;

Returns
Type
Description
Map < String , String >

getLabelsOrDefault(String key, String defaultValue)

  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 Job.

map<string, string> labels = 4;

Parameters
Name
Description
key
defaultValue
Returns
Type
Description

getLabelsOrThrow(String key)

  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 Job.

map<string, string> labels = 4;

Parameter
Name
Description
key
Returns
Type
Description

getLastModifier()

  public 
  
 String 
  
 getLastModifier 
 () 
 

Output only. Email address of the last authenticated modifier.

string last_modifier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The lastModifier.

getLastModifierBytes()

  public 
  
 ByteString 
  
 getLastModifierBytes 
 () 
 

Output only. Email address of the last authenticated modifier.

string last_modifier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The bytes for lastModifier.

getLatestCreatedExecution()

  public 
  
 ExecutionReference 
  
 getLatestCreatedExecution 
 () 
 

Output only. Name of the last created execution.

.google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The latestCreatedExecution.

getLatestCreatedExecutionOrBuilder()

  public 
  
 ExecutionReferenceOrBuilder 
  
 getLatestCreatedExecutionOrBuilder 
 () 
 

Output only. Name of the last created execution.

.google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

getLaunchStage()

  public 
  
 LaunchStage 
  
 getLaunchStage 
 () 
 

The launch stage as defined by Google Cloud Platform Launch Stages . Cloud Run supports ALPHA , BETA , and GA . If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. <p> For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output.

.google.api.LaunchStage launch_stage = 14;

Returns
Type
Description
com.google.api.LaunchStage

The launchStage.

getLaunchStageValue()

  public 
  
 int 
  
 getLaunchStageValue 
 () 
 

The launch stage as defined by Google Cloud Platform Launch Stages . Cloud Run supports ALPHA , BETA , and GA . If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. <p> For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output.

.google.api.LaunchStage launch_stage = 14;

Returns
Type
Description
int

The enum numeric value on the wire for launchStage.

getName()

  public 
  
 String 
  
 getName 
 () 
 

The fully qualified name of this Job.

Format: projects/{project}/locations/{location}/jobs/{job}

string name = 1;

Returns
Type
Description

The name.

getNameBytes()

  public 
  
 ByteString 
  
 getNameBytes 
 () 
 

The fully qualified name of this Job.

Format: projects/{project}/locations/{location}/jobs/{job}

string name = 1;

Returns
Type
Description

The bytes for name.

getObservedGeneration()

  public 
  
 long 
  
 getObservedGeneration 
 () 
 

Output only. The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.

int64 observed_generation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The observedGeneration.

getParserForType()

  public 
  
 Parser<Job> 
  
 getParserForType 
 () 
 
Returns
Type
Description
Parser < Job >
Overrides

getReconciling()

  public 
  
 boolean 
  
 getReconciling 
 () 
 

Output only. Returns true if the Job is currently being acted upon by the system to bring it into the desired state.

When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observed_generation and latest_succeeded_execution , will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminal_condition.state .

If reconciliation succeeded, the following fields will match: observed_generation and generation , latest_succeeded_execution and latest_created_execution .

If reconciliation failed, observed_generation and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminal_condition and conditions .

bool reconciling = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The reconciling.

getSatisfiesPzs()

  public 
  
 boolean 
  
 getSatisfiesPzs 
 () 
 

Output only. Reserved for future use.

bool satisfies_pzs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The satisfiesPzs.

getSerializedSize()

  public 
  
 int 
  
 getSerializedSize 
 () 
 
Returns
Type
Description
int
Overrides

getTemplate()

  public 
  
 ExecutionTemplate 
  
 getTemplate 
 () 
 

Required. The template used to create executions for this Job.

.google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED];

Returns
Type
Description

The template.

getTemplateOrBuilder()

  public 
  
 ExecutionTemplateOrBuilder 
  
 getTemplateOrBuilder 
 () 
 

Required. The template used to create executions for this Job.

.google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED];

Returns
Type
Description

getTerminalCondition()

  public 
  
 Condition 
  
 getTerminalCondition 
 () 
 

Output only. The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state.

.google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The terminalCondition.

getTerminalConditionOrBuilder()

  public 
  
 ConditionOrBuilder 
  
 getTerminalConditionOrBuilder 
 () 
 

Output only. The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state.

.google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

getUid()

  public 
  
 String 
  
 getUid 
 () 
 

Output only. Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The uid.

getUidBytes()

  public 
  
 ByteString 
  
 getUidBytes 
 () 
 

Output only. Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The bytes for uid.

getUpdateTime()

  public 
  
 Timestamp 
  
 getUpdateTime 
 () 
 

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The updateTime.

getUpdateTimeOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getUpdateTimeOrBuilder 
 () 
 

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

hasBinaryAuthorization()

  public 
  
 boolean 
  
 hasBinaryAuthorization 
 () 
 

Settings for the Binary Authorization feature.

.google.cloud.run.v2.BinaryAuthorization binary_authorization = 15;

Returns
Type
Description

Whether the binaryAuthorization field is set.

hasCreateTime()

  public 
  
 boolean 
  
 hasCreateTime 
 () 
 

Output only. The creation time.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

Whether the createTime field is set.

hasDeleteTime()

  public 
  
 boolean 
  
 hasDeleteTime 
 () 
 

Output only. The deletion time.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

Whether the deleteTime field is set.

hasExpireTime()

  public 
  
 boolean 
  
 hasExpireTime 
 () 
 

Output only. For a deleted resource, the time after which it will be permamently deleted.

.google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

Whether the expireTime field is set.

hasLatestCreatedExecution()

  public 
  
 boolean 
  
 hasLatestCreatedExecution 
 () 
 

Output only. Name of the last created execution.

.google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

Whether the latestCreatedExecution field is set.

hasTemplate()

  public 
  
 boolean 
  
 hasTemplate 
 () 
 

Required. The template used to create executions for this Job.

.google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED];

Returns
Type
Description

Whether the template field is set.

hasTerminalCondition()

  public 
  
 boolean 
  
 hasTerminalCondition 
 () 
 

Output only. The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state.

.google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

Whether the terminalCondition field is set.

hasUpdateTime()

  public 
  
 boolean 
  
 hasUpdateTime 
 () 
 

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

Whether the updateTime field is set.

hashCode()

  public 
  
 int 
  
 hashCode 
 () 
 
Returns
Type
Description
int
Overrides

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

internalGetMapFieldReflection(int number)

  protected 
  
 MapFieldReflectionAccessor 
  
 internalGetMapFieldReflection 
 ( 
 int 
  
 number 
 ) 
 
Parameter
Name
Description
number
int
Returns
Type
Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

newBuilderForType()

  public 
  
 Job 
 . 
 Builder 
  
 newBuilderForType 
 () 
 
Returns
Type
Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

  protected 
  
 Job 
 . 
 Builder 
  
 newBuilderForType 
 ( 
 GeneratedMessageV3 
 . 
 BuilderParent 
  
 parent 
 ) 
 
Parameter
Name
Description
parent
Returns
Type
Description
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

  protected 
  
 Object 
  
 newInstance 
 ( 
 GeneratedMessageV3 
 . 
 UnusedPrivateParameter 
  
 unused 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

toBuilder()

  public 
  
 Job 
 . 
 Builder 
  
 toBuilder 
 () 
 
Returns
Type
Description

writeTo(CodedOutputStream output)

  public 
  
 void 
  
 writeTo 
 ( 
 CodedOutputStream 
  
 output 
 ) 
 
Parameter
Name
Description
Overrides
Exceptions
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: