Class Artifacts.MavenArtifact.Builder

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

public static final class Artifacts.MavenArtifact.Builder extends com.google.protobuf.GeneratedMessage.Builder<Artifacts.MavenArtifact.Builder> implements Artifacts.MavenArtifactOrBuilder
 A Maven artifact to upload to Artifact Registry upon successful completion
 of all build steps.
 
Protobuf type google.devtools.cloudbuild.v1.Artifacts.MavenArtifact
  • 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<Artifacts.MavenArtifact.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<Artifacts.MavenArtifact.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<Artifacts.MavenArtifact.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Artifacts.MavenArtifact.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<Artifacts.MavenArtifact.Builder>
      Throws:
      IOException
    • getRepository

      public String getRepository()
       Artifact Registry repository, in the form
       "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"
      
       Artifact in the workspace specified by path will be uploaded to
       Artifact Registry with this location as a prefix.
       
      string repository = 1;
      Specified by:
      getRepository in interface Artifacts.MavenArtifactOrBuilder
      Returns:
      The repository.
    • getRepositoryBytes

      public com.google.protobuf.ByteString getRepositoryBytes()
       Artifact Registry repository, in the form
       "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"
      
       Artifact in the workspace specified by path will be uploaded to
       Artifact Registry with this location as a prefix.
       
      string repository = 1;
      Specified by:
      getRepositoryBytes in interface Artifacts.MavenArtifactOrBuilder
      Returns:
      The bytes for repository.
    • setRepository

      public Artifacts.MavenArtifact.Builder setRepository(String value)
       Artifact Registry repository, in the form
       "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"
      
       Artifact in the workspace specified by path will be uploaded to
       Artifact Registry with this location as a prefix.
       
      string repository = 1;
      Parameters:
      value - The repository to set.
      Returns:
      This builder for chaining.
    • clearRepository

      public Artifacts.MavenArtifact.Builder clearRepository()
       Artifact Registry repository, in the form
       "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"
      
       Artifact in the workspace specified by path will be uploaded to
       Artifact Registry with this location as a prefix.
       
      string repository = 1;
      Returns:
      This builder for chaining.
    • setRepositoryBytes

      public Artifacts.MavenArtifact.Builder setRepositoryBytes(com.google.protobuf.ByteString value)
       Artifact Registry repository, in the form
       "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"
      
       Artifact in the workspace specified by path will be uploaded to
       Artifact Registry with this location as a prefix.
       
      string repository = 1;
      Parameters:
      value - The bytes for repository to set.
      Returns:
      This builder for chaining.
    • getPath

      public String getPath()
       Optional. Path to an artifact in the build's workspace to be uploaded to
       Artifact Registry.
       This can be either an absolute path,
       e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
       or a relative path from /workspace,
       e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
       
      string path = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPath in interface Artifacts.MavenArtifactOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Optional. Path to an artifact in the build's workspace to be uploaded to
       Artifact Registry.
       This can be either an absolute path,
       e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
       or a relative path from /workspace,
       e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
       
      string path = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPathBytes in interface Artifacts.MavenArtifactOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public Artifacts.MavenArtifact.Builder setPath(String value)
       Optional. Path to an artifact in the build's workspace to be uploaded to
       Artifact Registry.
       This can be either an absolute path,
       e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
       or a relative path from /workspace,
       e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
       
      string path = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public Artifacts.MavenArtifact.Builder clearPath()
       Optional. Path to an artifact in the build's workspace to be uploaded to
       Artifact Registry.
       This can be either an absolute path,
       e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
       or a relative path from /workspace,
       e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
       
      string path = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPathBytes

      public Artifacts.MavenArtifact.Builder setPathBytes(com.google.protobuf.ByteString value)
       Optional. Path to an artifact in the build's workspace to be uploaded to
       Artifact Registry.
       This can be either an absolute path,
       e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
       or a relative path from /workspace,
       e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
       
      string path = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • getArtifactId

      public String getArtifactId()
       Maven `artifactId` value used when uploading the artifact to Artifact
       Registry.
       
      string artifact_id = 3;
      Specified by:
      getArtifactId in interface Artifacts.MavenArtifactOrBuilder
      Returns:
      The artifactId.
    • getArtifactIdBytes

      public com.google.protobuf.ByteString getArtifactIdBytes()
       Maven `artifactId` value used when uploading the artifact to Artifact
       Registry.
       
      string artifact_id = 3;
      Specified by:
      getArtifactIdBytes in interface Artifacts.MavenArtifactOrBuilder
      Returns:
      The bytes for artifactId.
    • setArtifactId

      public Artifacts.MavenArtifact.Builder setArtifactId(String value)
       Maven `artifactId` value used when uploading the artifact to Artifact
       Registry.
       
      string artifact_id = 3;
      Parameters:
      value - The artifactId to set.
      Returns:
      This builder for chaining.
    • clearArtifactId

      public Artifacts.MavenArtifact.Builder clearArtifactId()
       Maven `artifactId` value used when uploading the artifact to Artifact
       Registry.
       
      string artifact_id = 3;
      Returns:
      This builder for chaining.
    • setArtifactIdBytes

      public Artifacts.MavenArtifact.Builder setArtifactIdBytes(com.google.protobuf.ByteString value)
       Maven `artifactId` value used when uploading the artifact to Artifact
       Registry.
       
      string artifact_id = 3;
      Parameters:
      value - The bytes for artifactId to set.
      Returns:
      This builder for chaining.
    • getGroupId

      public String getGroupId()
       Maven `groupId` value used when uploading the artifact to Artifact
       Registry.
       
      string group_id = 4;
      Specified by:
      getGroupId in interface Artifacts.MavenArtifactOrBuilder
      Returns:
      The groupId.
    • getGroupIdBytes

      public com.google.protobuf.ByteString getGroupIdBytes()
       Maven `groupId` value used when uploading the artifact to Artifact
       Registry.
       
      string group_id = 4;
      Specified by:
      getGroupIdBytes in interface Artifacts.MavenArtifactOrBuilder
      Returns:
      The bytes for groupId.
    • setGroupId

      public Artifacts.MavenArtifact.Builder setGroupId(String value)
       Maven `groupId` value used when uploading the artifact to Artifact
       Registry.
       
      string group_id = 4;
      Parameters:
      value - The groupId to set.
      Returns:
      This builder for chaining.
    • clearGroupId

      public Artifacts.MavenArtifact.Builder clearGroupId()
       Maven `groupId` value used when uploading the artifact to Artifact
       Registry.
       
      string group_id = 4;
      Returns:
      This builder for chaining.
    • setGroupIdBytes

      public Artifacts.MavenArtifact.Builder setGroupIdBytes(com.google.protobuf.ByteString value)
       Maven `groupId` value used when uploading the artifact to Artifact
       Registry.
       
      string group_id = 4;
      Parameters:
      value - The bytes for groupId to set.
      Returns:
      This builder for chaining.
    • getVersion

      public String getVersion()
       Maven `version` value used when uploading the artifact to Artifact
       Registry.
       
      string version = 5;
      Specified by:
      getVersion in interface Artifacts.MavenArtifactOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       Maven `version` value used when uploading the artifact to Artifact
       Registry.
       
      string version = 5;
      Specified by:
      getVersionBytes in interface Artifacts.MavenArtifactOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public Artifacts.MavenArtifact.Builder setVersion(String value)
       Maven `version` value used when uploading the artifact to Artifact
       Registry.
       
      string version = 5;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public Artifacts.MavenArtifact.Builder clearVersion()
       Maven `version` value used when uploading the artifact to Artifact
       Registry.
       
      string version = 5;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public Artifacts.MavenArtifact.Builder setVersionBytes(com.google.protobuf.ByteString value)
       Maven `version` value used when uploading the artifact to Artifact
       Registry.
       
      string version = 5;
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.