public sealed class Artifacts.Types.GoModule : IMessage<Artifacts.Types.GoModule>, IEquatable<Artifacts.Types.GoModule>, IDeepCloneable<Artifacts.Types.GoModule>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v1 API class Artifacts.Types.GoModule.
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.
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
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
[[["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-08-19 UTC."],[[["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003eArtifacts.Types.GoModule\u003c/code\u003e class within the Google Cloud Build v1 API, detailing its implementation and usage in .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGoModule\u003c/code\u003e class allows uploading Go modules to Artifact Registry upon successful completion of build steps, managing dependencies from a \u003ccode\u003ego.mod\u003c/code\u003e file.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the Cloud Build API for \u003ccode\u003eGoModule\u003c/code\u003e is 2.15.0, but this specific page is related to version 2.14.0, and previous versions ranging down to 1.0.0 are also accessible.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eGoModule\u003c/code\u003e class include \u003ccode\u003eModulePath\u003c/code\u003e, \u003ccode\u003eModuleVersion\u003c/code\u003e, \u003ccode\u003eRepositoryLocation\u003c/code\u003e, \u003ccode\u003eRepositoryName\u003c/code\u003e, \u003ccode\u003eRepositoryProjectId\u003c/code\u003e, and \u003ccode\u003eSourcePath\u003c/code\u003e, which define various aspects of the Go module and its repository.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGoModule\u003c/code\u003e class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and is constructed using the methods \u003ccode\u003eGoModule()\u003c/code\u003e and \u003ccode\u003eGoModule(Artifacts.Types.GoModule other)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]