Class Job (1.40.0)

public final class Job extends GeneratedMessageV3 implements JobOrBuilder

Job represents an operation for a Rollout.

Protobuf type google.cloud.deploy.v1.Job

Implements

JobOrBuilder

Static Fields

ADVANCE_CHILD_ROLLOUT_JOB_FIELD_NUMBER

public static final int ADVANCE_CHILD_ROLLOUT_JOB_FIELD_NUMBER
Field Value
Type Description
int

CREATE_CHILD_ROLLOUT_JOB_FIELD_NUMBER

public static final int CREATE_CHILD_ROLLOUT_JOB_FIELD_NUMBER
Field Value
Type Description
int

DEPLOY_JOB_FIELD_NUMBER

public static final int DEPLOY_JOB_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

JOB_RUN_FIELD_NUMBER

public static final int JOB_RUN_FIELD_NUMBER
Field Value
Type Description
int

POSTDEPLOY_JOB_FIELD_NUMBER

public static final int POSTDEPLOY_JOB_FIELD_NUMBER
Field Value
Type Description
int

PREDEPLOY_JOB_FIELD_NUMBER

public static final int PREDEPLOY_JOB_FIELD_NUMBER
Field Value
Type Description
int

SKIP_MESSAGE_FIELD_NUMBER

public static final int SKIP_MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

VERIFY_JOB_FIELD_NUMBER

public static final int VERIFY_JOB_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
Descriptor

newBuilder()

public static Job.Builder newBuilder()
Returns
Type Description
Job.Builder

newBuilder(Job prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAdvanceChildRolloutJob()

public AdvanceChildRolloutJob getAdvanceChildRolloutJob()

Output only. An advanceChildRollout Job.

.google.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AdvanceChildRolloutJob

The advanceChildRolloutJob.

getAdvanceChildRolloutJobOrBuilder()

public AdvanceChildRolloutJobOrBuilder getAdvanceChildRolloutJobOrBuilder()

Output only. An advanceChildRollout Job.

.google.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AdvanceChildRolloutJobOrBuilder

getCreateChildRolloutJob()

public CreateChildRolloutJob getCreateChildRolloutJob()

Output only. A createChildRollout Job.

.google.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CreateChildRolloutJob

The createChildRolloutJob.

getCreateChildRolloutJobOrBuilder()

public CreateChildRolloutJobOrBuilder getCreateChildRolloutJobOrBuilder()

Output only. A createChildRollout Job.

.google.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CreateChildRolloutJobOrBuilder

getDefaultInstanceForType()

public Job getDefaultInstanceForType()
Returns
Type Description
Job

getDeployJob()

public DeployJob getDeployJob()

Output only. A deploy Job.

.google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeployJob

The deployJob.

getDeployJobOrBuilder()

public DeployJobOrBuilder getDeployJobOrBuilder()

Output only. A deploy Job.

.google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeployJobOrBuilder

getId()

public String getId()

Output only. The ID of the Job.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. The ID of the Job.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for id.

getJobRun()

public String getJobRun()

Output only. The name of the JobRun responsible for the most recent invocation of this Job.

string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The jobRun.

getJobRunBytes()

public ByteString getJobRunBytes()

Output only. The name of the JobRun responsible for the most recent invocation of this Job.

string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for jobRun.

getJobTypeCase()

public Job.JobTypeCase getJobTypeCase()
Returns
Type Description
Job.JobTypeCase

getParserForType()

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

getPostdeployJob()

public PostdeployJob getPostdeployJob()

Output only. A postdeploy Job.

.google.cloud.deploy.v1.PostdeployJob postdeploy_job = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PostdeployJob

The postdeployJob.

getPostdeployJobOrBuilder()

public PostdeployJobOrBuilder getPostdeployJobOrBuilder()

Output only. A postdeploy Job.

.google.cloud.deploy.v1.PostdeployJob postdeploy_job = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PostdeployJobOrBuilder

getPredeployJob()

public PredeployJob getPredeployJob()

Output only. A predeploy Job.

.google.cloud.deploy.v1.PredeployJob predeploy_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PredeployJob

The predeployJob.

getPredeployJobOrBuilder()

public PredeployJobOrBuilder getPredeployJobOrBuilder()

Output only. A predeploy Job.

.google.cloud.deploy.v1.PredeployJob predeploy_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PredeployJobOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSkipMessage()

public String getSkipMessage()

Output only. Additional information on why the Job was skipped, if available.

string skip_message = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The skipMessage.

getSkipMessageBytes()

public ByteString getSkipMessageBytes()

Output only. Additional information on why the Job was skipped, if available.

string skip_message = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for skipMessage.

getState()

public Job.State getState()

Output only. The current state of the Job.

.google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Job.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the Job.

.google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getVerifyJob()

public VerifyJob getVerifyJob()

Output only. A verify Job.

.google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VerifyJob

The verifyJob.

getVerifyJobOrBuilder()

public VerifyJobOrBuilder getVerifyJobOrBuilder()

Output only. A verify Job.

.google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VerifyJobOrBuilder

hasAdvanceChildRolloutJob()

public boolean hasAdvanceChildRolloutJob()

Output only. An advanceChildRollout Job.

.google.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the advanceChildRolloutJob field is set.

hasCreateChildRolloutJob()

public boolean hasCreateChildRolloutJob()

Output only. A createChildRollout Job.

.google.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createChildRolloutJob field is set.

hasDeployJob()

public boolean hasDeployJob()

Output only. A deploy Job.

.google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the deployJob field is set.

hasPostdeployJob()

public boolean hasPostdeployJob()

Output only. A postdeploy Job.

.google.cloud.deploy.v1.PostdeployJob postdeploy_job = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the postdeployJob field is set.

hasPredeployJob()

public boolean hasPredeployJob()

Output only. A predeploy Job.

.google.cloud.deploy.v1.PredeployJob predeploy_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the predeployJob field is set.

hasVerifyJob()

public boolean hasVerifyJob()

Output only. A verify Job.

.google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the verifyJob field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Job.Builder newBuilderForType()
Returns
Type Description
Job.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Job.Builder toBuilder()
Returns
Type Description
Job.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException