Package com.google.cloudbuild.v1
Interface Artifacts.GoModuleOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Artifacts.GoModule,Artifacts.GoModule.Builder
- Enclosing class:
- Artifacts
public static interface Artifacts.GoModuleOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getRepositoryName
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:
- The repositoryName.
-
getRepositoryNameBytes
com.google.protobuf.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:
- The bytes for repositoryName.
-
getRepositoryLocation
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:
- The repositoryLocation.
-
getRepositoryLocationBytes
com.google.protobuf.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:
- The bytes for repositoryLocation.
-
getRepositoryProjectId
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:
- The repositoryProjectId.
-
getRepositoryProjectIdBytes
com.google.protobuf.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:
- The bytes for repositoryProjectId.
-
getSourcePath
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:
- The sourcePath.
-
getSourcePathBytes
com.google.protobuf.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:
- The bytes for sourcePath.
-
getModulePath
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:
- The modulePath.
-
getModulePathBytes
com.google.protobuf.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:
- The bytes for modulePath.
-
getModuleVersion
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:
- The moduleVersion.
-
getModuleVersionBytes
com.google.protobuf.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:
- The bytes for moduleVersion.
-