Class PredeployJobRun.Builder (1.26.0)

public static final class PredeployJobRun.Builder extends GeneratedMessageV3.Builder<PredeployJobRun.Builder> implements PredeployJobRunOrBuilder

PredeployJobRun contains information specific to a predeploy JobRun.

Protobuf type google.cloud.deploy.v1.PredeployJobRun

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PredeployJobRun build()
Returns
TypeDescription
PredeployJobRun

buildPartial()

public PredeployJobRun buildPartial()
Returns
TypeDescription
PredeployJobRun

clear()

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

clearBuild()

public PredeployJobRun.Builder clearBuild()

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

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

Returns
TypeDescription
PredeployJobRun.Builder

This builder for chaining.

clearFailureCause()

public PredeployJobRun.Builder clearFailureCause()

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

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

Returns
TypeDescription
PredeployJobRun.Builder

This builder for chaining.

clearFailureMessage()

public PredeployJobRun.Builder clearFailureMessage()

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

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

Returns
TypeDescription
PredeployJobRun.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public PredeployJobRun.Builder clone()
Returns
TypeDescription
PredeployJobRun.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 predeploy 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 predeploy 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 PredeployJobRun getDefaultInstanceForType()
Returns
TypeDescription
PredeployJobRun

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFailureCause()

public PredeployJobRun.FailureCause getFailureCause()

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

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

Returns
TypeDescription
PredeployJobRun.FailureCause

The failureCause.

getFailureCauseValue()

public int getFailureCauseValue()

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

.google.cloud.deploy.v1.PredeployJobRun.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 predeploy 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 predeploy 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(PredeployJobRun other)

public PredeployJobRun.Builder mergeFrom(PredeployJobRun other)
Parameter
NameDescription
otherPredeployJobRun
Returns
TypeDescription
PredeployJobRun.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBuild(String value)

public PredeployJobRun.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 predeploy 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
PredeployJobRun.Builder

This builder for chaining.

setBuildBytes(ByteString value)

public PredeployJobRun.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 predeploy 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
PredeployJobRun.Builder

This builder for chaining.

setFailureCause(PredeployJobRun.FailureCause value)

public PredeployJobRun.Builder setFailureCause(PredeployJobRun.FailureCause value)

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

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

Parameter
NameDescription
valuePredeployJobRun.FailureCause

The failureCause to set.

Returns
TypeDescription
PredeployJobRun.Builder

This builder for chaining.

setFailureCauseValue(int value)

public PredeployJobRun.Builder setFailureCauseValue(int value)

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

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

This builder for chaining.

setFailureMessage(String value)

public PredeployJobRun.Builder setFailureMessage(String value)

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

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

Parameter
NameDescription
valueString

The failureMessage to set.

Returns
TypeDescription
PredeployJobRun.Builder

This builder for chaining.

setFailureMessageBytes(ByteString value)

public PredeployJobRun.Builder setFailureMessageBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for failureMessage to set.

Returns
TypeDescription
PredeployJobRun.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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