Class Artifacts.GoModule (3.58.0)

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

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()
Returns
Type Description
Artifacts.GoModule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Artifacts.GoModule.Builder newBuilder()
Returns
Type Description
Artifacts.GoModule.Builder

newBuilder(Artifacts.GoModule prototype)

public static Artifacts.GoModule.Builder newBuilder(Artifacts.GoModule prototype)
Parameter
Name Description
prototype Artifacts.GoModule
Returns
Type Description
Artifacts.GoModule.Builder

parseDelimitedFrom(InputStream input)

public static Artifacts.GoModule parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Artifacts.GoModule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Artifacts.GoModule parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Artifacts.GoModule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Artifacts.GoModule parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Artifacts.GoModule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Artifacts.GoModule parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Artifacts.GoModule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Artifacts.GoModule parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Artifacts.GoModule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Artifacts.GoModule parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Artifacts.GoModule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Artifacts.GoModule
Exceptions
Type Description
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Artifacts.GoModule getDefaultInstanceForType()
Returns
Type Description
Artifacts.GoModule

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()
Returns
Type Description
Parser<GoModule>
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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Artifacts.GoModule.Builder newBuilderForType()
Returns
Type Description
Artifacts.GoModule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Artifacts.GoModule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Artifacts.GoModule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Artifacts.GoModule.Builder toBuilder()
Returns
Type Description
Artifacts.GoModule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException