Class Artifacts.GoModule (3.70.0)

publicstaticfinalclass Artifacts.GoModuleextendsGeneratedMessageV3implementsArtifacts.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

publicstaticfinalintMODULE_PATH_FIELD_NUMBER
Field Value
Type Description
int

MODULE_VERSION_FIELD_NUMBER

publicstaticfinalintMODULE_VERSION_FIELD_NUMBER
Field Value
Type Description
int

REPOSITORY_LOCATION_FIELD_NUMBER

publicstaticfinalintREPOSITORY_LOCATION_FIELD_NUMBER
Field Value
Type Description
int

REPOSITORY_NAME_FIELD_NUMBER

publicstaticfinalintREPOSITORY_NAME_FIELD_NUMBER
Field Value
Type Description
int

REPOSITORY_PROJECT_ID_FIELD_NUMBER

publicstaticfinalintREPOSITORY_PROJECT_ID_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_PATH_FIELD_NUMBER

publicstaticfinalintSOURCE_PATH_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticArtifacts.GoModulegetDefaultInstance()
Returns
Type Description
Artifacts.GoModule

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticArtifacts.GoModule.BuildernewBuilder()
Returns
Type Description
Artifacts.GoModule.Builder

newBuilder(Artifacts.GoModule prototype)

publicstaticArtifacts.GoModule.BuildernewBuilder(Artifacts.GoModuleprototype)
Parameter
Name Description
prototype Artifacts.GoModule
Returns
Type Description
Artifacts.GoModule.Builder

parseDelimitedFrom(InputStream input)

publicstaticArtifacts.GoModuleparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticArtifacts.GoModuleparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticArtifacts.GoModuleparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticArtifacts.GoModuleparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticArtifacts.GoModuleparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticArtifacts.GoModuleparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticArtifacts.GoModuleparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticArtifacts.GoModuleparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticArtifacts.GoModuleparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticArtifacts.GoModuleparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticArtifacts.GoModuleparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticArtifacts.GoModuleparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<Artifacts.GoModule>parser()
Returns
Type Description
Parser<GoModule>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicArtifacts.GoModulegetDefaultInstanceForType()
Returns
Type Description
Artifacts.GoModule

getModulePath()

publicStringgetModulePath()

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()

publicByteStringgetModulePathBytes()

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()

publicStringgetModuleVersion()

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()

publicByteStringgetModuleVersionBytes()

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()

publicParser<Artifacts.GoModule>getParserForType()
Returns
Type Description
Parser<GoModule>
Overrides

getRepositoryLocation()

publicStringgetRepositoryLocation()

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()

publicByteStringgetRepositoryLocationBytes()

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()

publicStringgetRepositoryName()

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()

publicByteStringgetRepositoryNameBytes()

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()

publicStringgetRepositoryProjectId()

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()

publicByteStringgetRepositoryProjectIdBytes()

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()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSourcePath()

publicStringgetSourcePath()

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()

publicByteStringgetSourcePathBytes()

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()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicArtifacts.GoModule.BuildernewBuilderForType()
Returns
Type Description
Artifacts.GoModule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedArtifacts.GoModule.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Artifacts.GoModule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicArtifacts.GoModule.BuildertoBuilder()
Returns
Type Description
Artifacts.GoModule.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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年11月19日 UTC.