Class DeployJobRun.Builder (1.51.0)

public static final class DeployJobRun.Builder extends GeneratedMessageV3.Builder<DeployJobRun.Builder> implements DeployJobRunOrBuilder

DeployJobRun contains information specific to a deploy JobRun.

Protobuf type google.cloud.deploy.v1.DeployJobRun

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeployJobRun.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeployJobRun.Builder
Overrides

build()

public DeployJobRun build()
Returns
Type Description
DeployJobRun

buildPartial()

public DeployJobRun buildPartial()
Returns
Type Description
DeployJobRun

clear()

public DeployJobRun.Builder clear()
Returns
Type Description
DeployJobRun.Builder
Overrides

clearArtifact()

public DeployJobRun.Builder clearArtifact()

Output only. The artifact of a deploy job run, if available.

.google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeployJobRun.Builder

clearBuild()

public DeployJobRun.Builder clearBuild()

Output only. The resource name of the Cloud Build Build object that is used to deploy. Format is projects/{project}/locations/{location}/builds/{build}.

string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
DeployJobRun.Builder

This builder for chaining.

clearFailureCause()

public DeployJobRun.Builder clearFailureCause()

Output only. The reason the deploy failed. This will always be unspecified while the deploy is in progress or if it succeeded.

.google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeployJobRun.Builder

This builder for chaining.

clearFailureMessage()

public DeployJobRun.Builder clearFailureMessage()

Output only. Additional information about the deploy failure, if available.

string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeployJobRun.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DeployJobRun.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DeployJobRun.Builder
Overrides

clearMetadata()

public DeployJobRun.Builder clearMetadata()

Output only. Metadata containing information about the deploy job run.

.google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeployJobRun.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DeployJobRun.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DeployJobRun.Builder
Overrides

clone()

public DeployJobRun.Builder clone()
Returns
Type Description
DeployJobRun.Builder
Overrides

getArtifact()

public DeployArtifact getArtifact()

Output only. The artifact of a deploy job run, if available.

.google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeployArtifact

The artifact.

getArtifactBuilder()

public DeployArtifact.Builder getArtifactBuilder()

Output only. The artifact of a deploy job run, if available.

.google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeployArtifact.Builder

getArtifactOrBuilder()

public DeployArtifactOrBuilder getArtifactOrBuilder()

Output only. The artifact of a deploy job run, if available.

.google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeployArtifactOrBuilder

getBuild()

public String getBuild()

Output only. The resource name of the Cloud Build Build object that is used to deploy. Format is projects/{project}/locations/{location}/builds/{build}.

string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The build.

getBuildBytes()

public ByteString getBuildBytes()

Output only. The resource name of the Cloud Build Build object that is used to deploy. Format is projects/{project}/locations/{location}/builds/{build}.

string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for build.

getDefaultInstanceForType()

public DeployJobRun getDefaultInstanceForType()
Returns
Type Description
DeployJobRun

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFailureCause()

public DeployJobRun.FailureCause getFailureCause()

Output only. The reason the deploy failed. This will always be unspecified while the deploy is in progress or if it succeeded.

.google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeployJobRun.FailureCause

The failureCause.

getFailureCauseValue()

public int getFailureCauseValue()

Output only. The reason the deploy failed. This will always be unspecified while the deploy is in progress or if it succeeded.

.google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for failureCause.

getFailureMessage()

public String getFailureMessage()

Output only. Additional information about the deploy failure, if available.

string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The failureMessage.

getFailureMessageBytes()

public ByteString getFailureMessageBytes()

Output only. Additional information about the deploy failure, if available.

string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for failureMessage.

getMetadata()

public DeployJobRunMetadata getMetadata()

Output only. Metadata containing information about the deploy job run.

.google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeployJobRunMetadata

The metadata.

getMetadataBuilder()

public DeployJobRunMetadata.Builder getMetadataBuilder()

Output only. Metadata containing information about the deploy job run.

.google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeployJobRunMetadata.Builder

getMetadataOrBuilder()

public DeployJobRunMetadataOrBuilder getMetadataOrBuilder()

Output only. Metadata containing information about the deploy job run.

.google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeployJobRunMetadataOrBuilder

hasArtifact()

public boolean hasArtifact()

