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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ArtifactDeployment.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ArtifactDeployment.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ArtifactDeployment.Builder>
    • getDefaultInstanceForType

      public ArtifactDeployment getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ArtifactDeployment build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ArtifactDeployment buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ArtifactDeployment.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ArtifactDeployment.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ArtifactDeployment.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       Output only. Unique identifier of `ArtifactDeployment`.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getId in interface ArtifactDeploymentOrBuilder
      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:
      getIdBytes in interface ArtifactDeploymentOrBuilder
      Returns:
      The bytes for id.
    • setId

      public ArtifactDeployment.Builder setId(String value)
       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

      public ArtifactDeployment.Builder clearId()
       Output only. Unique identifier of `ArtifactDeployment`.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setIdBytes

      public ArtifactDeployment.Builder setIdBytes(com.google.protobuf.ByteString value)
       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

      public String getArtifactReference()
       Output only. The artifact that is deployed.
       
      string artifact_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getArtifactReference in interface ArtifactDeploymentOrBuilder
      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:
      getArtifactReferenceBytes in interface ArtifactDeploymentOrBuilder
      Returns:
      The bytes for artifactReference.
    • setArtifactReference

      public ArtifactDeployment.Builder setArtifactReference(String value)
       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

      public ArtifactDeployment.Builder clearArtifactReference()
       Output only. The artifact that is deployed.
       
      string artifact_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setArtifactReferenceBytes

      public ArtifactDeployment.Builder setArtifactReferenceBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getArtifactAlias in interface ArtifactDeploymentOrBuilder
      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:
      getArtifactAliasBytes in interface ArtifactDeploymentOrBuilder
      Returns:
      The bytes for artifactAlias.
    • setArtifactAlias

      public ArtifactDeployment.Builder setArtifactAlias(String value)
       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

      public ArtifactDeployment.Builder 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

      public ArtifactDeployment.Builder setArtifactAliasBytes(com.google.protobuf.ByteString value)
       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:
      getSourceCommitUrisList in interface ArtifactDeploymentOrBuilder
      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:
      getSourceCommitUrisCount in interface ArtifactDeploymentOrBuilder
      Returns:
      The count of sourceCommitUris.
    • getSourceCommitUris

      public String getSourceCommitUris(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:
      getSourceCommitUris in interface ArtifactDeploymentOrBuilder
      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:
      getSourceCommitUrisBytes in interface ArtifactDeploymentOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the sourceCommitUris at the given index.
    • setSourceCommitUris

      public ArtifactDeployment.Builder setSourceCommitUris(int index, String value)
       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

      public ArtifactDeployment.Builder addSourceCommitUris(String value)
       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

      public ArtifactDeployment.Builder addAllSourceCommitUris(Iterable<String> values)
       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

      public ArtifactDeployment.Builder 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

      public ArtifactDeployment.Builder addSourceCommitUrisBytes(com.google.protobuf.ByteString value)
       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:
      hasDeployTime in interface ArtifactDeploymentOrBuilder
      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:
      getDeployTime in interface ArtifactDeploymentOrBuilder
      Returns:
      The deployTime.
    • setDeployTime

      public ArtifactDeployment.Builder setDeployTime(com.google.protobuf.Timestamp value)
       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

      public ArtifactDeployment.Builder mergeDeployTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the deployment was deployed.
       
      .google.protobuf.Timestamp deploy_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDeployTime

      public ArtifactDeployment.Builder 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:
      getDeployTimeOrBuilder in interface ArtifactDeploymentOrBuilder
    • 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:
      hasUndeployTime in interface ArtifactDeploymentOrBuilder
      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:
      getUndeployTime in interface ArtifactDeploymentOrBuilder
      Returns:
      The undeployTime.
    • setUndeployTime

      public ArtifactDeployment.Builder setUndeployTime(com.google.protobuf.Timestamp value)
       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

      public ArtifactDeployment.Builder mergeUndeployTime(com.google.protobuf.Timestamp value)
       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

      public ArtifactDeployment.Builder 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:
      getUndeployTimeOrBuilder in interface ArtifactDeploymentOrBuilder
    • getContainerStatusSummary

      public String 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:
      getContainerStatusSummary in interface ArtifactDeploymentOrBuilder
      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:
      getContainerStatusSummaryBytes in interface ArtifactDeploymentOrBuilder
      Returns:
      The bytes for containerStatusSummary.
    • setContainerStatusSummary

      public ArtifactDeployment.Builder setContainerStatusSummary(String 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 containerStatusSummary to set.
      Returns:
      This builder for chaining.
    • clearContainerStatusSummary

      public ArtifactDeployment.Builder 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.