Class ArtifactDeployment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ArtifactDeployment.Builder>
com.google.cloud.developerconnect.v1.ArtifactDeployment.Builder
- All Implemented Interfaces:
ArtifactDeploymentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ArtifactDeployment
public static final class ArtifactDeployment.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ArtifactDeployment.Builder>
implements ArtifactDeploymentOrBuilder
The ArtifactDeployment resource represents the deployment of the artifact within the InsightsConfig resource.Protobuf type
google.cloud.developerconnect.v1.ArtifactDeployment-
Method Summary
Modifier and TypeMethodDescriptionaddAllSourceCommitUris(Iterable<String> values) Output only.addSourceCommitUris(String value) Output only.addSourceCommitUrisBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Output only.Output only.Output only.clearId()Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()Output only.com.google.protobuf.ByteStringOutput only.getSourceCommitUris(int index) Output only.com.google.protobuf.ByteStringgetSourceCommitUrisBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeDeployTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(ArtifactDeployment other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUndeployTime(com.google.protobuf.Timestamp value) Output only.setArtifactAlias(String value) Output only.setArtifactAliasBytes(com.google.protobuf.ByteString value) Output only.setArtifactReference(String value) Output only.setArtifactReferenceBytes(com.google.protobuf.ByteString value) Output only.setContainerStatusSummary(String value) Output only.setContainerStatusSummaryBytes(com.google.protobuf.ByteString value) Output only.setDeployTime(com.google.protobuf.Timestamp value) Output only.setDeployTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Output only.setIdBytes(com.google.protobuf.ByteString value) Output only.setSourceCommitUris(int index, String value) Output only.setUndeployTime(com.google.protobuf.Timestamp value) Output only.setUndeployTime(com.google.protobuf.Timestamp.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<ArtifactDeployment.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<ArtifactDeployment.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<ArtifactDeployment.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<ArtifactDeployment.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ArtifactDeployment.Builder>
-
mergeFrom
public ArtifactDeployment.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<ArtifactDeployment.Builder>- Throws:
IOException
-
getId
Output only. Unique identifier of `ArtifactDeployment`.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceArtifactDeploymentOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Output only. Unique identifier of `ArtifactDeployment`.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdBytesin interfaceArtifactDeploymentOrBuilder- Returns:
- The bytes for id.
-
setId
Output only. Unique identifier of `ArtifactDeployment`.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. Unique identifier of `ArtifactDeployment`.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setIdBytes
Output only. Unique identifier of `ArtifactDeployment`.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getArtifactReference
Output only. The artifact that is deployed.
string artifact_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getArtifactReferencein interfaceArtifactDeploymentOrBuilder- Returns:
- The artifactReference.
-
getArtifactReferenceBytes
public com.google.protobuf.ByteString getArtifactReferenceBytes()Output only. The artifact that is deployed.
string artifact_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getArtifactReferenceBytesin interfaceArtifactDeploymentOrBuilder- Returns:
- The bytes for artifactReference.
-
setArtifactReference
Output only. The artifact that is deployed.
string artifact_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The artifactReference to set.- Returns:
- This builder for chaining.
-
clearArtifactReference
Output only. The artifact that is deployed.
string artifact_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setArtifactReferenceBytes
Output only. The artifact that is deployed.
string artifact_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for artifactReference to set.- Returns:
- This builder for chaining.
-
getArtifactAlias
Output only. The artifact alias in the deployment spec, with Tag/SHA. e.g. us-docker.pkg.dev/my-project/my-repo/image:1.0.0
string artifact_alias = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getArtifactAliasin interfaceArtifactDeploymentOrBuilder- Returns:
- The artifactAlias.
-
getArtifactAliasBytes
public com.google.protobuf.ByteString getArtifactAliasBytes()Output only. The artifact alias in the deployment spec, with Tag/SHA. e.g. us-docker.pkg.dev/my-project/my-repo/image:1.0.0
string artifact_alias = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getArtifactAliasBytesin interfaceArtifactDeploymentOrBuilder- Returns:
- The bytes for artifactAlias.
-
setArtifactAlias
Output only. The artifact alias in the deployment spec, with Tag/SHA. e.g. us-docker.pkg.dev/my-project/my-repo/image:1.0.0
string artifact_alias = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The artifactAlias to set.- Returns:
- This builder for chaining.
-
clearArtifactAlias
Output only. The artifact alias in the deployment spec, with Tag/SHA. e.g. us-docker.pkg.dev/my-project/my-repo/image:1.0.0
string artifact_alias = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setArtifactAliasBytes
Output only. The artifact alias in the deployment spec, with Tag/SHA. e.g. us-docker.pkg.dev/my-project/my-repo/image:1.0.0
string artifact_alias = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for artifactAlias to set.- Returns:
- This builder for chaining.
-
getSourceCommitUrisList
public com.google.protobuf.ProtocolStringList getSourceCommitUrisList()Output only. The source commits at which this artifact was built. Extracted from provenance.
repeated string source_commit_uris = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceCommitUrisListin interfaceArtifactDeploymentOrBuilder- Returns:
- A list containing the sourceCommitUris.
-
getSourceCommitUrisCount
public int getSourceCommitUrisCount()Output only. The source commits at which this artifact was built. Extracted from provenance.
repeated string source_commit_uris = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceCommitUrisCountin interfaceArtifactDeploymentOrBuilder- Returns:
- The count of sourceCommitUris.
-
getSourceCommitUris
Output only. The source commits at which this artifact was built. Extracted from provenance.
repeated string source_commit_uris = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceCommitUrisin interfaceArtifactDeploymentOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sourceCommitUris at the given index.
-
getSourceCommitUrisBytes
public com.google.protobuf.ByteString getSourceCommitUrisBytes(int index) Output only. The source commits at which this artifact was built. Extracted from provenance.
repeated string source_commit_uris = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceCommitUrisBytesin interfaceArtifactDeploymentOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sourceCommitUris at the given index.
-
setSourceCommitUris
Output only. The source commits at which this artifact was built. Extracted from provenance.
repeated string source_commit_uris = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The sourceCommitUris to set.- Returns:
- This builder for chaining.
-
addSourceCommitUris
Output only. The source commits at which this artifact was built. Extracted from provenance.
repeated string source_commit_uris = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The sourceCommitUris to add.- Returns:
- This builder for chaining.
-
addAllSourceCommitUris
Output only. The source commits at which this artifact was built. Extracted from provenance.
repeated string source_commit_uris = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The sourceCommitUris to add.- Returns:
- This builder for chaining.
-
clearSourceCommitUris
Output only. The source commits at which this artifact was built. Extracted from provenance.
repeated string source_commit_uris = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addSourceCommitUrisBytes
Output only. The source commits at which this artifact was built. Extracted from provenance.
repeated string source_commit_uris = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the sourceCommitUris to add.- Returns:
- This builder for chaining.
-
hasDeployTime
public boolean hasDeployTime()Output only. The time at which the deployment was deployed.
.google.protobuf.Timestamp deploy_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDeployTimein interfaceArtifactDeploymentOrBuilder- Returns:
- Whether the deployTime field is set.
-
getDeployTime
public com.google.protobuf.Timestamp getDeployTime()Output only. The time at which the deployment was deployed.
.google.protobuf.Timestamp deploy_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDeployTimein interfaceArtifactDeploymentOrBuilder- Returns:
- The deployTime.
-
setDeployTime
Output only. The time at which the deployment was deployed.
.google.protobuf.Timestamp deploy_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setDeployTime
public ArtifactDeployment.Builder setDeployTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. The time at which the deployment was deployed.
.google.protobuf.Timestamp deploy_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeDeployTime
Output only. The time at which the deployment was deployed.
.google.protobuf.Timestamp deploy_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearDeployTime
Output only. The time at which the deployment was deployed.
.google.protobuf.Timestamp deploy_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getDeployTimeBuilder
public com.google.protobuf.Timestamp.Builder getDeployTimeBuilder()Output only. The time at which the deployment was deployed.
.google.protobuf.Timestamp deploy_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getDeployTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder()Output only. The time at which the deployment was deployed.
.google.protobuf.Timestamp deploy_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDeployTimeOrBuilderin interfaceArtifactDeploymentOrBuilder
-
hasUndeployTime
public boolean hasUndeployTime()Output only. The time at which the deployment was undeployed, all artifacts are considered undeployed once this time is set.
.google.protobuf.Timestamp undeploy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUndeployTimein interfaceArtifactDeploymentOrBuilder- Returns:
- Whether the undeployTime field is set.
-
getUndeployTime
public com.google.protobuf.Timestamp getUndeployTime()Output only. The time at which the deployment was undeployed, all artifacts are considered undeployed once this time is set.
.google.protobuf.Timestamp undeploy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUndeployTimein interfaceArtifactDeploymentOrBuilder- Returns:
- The undeployTime.
-
setUndeployTime
Output only. The time at which the deployment was undeployed, all artifacts are considered undeployed once this time is set.
.google.protobuf.Timestamp undeploy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUndeployTime
public ArtifactDeployment.Builder setUndeployTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. The time at which the deployment was undeployed, all artifacts are considered undeployed once this time is set.
.google.protobuf.Timestamp undeploy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUndeployTime
Output only. The time at which the deployment was undeployed, all artifacts are considered undeployed once this time is set.
.google.protobuf.Timestamp undeploy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUndeployTime
Output only. The time at which the deployment was undeployed, all artifacts are considered undeployed once this time is set.
.google.protobuf.Timestamp undeploy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUndeployTimeBuilder
public com.google.protobuf.Timestamp.Builder getUndeployTimeBuilder()Output only. The time at which the deployment was undeployed, all artifacts are considered undeployed once this time is set.
.google.protobuf.Timestamp undeploy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUndeployTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUndeployTimeOrBuilder()Output only. The time at which the deployment was undeployed, all artifacts are considered undeployed once this time is set.
.google.protobuf.Timestamp undeploy_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUndeployTimeOrBuilderin interfaceArtifactDeploymentOrBuilder
-
getContainerStatusSummary
Output only. The summary of container status of the artifact deployment. Format as `ContainerStatusState-Reason : restartCount` e.g. "Waiting-ImagePullBackOff : 3"
string container_status_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getContainerStatusSummaryin interfaceArtifactDeploymentOrBuilder- Returns:
- The containerStatusSummary.
-
getContainerStatusSummaryBytes
public com.google.protobuf.ByteString getContainerStatusSummaryBytes()Output only. The summary of container status of the artifact deployment. Format as `ContainerStatusState-Reason : restartCount` e.g. "Waiting-ImagePullBackOff : 3"
string container_status_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getContainerStatusSummaryBytesin interfaceArtifactDeploymentOrBuilder- Returns:
- The bytes for containerStatusSummary.
-
setContainerStatusSummary
Output only. The summary of container status of the artifact deployment. Format as `ContainerStatusState-Reason : restartCount` e.g. "Waiting-ImagePullBackOff : 3"
string container_status_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The containerStatusSummary to set.- Returns:
- This builder for chaining.
-
clearContainerStatusSummary
Output only. The summary of container status of the artifact deployment. Format as `ContainerStatusState-Reason : restartCount` e.g. "Waiting-ImagePullBackOff : 3"
string container_status_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setContainerStatusSummaryBytes
public ArtifactDeployment.Builder setContainerStatusSummaryBytes(com.google.protobuf.ByteString value) Output only. The summary of container status of the artifact deployment. Format as `ContainerStatusState-Reason : restartCount` e.g. "Waiting-ImagePullBackOff : 3"
string container_status_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for containerStatusSummary to set.- Returns:
- This builder for chaining.
-