Class PostdeployJobRun.Builder (1.30.0)

public static final class PostdeployJobRun.Builder extends GeneratedMessageV3.Builder<PostdeployJobRun.Builder> implements PostdeployJobRunOrBuilder

PostdeployJobRun contains information specific to a postdeploy JobRun.

Protobuf type google.cloud.deploy.v1.PostdeployJobRun

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PostdeployJobRun build()
Returns
TypeDescription
PostdeployJobRun

buildPartial()

public PostdeployJobRun buildPartial()
Returns
TypeDescription
PostdeployJobRun

clear()

public PostdeployJobRun.Builder clear()
Returns
TypeDescription
PostdeployJobRun.Builder
Overrides

clearBuild()

public PostdeployJobRun.Builder clearBuild()

Output only. The resource name of the Cloud Build Build object that is used to execute the custom actions associated with the postdeploy Job. Format is projects/{project}/locations/{location}/builds/{build}.

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

Returns
TypeDescription
PostdeployJobRun.Builder

This builder for chaining.

clearFailureCause()

public PostdeployJobRun.Builder clearFailureCause()

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

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

Returns
TypeDescription
PostdeployJobRun.Builder

This builder for chaining.

clearFailureMessage()

public PostdeployJobRun.Builder clearFailureMessage()

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

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

Returns
TypeDescription
PostdeployJobRun.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PostdeployJobRun.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PostdeployJobRun.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public PostdeployJobRun.Builder clone()
Returns
TypeDescription
PostdeployJobRun.Builder
Overrides

getBuild()

public String getBuild()

Output only. The resource name of the Cloud Build Build object that is used to execute the custom actions associated with the postdeploy Job. 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 execute the custom actions associated with the postdeploy Job. 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 PostdeployJobRun getDefaultInstanceForType()
Returns
TypeDescription
PostdeployJobRun

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFailureCause()

public PostdeployJobRun.FailureCause getFailureCause()

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

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

Returns
TypeDescription
PostdeployJobRun.FailureCause

The failureCause.

getFailureCauseValue()

public int getFailureCauseValue()

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

.google.cloud.deploy.v1.PostdeployJobRun.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 postdeploy 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 postdeploy failure, if available.

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

Returns
TypeDescription
ByteString

The bytes for failureMessage.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PostdeployJobRun other)

public PostdeployJobRun.Builder mergeFrom(PostdeployJobRun other)
Parameter
NameDescription
otherPostdeployJobRun
Returns
TypeDescription
PostdeployJobRun.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PostdeployJobRun.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PostdeployJobRun.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PostdeployJobRun.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PostdeployJobRun.Builder
Overrides

setBuild(String value)

public PostdeployJobRun.Builder setBuild(String value)

Output only. The resource name of the Cloud Build Build object that is used to execute the custom actions associated with the postdeploy Job. 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
PostdeployJobRun.Builder

This builder for chaining.

setBuildBytes(ByteString value)

public PostdeployJobRun.Builder setBuildBytes(ByteString value)

Output only. The resource name of the Cloud Build Build object that is used to execute the custom actions associated with the postdeploy Job. 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
PostdeployJobRun.Builder

This builder for chaining.

setFailureCause(PostdeployJobRun.FailureCause value)

public PostdeployJobRun.Builder setFailureCause(PostdeployJobRun.FailureCause value)

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

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

Parameter
NameDescription
valuePostdeployJobRun.FailureCause

The failureCause to set.

Returns
TypeDescription
PostdeployJobRun.Builder

This builder for chaining.

setFailureCauseValue(int value)

public PostdeployJobRun.Builder setFailureCauseValue(int value)

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

.google.cloud.deploy.v1.PostdeployJobRun.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
PostdeployJobRun.Builder

This builder for chaining.

setFailureMessage(String value)

public PostdeployJobRun.Builder setFailureMessage(String value)

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

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

Parameter
NameDescription
valueString

The failureMessage to set.

Returns
TypeDescription
PostdeployJobRun.Builder

This builder for chaining.

setFailureMessageBytes(ByteString value)

public PostdeployJobRun.Builder setFailureMessageBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for failureMessage to set.

Returns
TypeDescription
PostdeployJobRun.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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