Class Artifacts.GoModule (3.78.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.78.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  Artifacts . GoModule   extends   GeneratedMessageV3   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
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  MODULE_PATH_FIELD_NUMBER 
  
    
public   static   final   int   MODULE_PATH_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  MODULE_VERSION_FIELD_NUMBER 
  
    
public   static   final   int   MODULE_VERSION_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  REPOSITORY_LOCATION_FIELD_NUMBER 
  
    
public   static   final   int   REPOSITORY_LOCATION_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  REPOSITORY_NAME_FIELD_NUMBER 
  
    
public   static   final   int   REPOSITORY_NAME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  REPOSITORY_PROJECT_ID_FIELD_NUMBER 
  
    
public   static   final   int   REPOSITORY_PROJECT_ID_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  SOURCE_PATH_FIELD_NUMBER 
  
    
public   static   final   int   SOURCE_PATH_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   Artifacts . GoModule   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   Artifacts . GoModule . Builder   newBuilder ()  
  
  newBuilder(Artifacts.GoModule prototype) 
  
    
public   static   Artifacts . GoModule . Builder   newBuilder ( Artifacts . GoModule   prototype )  
  
  
  
    
public   static   Artifacts . GoModule   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   Artifacts . GoModule   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   Artifacts . GoModule   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Artifacts . GoModule   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   Artifacts . GoModule   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Artifacts . GoModule   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Artifacts . GoModule   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   Artifacts . GoModule   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Artifacts . GoModule   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   Artifacts . GoModule   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   Artifacts . GoModule   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Artifacts . GoModule   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<Artifacts . GoModule >  parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   Artifacts . GoModule   getDefaultInstanceForType ()  
  
  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];
    
      
        Returns  
      
        Type Description  
      
        String The modulePath.
 
     
  
  getModulePathBytes() 
  
    
public   ByteString   getModulePathBytes ()  
   Optional. The Go module's "module path".
 e.g. example.com/foo/v2
 string module_path = 5 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        ByteString 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];
    
      
        Returns  
      
        Type Description  
      
        String The moduleVersion.
 
     
  
  getModuleVersionBytes() 
  
    
public   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];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for moduleVersion.
 
     
  
  getParserForType() 
  
    
public   Parser<Artifacts . GoModule >  getParserForType ()  
  
  Overrides 
  
  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];
    
      
        Returns  
      
        Type Description  
      
        String The repositoryLocation.
 
     
  
  getRepositoryLocationBytes() 
  
    
public   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];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for repositoryLocation.
 
     
  
  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];
    
      
        Returns  
      
        Type Description  
      
        String The repositoryName.
 
     
  
  getRepositoryNameBytes() 
  
    
public   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];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for repositoryName.
 
     
  
  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];
    
      
        Returns  
      
        Type Description  
      
        String The repositoryProjectId.
 
     
  
  getRepositoryProjectIdBytes() 
  
    
public   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];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for repositoryProjectId.
 
     
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  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];
    
      
        Returns  
      
        Type Description  
      
        String The sourcePath.
 
     
  
  getSourcePathBytes() 
  
    
public   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];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for sourcePath.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   Artifacts . GoModule . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Artifacts . GoModule . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   Artifacts . GoModule . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-28 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]