Output only. The artifact of a deploy job run, if available.

.google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the artifact field is set.

hasMetadata()

public boolean hasMetadata()

Output only. Metadata containing information about the deploy job run.

.google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the metadata field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeArtifact(DeployArtifact value)

public DeployJobRun.Builder mergeArtifact(DeployArtifact value)

Output only. The artifact of a deploy job run, if available.

.google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DeployArtifact
Returns
Type Description
DeployJobRun.Builder

mergeFrom(DeployJobRun other)

public DeployJobRun.Builder mergeFrom(DeployJobRun other)
Parameter
Name Description
other DeployJobRun
Returns
Type Description
DeployJobRun.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeployJobRun.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployJobRun.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DeployJobRun.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DeployJobRun.Builder
Overrides

mergeMetadata(DeployJobRunMetadata value)

public DeployJobRun.Builder mergeMetadata(DeployJobRunMetadata value)

Output only. Metadata containing information about the deploy job run.

.google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DeployJobRunMetadata
Returns
Type Description
DeployJobRun.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeployJobRun.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeployJobRun.Builder
Overrides

setArtifact(DeployArtifact value)

public DeployJobRun.Builder setArtifact(DeployArtifact value)

Output only. The artifact of a deploy job run, if available.

.google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DeployArtifact
Returns
Type Description
DeployJobRun.Builder

setArtifact(DeployArtifact.Builder builderForValue)

public DeployJobRun.Builder setArtifact(DeployArtifact.Builder builderForValue)

Output only. The artifact of a deploy job run, if available.

.google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue DeployArtifact.Builder
Returns
Type Description
DeployJobRun.Builder

setBuild(String value)

public DeployJobRun.Builder setBuild(String value)

Output only. The resource name of the Cloud Build Build object that is used to deploy. Format is projects/{project}/locations/{location}/builds/{build}.

string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The build to set.

Returns
Type Description
DeployJobRun.Builder

This builder for chaining.

setBuildBytes(ByteString value)

public DeployJobRun.Builder setBuildBytes(ByteString value)

Output only. The resource name of the Cloud Build Build object that is used to deploy. Format is projects/{project}/locations/{location}/builds/{build}.

string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for build to set.

Returns
Type Description
DeployJobRun.Builder

This builder for chaining.

setFailureCause(DeployJobRun.FailureCause value)

public DeployJobRun.Builder setFailureCause(DeployJobRun.FailureCause value)

Output only. The reason the deploy failed. This will always be unspecified while the deploy is in progress or if it succeeded.

.google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DeployJobRun.FailureCause

The failureCause to set.

Returns
Type Description
DeployJobRun.Builder

This builder for chaining.

setFailureCauseValue(int value)

public DeployJobRun.Builder setFailureCauseValue(int value)

Output only. The reason the deploy failed. This will always be unspecified while the deploy is in progress or if it succeeded.

.google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for failureCause to set.

Returns
Type Description
DeployJobRun.Builder

This builder for chaining.

setFailureMessage(String value)

public DeployJobRun.Builder setFailureMessage(String value)

Output only. Additional information about the deploy failure, if available.

string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The failureMessage to set.

Returns
Type Description
DeployJobRun.Builder

This builder for chaining.

setFailureMessageBytes(ByteString value)

public DeployJobRun.Builder setFailureMessageBytes(ByteString value)

Output only. Additional information about the deploy failure, if available.

string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for failureMessage to set.

Returns
Type Description
DeployJobRun.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DeployJobRun.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeployJobRun.Builder
Overrides

setMetadata(DeployJobRunMetadata value)

public DeployJobRun.Builder setMetadata(DeployJobRunMetadata value)

Output only. Metadata containing information about the deploy job run.

.google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DeployJobRunMetadata
Returns
Type Description
DeployJobRun.Builder

setMetadata(DeployJobRunMetadata.Builder builderForValue)

public DeployJobRun.Builder setMetadata(DeployJobRunMetadata.Builder builderForValue)

Output only. Metadata containing information about the deploy job run.

.google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue DeployJobRunMetadata.Builder
Returns
Type Description
DeployJobRun.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DeployJobRun.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DeployJobRun.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DeployJobRun.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeployJobRun.Builder
Overrides