Package com.google.cloud.deploy.v1
Class DeployJobRun.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DeployJobRun.Builder>
com.google.cloud.deploy.v1.DeployJobRun.Builder
- All Implemented Interfaces:
DeployJobRunOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DeployJobRun
public static final class DeployJobRun.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DeployJobRun.Builder>
implements DeployJobRunOrBuilder
DeployJobRun contains information specific to a deploy `JobRun`.Protobuf type
google.cloud.deploy.v1.DeployJobRun-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.getBuild()Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.intOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.Output only.Output only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeArtifact(DeployArtifact value) Output only.mergeFrom(DeployJobRun other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.setArtifact(DeployArtifact value) Output only.setArtifact(DeployArtifact.Builder builderForValue) Output only.Output only.setBuildBytes(com.google.protobuf.ByteString value) Output only.Output only.setFailureCauseValue(int value) Output only.setFailureMessage(String value) Output only.setFailureMessageBytes(com.google.protobuf.ByteString value) Output only.setMetadata(DeployJobRunMetadata value) Output only.setMetadata(DeployJobRunMetadata.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DeployJobRun.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DeployJobRun.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DeployJobRun.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeployJobRun.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DeployJobRun.Builder>
-
mergeFrom
public DeployJobRun.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeployJobRun.Builder>- Throws:
IOException
-
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) = { ... }- Specified by:
getBuildin interfaceDeployJobRunOrBuilder- Returns:
- The build.
-
getBuildBytes
public com.google.protobuf.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) = { ... }- Specified by:
getBuildBytesin interfaceDeployJobRunOrBuilder- Returns:
- The bytes for build.
-
setBuild
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) = { ... }- Parameters:
value- The build to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setBuildBytes
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) = { ... }- Parameters:
value- The bytes for build to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getFailureCauseValuein interfaceDeployJobRunOrBuilder- Returns:
- The enum numeric value on the wire for failureCause.
-
setFailureCauseValue
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];- Parameters:
value- The enum numeric value on the wire for failureCause to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getFailureCausein interfaceDeployJobRunOrBuilder- Returns:
- The failureCause.
-
setFailureCause
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];- Parameters:
value- The failureCause to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getFailureMessage
Output only. Additional information about the deploy failure, if available.
string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFailureMessagein interfaceDeployJobRunOrBuilder- Returns:
- The failureMessage.
-
getFailureMessageBytes
public com.google.protobuf.ByteString getFailureMessageBytes()Output only. Additional information about the deploy failure, if available.
string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFailureMessageBytesin interfaceDeployJobRunOrBuilder- Returns:
- The bytes for failureMessage.
-
setFailureMessage
Output only. Additional information about the deploy failure, if available.
string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The failureMessage to set.- Returns:
- This builder for chaining.
-
clearFailureMessage
Output only. Additional information about the deploy failure, if available.
string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setFailureMessageBytes
Output only. Additional information about the deploy failure, if available.
string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for failureMessage to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasMetadatain interfaceDeployJobRunOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
Output only. Metadata containing information about the deploy job run.
.google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMetadatain interfaceDeployJobRunOrBuilder- Returns:
- The metadata.
-
setMetadata
Output only. Metadata containing information about the deploy job run.
.google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setMetadata
Output only. Metadata containing information about the deploy job run.
.google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeMetadata
Output only. Metadata containing information about the deploy job run.
.google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearMetadata
Output only. Metadata containing information about the deploy job run.
.google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getMetadataBuilder
Output only. Metadata containing information about the deploy job run.
.google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getMetadataOrBuilder
Output only. Metadata containing information about the deploy job run.
.google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMetadataOrBuilderin interfaceDeployJobRunOrBuilder
-
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];- Specified by:
hasArtifactin interfaceDeployJobRunOrBuilder- Returns:
- Whether the artifact field is set.
-
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];- Specified by:
getArtifactin interfaceDeployJobRunOrBuilder- Returns:
- The artifact.
-
setArtifact
Output only. The artifact of a deploy job run, if available.
.google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setArtifact
Output only. The artifact of a deploy job run, if available.
.google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeArtifact
Output only. The artifact of a deploy job run, if available.
.google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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]; -
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]; -
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];- Specified by:
getArtifactOrBuilderin interfaceDeployJobRunOrBuilder
-