Class Artifacts.GoModule

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloudbuild.v1.Artifacts.GoModule
All Implemented Interfaces:
Artifacts.GoModuleOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Artifacts

public static final class Artifacts.GoModule extends com.google.protobuf.GeneratedMessage implements Artifacts.GoModuleOrBuilder
 Go module to upload to Artifact Registry upon successful completion of all
 build steps. A module refers to all dependencies in a go.mod file.
 
Protobuf type google.devtools.cloudbuild.v1.Artifacts.GoModule
See Also:
  • Field Details

    • REPOSITORY_NAME_FIELD_NUMBER

      public static final int REPOSITORY_NAME_FIELD_NUMBER
      See Also:
    • REPOSITORY_LOCATION_FIELD_NUMBER

      public static final int REPOSITORY_LOCATION_FIELD_NUMBER
      See Also:
    • REPOSITORY_PROJECT_ID_FIELD_NUMBER

      public static final int REPOSITORY_PROJECT_ID_FIELD_NUMBER
      See Also:
    • SOURCE_PATH_FIELD_NUMBER

      public static final int SOURCE_PATH_FIELD_NUMBER
      See Also:
    • MODULE_PATH_FIELD_NUMBER

      public static final int MODULE_PATH_FIELD_NUMBER
      See Also:
    • MODULE_VERSION_FIELD_NUMBER

      public static final int MODULE_VERSION_FIELD_NUMBER
      See Also:
  • 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
    • getRepositoryName

      public String getRepositoryName()
       Optional. Artifact Registry repository name.
      
       Specified Go modules will be zipped and uploaded to Artifact Registry
       with this location as a prefix.
       e.g. my-go-repo
       
      string repository_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRepositoryName in interface Artifacts.GoModuleOrBuilder
      Returns:
      The repositoryName.
    • getRepositoryNameBytes

      public com.google.protobuf.ByteString getRepositoryNameBytes()
       Optional. Artifact Registry repository name.
      
       Specified Go modules will be zipped and uploaded to Artifact Registry
       with this location as a prefix.
       e.g. my-go-repo
       
      string repository_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRepositoryNameBytes in interface Artifacts.GoModuleOrBuilder
      Returns:
      The bytes for repositoryName.
    • getRepositoryLocation

      public String getRepositoryLocation()
       Optional. Location of the Artifact Registry repository. i.e. us-east1
       Defaults to the build’s location.
       
      string repository_location = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRepositoryLocation in interface Artifacts.GoModuleOrBuilder
      Returns:
      The repositoryLocation.
    • getRepositoryLocationBytes

      public com.google.protobuf.ByteString getRepositoryLocationBytes()
       Optional. Location of the Artifact Registry repository. i.e. us-east1
       Defaults to the build’s location.
       
      string repository_location = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRepositoryLocationBytes in interface Artifacts.GoModuleOrBuilder
      Returns:
      The bytes for repositoryLocation.
    • getRepositoryProjectId

      public String getRepositoryProjectId()
       Optional. Project ID of the Artifact Registry repository.
       Defaults to the build project.
       
      string repository_project_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRepositoryProjectId in interface Artifacts.GoModuleOrBuilder
      Returns:
      The repositoryProjectId.
    • getRepositoryProjectIdBytes

      public com.google.protobuf.ByteString getRepositoryProjectIdBytes()
       Optional. Project ID of the Artifact Registry repository.
       Defaults to the build project.
       
      string repository_project_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRepositoryProjectIdBytes in interface Artifacts.GoModuleOrBuilder
      Returns:
      The bytes for repositoryProjectId.
    • getSourcePath

      public String getSourcePath()
       Optional. Source path of the go.mod file in the build's workspace. If not
       specified, this will default to the current directory.
       e.g. ~/code/go/mypackage
       
      string source_path = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourcePath in interface Artifacts.GoModuleOrBuilder
      Returns:
      The sourcePath.
    • getSourcePathBytes

      public com.google.protobuf.ByteString getSourcePathBytes()
       Optional. Source path of the go.mod file in the build's workspace. If not
       specified, this will default to the current directory.
       e.g. ~/code/go/mypackage
       
      string source_path = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourcePathBytes in interface Artifacts.GoModuleOrBuilder
      Returns:
      The bytes for sourcePath.
    • getModulePath

      public String getModulePath()
       Optional. The Go module's "module path".
       e.g. example.com/foo/v2
       
      string module_path = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModulePath in interface Artifacts.GoModuleOrBuilder
      Returns:
      The modulePath.
    • getModulePathBytes

      public com.google.protobuf.ByteString getModulePathBytes()
       Optional. The Go module's "module path".
       e.g. example.com/foo/v2
       
      string module_path = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModulePathBytes in interface Artifacts.GoModuleOrBuilder
      Returns:
      The bytes for modulePath.
    • getModuleVersion

      public String getModuleVersion()
       Optional. The Go module's semantic version in the form vX.Y.Z. e.g.
       v0.1.1 Pre-release identifiers can also be added by appending a dash and
       dot separated ASCII alphanumeric characters and hyphens.
       e.g. v0.2.3-alpha.x.12m.5
       
      string module_version = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModuleVersion in interface Artifacts.GoModuleOrBuilder
      Returns:
      The moduleVersion.
    • getModuleVersionBytes

      public com.google.protobuf.ByteString getModuleVersionBytes()
       Optional. The Go module's semantic version in the form vX.Y.Z. e.g.
       v0.1.1 Pre-release identifiers can also be added by appending a dash and
       dot separated ASCII alphanumeric characters and hyphens.
       e.g. v0.2.3-alpha.x.12m.5
       
      string module_version = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModuleVersionBytes in interface Artifacts.GoModuleOrBuilder
      Returns:
      The bytes for moduleVersion.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Artifacts.GoModule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifacts.GoModule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifacts.GoModule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifacts.GoModule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifacts.GoModule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifacts.GoModule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Artifacts.GoModule parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Artifacts.GoModule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Artifacts.GoModule parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Artifacts.GoModule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Artifacts.GoModule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Artifacts.GoModule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Artifacts.GoModule.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Artifacts.GoModule.Builder newBuilder()
    • newBuilder

      public static Artifacts.GoModule.Builder newBuilder(Artifacts.GoModule prototype)
    • toBuilder

      public Artifacts.GoModule.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Artifacts.GoModule.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Artifacts.GoModule getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Artifacts.GoModule> parser()
    • getParserForType

      public com.google.protobuf.Parser<Artifacts.GoModule> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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