Package com.google.cloudbuild.v1
Class Artifacts.GoModule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Artifacts.GoModule.Builder>
com.google.cloudbuild.v1.Artifacts.GoModule.Builder
- All Implemented Interfaces:
Artifacts.GoModuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Artifacts.GoModule
public static final class Artifacts.GoModule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Artifacts.GoModule.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Artifacts.GoModule other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setModulePath(String value) Optional.setModulePathBytes(com.google.protobuf.ByteString value) Optional.setModuleVersion(String value) Optional.setModuleVersionBytes(com.google.protobuf.ByteString value) Optional.setRepositoryLocation(String value) Optional.setRepositoryLocationBytes(com.google.protobuf.ByteString value) Optional.setRepositoryName(String value) Optional.setRepositoryNameBytes(com.google.protobuf.ByteString value) Optional.setRepositoryProjectId(String value) Optional.setRepositoryProjectIdBytes(com.google.protobuf.ByteString value) Optional.setSourcePath(String value) Optional.setSourcePathBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Artifacts.GoModule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Artifacts.GoModule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Artifacts.GoModule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Artifacts.GoModule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Artifacts.GoModule.Builder>
-
mergeFrom
public Artifacts.GoModule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Artifacts.GoModule.Builder>- Throws:
IOException
-
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];- Specified by:
getRepositoryNamein interfaceArtifacts.GoModuleOrBuilder- Returns:
- The repositoryName.
-
getRepositoryNameBytes
public 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];- Specified by:
getRepositoryNameBytesin interfaceArtifacts.GoModuleOrBuilder- Returns:
- The bytes for repositoryName.
-
setRepositoryName
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];- Parameters:
value- The repositoryName to set.- Returns:
- This builder for chaining.
-
clearRepositoryName
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:
- This builder for chaining.
-
setRepositoryNameBytes
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];- Parameters:
value- The bytes for repositoryName to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getRepositoryLocationin interfaceArtifacts.GoModuleOrBuilder- Returns:
- The repositoryLocation.
-
getRepositoryLocationBytes
public 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];- Specified by:
getRepositoryLocationBytesin interfaceArtifacts.GoModuleOrBuilder- Returns:
- The bytes for repositoryLocation.
-
setRepositoryLocation
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];- Parameters:
value- The repositoryLocation to set.- Returns:
- This builder for chaining.
-
clearRepositoryLocation
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:
- This builder for chaining.
-
setRepositoryLocationBytes
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];- Parameters:
value- The bytes for repositoryLocation to set.- Returns:
- This builder for chaining.
-
getRepositoryProjectId
Optional. Project ID of the Artifact Registry repository. Defaults to the build project.
string repository_project_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRepositoryProjectIdin interfaceArtifacts.GoModuleOrBuilder- Returns:
- The repositoryProjectId.
-
getRepositoryProjectIdBytes
public 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];- Specified by:
getRepositoryProjectIdBytesin interfaceArtifacts.GoModuleOrBuilder- Returns:
- The bytes for repositoryProjectId.
-
setRepositoryProjectId
Optional. Project ID of the Artifact Registry repository. Defaults to the build project.
string repository_project_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The repositoryProjectId to set.- Returns:
- This builder for chaining.
-
clearRepositoryProjectId
Optional. Project ID of the Artifact Registry repository. Defaults to the build project.
string repository_project_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setRepositoryProjectIdBytes
Optional. Project ID of the Artifact Registry repository. Defaults to the build project.
string repository_project_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for repositoryProjectId to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getSourcePathin interfaceArtifacts.GoModuleOrBuilder- Returns:
- The sourcePath.
-
getSourcePathBytes
public 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];- Specified by:
getSourcePathBytesin interfaceArtifacts.GoModuleOrBuilder- Returns:
- The bytes for sourcePath.
-
setSourcePath
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];- Parameters:
value- The sourcePath to set.- Returns:
- This builder for chaining.
-
clearSourcePath
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:
- This builder for chaining.
-
setSourcePathBytes
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];- Parameters:
value- The bytes for sourcePath to set.- Returns:
- This builder for chaining.
-
getModulePath
Optional. The Go module's "module path". e.g. example.com/foo/v2
string module_path = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModulePathin interfaceArtifacts.GoModuleOrBuilder- Returns:
- The modulePath.
-
getModulePathBytes
public 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];- Specified by:
getModulePathBytesin interfaceArtifacts.GoModuleOrBuilder- Returns:
- The bytes for modulePath.
-
setModulePath
Optional. The Go module's "module path". e.g. example.com/foo/v2
string module_path = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The modulePath to set.- Returns:
- This builder for chaining.
-
clearModulePath
Optional. The Go module's "module path". e.g. example.com/foo/v2
string module_path = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setModulePathBytes
Optional. The Go module's "module path". e.g. example.com/foo/v2
string module_path = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for modulePath to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getModuleVersionin interfaceArtifacts.GoModuleOrBuilder- Returns:
- The moduleVersion.
-
getModuleVersionBytes
public 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];- Specified by:
getModuleVersionBytesin interfaceArtifacts.GoModuleOrBuilder- Returns:
- The bytes for moduleVersion.
-
setModuleVersion
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];- Parameters:
value- The moduleVersion to set.- Returns:
- This builder for chaining.
-
clearModuleVersion
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:
- This builder for chaining.
-
setModuleVersionBytes
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];- Parameters:
value- The bytes for moduleVersion to set.- Returns:
- This builder for chaining.
-