Class BuiltImage.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuiltImage.Builder>
com.google.cloudbuild.v1.BuiltImage.Builder
All Implemented Interfaces:
BuiltImageOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BuiltImage

public static final class BuiltImage.Builder extends com.google.protobuf.GeneratedMessage.Builder<BuiltImage.Builder> implements BuiltImageOrBuilder
 An image built by the pipeline.
 
Protobuf type google.devtools.cloudbuild.v1.BuiltImage
  • 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<BuiltImage.Builder>
    • clear

      public BuiltImage.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<BuiltImage.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<BuiltImage.Builder>
    • getDefaultInstanceForType

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

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

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

      public BuiltImage.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<BuiltImage.Builder>
    • mergeFrom

      public BuiltImage.Builder mergeFrom(BuiltImage other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<BuiltImage.Builder>
    • mergeFrom

      public BuiltImage.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<BuiltImage.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Name used to push the container image to Google Container Registry, as
       presented to `docker push`.
       
      string name = 1;
      Specified by:
      getName in interface BuiltImageOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name used to push the container image to Google Container Registry, as
       presented to `docker push`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface BuiltImageOrBuilder
      Returns:
      The bytes for name.
    • setName

      public BuiltImage.Builder setName(String value)
       Name used to push the container image to Google Container Registry, as
       presented to `docker push`.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public BuiltImage.Builder clearName()
       Name used to push the container image to Google Container Registry, as
       presented to `docker push`.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public BuiltImage.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name used to push the container image to Google Container Registry, as
       presented to `docker push`.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDigest

      public String getDigest()
       Docker Registry 2.0 digest.
       
      string digest = 3;
      Specified by:
      getDigest in interface BuiltImageOrBuilder
      Returns:
      The digest.
    • getDigestBytes

      public com.google.protobuf.ByteString getDigestBytes()
       Docker Registry 2.0 digest.
       
      string digest = 3;
      Specified by:
      getDigestBytes in interface BuiltImageOrBuilder
      Returns:
      The bytes for digest.
    • setDigest

      public BuiltImage.Builder setDigest(String value)
       Docker Registry 2.0 digest.
       
      string digest = 3;
      Parameters:
      value - The digest to set.
      Returns:
      This builder for chaining.
    • clearDigest

      public BuiltImage.Builder clearDigest()
       Docker Registry 2.0 digest.
       
      string digest = 3;
      Returns:
      This builder for chaining.
    • setDigestBytes

      public BuiltImage.Builder setDigestBytes(com.google.protobuf.ByteString value)
       Docker Registry 2.0 digest.
       
      string digest = 3;
      Parameters:
      value - The bytes for digest to set.
      Returns:
      This builder for chaining.
    • hasPushTiming

      public boolean hasPushTiming()
       Output only. Stores timing information for pushing the specified image.
       
      .google.devtools.cloudbuild.v1.TimeSpan push_timing = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPushTiming in interface BuiltImageOrBuilder
      Returns:
      Whether the pushTiming field is set.
    • getPushTiming

      public TimeSpan getPushTiming()
       Output only. Stores timing information for pushing the specified image.
       
      .google.devtools.cloudbuild.v1.TimeSpan push_timing = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPushTiming in interface BuiltImageOrBuilder
      Returns:
      The pushTiming.
    • setPushTiming

      public BuiltImage.Builder setPushTiming(TimeSpan value)
       Output only. Stores timing information for pushing the specified image.
       
      .google.devtools.cloudbuild.v1.TimeSpan push_timing = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setPushTiming

      public BuiltImage.Builder setPushTiming(TimeSpan.Builder builderForValue)
       Output only. Stores timing information for pushing the specified image.
       
      .google.devtools.cloudbuild.v1.TimeSpan push_timing = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergePushTiming

      public BuiltImage.Builder mergePushTiming(TimeSpan value)
       Output only. Stores timing information for pushing the specified image.
       
      .google.devtools.cloudbuild.v1.TimeSpan push_timing = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearPushTiming

      public BuiltImage.Builder clearPushTiming()
       Output only. Stores timing information for pushing the specified image.
       
      .google.devtools.cloudbuild.v1.TimeSpan push_timing = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPushTimingBuilder

      public TimeSpan.Builder getPushTimingBuilder()
       Output only. Stores timing information for pushing the specified image.
       
      .google.devtools.cloudbuild.v1.TimeSpan push_timing = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPushTimingOrBuilder

      public TimeSpanOrBuilder getPushTimingOrBuilder()
       Output only. Stores timing information for pushing the specified image.
       
      .google.devtools.cloudbuild.v1.TimeSpan push_timing = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPushTimingOrBuilder in interface BuiltImageOrBuilder
    • getArtifactRegistryPackage

      public String getArtifactRegistryPackage()
       Output only. Path to the artifact in Artifact Registry.
       
      string artifact_registry_package = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getArtifactRegistryPackage in interface BuiltImageOrBuilder
      Returns:
      The artifactRegistryPackage.
    • getArtifactRegistryPackageBytes

      public com.google.protobuf.ByteString getArtifactRegistryPackageBytes()
       Output only. Path to the artifact in Artifact Registry.
       
      string artifact_registry_package = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getArtifactRegistryPackageBytes in interface BuiltImageOrBuilder
      Returns:
      The bytes for artifactRegistryPackage.
    • setArtifactRegistryPackage

      public BuiltImage.Builder setArtifactRegistryPackage(String value)
       Output only. Path to the artifact in Artifact Registry.
       
      string artifact_registry_package = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The artifactRegistryPackage to set.
      Returns:
      This builder for chaining.
    • clearArtifactRegistryPackage

      public BuiltImage.Builder clearArtifactRegistryPackage()
       Output only. Path to the artifact in Artifact Registry.
       
      string artifact_registry_package = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setArtifactRegistryPackageBytes

      public BuiltImage.Builder setArtifactRegistryPackageBytes(com.google.protobuf.ByteString value)
       Output only. Path to the artifact in Artifact Registry.
       
      string artifact_registry_package = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for artifactRegistryPackage to set.
      Returns:
      This builder for chaining.