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()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticArtifacts.GoModule.BuildernewBuilder()
newBuilder(Artifacts.GoModule prototype)
publicstaticArtifacts.GoModule.BuildernewBuilder(Artifacts.GoModuleprototype)
publicstaticArtifacts.GoModuleparseDelimitedFrom(InputStreaminput)
publicstaticArtifacts.GoModuleparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticArtifacts.GoModuleparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticArtifacts.GoModuleparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticArtifacts.GoModuleparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticArtifacts.GoModuleparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticArtifacts.GoModuleparseFrom(CodedInputStreaminput)
publicstaticArtifacts.GoModuleparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticArtifacts.GoModuleparseFrom(InputStreaminput)
publicstaticArtifacts.GoModuleparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticArtifacts.GoModuleparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticArtifacts.GoModuleparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<Artifacts.GoModule>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicArtifacts.GoModulegetDefaultInstanceForType()
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()
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()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicArtifacts.GoModule.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedArtifacts.GoModule.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicArtifacts.GoModule.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides