Package com.google.cloudbuild.v1
Class Artifacts.MavenArtifact.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Artifacts.MavenArtifact.Builder>
com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder
- All Implemented Interfaces:
Artifacts.MavenArtifactOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Artifacts.MavenArtifact
public static final class Artifacts.MavenArtifact.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Artifacts.MavenArtifact.Builder>
implements Artifacts.MavenArtifactOrBuilder
A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.Protobuf type
google.devtools.cloudbuild.v1.Artifacts.MavenArtifact-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Maven `artifactId` value used when uploading the artifact to Artifact Registry.Maven `groupId` value used when uploading the artifact to Artifact Registry.Optional.Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.Maven `version` value used when uploading the artifact to Artifact Registry.Maven `artifactId` value used when uploading the artifact to Artifact Registry.com.google.protobuf.ByteStringMaven `artifactId` value used when uploading the artifact to Artifact Registry.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorMaven `groupId` value used when uploading the artifact to Artifact Registry.com.google.protobuf.ByteStringMaven `groupId` value used when uploading the artifact to Artifact Registry.getPath()Optional.com.google.protobuf.ByteStringOptional.Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.com.google.protobuf.ByteStringArtifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.Maven `version` value used when uploading the artifact to Artifact Registry.com.google.protobuf.ByteStringMaven `version` value used when uploading the artifact to Artifact Registry.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Artifacts.MavenArtifact other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setArtifactId(String value) Maven `artifactId` value used when uploading the artifact to Artifact Registry.setArtifactIdBytes(com.google.protobuf.ByteString value) Maven `artifactId` value used when uploading the artifact to Artifact Registry.setGroupId(String value) Maven `groupId` value used when uploading the artifact to Artifact Registry.setGroupIdBytes(com.google.protobuf.ByteString value) Maven `groupId` value used when uploading the artifact to Artifact Registry.Optional.setPathBytes(com.google.protobuf.ByteString value) Optional.setRepository(String value) Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.setRepositoryBytes(com.google.protobuf.ByteString value) Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.setVersion(String value) Maven `version` value used when uploading the artifact to Artifact Registry.setVersionBytes(com.google.protobuf.ByteString value) Maven `version` value used when uploading the artifact to Artifact Registry.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.MavenArtifact.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.MavenArtifact.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.MavenArtifact.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.MavenArtifact.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Artifacts.MavenArtifact.Builder>
-
mergeFrom
public Artifacts.MavenArtifact.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.MavenArtifact.Builder>- Throws:
IOException
-
getRepository
Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.
string repository = 1;- Specified by:
getRepositoryin interfaceArtifacts.MavenArtifactOrBuilder- Returns:
- The repository.
-
getRepositoryBytes
public com.google.protobuf.ByteString getRepositoryBytes()Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.
string repository = 1;- Specified by:
getRepositoryBytesin interfaceArtifacts.MavenArtifactOrBuilder- Returns:
- The bytes for repository.
-
setRepository
Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.
string repository = 1;- Parameters:
value- The repository to set.- Returns:
- This builder for chaining.
-
clearRepository
Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.
string repository = 1;- Returns:
- This builder for chaining.
-
setRepositoryBytes
Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.
string repository = 1;- Parameters:
value- The bytes for repository to set.- Returns:
- This builder for chaining.
-
getPath
Optional. Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
string path = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPathin interfaceArtifacts.MavenArtifactOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()Optional. Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
string path = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPathBytesin interfaceArtifacts.MavenArtifactOrBuilder- Returns:
- The bytes for path.
-
setPath
Optional. Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
string path = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
Optional. Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
string path = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setPathBytes
Optional. Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
string path = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
getArtifactId
Maven `artifactId` value used when uploading the artifact to Artifact Registry.
string artifact_id = 3;- Specified by:
getArtifactIdin interfaceArtifacts.MavenArtifactOrBuilder- Returns:
- The artifactId.
-
getArtifactIdBytes
public com.google.protobuf.ByteString getArtifactIdBytes()Maven `artifactId` value used when uploading the artifact to Artifact Registry.
string artifact_id = 3;- Specified by:
getArtifactIdBytesin interfaceArtifacts.MavenArtifactOrBuilder- Returns:
- The bytes for artifactId.
-
setArtifactId
Maven `artifactId` value used when uploading the artifact to Artifact Registry.
string artifact_id = 3;- Parameters:
value- The artifactId to set.- Returns:
- This builder for chaining.
-
clearArtifactId
Maven `artifactId` value used when uploading the artifact to Artifact Registry.
string artifact_id = 3;- Returns:
- This builder for chaining.
-
setArtifactIdBytes
Maven `artifactId` value used when uploading the artifact to Artifact Registry.
string artifact_id = 3;- Parameters:
value- The bytes for artifactId to set.- Returns:
- This builder for chaining.
-
getGroupId
Maven `groupId` value used when uploading the artifact to Artifact Registry.
string group_id = 4;- Specified by:
getGroupIdin interfaceArtifacts.MavenArtifactOrBuilder- Returns:
- The groupId.
-
getGroupIdBytes
public com.google.protobuf.ByteString getGroupIdBytes()Maven `groupId` value used when uploading the artifact to Artifact Registry.
string group_id = 4;- Specified by:
getGroupIdBytesin interfaceArtifacts.MavenArtifactOrBuilder- Returns:
- The bytes for groupId.
-
setGroupId
Maven `groupId` value used when uploading the artifact to Artifact Registry.
string group_id = 4;- Parameters:
value- The groupId to set.- Returns:
- This builder for chaining.
-
clearGroupId
Maven `groupId` value used when uploading the artifact to Artifact Registry.
string group_id = 4;- Returns:
- This builder for chaining.
-
setGroupIdBytes
Maven `groupId` value used when uploading the artifact to Artifact Registry.
string group_id = 4;- Parameters:
value- The bytes for groupId to set.- Returns:
- This builder for chaining.
-
getVersion
Maven `version` value used when uploading the artifact to Artifact Registry.
string version = 5;- Specified by:
getVersionin interfaceArtifacts.MavenArtifactOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()Maven `version` value used when uploading the artifact to Artifact Registry.
string version = 5;- Specified by:
getVersionBytesin interfaceArtifacts.MavenArtifactOrBuilder- Returns:
- The bytes for version.
-
setVersion
Maven `version` value used when uploading the artifact to Artifact Registry.
string version = 5;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
Maven `version` value used when uploading the artifact to Artifact Registry.
string version = 5;- Returns:
- This builder for chaining.
-
setVersionBytes
Maven `version` value used when uploading the artifact to Artifact Registry.
string version = 5;- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-