Class DeployJobRun.Builder (1.22.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeployJobRun.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeployJobRun.Builder
Overrides

build()

public DeployJobRun build()
Returns
TypeDescription
DeployJobRun

buildPartial()

public DeployJobRun buildPartial()
Returns
TypeDescription
DeployJobRun

clear()

public DeployJobRun.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DeployJobRun.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DeployJobRun.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DeployJobRun.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DeployJobRun.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DeployJobRun.Builder
Overrides

clone()

public DeployJobRun.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for build.

getDefaultInstanceForType()

public DeployJobRun getDefaultInstanceForType()
Returns
TypeDescription
DeployJobRun

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the metadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDeployArtifact
Returns
TypeDescription
DeployJobRun.Builder

mergeFrom(DeployJobRun other)

public DeployJobRun.Builder mergeFrom(DeployJobRun other)
Parameter
NameDescription
otherDeployJobRun
Returns
TypeDescription
DeployJobRun.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeployJobRun.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeployJobRun.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DeployJobRun.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDeployJobRunMetadata
Returns
TypeDescription
DeployJobRun.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeployJobRun.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDeployArtifact
Returns
TypeDescription
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
NameDescription
builderForValueDeployArtifact.Builder
Returns
TypeDescription
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
NameDescription
valueString

The build to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for build to set.

Returns
TypeDescription
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
NameDescription
valueDeployJobRun.FailureCause

The failureCause to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The failureMessage to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for failureMessage to set.

Returns
TypeDescription
DeployJobRun.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DeployJobRun.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueDeployJobRunMetadata
Returns
TypeDescription
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
NameDescription
builderForValueDeployJobRunMetadata.Builder
Returns
TypeDescription
DeployJobRun.Builder

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

public DeployJobRun.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DeployJobRun.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DeployJobRun.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeployJobRun.Builder
Overrides