diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Artifacts.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Artifacts.java index 3e83f04949df..c76fb7a37a12 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Artifacts.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Artifacts.java @@ -40,6 +40,8 @@ private Artifacts(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Artifacts() { images_ = com.google.protobuf.LazyStringArrayList.EMPTY; + mavenArtifacts_ = java.util.Collections.emptyList(); + pythonPackages_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -1388,998 +1390,4792 @@ public com.google.cloudbuild.v1.Artifacts.ArtifactObjects getDefaultInstanceForT } } - public static final int IMAGES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList images_; - /** - * - * - *
-   * A list of images to be pushed upon the successful completion of all build
-   * steps.
-   * The images will be pushed using the builder service account's credentials.
-   * The digests of the pushed images will be stored in the Build resource's
-   * results field.
-   * If any of the images fail to be pushed, the build is marked FAILURE.
-   * 
- * - * repeated string images = 1; - * - * @return A list containing the images. - */ - public com.google.protobuf.ProtocolStringList getImagesList() { - return images_; - } - /** - * - * - *
-   * A list of images to be pushed upon the successful completion of all build
-   * steps.
-   * The images will be pushed using the builder service account's credentials.
-   * The digests of the pushed images will be stored in the Build resource's
-   * results field.
-   * If any of the images fail to be pushed, the build is marked FAILURE.
-   * 
- * - * repeated string images = 1; - * - * @return The count of images. - */ - public int getImagesCount() { - return images_.size(); - } - /** - * - * - *
-   * A list of images to be pushed upon the successful completion of all build
-   * steps.
-   * The images will be pushed using the builder service account's credentials.
-   * The digests of the pushed images will be stored in the Build resource's
-   * results field.
-   * If any of the images fail to be pushed, the build is marked FAILURE.
-   * 
- * - * repeated string images = 1; - * - * @param index The index of the element to return. - * @return The images at the given index. - */ - public java.lang.String getImages(int index) { - return images_.get(index); - } - /** - * - * - *
-   * A list of images to be pushed upon the successful completion of all build
-   * steps.
-   * The images will be pushed using the builder service account's credentials.
-   * The digests of the pushed images will be stored in the Build resource's
-   * results field.
-   * If any of the images fail to be pushed, the build is marked FAILURE.
-   * 
- * - * repeated string images = 1; - * - * @param index The index of the value to return. - * @return The bytes of the images at the given index. - */ - public com.google.protobuf.ByteString getImagesBytes(int index) { - return images_.getByteString(index); - } + public interface MavenArtifactOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.Artifacts.MavenArtifact) + com.google.protobuf.MessageOrBuilder { - public static final int OBJECTS_FIELD_NUMBER = 2; - private com.google.cloudbuild.v1.Artifacts.ArtifactObjects objects_; - /** - * - * - *
-   * A list of objects to be uploaded to Cloud Storage upon successful
-   * completion of all build steps.
-   * Files in the workspace matching specified paths globs will be uploaded to
-   * the specified Cloud Storage location using the builder service account's
-   * credentials.
-   * The location and generation of the uploaded objects will be stored in the
-   * Build resource's results field.
-   * If any objects fail to be pushed, the build is marked FAILURE.
-   * 
- * - * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; - * - * @return Whether the objects field is set. - */ - @java.lang.Override - public boolean hasObjects() { - return objects_ != null; - } - /** - * - * - *
-   * A list of objects to be uploaded to Cloud Storage upon successful
-   * completion of all build steps.
-   * Files in the workspace matching specified paths globs will be uploaded to
-   * the specified Cloud Storage location using the builder service account's
-   * credentials.
-   * The location and generation of the uploaded objects will be stored in the
-   * Build resource's results field.
-   * If any objects fail to be pushed, the build is marked FAILURE.
-   * 
- * - * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; - * - * @return The objects. - */ - @java.lang.Override - public com.google.cloudbuild.v1.Artifacts.ArtifactObjects getObjects() { - return objects_ == null - ? com.google.cloudbuild.v1.Artifacts.ArtifactObjects.getDefaultInstance() - : objects_; + /** + * + * + *
+     * 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; + * + * @return The repository. + */ + java.lang.String 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; + * + * @return The bytes for repository. + */ + com.google.protobuf.ByteString getRepositoryBytes(); + + /** + * + * + *
+     * 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; + * + * @return The path. + */ + java.lang.String getPath(); + /** + * + * + *
+     * 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; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+     * Maven `artifactId` value used when uploading the artifact to Artifact
+     * Registry.
+     * 
+ * + * string artifact_id = 3; + * + * @return The artifactId. + */ + java.lang.String getArtifactId(); + /** + * + * + *
+     * Maven `artifactId` value used when uploading the artifact to Artifact
+     * Registry.
+     * 
+ * + * string artifact_id = 3; + * + * @return The bytes for artifactId. + */ + com.google.protobuf.ByteString getArtifactIdBytes(); + + /** + * + * + *
+     * Maven `groupId` value used when uploading the artifact to Artifact
+     * Registry.
+     * 
+ * + * string group_id = 4; + * + * @return The groupId. + */ + java.lang.String getGroupId(); + /** + * + * + *
+     * Maven `groupId` value used when uploading the artifact to Artifact
+     * Registry.
+     * 
+ * + * string group_id = 4; + * + * @return The bytes for groupId. + */ + com.google.protobuf.ByteString getGroupIdBytes(); + + /** + * + * + *
+     * Maven `version` value used when uploading the artifact to Artifact
+     * Registry.
+     * 
+ * + * string version = 5; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+     * Maven `version` value used when uploading the artifact to Artifact
+     * Registry.
+     * 
+ * + * string version = 5; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); } /** * * *
-   * A list of objects to be uploaded to Cloud Storage upon successful
-   * completion of all build steps.
-   * Files in the workspace matching specified paths globs will be uploaded to
-   * the specified Cloud Storage location using the builder service account's
-   * credentials.
-   * The location and generation of the uploaded objects will be stored in the
-   * Build resource's results field.
-   * If any objects fail to be pushed, the build is marked FAILURE.
+   * A Maven artifact to upload to Artifact Registry upon successful completion
+   * of all build steps.
    * 
* - * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts.MavenArtifact} */ - @java.lang.Override - public com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder getObjectsOrBuilder() { - return getObjects(); - } + public static final class MavenArtifact extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.Artifacts.MavenArtifact) + MavenArtifactOrBuilder { + private static final long serialVersionUID = 0L; + // Use MavenArtifact.newBuilder() to construct. + private MavenArtifact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - private byte memoizedIsInitialized = -1; + private MavenArtifact() { + repository_ = ""; + path_ = ""; + artifactId_ = ""; + groupId_ = ""; + version_ = ""; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MavenArtifact(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < images_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, images_.getRaw(i)); + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_Artifacts_MavenArtifact_descriptor; } - if (objects_ != null) { - output.writeMessage(2, getObjects()); - } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_Artifacts_MavenArtifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.Artifacts.MavenArtifact.class, + com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder.class); + } - size = 0; - { - int dataSize = 0; - for (int i = 0; i < images_.size(); i++) { - dataSize += computeStringSizeNoTag(images_.getRaw(i)); + public static final int REPOSITORY_FIELD_NUMBER = 1; + private volatile java.lang.Object repository_; + /** + * + * + *
+     * 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; + * + * @return The repository. + */ + @java.lang.Override + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repository_ = s; + return s; } - size += dataSize; - size += 1 * getImagesList().size(); } - if (objects_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getObjects()); + /** + * + * + *
+     * 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; + * + * @return The bytes for repository. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public static final int PATH_FIELD_NUMBER = 2; + private volatile java.lang.Object path_; + /** + * + * + *
+     * 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; + * + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } } - if (!(obj instanceof com.google.cloudbuild.v1.Artifacts)) { - return super.equals(obj); + /** + * + * + *
+     * 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; + * + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - com.google.cloudbuild.v1.Artifacts other = (com.google.cloudbuild.v1.Artifacts) obj; - if (!getImagesList().equals(other.getImagesList())) return false; - if (hasObjects() != other.hasObjects()) return false; - if (hasObjects()) { - if (!getObjects().equals(other.getObjects())) return false; + public static final int ARTIFACT_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object artifactId_; + /** + * + * + *
+     * Maven `artifactId` value used when uploading the artifact to Artifact
+     * Registry.
+     * 
+ * + * string artifact_id = 3; + * + * @return The artifactId. + */ + @java.lang.Override + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactId_ = s; + return s; + } + } + /** + * + * + *
+     * Maven `artifactId` value used when uploading the artifact to Artifact
+     * Registry.
+     * 
+ * + * string artifact_id = 3; + * + * @return The bytes for artifactId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public static final int GROUP_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object groupId_; + /** + * + * + *
+     * Maven `groupId` value used when uploading the artifact to Artifact
+     * Registry.
+     * 
+ * + * string group_id = 4; + * + * @return The groupId. + */ + @java.lang.Override + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getImagesCount() > 0) { - hash = (37 * hash) + IMAGES_FIELD_NUMBER; - hash = (53 * hash) + getImagesList().hashCode(); + /** + * + * + *
+     * Maven `groupId` value used when uploading the artifact to Artifact
+     * Registry.
+     * 
+ * + * string group_id = 4; + * + * @return The bytes for groupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - if (hasObjects()) { - hash = (37 * hash) + OBJECTS_FIELD_NUMBER; - hash = (53 * hash) + getObjects().hashCode(); + + public static final int VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object version_; + /** + * + * + *
+     * Maven `version` value used when uploading the artifact to Artifact
+     * Registry.
+     * 
+ * + * string version = 5; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+     * Maven `version` value used when uploading the artifact to Artifact
+     * Registry.
+     * 
+ * + * string version = 5; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloudbuild.v1.Artifacts parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private byte memoizedIsInitialized = -1; - public static com.google.cloudbuild.v1.Artifacts parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.cloudbuild.v1.Artifacts parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.cloudbuild.v1.Artifacts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, repository_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, artifactId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, groupId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); + } + getUnknownFields().writeTo(output); + } - public static com.google.cloudbuild.v1.Artifacts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.cloudbuild.v1.Artifacts parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, repository_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, artifactId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, groupId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.cloudbuild.v1.Artifacts parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloudbuild.v1.Artifacts.MavenArtifact)) { + return super.equals(obj); + } + com.google.cloudbuild.v1.Artifacts.MavenArtifact other = + (com.google.cloudbuild.v1.Artifacts.MavenArtifact) obj; + + if (!getRepository().equals(other.getRepository())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!getArtifactId().equals(other.getArtifactId())) return false; + if (!getGroupId().equals(other.getGroupId())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloudbuild.v1.Artifacts parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getArtifactId().hashCode(); + hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.cloudbuild.v1.Artifacts parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloudbuild.v1.Artifacts parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.cloudbuild.v1.Artifacts parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloudbuild.v1.Artifacts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static Builder newBuilder(com.google.cloudbuild.v1.Artifacts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Artifacts produced by a build that should be uploaded upon
-   * successful completion of all build steps.
-   * 
- * - * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.Artifacts) - com.google.cloudbuild.v1.ArtifactsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloudbuild.v1.Cloudbuild - .internal_static_google_devtools_cloudbuild_v1_Artifacts_descriptor; + public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.Artifacts.MavenArtifact parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloudbuild.v1.Cloudbuild - .internal_static_google_devtools_cloudbuild_v1_Artifacts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloudbuild.v1.Artifacts.class, - com.google.cloudbuild.v1.Artifacts.Builder.class); + public Builder newBuilderForType() { + return newBuilder(); } - // Construct using com.google.cloudbuild.v1.Artifacts.newBuilder() - private Builder() {} + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + public static Builder newBuilder(com.google.cloudbuild.v1.Artifacts.MavenArtifact prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public Builder clear() { - super.clear(); - images_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A Maven artifact to upload to Artifact Registry upon successful completion
+     * of all build steps.
+     * 
+ * + * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts.MavenArtifact} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.Artifacts.MavenArtifact) + com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_Artifacts_MavenArtifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_Artifacts_MavenArtifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.Artifacts.MavenArtifact.class, + com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder.class); + } + + // Construct using com.google.cloudbuild.v1.Artifacts.MavenArtifact.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + repository_ = ""; + + path_ = ""; + + artifactId_ = ""; + + groupId_ = ""; + + version_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_Artifacts_MavenArtifact_descriptor; + } + + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts.MavenArtifact getDefaultInstanceForType() { + return com.google.cloudbuild.v1.Artifacts.MavenArtifact.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts.MavenArtifact build() { + com.google.cloudbuild.v1.Artifacts.MavenArtifact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts.MavenArtifact buildPartial() { + com.google.cloudbuild.v1.Artifacts.MavenArtifact result = + new com.google.cloudbuild.v1.Artifacts.MavenArtifact(this); + result.repository_ = repository_; + result.path_ = path_; + result.artifactId_ = artifactId_; + result.groupId_ = groupId_; + result.version_ = version_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloudbuild.v1.Artifacts.MavenArtifact) { + return mergeFrom((com.google.cloudbuild.v1.Artifacts.MavenArtifact) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloudbuild.v1.Artifacts.MavenArtifact other) { + if (other == com.google.cloudbuild.v1.Artifacts.MavenArtifact.getDefaultInstance()) + return this; + if (!other.getRepository().isEmpty()) { + repository_ = other.repository_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + if (!other.getArtifactId().isEmpty()) { + artifactId_ = other.artifactId_; + onChanged(); + } + if (!other.getGroupId().isEmpty()) { + groupId_ = other.groupId_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + repository_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + path_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + artifactId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + groupId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object repository_ = ""; + /** + * + * + *
+       * 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; + * + * @return The repository. + */ + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repository_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * 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; + * + * @return The bytes for repository. + */ + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * 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; + * + * @param value The repository to set. + * @return This builder for chaining. + */ + public Builder setRepository(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + repository_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * 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; + * + * @return This builder for chaining. + */ + public Builder clearRepository() { + + repository_ = getDefaultInstance().getRepository(); + onChanged(); + return this; + } + /** + * + * + *
+       * 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; + * + * @param value The bytes for repository to set. + * @return This builder for chaining. + */ + public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + repository_ = value; + onChanged(); + return this; + } + + private java.lang.Object path_ = ""; + /** + * + * + *
+       * 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; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * 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; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * 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; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + path_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * 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; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + + path_ = getDefaultInstance().getPath(); + onChanged(); + return this; + } + /** + * + * + *
+       * 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; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + path_ = value; + onChanged(); + return this; + } + + private java.lang.Object artifactId_ = ""; + /** + * + * + *
+       * Maven `artifactId` value used when uploading the artifact to Artifact
+       * Registry.
+       * 
+ * + * string artifact_id = 3; + * + * @return The artifactId. + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Maven `artifactId` value used when uploading the artifact to Artifact
+       * Registry.
+       * 
+ * + * string artifact_id = 3; + * + * @return The bytes for artifactId. + */ + public com.google.protobuf.ByteString getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Maven `artifactId` value used when uploading the artifact to Artifact
+       * Registry.
+       * 
+ * + * string artifact_id = 3; + * + * @param value The artifactId to set. + * @return This builder for chaining. + */ + public Builder setArtifactId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + artifactId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Maven `artifactId` value used when uploading the artifact to Artifact
+       * Registry.
+       * 
+ * + * string artifact_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearArtifactId() { + + artifactId_ = getDefaultInstance().getArtifactId(); + onChanged(); + return this; + } + /** + * + * + *
+       * Maven `artifactId` value used when uploading the artifact to Artifact
+       * Registry.
+       * 
+ * + * string artifact_id = 3; + * + * @param value The bytes for artifactId to set. + * @return This builder for chaining. + */ + public Builder setArtifactIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + artifactId_ = value; + onChanged(); + return this; + } + + private java.lang.Object groupId_ = ""; + /** + * + * + *
+       * Maven `groupId` value used when uploading the artifact to Artifact
+       * Registry.
+       * 
+ * + * string group_id = 4; + * + * @return The groupId. + */ + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Maven `groupId` value used when uploading the artifact to Artifact
+       * Registry.
+       * 
+ * + * string group_id = 4; + * + * @return The bytes for groupId. + */ + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Maven `groupId` value used when uploading the artifact to Artifact
+       * Registry.
+       * 
+ * + * string group_id = 4; + * + * @param value The groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + groupId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Maven `groupId` value used when uploading the artifact to Artifact
+       * Registry.
+       * 
+ * + * string group_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearGroupId() { + + groupId_ = getDefaultInstance().getGroupId(); + onChanged(); + return this; + } + /** + * + * + *
+       * Maven `groupId` value used when uploading the artifact to Artifact
+       * Registry.
+       * 
+ * + * string group_id = 4; + * + * @param value The bytes for groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + groupId_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+       * Maven `version` value used when uploading the artifact to Artifact
+       * Registry.
+       * 
+ * + * string version = 5; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Maven `version` value used when uploading the artifact to Artifact
+       * Registry.
+       * 
+ * + * string version = 5; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Maven `version` value used when uploading the artifact to Artifact
+       * Registry.
+       * 
+ * + * string version = 5; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Maven `version` value used when uploading the artifact to Artifact
+       * Registry.
+       * 
+ * + * string version = 5; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+       * Maven `version` value used when uploading the artifact to Artifact
+       * Registry.
+       * 
+ * + * string version = 5; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.Artifacts.MavenArtifact) + } + + // @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Artifacts.MavenArtifact) + private static final com.google.cloudbuild.v1.Artifacts.MavenArtifact DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloudbuild.v1.Artifacts.MavenArtifact(); + } + + public static com.google.cloudbuild.v1.Artifacts.MavenArtifact getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MavenArtifact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts.MavenArtifact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PythonPackageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.Artifacts.PythonPackage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Artifact Registry repository, in the form
+     * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
+     * Files in the workspace matching any path pattern will be uploaded to
+     * Artifact Registry with this location as a prefix.
+     * 
+ * + * string repository = 1; + * + * @return The repository. + */ + java.lang.String getRepository(); + /** + * + * + *
+     * Artifact Registry repository, in the form
+     * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
+     * Files in the workspace matching any path pattern will be uploaded to
+     * Artifact Registry with this location as a prefix.
+     * 
+ * + * string repository = 1; + * + * @return The bytes for repository. + */ + com.google.protobuf.ByteString getRepositoryBytes(); + + /** + * + * + *
+     * Path globs used to match files in the build's workspace. For Python/
+     * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+     * file.
+     * 
+ * + * repeated string paths = 2; + * + * @return A list containing the paths. + */ + java.util.List getPathsList(); + /** + * + * + *
+     * Path globs used to match files in the build's workspace. For Python/
+     * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+     * file.
+     * 
+ * + * repeated string paths = 2; + * + * @return The count of paths. + */ + int getPathsCount(); + /** + * + * + *
+     * Path globs used to match files in the build's workspace. For Python/
+     * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+     * file.
+     * 
+ * + * repeated string paths = 2; + * + * @param index The index of the element to return. + * @return The paths at the given index. + */ + java.lang.String getPaths(int index); + /** + * + * + *
+     * Path globs used to match files in the build's workspace. For Python/
+     * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+     * file.
+     * 
+ * + * repeated string paths = 2; + * + * @param index The index of the value to return. + * @return The bytes of the paths at the given index. + */ + com.google.protobuf.ByteString getPathsBytes(int index); + } + /** + * + * + *
+   * Python package to upload to Artifact Registry upon successful completion
+   * of all build steps. A package can encapsulate multiple objects to be
+   * uploaded to a single repository.
+   * 
+ * + * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts.PythonPackage} + */ + public static final class PythonPackage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.Artifacts.PythonPackage) + PythonPackageOrBuilder { + private static final long serialVersionUID = 0L; + // Use PythonPackage.newBuilder() to construct. + private PythonPackage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PythonPackage() { + repository_ = ""; + paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PythonPackage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_Artifacts_PythonPackage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_Artifacts_PythonPackage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.Artifacts.PythonPackage.class, + com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder.class); + } + + public static final int REPOSITORY_FIELD_NUMBER = 1; + private volatile java.lang.Object repository_; + /** + * + * + *
+     * Artifact Registry repository, in the form
+     * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
+     * Files in the workspace matching any path pattern will be uploaded to
+     * Artifact Registry with this location as a prefix.
+     * 
+ * + * string repository = 1; + * + * @return The repository. + */ + @java.lang.Override + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repository_ = s; + return s; + } + } + /** + * + * + *
+     * Artifact Registry repository, in the form
+     * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
+     * Files in the workspace matching any path pattern will be uploaded to
+     * Artifact Registry with this location as a prefix.
+     * 
+ * + * string repository = 1; + * + * @return The bytes for repository. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATHS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList paths_; + /** + * + * + *
+     * Path globs used to match files in the build's workspace. For Python/
+     * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+     * file.
+     * 
+ * + * repeated string paths = 2; + * + * @return A list containing the paths. + */ + public com.google.protobuf.ProtocolStringList getPathsList() { + return paths_; + } + /** + * + * + *
+     * Path globs used to match files in the build's workspace. For Python/
+     * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+     * file.
+     * 
+ * + * repeated string paths = 2; + * + * @return The count of paths. + */ + public int getPathsCount() { + return paths_.size(); + } + /** + * + * + *
+     * Path globs used to match files in the build's workspace. For Python/
+     * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+     * file.
+     * 
+ * + * repeated string paths = 2; + * + * @param index The index of the element to return. + * @return The paths at the given index. + */ + public java.lang.String getPaths(int index) { + return paths_.get(index); + } + /** + * + * + *
+     * Path globs used to match files in the build's workspace. For Python/
+     * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+     * file.
+     * 
+ * + * repeated string paths = 2; + * + * @param index The index of the value to return. + * @return The bytes of the paths at the given index. + */ + public com.google.protobuf.ByteString getPathsBytes(int index) { + return paths_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, repository_); + } + for (int i = 0; i < paths_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, paths_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, repository_); + } + { + int dataSize = 0; + for (int i = 0; i < paths_.size(); i++) { + dataSize += computeStringSizeNoTag(paths_.getRaw(i)); + } + size += dataSize; + size += 1 * getPathsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloudbuild.v1.Artifacts.PythonPackage)) { + return super.equals(obj); + } + com.google.cloudbuild.v1.Artifacts.PythonPackage other = + (com.google.cloudbuild.v1.Artifacts.PythonPackage) obj; + + if (!getRepository().equals(other.getRepository())) return false; + if (!getPathsList().equals(other.getPathsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + if (getPathsCount() > 0) { + hash = (37 * hash) + PATHS_FIELD_NUMBER; + hash = (53 * hash) + getPathsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.Artifacts.PythonPackage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloudbuild.v1.Artifacts.PythonPackage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Python package to upload to Artifact Registry upon successful completion
+     * of all build steps. A package can encapsulate multiple objects to be
+     * uploaded to a single repository.
+     * 
+ * + * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts.PythonPackage} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.Artifacts.PythonPackage) + com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_Artifacts_PythonPackage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_Artifacts_PythonPackage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.Artifacts.PythonPackage.class, + com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder.class); + } + + // Construct using com.google.cloudbuild.v1.Artifacts.PythonPackage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + repository_ = ""; + + paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_Artifacts_PythonPackage_descriptor; + } + + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts.PythonPackage getDefaultInstanceForType() { + return com.google.cloudbuild.v1.Artifacts.PythonPackage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts.PythonPackage build() { + com.google.cloudbuild.v1.Artifacts.PythonPackage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts.PythonPackage buildPartial() { + com.google.cloudbuild.v1.Artifacts.PythonPackage result = + new com.google.cloudbuild.v1.Artifacts.PythonPackage(this); + int from_bitField0_ = bitField0_; + result.repository_ = repository_; + if (((bitField0_ & 0x00000001) != 0)) { + paths_ = paths_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.paths_ = paths_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloudbuild.v1.Artifacts.PythonPackage) { + return mergeFrom((com.google.cloudbuild.v1.Artifacts.PythonPackage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloudbuild.v1.Artifacts.PythonPackage other) { + if (other == com.google.cloudbuild.v1.Artifacts.PythonPackage.getDefaultInstance()) + return this; + if (!other.getRepository().isEmpty()) { + repository_ = other.repository_; + onChanged(); + } + if (!other.paths_.isEmpty()) { + if (paths_.isEmpty()) { + paths_ = other.paths_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePathsIsMutable(); + paths_.addAll(other.paths_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + repository_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePathsIsMutable(); + paths_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object repository_ = ""; + /** + * + * + *
+       * Artifact Registry repository, in the form
+       * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
+       * Files in the workspace matching any path pattern will be uploaded to
+       * Artifact Registry with this location as a prefix.
+       * 
+ * + * string repository = 1; + * + * @return The repository. + */ + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repository_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Artifact Registry repository, in the form
+       * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
+       * Files in the workspace matching any path pattern will be uploaded to
+       * Artifact Registry with this location as a prefix.
+       * 
+ * + * string repository = 1; + * + * @return The bytes for repository. + */ + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Artifact Registry repository, in the form
+       * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
+       * Files in the workspace matching any path pattern will be uploaded to
+       * Artifact Registry with this location as a prefix.
+       * 
+ * + * string repository = 1; + * + * @param value The repository to set. + * @return This builder for chaining. + */ + public Builder setRepository(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + repository_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Artifact Registry repository, in the form
+       * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
+       * Files in the workspace matching any path pattern will be uploaded to
+       * Artifact Registry with this location as a prefix.
+       * 
+ * + * string repository = 1; + * + * @return This builder for chaining. + */ + public Builder clearRepository() { + + repository_ = getDefaultInstance().getRepository(); + onChanged(); + return this; + } + /** + * + * + *
+       * Artifact Registry repository, in the form
+       * "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
+       * Files in the workspace matching any path pattern will be uploaded to
+       * Artifact Registry with this location as a prefix.
+       * 
+ * + * string repository = 1; + * + * @param value The bytes for repository to set. + * @return This builder for chaining. + */ + public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + repository_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList paths_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePathsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + paths_ = new com.google.protobuf.LazyStringArrayList(paths_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * Path globs used to match files in the build's workspace. For Python/
+       * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+       * file.
+       * 
+ * + * repeated string paths = 2; + * + * @return A list containing the paths. + */ + public com.google.protobuf.ProtocolStringList getPathsList() { + return paths_.getUnmodifiableView(); + } + /** + * + * + *
+       * Path globs used to match files in the build's workspace. For Python/
+       * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+       * file.
+       * 
+ * + * repeated string paths = 2; + * + * @return The count of paths. + */ + public int getPathsCount() { + return paths_.size(); + } + /** + * + * + *
+       * Path globs used to match files in the build's workspace. For Python/
+       * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+       * file.
+       * 
+ * + * repeated string paths = 2; + * + * @param index The index of the element to return. + * @return The paths at the given index. + */ + public java.lang.String getPaths(int index) { + return paths_.get(index); + } + /** + * + * + *
+       * Path globs used to match files in the build's workspace. For Python/
+       * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+       * file.
+       * 
+ * + * repeated string paths = 2; + * + * @param index The index of the value to return. + * @return The bytes of the paths at the given index. + */ + public com.google.protobuf.ByteString getPathsBytes(int index) { + return paths_.getByteString(index); + } + /** + * + * + *
+       * Path globs used to match files in the build's workspace. For Python/
+       * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+       * file.
+       * 
+ * + * repeated string paths = 2; + * + * @param index The index to set the value at. + * @param value The paths to set. + * @return This builder for chaining. + */ + public Builder setPaths(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathsIsMutable(); + paths_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Path globs used to match files in the build's workspace. For Python/
+       * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+       * file.
+       * 
+ * + * repeated string paths = 2; + * + * @param value The paths to add. + * @return This builder for chaining. + */ + public Builder addPaths(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathsIsMutable(); + paths_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Path globs used to match files in the build's workspace. For Python/
+       * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+       * file.
+       * 
+ * + * repeated string paths = 2; + * + * @param values The paths to add. + * @return This builder for chaining. + */ + public Builder addAllPaths(java.lang.Iterable values) { + ensurePathsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paths_); + onChanged(); + return this; + } + /** + * + * + *
+       * Path globs used to match files in the build's workspace. For Python/
+       * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+       * file.
+       * 
+ * + * repeated string paths = 2; + * + * @return This builder for chaining. + */ + public Builder clearPaths() { + paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Path globs used to match files in the build's workspace. For Python/
+       * Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+       * file.
+       * 
+ * + * repeated string paths = 2; + * + * @param value The bytes of the paths to add. + * @return This builder for chaining. + */ + public Builder addPathsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePathsIsMutable(); + paths_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.Artifacts.PythonPackage) + } + + // @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Artifacts.PythonPackage) + private static final com.google.cloudbuild.v1.Artifacts.PythonPackage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloudbuild.v1.Artifacts.PythonPackage(); + } + + public static com.google.cloudbuild.v1.Artifacts.PythonPackage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PythonPackage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts.PythonPackage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int IMAGES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList images_; + /** + * + * + *
+   * A list of images to be pushed upon the successful completion of all build
+   * steps.
+   * The images will be pushed using the builder service account's credentials.
+   * The digests of the pushed images will be stored in the Build resource's
+   * results field.
+   * If any of the images fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated string images = 1; + * + * @return A list containing the images. + */ + public com.google.protobuf.ProtocolStringList getImagesList() { + return images_; + } + /** + * + * + *
+   * A list of images to be pushed upon the successful completion of all build
+   * steps.
+   * The images will be pushed using the builder service account's credentials.
+   * The digests of the pushed images will be stored in the Build resource's
+   * results field.
+   * If any of the images fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated string images = 1; + * + * @return The count of images. + */ + public int getImagesCount() { + return images_.size(); + } + /** + * + * + *
+   * A list of images to be pushed upon the successful completion of all build
+   * steps.
+   * The images will be pushed using the builder service account's credentials.
+   * The digests of the pushed images will be stored in the Build resource's
+   * results field.
+   * If any of the images fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated string images = 1; + * + * @param index The index of the element to return. + * @return The images at the given index. + */ + public java.lang.String getImages(int index) { + return images_.get(index); + } + /** + * + * + *
+   * A list of images to be pushed upon the successful completion of all build
+   * steps.
+   * The images will be pushed using the builder service account's credentials.
+   * The digests of the pushed images will be stored in the Build resource's
+   * results field.
+   * If any of the images fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated string images = 1; + * + * @param index The index of the value to return. + * @return The bytes of the images at the given index. + */ + public com.google.protobuf.ByteString getImagesBytes(int index) { + return images_.getByteString(index); + } + + public static final int OBJECTS_FIELD_NUMBER = 2; + private com.google.cloudbuild.v1.Artifacts.ArtifactObjects objects_; + /** + * + * + *
+   * A list of objects to be uploaded to Cloud Storage upon successful
+   * completion of all build steps.
+   * Files in the workspace matching specified paths globs will be uploaded to
+   * the specified Cloud Storage location using the builder service account's
+   * credentials.
+   * The location and generation of the uploaded objects will be stored in the
+   * Build resource's results field.
+   * If any objects fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + * + * @return Whether the objects field is set. + */ + @java.lang.Override + public boolean hasObjects() { + return objects_ != null; + } + /** + * + * + *
+   * A list of objects to be uploaded to Cloud Storage upon successful
+   * completion of all build steps.
+   * Files in the workspace matching specified paths globs will be uploaded to
+   * the specified Cloud Storage location using the builder service account's
+   * credentials.
+   * The location and generation of the uploaded objects will be stored in the
+   * Build resource's results field.
+   * If any objects fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + * + * @return The objects. + */ + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts.ArtifactObjects getObjects() { + return objects_ == null + ? com.google.cloudbuild.v1.Artifacts.ArtifactObjects.getDefaultInstance() + : objects_; + } + /** + * + * + *
+   * A list of objects to be uploaded to Cloud Storage upon successful
+   * completion of all build steps.
+   * Files in the workspace matching specified paths globs will be uploaded to
+   * the specified Cloud Storage location using the builder service account's
+   * credentials.
+   * The location and generation of the uploaded objects will be stored in the
+   * Build resource's results field.
+   * If any objects fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + */ + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder getObjectsOrBuilder() { + return getObjects(); + } + + public static final int MAVEN_ARTIFACTS_FIELD_NUMBER = 3; + private java.util.List mavenArtifacts_; + /** + * + * + *
+   * A list of Maven artifacts to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * Artifacts in the workspace matching specified paths globs will be uploaded
+   * to the specified Artifact Registry repository using the builder service
+   * account's credentials.
+   * If any artifacts fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + @java.lang.Override + public java.util.List getMavenArtifactsList() { + return mavenArtifacts_; + } + /** + * + * + *
+   * A list of Maven artifacts to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * Artifacts in the workspace matching specified paths globs will be uploaded
+   * to the specified Artifact Registry repository using the builder service
+   * account's credentials.
+   * If any artifacts fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + @java.lang.Override + public java.util.List + getMavenArtifactsOrBuilderList() { + return mavenArtifacts_; + } + /** + * + * + *
+   * A list of Maven artifacts to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * Artifacts in the workspace matching specified paths globs will be uploaded
+   * to the specified Artifact Registry repository using the builder service
+   * account's credentials.
+   * If any artifacts fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + @java.lang.Override + public int getMavenArtifactsCount() { + return mavenArtifacts_.size(); + } + /** + * + * + *
+   * A list of Maven artifacts to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * Artifacts in the workspace matching specified paths globs will be uploaded
+   * to the specified Artifact Registry repository using the builder service
+   * account's credentials.
+   * If any artifacts fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts.MavenArtifact getMavenArtifacts(int index) { + return mavenArtifacts_.get(index); + } + /** + * + * + *
+   * A list of Maven artifacts to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * Artifacts in the workspace matching specified paths globs will be uploaded
+   * to the specified Artifact Registry repository using the builder service
+   * account's credentials.
+   * If any artifacts fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder getMavenArtifactsOrBuilder( + int index) { + return mavenArtifacts_.get(index); + } + + public static final int PYTHON_PACKAGES_FIELD_NUMBER = 5; + private java.util.List pythonPackages_; + /** + * + * + *
+   * A list of Python packages to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * The build service account credentials will be used to perform the upload.
+   * If any objects fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * + */ + @java.lang.Override + public java.util.List getPythonPackagesList() { + return pythonPackages_; + } + /** + * + * + *
+   * A list of Python packages to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * The build service account credentials will be used to perform the upload.
+   * If any objects fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * + */ + @java.lang.Override + public java.util.List + getPythonPackagesOrBuilderList() { + return pythonPackages_; + } + /** + * + * + *
+   * A list of Python packages to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * The build service account credentials will be used to perform the upload.
+   * If any objects fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * + */ + @java.lang.Override + public int getPythonPackagesCount() { + return pythonPackages_.size(); + } + /** + * + * + *
+   * A list of Python packages to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * The build service account credentials will be used to perform the upload.
+   * If any objects fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * + */ + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts.PythonPackage getPythonPackages(int index) { + return pythonPackages_.get(index); + } + /** + * + * + *
+   * A list of Python packages to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * The build service account credentials will be used to perform the upload.
+   * If any objects fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * + */ + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder getPythonPackagesOrBuilder( + int index) { + return pythonPackages_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < images_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, images_.getRaw(i)); + } + if (objects_ != null) { + output.writeMessage(2, getObjects()); + } + for (int i = 0; i < mavenArtifacts_.size(); i++) { + output.writeMessage(3, mavenArtifacts_.get(i)); + } + for (int i = 0; i < pythonPackages_.size(); i++) { + output.writeMessage(5, pythonPackages_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < images_.size(); i++) { + dataSize += computeStringSizeNoTag(images_.getRaw(i)); + } + size += dataSize; + size += 1 * getImagesList().size(); + } + if (objects_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getObjects()); + } + for (int i = 0; i < mavenArtifacts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, mavenArtifacts_.get(i)); + } + for (int i = 0; i < pythonPackages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, pythonPackages_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloudbuild.v1.Artifacts)) { + return super.equals(obj); + } + com.google.cloudbuild.v1.Artifacts other = (com.google.cloudbuild.v1.Artifacts) obj; + + if (!getImagesList().equals(other.getImagesList())) return false; + if (hasObjects() != other.hasObjects()) return false; + if (hasObjects()) { + if (!getObjects().equals(other.getObjects())) return false; + } + if (!getMavenArtifactsList().equals(other.getMavenArtifactsList())) return false; + if (!getPythonPackagesList().equals(other.getPythonPackagesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getImagesCount() > 0) { + hash = (37 * hash) + IMAGES_FIELD_NUMBER; + hash = (53 * hash) + getImagesList().hashCode(); + } + if (hasObjects()) { + hash = (37 * hash) + OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getObjects().hashCode(); + } + if (getMavenArtifactsCount() > 0) { + hash = (37 * hash) + MAVEN_ARTIFACTS_FIELD_NUMBER; + hash = (53 * hash) + getMavenArtifactsList().hashCode(); + } + if (getPythonPackagesCount() > 0) { + hash = (37 * hash) + PYTHON_PACKAGES_FIELD_NUMBER; + hash = (53 * hash) + getPythonPackagesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloudbuild.v1.Artifacts parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.Artifacts parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.Artifacts parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.Artifacts parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.Artifacts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.Artifacts parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.Artifacts parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.Artifacts parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloudbuild.v1.Artifacts parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.Artifacts parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloudbuild.v1.Artifacts parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.Artifacts parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloudbuild.v1.Artifacts prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Artifacts produced by a build that should be uploaded upon
+   * successful completion of all build steps.
+   * 
+ * + * Protobuf type {@code google.devtools.cloudbuild.v1.Artifacts} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.Artifacts) + com.google.cloudbuild.v1.ArtifactsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_Artifacts_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_Artifacts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.Artifacts.class, + com.google.cloudbuild.v1.Artifacts.Builder.class); + } + + // Construct using com.google.cloudbuild.v1.Artifacts.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + images_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (objectsBuilder_ == null) { + objects_ = null; + } else { + objects_ = null; + objectsBuilder_ = null; + } + if (mavenArtifactsBuilder_ == null) { + mavenArtifacts_ = java.util.Collections.emptyList(); + } else { + mavenArtifacts_ = null; + mavenArtifactsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (pythonPackagesBuilder_ == null) { + pythonPackages_ = java.util.Collections.emptyList(); + } else { + pythonPackages_ = null; + pythonPackagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_Artifacts_descriptor; + } + + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts getDefaultInstanceForType() { + return com.google.cloudbuild.v1.Artifacts.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts build() { + com.google.cloudbuild.v1.Artifacts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloudbuild.v1.Artifacts buildPartial() { + com.google.cloudbuild.v1.Artifacts result = new com.google.cloudbuild.v1.Artifacts(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + images_ = images_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.images_ = images_; + if (objectsBuilder_ == null) { + result.objects_ = objects_; + } else { + result.objects_ = objectsBuilder_.build(); + } + if (mavenArtifactsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + mavenArtifacts_ = java.util.Collections.unmodifiableList(mavenArtifacts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.mavenArtifacts_ = mavenArtifacts_; + } else { + result.mavenArtifacts_ = mavenArtifactsBuilder_.build(); + } + if (pythonPackagesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + pythonPackages_ = java.util.Collections.unmodifiableList(pythonPackages_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.pythonPackages_ = pythonPackages_; + } else { + result.pythonPackages_ = pythonPackagesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloudbuild.v1.Artifacts) { + return mergeFrom((com.google.cloudbuild.v1.Artifacts) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloudbuild.v1.Artifacts other) { + if (other == com.google.cloudbuild.v1.Artifacts.getDefaultInstance()) return this; + if (!other.images_.isEmpty()) { + if (images_.isEmpty()) { + images_ = other.images_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureImagesIsMutable(); + images_.addAll(other.images_); + } + onChanged(); + } + if (other.hasObjects()) { + mergeObjects(other.getObjects()); + } + if (mavenArtifactsBuilder_ == null) { + if (!other.mavenArtifacts_.isEmpty()) { + if (mavenArtifacts_.isEmpty()) { + mavenArtifacts_ = other.mavenArtifacts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.addAll(other.mavenArtifacts_); + } + onChanged(); + } + } else { + if (!other.mavenArtifacts_.isEmpty()) { + if (mavenArtifactsBuilder_.isEmpty()) { + mavenArtifactsBuilder_.dispose(); + mavenArtifactsBuilder_ = null; + mavenArtifacts_ = other.mavenArtifacts_; + bitField0_ = (bitField0_ & ~0x00000002); + mavenArtifactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMavenArtifactsFieldBuilder() + : null; + } else { + mavenArtifactsBuilder_.addAllMessages(other.mavenArtifacts_); + } + } + } + if (pythonPackagesBuilder_ == null) { + if (!other.pythonPackages_.isEmpty()) { + if (pythonPackages_.isEmpty()) { + pythonPackages_ = other.pythonPackages_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePythonPackagesIsMutable(); + pythonPackages_.addAll(other.pythonPackages_); + } + onChanged(); + } + } else { + if (!other.pythonPackages_.isEmpty()) { + if (pythonPackagesBuilder_.isEmpty()) { + pythonPackagesBuilder_.dispose(); + pythonPackagesBuilder_ = null; + pythonPackages_ = other.pythonPackages_; + bitField0_ = (bitField0_ & ~0x00000004); + pythonPackagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPythonPackagesFieldBuilder() + : null; + } else { + pythonPackagesBuilder_.addAllMessages(other.pythonPackages_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureImagesIsMutable(); + images_.add(s); + break; + } // case 10 + case 18: + { + input.readMessage(getObjectsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + com.google.cloudbuild.v1.Artifacts.MavenArtifact m = + input.readMessage( + com.google.cloudbuild.v1.Artifacts.MavenArtifact.parser(), + extensionRegistry); + if (mavenArtifactsBuilder_ == null) { + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.add(m); + } else { + mavenArtifactsBuilder_.addMessage(m); + } + break; + } // case 26 + case 42: + { + com.google.cloudbuild.v1.Artifacts.PythonPackage m = + input.readMessage( + com.google.cloudbuild.v1.Artifacts.PythonPackage.parser(), + extensionRegistry); + if (pythonPackagesBuilder_ == null) { + ensurePythonPackagesIsMutable(); + pythonPackages_.add(m); + } else { + pythonPackagesBuilder_.addMessage(m); + } + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList images_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureImagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + images_ = new com.google.protobuf.LazyStringArrayList(images_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * + * @return A list containing the images. + */ + public com.google.protobuf.ProtocolStringList getImagesList() { + return images_.getUnmodifiableView(); + } + /** + * + * + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * + * @return The count of images. + */ + public int getImagesCount() { + return images_.size(); + } + /** + * + * + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * + * @param index The index of the element to return. + * @return The images at the given index. + */ + public java.lang.String getImages(int index) { + return images_.get(index); + } + /** + * + * + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * + * @param index The index of the value to return. + * @return The bytes of the images at the given index. + */ + public com.google.protobuf.ByteString getImagesBytes(int index) { + return images_.getByteString(index); + } + /** + * + * + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * + * @param index The index to set the value at. + * @param value The images to set. + * @return This builder for chaining. + */ + public Builder setImages(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureImagesIsMutable(); + images_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * + * @param value The images to add. + * @return This builder for chaining. + */ + public Builder addImages(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureImagesIsMutable(); + images_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * + * @param values The images to add. + * @return This builder for chaining. + */ + public Builder addAllImages(java.lang.Iterable values) { + ensureImagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, images_); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * + * @return This builder for chaining. + */ + public Builder clearImages() { + images_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * + * @param value The bytes of the images to add. + * @return This builder for chaining. + */ + public Builder addImagesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureImagesIsMutable(); + images_.add(value); + onChanged(); + return this; + } + + private com.google.cloudbuild.v1.Artifacts.ArtifactObjects objects_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.Artifacts.ArtifactObjects, + com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder, + com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder> + objectsBuilder_; + /** + * + * + *
+     * A list of objects to be uploaded to Cloud Storage upon successful
+     * completion of all build steps.
+     * Files in the workspace matching specified paths globs will be uploaded to
+     * the specified Cloud Storage location using the builder service account's
+     * credentials.
+     * The location and generation of the uploaded objects will be stored in the
+     * Build resource's results field.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + * + * @return Whether the objects field is set. + */ + public boolean hasObjects() { + return objectsBuilder_ != null || objects_ != null; + } + /** + * + * + *
+     * A list of objects to be uploaded to Cloud Storage upon successful
+     * completion of all build steps.
+     * Files in the workspace matching specified paths globs will be uploaded to
+     * the specified Cloud Storage location using the builder service account's
+     * credentials.
+     * The location and generation of the uploaded objects will be stored in the
+     * Build resource's results field.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + * + * @return The objects. + */ + public com.google.cloudbuild.v1.Artifacts.ArtifactObjects getObjects() { + if (objectsBuilder_ == null) { + return objects_ == null + ? com.google.cloudbuild.v1.Artifacts.ArtifactObjects.getDefaultInstance() + : objects_; + } else { + return objectsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * A list of objects to be uploaded to Cloud Storage upon successful
+     * completion of all build steps.
+     * Files in the workspace matching specified paths globs will be uploaded to
+     * the specified Cloud Storage location using the builder service account's
+     * credentials.
+     * The location and generation of the uploaded objects will be stored in the
+     * Build resource's results field.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + */ + public Builder setObjects(com.google.cloudbuild.v1.Artifacts.ArtifactObjects value) { + if (objectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + objects_ = value; + onChanged(); + } else { + objectsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * A list of objects to be uploaded to Cloud Storage upon successful
+     * completion of all build steps.
+     * Files in the workspace matching specified paths globs will be uploaded to
+     * the specified Cloud Storage location using the builder service account's
+     * credentials.
+     * The location and generation of the uploaded objects will be stored in the
+     * Build resource's results field.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + */ + public Builder setObjects( + com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder builderForValue) { + if (objectsBuilder_ == null) { + objects_ = builderForValue.build(); + onChanged(); + } else { + objectsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * A list of objects to be uploaded to Cloud Storage upon successful
+     * completion of all build steps.
+     * Files in the workspace matching specified paths globs will be uploaded to
+     * the specified Cloud Storage location using the builder service account's
+     * credentials.
+     * The location and generation of the uploaded objects will be stored in the
+     * Build resource's results field.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + */ + public Builder mergeObjects(com.google.cloudbuild.v1.Artifacts.ArtifactObjects value) { + if (objectsBuilder_ == null) { + if (objects_ != null) { + objects_ = + com.google.cloudbuild.v1.Artifacts.ArtifactObjects.newBuilder(objects_) + .mergeFrom(value) + .buildPartial(); + } else { + objects_ = value; + } + onChanged(); + } else { + objectsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * A list of objects to be uploaded to Cloud Storage upon successful
+     * completion of all build steps.
+     * Files in the workspace matching specified paths globs will be uploaded to
+     * the specified Cloud Storage location using the builder service account's
+     * credentials.
+     * The location and generation of the uploaded objects will be stored in the
+     * Build resource's results field.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + */ + public Builder clearObjects() { if (objectsBuilder_ == null) { objects_ = null; + onChanged(); } else { objects_ = null; objectsBuilder_ = null; } + return this; } + /** + * + * + *
+     * A list of objects to be uploaded to Cloud Storage upon successful
+     * completion of all build steps.
+     * Files in the workspace matching specified paths globs will be uploaded to
+     * the specified Cloud Storage location using the builder service account's
+     * credentials.
+     * The location and generation of the uploaded objects will be stored in the
+     * Build resource's results field.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + */ + public com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder getObjectsBuilder() { - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloudbuild.v1.Cloudbuild - .internal_static_google_devtools_cloudbuild_v1_Artifacts_descriptor; + onChanged(); + return getObjectsFieldBuilder().getBuilder(); } - - @java.lang.Override - public com.google.cloudbuild.v1.Artifacts getDefaultInstanceForType() { - return com.google.cloudbuild.v1.Artifacts.getDefaultInstance(); + /** + * + * + *
+     * A list of objects to be uploaded to Cloud Storage upon successful
+     * completion of all build steps.
+     * Files in the workspace matching specified paths globs will be uploaded to
+     * the specified Cloud Storage location using the builder service account's
+     * credentials.
+     * The location and generation of the uploaded objects will be stored in the
+     * Build resource's results field.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + */ + public com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder getObjectsOrBuilder() { + if (objectsBuilder_ != null) { + return objectsBuilder_.getMessageOrBuilder(); + } else { + return objects_ == null + ? com.google.cloudbuild.v1.Artifacts.ArtifactObjects.getDefaultInstance() + : objects_; + } + } + /** + * + * + *
+     * A list of objects to be uploaded to Cloud Storage upon successful
+     * completion of all build steps.
+     * Files in the workspace matching specified paths globs will be uploaded to
+     * the specified Cloud Storage location using the builder service account's
+     * credentials.
+     * The location and generation of the uploaded objects will be stored in the
+     * Build resource's results field.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.Artifacts.ArtifactObjects, + com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder, + com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder> + getObjectsFieldBuilder() { + if (objectsBuilder_ == null) { + objectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.Artifacts.ArtifactObjects, + com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder, + com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder>( + getObjects(), getParentForChildren(), isClean()); + objects_ = null; + } + return objectsBuilder_; } - @java.lang.Override - public com.google.cloudbuild.v1.Artifacts build() { - com.google.cloudbuild.v1.Artifacts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + private java.util.List mavenArtifacts_ = + java.util.Collections.emptyList(); + + private void ensureMavenArtifactsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + mavenArtifacts_ = + new java.util.ArrayList( + mavenArtifacts_); + bitField0_ |= 0x00000002; } - return result; } - @java.lang.Override - public com.google.cloudbuild.v1.Artifacts buildPartial() { - com.google.cloudbuild.v1.Artifacts result = new com.google.cloudbuild.v1.Artifacts(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - images_ = images_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloudbuild.v1.Artifacts.MavenArtifact, + com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder, + com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder> + mavenArtifactsBuilder_; + + /** + * + * + *
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + public java.util.List + getMavenArtifactsList() { + if (mavenArtifactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mavenArtifacts_); + } else { + return mavenArtifactsBuilder_.getMessageList(); } - result.images_ = images_; - if (objectsBuilder_ == null) { - result.objects_ = objects_; + } + /** + * + * + *
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + public int getMavenArtifactsCount() { + if (mavenArtifactsBuilder_ == null) { + return mavenArtifacts_.size(); } else { - result.objects_ = objectsBuilder_.build(); + return mavenArtifactsBuilder_.getCount(); } - onBuilt(); - return result; } - - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + public com.google.cloudbuild.v1.Artifacts.MavenArtifact getMavenArtifacts(int index) { + if (mavenArtifactsBuilder_ == null) { + return mavenArtifacts_.get(index); + } else { + return mavenArtifactsBuilder_.getMessage(index); + } } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + public Builder setMavenArtifacts( + int index, com.google.cloudbuild.v1.Artifacts.MavenArtifact value) { + if (mavenArtifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.set(index, value); + onChanged(); + } else { + mavenArtifactsBuilder_.setMessage(index, value); + } + return this; } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + public Builder setMavenArtifacts( + int index, com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder builderForValue) { + if (mavenArtifactsBuilder_ == null) { + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.set(index, builderForValue.build()); + onChanged(); + } else { + mavenArtifactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + public Builder addMavenArtifacts(com.google.cloudbuild.v1.Artifacts.MavenArtifact value) { + if (mavenArtifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.add(value); + onChanged(); + } else { + mavenArtifactsBuilder_.addMessage(value); + } + return this; } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * + * + *
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + public Builder addMavenArtifacts( + int index, com.google.cloudbuild.v1.Artifacts.MavenArtifact value) { + if (mavenArtifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.add(index, value); + onChanged(); + } else { + mavenArtifactsBuilder_.addMessage(index, value); + } + return this; } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + public Builder addMavenArtifacts( + com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder builderForValue) { + if (mavenArtifactsBuilder_ == null) { + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.add(builderForValue.build()); + onChanged(); + } else { + mavenArtifactsBuilder_.addMessage(builderForValue.build()); + } + return this; } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloudbuild.v1.Artifacts) { - return mergeFrom((com.google.cloudbuild.v1.Artifacts) other); + /** + * + * + *
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + public Builder addMavenArtifacts( + int index, com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder builderForValue) { + if (mavenArtifactsBuilder_ == null) { + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.add(index, builderForValue.build()); + onChanged(); } else { - super.mergeFrom(other); - return this; + mavenArtifactsBuilder_.addMessage(index, builderForValue.build()); } + return this; } - - public Builder mergeFrom(com.google.cloudbuild.v1.Artifacts other) { - if (other == com.google.cloudbuild.v1.Artifacts.getDefaultInstance()) return this; - if (!other.images_.isEmpty()) { - if (images_.isEmpty()) { - images_ = other.images_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureImagesIsMutable(); - images_.addAll(other.images_); - } + /** + * + * + *
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + public Builder addAllMavenArtifacts( + java.lang.Iterable values) { + if (mavenArtifactsBuilder_ == null) { + ensureMavenArtifactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mavenArtifacts_); onChanged(); + } else { + mavenArtifactsBuilder_.addAllMessages(values); } - if (other.hasObjects()) { - mergeObjects(other.getObjects()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureImagesIsMutable(); - images_.add(s); - break; - } // case 10 - case 18: - { - input.readMessage(getObjectsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + /** + * + * + *
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + public Builder clearMavenArtifacts() { + if (mavenArtifactsBuilder_ == null) { + mavenArtifacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); - } // finally + } else { + mavenArtifactsBuilder_.clear(); + } return this; } - - private int bitField0_; - - private com.google.protobuf.LazyStringList images_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureImagesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - images_ = new com.google.protobuf.LazyStringArrayList(images_); - bitField0_ |= 0x00000001; + /** + * + * + *
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + public Builder removeMavenArtifacts(int index) { + if (mavenArtifactsBuilder_ == null) { + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.remove(index); + onChanged(); + } else { + mavenArtifactsBuilder_.remove(index); } + return this; } /** * * *
-     * A list of images to be pushed upon the successful completion of all build
-     * steps.
-     * The images will be pushed using the builder service account's credentials.
-     * The digests of the pushed images will be stored in the Build resource's
-     * results field.
-     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
      * 
* - * repeated string images = 1; - * - * @return A list containing the images. + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * */ - public com.google.protobuf.ProtocolStringList getImagesList() { - return images_.getUnmodifiableView(); + public com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder getMavenArtifactsBuilder( + int index) { + return getMavenArtifactsFieldBuilder().getBuilder(index); } /** * * *
-     * A list of images to be pushed upon the successful completion of all build
-     * steps.
-     * The images will be pushed using the builder service account's credentials.
-     * The digests of the pushed images will be stored in the Build resource's
-     * results field.
-     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
      * 
* - * repeated string images = 1; + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + public com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder getMavenArtifactsOrBuilder( + int index) { + if (mavenArtifactsBuilder_ == null) { + return mavenArtifacts_.get(index); + } else { + return mavenArtifactsBuilder_.getMessageOrBuilder(index); + } + } + /** * - * @return The count of images. + * + *
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * */ - public int getImagesCount() { - return images_.size(); + public java.util.List + getMavenArtifactsOrBuilderList() { + if (mavenArtifactsBuilder_ != null) { + return mavenArtifactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mavenArtifacts_); + } } /** * * *
-     * A list of images to be pushed upon the successful completion of all build
-     * steps.
-     * The images will be pushed using the builder service account's credentials.
-     * The digests of the pushed images will be stored in the Build resource's
-     * results field.
-     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
      * 
* - * repeated string images = 1; + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + public com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder addMavenArtifactsBuilder() { + return getMavenArtifactsFieldBuilder() + .addBuilder(com.google.cloudbuild.v1.Artifacts.MavenArtifact.getDefaultInstance()); + } + /** * - * @param index The index of the element to return. - * @return The images at the given index. + * + *
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * */ - public java.lang.String getImages(int index) { - return images_.get(index); + public com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder addMavenArtifactsBuilder( + int index) { + return getMavenArtifactsFieldBuilder() + .addBuilder(index, com.google.cloudbuild.v1.Artifacts.MavenArtifact.getDefaultInstance()); } /** * * *
-     * A list of images to be pushed upon the successful completion of all build
-     * steps.
-     * The images will be pushed using the builder service account's credentials.
-     * The digests of the pushed images will be stored in the Build resource's
-     * results field.
-     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * A list of Maven artifacts to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * Artifacts in the workspace matching specified paths globs will be uploaded
+     * to the specified Artifact Registry repository using the builder service
+     * account's credentials.
+     * If any artifacts fail to be pushed, the build is marked FAILURE.
      * 
* - * repeated string images = 1; + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + public java.util.List + getMavenArtifactsBuilderList() { + return getMavenArtifactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloudbuild.v1.Artifacts.MavenArtifact, + com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder, + com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder> + getMavenArtifactsFieldBuilder() { + if (mavenArtifactsBuilder_ == null) { + mavenArtifactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloudbuild.v1.Artifacts.MavenArtifact, + com.google.cloudbuild.v1.Artifacts.MavenArtifact.Builder, + com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder>( + mavenArtifacts_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + mavenArtifacts_ = null; + } + return mavenArtifactsBuilder_; + } + + private java.util.List pythonPackages_ = + java.util.Collections.emptyList(); + + private void ensurePythonPackagesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + pythonPackages_ = + new java.util.ArrayList( + pythonPackages_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloudbuild.v1.Artifacts.PythonPackage, + com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder, + com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder> + pythonPackagesBuilder_; + + /** * - * @param index The index of the value to return. - * @return The bytes of the images at the given index. + * + *
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * */ - public com.google.protobuf.ByteString getImagesBytes(int index) { - return images_.getByteString(index); + public java.util.List + getPythonPackagesList() { + if (pythonPackagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(pythonPackages_); + } else { + return pythonPackagesBuilder_.getMessageList(); + } } /** * * *
-     * A list of images to be pushed upon the successful completion of all build
-     * steps.
-     * The images will be pushed using the builder service account's credentials.
-     * The digests of the pushed images will be stored in the Build resource's
-     * results field.
-     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
+     * If any objects fail to be pushed, the build is marked FAILURE.
      * 
* - * repeated string images = 1; + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * + */ + public int getPythonPackagesCount() { + if (pythonPackagesBuilder_ == null) { + return pythonPackages_.size(); + } else { + return pythonPackagesBuilder_.getCount(); + } + } + /** * - * @param index The index to set the value at. - * @param value The images to set. - * @return This builder for chaining. + * + *
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * */ - public Builder setImages(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloudbuild.v1.Artifacts.PythonPackage getPythonPackages(int index) { + if (pythonPackagesBuilder_ == null) { + return pythonPackages_.get(index); + } else { + return pythonPackagesBuilder_.getMessage(index); } - ensureImagesIsMutable(); - images_.set(index, value); - onChanged(); - return this; } /** * * *
-     * A list of images to be pushed upon the successful completion of all build
-     * steps.
-     * The images will be pushed using the builder service account's credentials.
-     * The digests of the pushed images will be stored in the Build resource's
-     * results field.
-     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
+     * If any objects fail to be pushed, the build is marked FAILURE.
      * 
* - * repeated string images = 1; + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * + */ + public Builder setPythonPackages( + int index, com.google.cloudbuild.v1.Artifacts.PythonPackage value) { + if (pythonPackagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePythonPackagesIsMutable(); + pythonPackages_.set(index, value); + onChanged(); + } else { + pythonPackagesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
* - * @param value The images to add. - * @return This builder for chaining. + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * */ - public Builder addImages(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setPythonPackages( + int index, com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder builderForValue) { + if (pythonPackagesBuilder_ == null) { + ensurePythonPackagesIsMutable(); + pythonPackages_.set(index, builderForValue.build()); + onChanged(); + } else { + pythonPackagesBuilder_.setMessage(index, builderForValue.build()); } - ensureImagesIsMutable(); - images_.add(value); - onChanged(); return this; } /** * * *
-     * A list of images to be pushed upon the successful completion of all build
-     * steps.
-     * The images will be pushed using the builder service account's credentials.
-     * The digests of the pushed images will be stored in the Build resource's
-     * results field.
-     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
+     * If any objects fail to be pushed, the build is marked FAILURE.
      * 
* - * repeated string images = 1; - * - * @param values The images to add. - * @return This builder for chaining. + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * */ - public Builder addAllImages(java.lang.Iterable values) { - ensureImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, images_); - onChanged(); + public Builder addPythonPackages(com.google.cloudbuild.v1.Artifacts.PythonPackage value) { + if (pythonPackagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePythonPackagesIsMutable(); + pythonPackages_.add(value); + onChanged(); + } else { + pythonPackagesBuilder_.addMessage(value); + } return this; } /** * * *
-     * A list of images to be pushed upon the successful completion of all build
-     * steps.
-     * The images will be pushed using the builder service account's credentials.
-     * The digests of the pushed images will be stored in the Build resource's
-     * results field.
-     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
+     * If any objects fail to be pushed, the build is marked FAILURE.
      * 
* - * repeated string images = 1; - * - * @return This builder for chaining. + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * */ - public Builder clearImages() { - images_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public Builder addPythonPackages( + int index, com.google.cloudbuild.v1.Artifacts.PythonPackage value) { + if (pythonPackagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePythonPackagesIsMutable(); + pythonPackages_.add(index, value); + onChanged(); + } else { + pythonPackagesBuilder_.addMessage(index, value); + } return this; } /** * * *
-     * A list of images to be pushed upon the successful completion of all build
-     * steps.
-     * The images will be pushed using the builder service account's credentials.
-     * The digests of the pushed images will be stored in the Build resource's
-     * results field.
-     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
+     * If any objects fail to be pushed, the build is marked FAILURE.
      * 
* - * repeated string images = 1; - * - * @param value The bytes of the images to add. - * @return This builder for chaining. + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * */ - public Builder addImagesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder addPythonPackages( + com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder builderForValue) { + if (pythonPackagesBuilder_ == null) { + ensurePythonPackagesIsMutable(); + pythonPackages_.add(builderForValue.build()); + onChanged(); + } else { + pythonPackagesBuilder_.addMessage(builderForValue.build()); } - checkByteStringIsUtf8(value); - ensureImagesIsMutable(); - images_.add(value); - onChanged(); return this; } - - private com.google.cloudbuild.v1.Artifacts.ArtifactObjects objects_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloudbuild.v1.Artifacts.ArtifactObjects, - com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder, - com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder> - objectsBuilder_; /** * * *
-     * A list of objects to be uploaded to Cloud Storage upon successful
-     * completion of all build steps.
-     * Files in the workspace matching specified paths globs will be uploaded to
-     * the specified Cloud Storage location using the builder service account's
-     * credentials.
-     * The location and generation of the uploaded objects will be stored in the
-     * Build resource's results field.
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
      * If any objects fail to be pushed, the build is marked FAILURE.
      * 
* - * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; - * - * @return Whether the objects field is set. + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * */ - public boolean hasObjects() { - return objectsBuilder_ != null || objects_ != null; + public Builder addPythonPackages( + int index, com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder builderForValue) { + if (pythonPackagesBuilder_ == null) { + ensurePythonPackagesIsMutable(); + pythonPackages_.add(index, builderForValue.build()); + onChanged(); + } else { + pythonPackagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; } /** * * *
-     * A list of objects to be uploaded to Cloud Storage upon successful
-     * completion of all build steps.
-     * Files in the workspace matching specified paths globs will be uploaded to
-     * the specified Cloud Storage location using the builder service account's
-     * credentials.
-     * The location and generation of the uploaded objects will be stored in the
-     * Build resource's results field.
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
      * If any objects fail to be pushed, the build is marked FAILURE.
      * 
* - * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; - * - * @return The objects. + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * */ - public com.google.cloudbuild.v1.Artifacts.ArtifactObjects getObjects() { - if (objectsBuilder_ == null) { - return objects_ == null - ? com.google.cloudbuild.v1.Artifacts.ArtifactObjects.getDefaultInstance() - : objects_; + public Builder addAllPythonPackages( + java.lang.Iterable values) { + if (pythonPackagesBuilder_ == null) { + ensurePythonPackagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pythonPackages_); + onChanged(); } else { - return objectsBuilder_.getMessage(); + pythonPackagesBuilder_.addAllMessages(values); } + return this; } /** * * *
-     * A list of objects to be uploaded to Cloud Storage upon successful
-     * completion of all build steps.
-     * Files in the workspace matching specified paths globs will be uploaded to
-     * the specified Cloud Storage location using the builder service account's
-     * credentials.
-     * The location and generation of the uploaded objects will be stored in the
-     * Build resource's results field.
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
      * If any objects fail to be pushed, the build is marked FAILURE.
      * 
* - * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * */ - public Builder setObjects(com.google.cloudbuild.v1.Artifacts.ArtifactObjects value) { - if (objectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - objects_ = value; + public Builder clearPythonPackages() { + if (pythonPackagesBuilder_ == null) { + pythonPackages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { - objectsBuilder_.setMessage(value); + pythonPackagesBuilder_.clear(); } - return this; } /** * * *
-     * A list of objects to be uploaded to Cloud Storage upon successful
-     * completion of all build steps.
-     * Files in the workspace matching specified paths globs will be uploaded to
-     * the specified Cloud Storage location using the builder service account's
-     * credentials.
-     * The location and generation of the uploaded objects will be stored in the
-     * Build resource's results field.
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
      * If any objects fail to be pushed, the build is marked FAILURE.
      * 
* - * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * */ - public Builder setObjects( - com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder builderForValue) { - if (objectsBuilder_ == null) { - objects_ = builderForValue.build(); + public Builder removePythonPackages(int index) { + if (pythonPackagesBuilder_ == null) { + ensurePythonPackagesIsMutable(); + pythonPackages_.remove(index); onChanged(); } else { - objectsBuilder_.setMessage(builderForValue.build()); + pythonPackagesBuilder_.remove(index); } - return this; } /** * * *
-     * A list of objects to be uploaded to Cloud Storage upon successful
-     * completion of all build steps.
-     * Files in the workspace matching specified paths globs will be uploaded to
-     * the specified Cloud Storage location using the builder service account's
-     * credentials.
-     * The location and generation of the uploaded objects will be stored in the
-     * Build resource's results field.
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
      * If any objects fail to be pushed, the build is marked FAILURE.
      * 
* - * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * */ - public Builder mergeObjects(com.google.cloudbuild.v1.Artifacts.ArtifactObjects value) { - if (objectsBuilder_ == null) { - if (objects_ != null) { - objects_ = - com.google.cloudbuild.v1.Artifacts.ArtifactObjects.newBuilder(objects_) - .mergeFrom(value) - .buildPartial(); - } else { - objects_ = value; - } - onChanged(); + public com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder getPythonPackagesBuilder( + int index) { + return getPythonPackagesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * + */ + public com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder getPythonPackagesOrBuilder( + int index) { + if (pythonPackagesBuilder_ == null) { + return pythonPackages_.get(index); } else { - objectsBuilder_.mergeFrom(value); + return pythonPackagesBuilder_.getMessageOrBuilder(index); } - - return this; } /** * * *
-     * A list of objects to be uploaded to Cloud Storage upon successful
-     * completion of all build steps.
-     * Files in the workspace matching specified paths globs will be uploaded to
-     * the specified Cloud Storage location using the builder service account's
-     * credentials.
-     * The location and generation of the uploaded objects will be stored in the
-     * Build resource's results field.
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
      * If any objects fail to be pushed, the build is marked FAILURE.
      * 
* - * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * */ - public Builder clearObjects() { - if (objectsBuilder_ == null) { - objects_ = null; - onChanged(); + public java.util.List + getPythonPackagesOrBuilderList() { + if (pythonPackagesBuilder_ != null) { + return pythonPackagesBuilder_.getMessageOrBuilderList(); } else { - objects_ = null; - objectsBuilder_ = null; + return java.util.Collections.unmodifiableList(pythonPackages_); } - - return this; } /** * * *
-     * A list of objects to be uploaded to Cloud Storage upon successful
-     * completion of all build steps.
-     * Files in the workspace matching specified paths globs will be uploaded to
-     * the specified Cloud Storage location using the builder service account's
-     * credentials.
-     * The location and generation of the uploaded objects will be stored in the
-     * Build resource's results field.
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
      * If any objects fail to be pushed, the build is marked FAILURE.
      * 
* - * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * */ - public com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder getObjectsBuilder() { - - onChanged(); - return getObjectsFieldBuilder().getBuilder(); + public com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder addPythonPackagesBuilder() { + return getPythonPackagesFieldBuilder() + .addBuilder(com.google.cloudbuild.v1.Artifacts.PythonPackage.getDefaultInstance()); } /** * * *
-     * A list of objects to be uploaded to Cloud Storage upon successful
-     * completion of all build steps.
-     * Files in the workspace matching specified paths globs will be uploaded to
-     * the specified Cloud Storage location using the builder service account's
-     * credentials.
-     * The location and generation of the uploaded objects will be stored in the
-     * Build resource's results field.
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
      * If any objects fail to be pushed, the build is marked FAILURE.
      * 
* - * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * */ - public com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder getObjectsOrBuilder() { - if (objectsBuilder_ != null) { - return objectsBuilder_.getMessageOrBuilder(); - } else { - return objects_ == null - ? com.google.cloudbuild.v1.Artifacts.ArtifactObjects.getDefaultInstance() - : objects_; - } + public com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder addPythonPackagesBuilder( + int index) { + return getPythonPackagesFieldBuilder() + .addBuilder(index, com.google.cloudbuild.v1.Artifacts.PythonPackage.getDefaultInstance()); } /** * * *
-     * A list of objects to be uploaded to Cloud Storage upon successful
-     * completion of all build steps.
-     * Files in the workspace matching specified paths globs will be uploaded to
-     * the specified Cloud Storage location using the builder service account's
-     * credentials.
-     * The location and generation of the uploaded objects will be stored in the
-     * Build resource's results field.
+     * A list of Python packages to be uploaded to Artifact Registry upon
+     * successful completion of all build steps.
+     * The build service account credentials will be used to perform the upload.
      * If any objects fail to be pushed, the build is marked FAILURE.
      * 
* - * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloudbuild.v1.Artifacts.ArtifactObjects, - com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder, - com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder> - getObjectsFieldBuilder() { - if (objectsBuilder_ == null) { - objectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloudbuild.v1.Artifacts.ArtifactObjects, - com.google.cloudbuild.v1.Artifacts.ArtifactObjects.Builder, - com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder>( - getObjects(), getParentForChildren(), isClean()); - objects_ = null; + public java.util.List + getPythonPackagesBuilderList() { + return getPythonPackagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloudbuild.v1.Artifacts.PythonPackage, + com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder, + com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder> + getPythonPackagesFieldBuilder() { + if (pythonPackagesBuilder_ == null) { + pythonPackagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloudbuild.v1.Artifacts.PythonPackage, + com.google.cloudbuild.v1.Artifacts.PythonPackage.Builder, + com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder>( + pythonPackages_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + pythonPackages_ = null; } - return objectsBuilder_; + return pythonPackagesBuilder_; } @java.lang.Override diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ArtifactsOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ArtifactsOrBuilder.java index d59a718b4d7c..938f06c1add0 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ArtifactsOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ArtifactsOrBuilder.java @@ -149,4 +149,158 @@ public interface ArtifactsOrBuilder * .google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects objects = 2; */ com.google.cloudbuild.v1.Artifacts.ArtifactObjectsOrBuilder getObjectsOrBuilder(); + + /** + * + * + *
+   * A list of Maven artifacts to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * Artifacts in the workspace matching specified paths globs will be uploaded
+   * to the specified Artifact Registry repository using the builder service
+   * account's credentials.
+   * If any artifacts fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + java.util.List getMavenArtifactsList(); + /** + * + * + *
+   * A list of Maven artifacts to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * Artifacts in the workspace matching specified paths globs will be uploaded
+   * to the specified Artifact Registry repository using the builder service
+   * account's credentials.
+   * If any artifacts fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + com.google.cloudbuild.v1.Artifacts.MavenArtifact getMavenArtifacts(int index); + /** + * + * + *
+   * A list of Maven artifacts to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * Artifacts in the workspace matching specified paths globs will be uploaded
+   * to the specified Artifact Registry repository using the builder service
+   * account's credentials.
+   * If any artifacts fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + int getMavenArtifactsCount(); + /** + * + * + *
+   * A list of Maven artifacts to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * Artifacts in the workspace matching specified paths globs will be uploaded
+   * to the specified Artifact Registry repository using the builder service
+   * account's credentials.
+   * If any artifacts fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + java.util.List + getMavenArtifactsOrBuilderList(); + /** + * + * + *
+   * A list of Maven artifacts to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * Artifacts in the workspace matching specified paths globs will be uploaded
+   * to the specified Artifact Registry repository using the builder service
+   * account's credentials.
+   * If any artifacts fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.MavenArtifact maven_artifacts = 3; + * + */ + com.google.cloudbuild.v1.Artifacts.MavenArtifactOrBuilder getMavenArtifactsOrBuilder(int index); + + /** + * + * + *
+   * A list of Python packages to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * The build service account credentials will be used to perform the upload.
+   * If any objects fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * + */ + java.util.List getPythonPackagesList(); + /** + * + * + *
+   * A list of Python packages to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * The build service account credentials will be used to perform the upload.
+   * If any objects fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * + */ + com.google.cloudbuild.v1.Artifacts.PythonPackage getPythonPackages(int index); + /** + * + * + *
+   * A list of Python packages to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * The build service account credentials will be used to perform the upload.
+   * If any objects fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * + */ + int getPythonPackagesCount(); + /** + * + * + *
+   * A list of Python packages to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * The build service account credentials will be used to perform the upload.
+   * If any objects fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * + */ + java.util.List + getPythonPackagesOrBuilderList(); + /** + * + * + *
+   * A list of Python packages to be uploaded to Artifact Registry upon
+   * successful completion of all build steps.
+   * The build service account credentials will be used to perform the upload.
+   * If any objects fail to be pushed, the build is marked FAILURE.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; + * + */ + com.google.cloudbuild.v1.Artifacts.PythonPackageOrBuilder getPythonPackagesOrBuilder(int index); } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java index d2b7a4f36675..28e088e2cf32 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java @@ -1927,7 +1927,7 @@ public com.google.cloudbuild.v1.BuildOptions.LogStreamingOption getLogStreamingO * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1784 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1880 * @return The workerPool. */ @java.lang.Override @@ -1953,7 +1953,7 @@ public java.lang.String getWorkerPool() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1784 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1880 * @return The bytes for workerPool. */ @java.lang.Override @@ -3837,7 +3837,7 @@ public Builder clearLogStreamingOption() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1784 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1880 * @return The workerPool. */ @java.lang.Deprecated @@ -3862,7 +3862,7 @@ public java.lang.String getWorkerPool() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1784 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1880 * @return The bytes for workerPool. */ @java.lang.Deprecated @@ -3887,7 +3887,7 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1784 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1880 * @param value The workerPool to set. * @return This builder for chaining. */ @@ -3911,7 +3911,7 @@ public Builder setWorkerPool(java.lang.String value) { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1784 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1880 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3931,7 +3931,7 @@ public Builder clearWorkerPool() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1784 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1880 * @param value The bytes for workerPool to set. * @return This builder for chaining. */ diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java index 1c175acea38b..bd7cec36610a 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java @@ -244,7 +244,7 @@ public interface BuildOptionsOrBuilder * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1784 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1880 * @return The workerPool. */ @java.lang.Deprecated @@ -259,7 +259,7 @@ public interface BuildOptionsOrBuilder * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1784 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1880 * @return The bytes for workerPool. */ @java.lang.Deprecated diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java index c114c76ac9eb..a0a8f7a1aabc 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java @@ -59,6 +59,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devtools_cloudbuild_v1_BuiltImage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_cloudbuild_v1_BuiltImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_cloudbuild_v1_UploadedPythonPackage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_cloudbuild_v1_UploadedPythonPackage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_cloudbuild_v1_UploadedMavenArtifact_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_cloudbuild_v1_UploadedMavenArtifact_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_cloudbuild_v1_BuildStep_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -103,6 +111,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devtools_cloudbuild_v1_Artifacts_ArtifactObjects_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_cloudbuild_v1_Artifacts_ArtifactObjects_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_cloudbuild_v1_Artifacts_MavenArtifact_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_cloudbuild_v1_Artifacts_MavenArtifact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_cloudbuild_v1_Artifacts_PythonPackage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_cloudbuild_v1_Artifacts_PythonPackage_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_cloudbuild_v1_TimeSpan_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -357,480 +373,501 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1.StorageSourceManifestH\000B\010\n\006source\"m\n\nB" + "uiltImage\022\014\n\004name\030\001 \001(\t\022\016\n\006digest\030\003 \001(\t\022" + "A\n\013push_timing\030\004 \001(\0132\'.google.devtools.c" - + "loudbuild.v1.TimeSpanB\003\340A\003\"\207\004\n\tBuildStep" - + "\022\014\n\004name\030\001 \001(\t\022\013\n\003env\030\002 \003(\t\022\014\n\004args\030\003 \003(" - + "\t\022\013\n\003dir\030\004 \001(\t\022\n\n\002id\030\005 \001(\t\022\020\n\010wait_for\030\006" - + " \003(\t\022\022\n\nentrypoint\030\007 \001(\t\022\022\n\nsecret_env\030\010" - + " \003(\t\0226\n\007volumes\030\t \003(\0132%.google.devtools." - + "cloudbuild.v1.Volume\022<\n\006timing\030\n \001(\0132\'.g" - + "oogle.devtools.cloudbuild.v1.TimeSpanB\003\340" - + "A\003\022A\n\013pull_timing\030\r \001(\0132\'.google.devtool" - + "s.cloudbuild.v1.TimeSpanB\003\340A\003\022*\n\007timeout" - + "\030\013 \001(\0132\031.google.protobuf.Duration\022@\n\006sta" - + "tus\030\014 \001(\0162+.google.devtools.cloudbuild.v" - + "1.Build.StatusB\003\340A\003\022\025\n\rallow_failure\030\016 \001" - + "(\010\022\026\n\texit_code\030\020 \001(\005B\003\340A\003\022\030\n\020allow_exit" - + "_codes\030\022 \003(\005\022\016\n\006script\030\023 \001(\t\"$\n\006Volume\022\014" - + "\n\004name\030\001 \001(\t\022\014\n\004path\030\002 \001(\t\"\357\001\n\007Results\0229" - + "\n\006images\030\002 \003(\0132).google.devtools.cloudbu" - + "ild.v1.BuiltImage\022\031\n\021build_step_images\030\003" - + " \003(\t\022\031\n\021artifact_manifest\030\004 \001(\t\022\025\n\rnum_a" - + "rtifacts\030\005 \001(\003\022\032\n\022build_step_outputs\030\006 \003" - + "(\014\022@\n\017artifact_timing\030\007 \001(\0132\'.google.dev" - + "tools.cloudbuild.v1.TimeSpan\"`\n\016Artifact" - + "Result\022\020\n\010location\030\001 \001(\t\022<\n\tfile_hash\030\002 " - + "\003(\0132).google.devtools.cloudbuild.v1.File" - + "Hashes\"\240\022\n\005Build\022\021\n\004name\030- \001(\tB\003\340A\003\022\017\n\002i" - + "d\030\001 \001(\tB\003\340A\003\022\027\n\nproject_id\030\020 \001(\tB\003\340A\003\022@\n" - + "\006status\030\002 \001(\0162+.google.devtools.cloudbui" - + "ld.v1.Build.StatusB\003\340A\003\022\032\n\rstatus_detail" - + "\030\030 \001(\tB\003\340A\003\0225\n\006source\030\003 \001(\0132%.google.dev" - + "tools.cloudbuild.v1.Source\0227\n\005steps\030\013 \003(" - + "\0132(.google.devtools.cloudbuild.v1.BuildS" - + "tep\022<\n\007results\030\n \001(\0132&.google.devtools.c" - + "loudbuild.v1.ResultsB\003\340A\003\0224\n\013create_time" - + "\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "3\n\nstart_time\030\007 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\0224\n\013finish_time\030\010 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\022*\n\007timeout\030\014 " - + "\001(\0132\031.google.protobuf.Duration\022\016\n\006images" - + "\030\r \003(\t\022,\n\tqueue_ttl\030( \001(\0132\031.google.proto" - + "buf.Duration\022;\n\tartifacts\030% \001(\0132(.google" - + ".devtools.cloudbuild.v1.Artifacts\022\023\n\013log" - + "s_bucket\030\023 \001(\t\022O\n\021source_provenance\030\025 \001(" - + "\0132/.google.devtools.cloudbuild.v1.Source" - + "ProvenanceB\003\340A\003\022\035\n\020build_trigger_id\030\026 \001(" - + "\tB\003\340A\003\022<\n\007options\030\027 \001(\0132+.google.devtool" - + "s.cloudbuild.v1.BuildOptions\022\024\n\007log_url\030" - + "\031 \001(\tB\003\340A\003\022N\n\rsubstitutions\030\035 \003(\01327.goog" - + "le.devtools.cloudbuild.v1.Build.Substitu" - + "tionsEntry\022\014\n\004tags\030\037 \003(\t\0226\n\007secrets\030 \003(" - + "\0132%.google.devtools.cloudbuild.v1.Secret" - + "\022E\n\006timing\030! \003(\01320.google.devtools.cloud" - + "build.v1.Build.TimingEntryB\003\340A\003\022C\n\010appro" - + "val\030, \001(\0132,.google.devtools.cloudbuild.v" - + "1.BuildApprovalB\003\340A\003\022?\n\017service_account\030" - + "* \001(\tB&\372A#\n!iam.googleapis.com/ServiceAc" - + "count\022A\n\021available_secrets\030/ \001(\0132&.googl" - + "e.devtools.cloudbuild.v1.Secrets\022C\n\010warn" - + "ings\0301 \003(\0132,.google.devtools.cloudbuild." - + "v1.Build.WarningB\003\340A\003\022K\n\014failure_info\0303 " - + "\001(\01320.google.devtools.cloudbuild.v1.Buil" - + "d.FailureInfoB\003\340A\003\032\250\001\n\007Warning\022\014\n\004text\030\001" - + " \001(\t\022G\n\010priority\030\002 \001(\01625.google.devtools" - + ".cloudbuild.v1.Build.Warning.Priority\"F\n" - + "\010Priority\022\030\n\024PRIORITY_UNSPECIFIED\020\000\022\010\n\004I" - + "NFO\020\001\022\013\n\007WARNING\020\002\022\t\n\005ALERT\020\003\032\236\002\n\013Failur" - + "eInfo\022J\n\004type\030\001 \001(\0162<.google.devtools.cl" - + "oudbuild.v1.Build.FailureInfo.FailureTyp" - + "e\022\016\n\006detail\030\002 \001(\t\"\262\001\n\013FailureType\022\034\n\030FAI" - + "LURE_TYPE_UNSPECIFIED\020\000\022\017\n\013PUSH_FAILED\020\001" - + "\022\030\n\024PUSH_IMAGE_NOT_FOUND\020\002\022\027\n\023PUSH_NOT_A" - + "UTHORIZED\020\003\022\023\n\017LOGGING_FAILURE\020\004\022\023\n\017USER" - + "_BUILD_STEP\020\005\022\027\n\023FETCH_SOURCE_FAILED\020\006\0324" - + "\n\022SubstitutionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\032V\n\013TimingEntry\022\013\n\003key\030\001 \001(\t" - + "\0226\n\005value\030\002 \001(\0132\'.google.devtools.cloudb" - + "uild.v1.TimeSpan:\0028\001\"\231\001\n\006Status\022\022\n\016STATU" - + "S_UNKNOWN\020\000\022\013\n\007PENDING\020\n\022\n\n\006QUEUED\020\001\022\013\n\007" - + "WORKING\020\002\022\013\n\007SUCCESS\020\003\022\013\n\007FAILURE\020\004\022\022\n\016I" - + "NTERNAL_ERROR\020\005\022\013\n\007TIMEOUT\020\006\022\r\n\tCANCELLE" - + "D\020\007\022\013\n\007EXPIRED\020\t:\177\352A|\n\037cloudbuild.google" - + "apis.com/Build\022!projects/{project}/build" - + "s/{build}\0226projects/{project}/locations/" - + "{location}/builds/{build}\"\330\001\n\tArtifacts\022" - + "\016\n\006images\030\001 \003(\t\022I\n\007objects\030\002 \001(\01328.googl" - + "e.devtools.cloudbuild.v1.Artifacts.Artif" - + "actObjects\032p\n\017ArtifactObjects\022\020\n\010locatio" - + "n\030\001 \001(\t\022\r\n\005paths\030\002 \003(\t\022<\n\006timing\030\003 \001(\0132\'" - + ".google.devtools.cloudbuild.v1.TimeSpanB" - + "\003\340A\003\"h\n\010TimeSpan\022.\n\nstart_time\030\001 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022,\n\010end_time\030\002 \001" - + "(\0132\032.google.protobuf.Timestamp\"M\n\026BuildO" - + "perationMetadata\0223\n\005build\030\001 \001(\0132$.google" - + ".devtools.cloudbuild.v1.Build\"\303\003\n\020Source" - + "Provenance\022M\n\027resolved_storage_source\030\003 " - + "\001(\0132,.google.devtools.cloudbuild.v1.Stor" - + "ageSource\022G\n\024resolved_repo_source\030\006 \001(\0132" - + ").google.devtools.cloudbuild.v1.RepoSour" - + "ce\022^\n resolved_storage_source_manifest\030\t" - + " \001(\01324.google.devtools.cloudbuild.v1.Sto" - + "rageSourceManifest\022Y\n\013file_hashes\030\004 \003(\0132" - + "?.google.devtools.cloudbuild.v1.SourcePr" - + "ovenance.FileHashesEntryB\003\340A\003\032\\\n\017FileHas" - + "hesEntry\022\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001(\0132).g" - + "oogle.devtools.cloudbuild.v1.FileHashes:" - + "\0028\001\"D\n\nFileHashes\0226\n\tfile_hash\030\001 \003(\0132#.g" - + "oogle.devtools.cloudbuild.v1.Hash\"|\n\004Has" - + "h\022:\n\004type\030\001 \001(\0162,.google.devtools.cloudb" - + "uild.v1.Hash.HashType\022\r\n\005value\030\002 \001(\014\")\n\010" - + "HashType\022\010\n\004NONE\020\000\022\n\n\006SHA256\020\001\022\007\n\003MD5\020\002\"" - + "\222\001\n\007Secrets\022J\n\016secret_manager\030\001 \003(\01322.go" - + "ogle.devtools.cloudbuild.v1.SecretManage" - + "rSecret\022;\n\006inline\030\002 \003(\0132+.google.devtool" - + "s.cloudbuild.v1.InlineSecret\"\305\001\n\014InlineS" - + "ecret\022<\n\014kms_key_name\030\001 \001(\tB&\372A#\n!cloudk" - + "ms.googleapis.com/CryptoKey\022H\n\007env_map\030\002" - + " \003(\01327.google.devtools.cloudbuild.v1.Inl" - + "ineSecret.EnvMapEntry\032-\n\013EnvMapEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"i\n\023SecretMa" - + "nagerSecret\022E\n\014version_name\030\001 \001(\tB/\372A,\n*" - + "secretmanager.googleapis.com/SecretVersi" - + "on\022\013\n\003env\030\002 \001(\t\"\232\001\n\006Secret\022\024\n\014kms_key_na" - + "me\030\001 \001(\t\022H\n\nsecret_env\030\003 \003(\01324.google.de" - + "vtools.cloudbuild.v1.Secret.SecretEnvEnt" - + "ry\0320\n\016SecretEnvEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\014:\0028\001\"\235\001\n\022CreateBuildRequest\0224\n\006p" - + "arent\030\004 \001(\tB$\372A!\022\037cloudbuild.googleapis." - + "com/Build\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\0228\n\005bu" - + "ild\030\002 \001(\0132$.google.devtools.cloudbuild.v" - + "1.BuildB\003\340A\002\"o\n\017GetBuildRequest\0222\n\004name\030" - + "\004 \001(\tB$\372A!\n\037cloudbuild.googleapis.com/Bu" - + "ild\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\017\n\002id\030\002 \001(\t" - + "B\003\340A\002\"\231\001\n\021ListBuildsRequest\0224\n\006parent\030\t " - + "\001(\tB$\372A!\022\037cloudbuild.googleapis.com/Buil" - + "d\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030" - + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\010 \001(" - + "\t\"c\n\022ListBuildsResponse\0224\n\006builds\030\001 \003(\0132" - + "$.google.devtools.cloudbuild.v1.Build\022\027\n" - + "\017next_page_token\030\002 \001(\t\"r\n\022CancelBuildReq" - + "uest\0222\n\004name\030\004 \001(\tB$\372A!\n\037cloudbuild.goog" - + "leapis.com/Build\022\027\n\nproject_id\030\001 \001(\tB\003\340A" - + "\002\022\017\n\002id\030\002 \001(\tB\003\340A\002\"p\n\023ApproveBuildReques" - + "t\022\021\n\004name\030\001 \001(\tB\003\340A\002\022F\n\017approval_result\030" - + "\002 \001(\0132-.google.devtools.cloudbuild.v1.Ap" - + "provalResult\"\267\002\n\rBuildApproval\022F\n\005state\030" - + "\001 \001(\01622.google.devtools.cloudbuild.v1.Bu" - + "ildApproval.StateB\003\340A\003\022B\n\006config\030\002 \001(\0132-" - + ".google.devtools.cloudbuild.v1.ApprovalC" - + "onfigB\003\340A\003\022B\n\006result\030\003 \001(\0132-.google.devt" - + "ools.cloudbuild.v1.ApprovalResultB\003\340A\003\"V" - + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDIN" - + "G\020\001\022\014\n\010APPROVED\020\002\022\014\n\010REJECTED\020\003\022\r\n\tCANCE" - + "LLED\020\005\"+\n\016ApprovalConfig\022\031\n\021approval_req" - + "uired\030\001 \001(\010\"\240\002\n\016ApprovalResult\022\035\n\020approv" - + "er_account\030\002 \001(\tB\003\340A\003\0226\n\rapproval_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022M\n" - + "\010decision\030\004 \001(\01626.google.devtools.cloudb" - + "uild.v1.ApprovalResult.DecisionB\003\340A\002\022\024\n\007" - + "comment\030\005 \001(\tB\003\340A\001\022\020\n\003url\030\006 \001(\tB\003\340A\001\"@\n\010" - + "Decision\022\030\n\024DECISION_UNSPECIFIED\020\000\022\014\n\010AP" - + "PROVED\020\001\022\014\n\010REJECTED\020\002\"\353\007\n\014BuildTrigger\022" - + "\025\n\rresource_name\030\" \001(\t\022\017\n\002id\030\001 \001(\tB\003\340A\003\022" - + "\023\n\013description\030\n \001(\t\022\014\n\004name\030\025 \001(\t\022\014\n\004ta" - + "gs\030\023 \003(\t\022C\n\020trigger_template\030\007 \001(\0132).goo" - + "gle.devtools.cloudbuild.v1.RepoSource\022A\n" - + "\006github\030\r \001(\01321.google.devtools.cloudbui" - + "ld.v1.GitHubEventsConfig\022B\n\rpubsub_confi" - + "g\030\035 \001(\0132+.google.devtools.cloudbuild.v1." - + "PubsubConfig\022D\n\016webhook_config\030\037 \001(\0132,.g" - + "oogle.devtools.cloudbuild.v1.WebhookConf" - + "ig\022\024\n\nautodetect\030\022 \001(\010H\000\0225\n\005build\030\004 \001(\0132" - + "$.google.devtools.cloudbuild.v1.BuildH\000\022" - + "\022\n\010filename\030\010 \001(\tH\000\0224\n\013create_time\030\005 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\022\020\n\010dis" - + "abled\030\t \001(\010\022U\n\rsubstitutions\030\013 \003(\0132>.goo" - + "gle.devtools.cloudbuild.v1.BuildTrigger." - + "SubstitutionsEntry\022\025\n\rignored_files\030\017 \003(" - + "\t\022\026\n\016included_files\030\020 \003(\t\022\023\n\006filter\030\036 \001(" - + "\tB\003\340A\001\022?\n\017service_account\030! \001(\tB&\372A#\n!ia" - + "m.googleapis.com/ServiceAccount\0324\n\022Subst" - + "itutionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001:\242\001\352A\236\001\n&cloudbuild.googleapis.com/" - + "BuildTrigger\022%projects/{project}/trigger" - + "s/{trigger}\022:projects/{project}/location" - + "s/{location}/triggers/{trigger}*\010trigger" - + "s2\007triggerB\020\n\016build_template\"\334\001\n\022GitHubE" - + "ventsConfig\022\033\n\017installation_id\030\001 \001(\003B\002\030\001" - + "\022\r\n\005owner\030\006 \001(\t\022\014\n\004name\030\007 \001(\t\022H\n\014pull_re" - + "quest\030\004 \001(\01320.google.devtools.cloudbuild" - + ".v1.PullRequestFilterH\000\0229\n\004push\030\005 \001(\0132)." - + "google.devtools.cloudbuild.v1.PushFilter" - + "H\000B\007\n\005event\"\377\002\n\014PubsubConfig\022@\n\014subscrip" - + "tion\030\001 \001(\tB*\340A\003\372A$\n\"pubsub.googleapis.co" - + "m/Subscription\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubs" - + "ub.googleapis.com/Topic\022E\n\025service_accou" - + "nt_email\030\003 \001(\tB&\372A#\n!iam.googleapis.com/" - + "ServiceAccount\022@\n\005state\030\004 \001(\01621.google.d" - + "evtools.cloudbuild.v1.PubsubConfig.State" - + "\"s\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\006\n\002OK\020\001" - + "\022\030\n\024SUBSCRIPTION_DELETED\020\002\022\021\n\rTOPIC_DELE" - + "TED\020\003\022\036\n\032SUBSCRIPTION_MISCONFIGURED\020\004\"\343\001" - + "\n\rWebhookConfig\022D\n\006secret\030\003 \001(\tB2\340A\002\372A,\n" - + "*secretmanager.googleapis.com/SecretVers" - + "ionH\000\022A\n\005state\030\004 \001(\01622.google.devtools.c" - + "loudbuild.v1.WebhookConfig.State\":\n\005Stat" - + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\006\n\002OK\020\001\022\022\n\016SECR" - + "ET_DELETED\020\002B\r\n\013auth_method\"\224\002\n\021PullRequ" - + "estFilter\022\020\n\006branch\030\002 \001(\tH\000\022X\n\017comment_c" - + "ontrol\030\005 \001(\0162?.google.devtools.cloudbuil" - + "d.v1.PullRequestFilter.CommentControl\022\024\n" - + "\014invert_regex\030\006 \001(\010\"r\n\016CommentControl\022\025\n" - + "\021COMMENTS_DISABLED\020\000\022\024\n\020COMMENTS_ENABLED" - + "\020\001\0223\n/COMMENTS_ENABLED_FOR_EXTERNAL_CONT" - + "RIBUTORS_ONLY\020\002B\t\n\007git_ref\"N\n\nPushFilter" - + "\022\020\n\006branch\030\002 \001(\tH\000\022\r\n\003tag\030\003 \001(\tH\000\022\024\n\014inv" - + "ert_regex\030\004 \001(\010B\t\n\007git_ref\"\264\001\n\031CreateBui" - + "ldTriggerRequest\022;\n\006parent\030\003 \001(\tB+\372A(\022&c" - + "loudbuild.googleapis.com/BuildTrigger\022\027\n" - + "\nproject_id\030\001 \001(\tB\003\340A\002\022A\n\007trigger\030\002 \001(\0132" - + "+.google.devtools.cloudbuild.v1.BuildTri" - + "ggerB\003\340A\002\"\205\001\n\026GetBuildTriggerRequest\0229\n\004" - + "name\030\003 \001(\tB+\372A(\n&cloudbuild.googleapis.c" - + "om/BuildTrigger\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002" - + "\022\027\n\ntrigger_id\030\002 \001(\tB\003\340A\002\"\227\001\n\030ListBuildT" - + "riggersRequest\022;\n\006parent\030\004 \001(\tB+\372A(\022&clo" - + "udbuild.googleapis.com/BuildTrigger\022\027\n\np" - + "roject_id\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\"s\n\031ListBuildTriggers" - + "Response\022=\n\010triggers\030\001 \003(\0132+.google.devt" - + "ools.cloudbuild.v1.BuildTrigger\022\027\n\017next_" - + "page_token\030\002 \001(\t\"\210\001\n\031DeleteBuildTriggerR" - + "equest\0229\n\004name\030\003 \001(\tB+\372A(\n&cloudbuild.go" - + "ogleapis.com/BuildTrigger\022\027\n\nproject_id\030" - + "\001 \001(\tB\003\340A\002\022\027\n\ntrigger_id\030\002 \001(\tB\003\340A\002\"\220\001\n\031" - + "UpdateBuildTriggerRequest\022\027\n\nproject_id\030" - + "\001 \001(\tB\003\340A\002\022\027\n\ntrigger_id\030\002 \001(\tB\003\340A\002\022A\n\007t" - + "rigger\030\003 \001(\0132+.google.devtools.cloudbuil" - + "d.v1.BuildTriggerB\003\340A\002\"\334\t\n\014BuildOptions\022" - + "L\n\026source_provenance_hash\030\001 \003(\0162,.google" - + ".devtools.cloudbuild.v1.Hash.HashType\022Y\n" - + "\027requested_verify_option\030\002 \001(\01628.google." - + "devtools.cloudbuild.v1.BuildOptions.Veri" - + "fyOption\022M\n\014machine_type\030\003 \001(\01627.google." - + "devtools.cloudbuild.v1.BuildOptions.Mach" - + "ineType\022\024\n\014disk_size_gb\030\006 \001(\003\022[\n\023substit" - + "ution_option\030\004 \001(\0162>.google.devtools.clo" - + "udbuild.v1.BuildOptions.SubstitutionOpti" - + "on\022\035\n\025dynamic_substitutions\030\021 \001(\010\022\\\n\024log" - + "_streaming_option\030\005 \001(\0162>.google.devtool" - + "s.cloudbuild.v1.BuildOptions.LogStreamin" - + "gOption\022\027\n\013worker_pool\030\007 \001(\tB\002\030\001\022I\n\004pool" - + "\030\023 \001(\01326.google.devtools.cloudbuild.v1.B" - + "uildOptions.PoolOptionB\003\340A\001\022H\n\007logging\030\013" - + " \001(\01627.google.devtools.cloudbuild.v1.Bui" - + "ldOptions.LoggingMode\022\013\n\003env\030\014 \003(\t\022\022\n\nse" - + "cret_env\030\r \003(\t\0226\n\007volumes\030\016 \003(\0132%.google" - + ".devtools.cloudbuild.v1.Volume\032E\n\nPoolOp" - + "tion\0227\n\004name\030\001 \001(\tB)\372A&\n$cloudbuild.goog" - + "leapis.com/WorkerPool\".\n\014VerifyOption\022\020\n" - + "\014NOT_VERIFIED\020\000\022\014\n\010VERIFIED\020\001\"h\n\013Machine" - + "Type\022\017\n\013UNSPECIFIED\020\000\022\020\n\014N1_HIGHCPU_8\020\001\022" - + "\021\n\rN1_HIGHCPU_32\020\002\022\020\n\014E2_HIGHCPU_8\020\005\022\021\n\r" - + "E2_HIGHCPU_32\020\006\"5\n\022SubstitutionOption\022\016\n" - + "\nMUST_MATCH\020\000\022\017\n\013ALLOW_LOOSE\020\001\"G\n\022LogStr" - + "eamingOption\022\022\n\016STREAM_DEFAULT\020\000\022\r\n\tSTRE" - + "AM_ON\020\001\022\016\n\nSTREAM_OFF\020\002\"|\n\013LoggingMode\022\027" - + "\n\023LOGGING_UNSPECIFIED\020\000\022\n\n\006LEGACY\020\001\022\014\n\010G" - + "CS_ONLY\020\002\022\030\n\020STACKDRIVER_ONLY\020\003\032\002\010\001\022\026\n\022C" - + "LOUD_LOGGING_ONLY\020\005\022\010\n\004NONE\020\004\"\205\001\n\034Receiv" - + "eTriggerWebhookRequest\022\014\n\004name\030\005 \001(\t\022\"\n\004" - + "body\030\001 \001(\0132\024.google.api.HttpBody\022\022\n\nproj" - + "ect_id\030\002 \001(\t\022\017\n\007trigger\030\003 \001(\t\022\016\n\006secret\030" - + "\004 \001(\t\"\037\n\035ReceiveTriggerWebhookResponse\"\210" - + "\006\n\nWorkerPool\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014disp" - + "lay_name\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022O\n\013anno" - + "tations\030\004 \003(\0132:.google.devtools.cloudbui" - + "ld.v1.WorkerPool.AnnotationsEntry\0224\n\013cre" - + "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\007 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022C\n\005s" - + "tate\030\010 \001(\0162/.google.devtools.cloudbuild." - + "v1.WorkerPool.StateB\003\340A\003\022T\n\026private_pool" - + "_v1_config\030\014 \001(\01322.google.devtools.cloud" - + "build.v1.PrivatePoolV1ConfigH\000\022\021\n\004etag\030\013" - + " \001(\tB\003\340A\003\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"T\n\005State\022\025\n\021STATE_" - + "UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007RUNNING\020\002" - + "\022\014\n\010DELETING\020\003\022\013\n\007DELETED\020\004:\211\001\352A\205\001\n$clou" - + "dbuild.googleapis.com/WorkerPool\022Aprojec" - + "ts/{project}/locations/{location}/worker" - + "Pools/{worker_pool}*\013workerPools2\nworker" - + "PoolR\001\001B\010\n\006config\"\226\004\n\023PrivatePoolV1Confi" - + "g\022V\n\rworker_config\030\001 \001(\0132?.google.devtoo" - + "ls.cloudbuild.v1.PrivatePoolV1Config.Wor" - + "kerConfig\022X\n\016network_config\030\002 \001(\0132@.goog" - + "le.devtools.cloudbuild.v1.PrivatePoolV1C" - + "onfig.NetworkConfig\032:\n\014WorkerConfig\022\024\n\014m" - + "achine_type\030\001 \001(\t\022\024\n\014disk_size_gb\030\002 \001(\003\032" - + "\220\002\n\rNetworkConfig\022A\n\016peered_network\030\001 \001(" - + "\tB)\340A\005\340A\002\372A \n\036compute.googleapis.com/Net" - + "work\022d\n\regress_option\030\002 \001(\0162M.google.dev" - + "tools.cloudbuild.v1.PrivatePoolV1Config." - + "NetworkConfig.EgressOption\"V\n\014EgressOpti" - + "on\022\035\n\031EGRESS_OPTION_UNSPECIFIED\020\000\022\024\n\020NO_" - + "PUBLIC_EGRESS\020\001\022\021\n\rPUBLIC_EGRESS\020\002\"\320\001\n\027C" - + "reateWorkerPoolRequest\0229\n\006parent\030\001 \001(\tB)" - + "\340A\002\372A#\n!locations.googleapis.com/Locatio" - + "n\022C\n\013worker_pool\030\002 \001(\0132).google.devtools" - + ".cloudbuild.v1.WorkerPoolB\003\340A\002\022\036\n\016worker" - + "_pool_id\030\003 \001(\tB\006\340A\005\340A\002\022\025\n\rvalidate_only\030" - + "\004 \001(\010\"R\n\024GetWorkerPoolRequest\022:\n\004name\030\001 " - + "\001(\tB,\340A\002\372A&\n$cloudbuild.googleapis.com/W" - + "orkerPool\"\221\001\n\027DeleteWorkerPoolRequest\022:\n" - + "\004name\030\001 \001(\tB,\340A\002\372A&\n$cloudbuild.googleap" - + "is.com/WorkerPool\022\014\n\004etag\030\002 \001(\t\022\025\n\rallow" - + "_missing\030\003 \001(\010\022\025\n\rvalidate_only\030\004 \001(\010\"\246\001" - + "\n\027UpdateWorkerPoolRequest\022C\n\013worker_pool" - + "\030\001 \001(\0132).google.devtools.cloudbuild.v1.W" - + "orkerPoolB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.go" - + "ogle.protobuf.FieldMask\022\025\n\rvalidate_only" - + "\030\004 \001(\010\"z\n\026ListWorkerPoolsRequest\0229\n\006pare" - + "nt\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.c" - + "om/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"s\n\027ListWorkerPoolsResponse\022?\n" - + "\014worker_pools\030\001 \003(\0132).google.devtools.cl" - + "oudbuild.v1.WorkerPool\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"\307\001\n!CreateWorkerPoolOperationMet" - + "adata\022>\n\013worker_pool\030\001 \001(\tB)\372A&\n$cloudbu" - + "ild.googleapis.com/WorkerPool\022/\n\013create_" - + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\0221" - + "\n\rcomplete_time\030\003 \001(\0132\032.google.protobuf." - + "Timestamp\"\307\001\n!UpdateWorkerPoolOperationM" - + "etadata\022>\n\013worker_pool\030\001 \001(\tB)\372A&\n$cloud" - + "build.googleapis.com/WorkerPool\022/\n\013creat" - + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" - + "\0221\n\rcomplete_time\030\003 \001(\0132\032.google.protobu" - + "f.Timestamp\"\307\001\n!DeleteWorkerPoolOperatio" - + "nMetadata\022>\n\013worker_pool\030\001 \001(\tB)\372A&\n$clo" - + "udbuild.googleapis.com/WorkerPool\022/\n\013cre" - + "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mp\0221\n\rcomplete_time\030\003 \001(\0132\032.google.proto" - + "buf.Timestamp2\266#\n\nCloudBuild\022\373\001\n\013CreateB" - + "uild\0221.google.devtools.cloudbuild.v1.Cre" - + "ateBuildRequest\032\035.google.longrunning.Ope" - + "ration\"\231\001\202\323\344\223\002^\" /v1/projects/{project_i" - + "d}/builds:\005buildZ3\"*/v1/{parent=projects" - + "/*/locations/*}/builds:\005build\332A\020project_" - + "id,build\312A\037\n\005Build\022\026BuildOperationMetada" - + "ta\022\315\001\n\010GetBuild\022..google.devtools.cloudb" - + "uild.v1.GetBuildRequest\032$.google.devtool" - + "s.cloudbuild.v1.Build\"k\202\323\344\223\002U\022%/v1/proje" - + "cts/{project_id}/builds/{id}Z,\022*/v1/{nam" - + "e=projects/*/locations/*/builds/*}\332A\rpro" - + "ject_id,id\022\335\001\n\nListBuilds\0220.google.devto" - + "ols.cloudbuild.v1.ListBuildsRequest\0321.go" - + "ogle.devtools.cloudbuild.v1.ListBuildsRe" - + "sponse\"j\202\323\344\223\002P\022 /v1/projects/{project_id" - + "}/buildsZ,\022*/v1/{parent=projects/*/locat" - + "ions/*}/builds\332A\021project_id,filter\022\347\001\n\013C" - + "ancelBuild\0221.google.devtools.cloudbuild." - + "v1.CancelBuildRequest\032$.google.devtools." - + "cloudbuild.v1.Build\"\177\202\323\344\223\002i\",/v1/project" - + "s/{project_id}/builds/{id}:cancel:\001*Z6\"1" - + "/v1/{name=projects/*/locations/*/builds/", - "*}:cancel:\001*\332A\rproject_id,id\022\377\001\n\nRetryBu" - + "ild\0220.google.devtools.cloudbuild.v1.Retr" - + "yBuildRequest\032\035.google.longrunning.Opera" - + "tion\"\237\001\202\323\344\223\002g\"+/v1/projects/{project_id}" - + "/builds/{id}:retry:\001*Z5\"0/v1/{name=proje" - + "cts/*/locations/*/builds/*}:retry:\001*\332A\rp" - + "roject_id,id\312A\037\n\005Build\022\026BuildOperationMe" - + "tadata\022\207\002\n\014ApproveBuild\0222.google.devtool" - + "s.cloudbuild.v1.ApproveBuildRequest\032\035.go" - + "ogle.longrunning.Operation\"\243\001\202\323\344\223\002d\"&/v1" - + "/{name=projects/*/builds/*}:approve:\001*Z7" - + "\"2/v1/{name=projects/*/locations/*/build" - + "s/*}:approve:\001*\332A\024name,approval_result\312A" - + "\037\n\005Build\022\026BuildOperationMetadata\022\377\001\n\022Cre" - + "ateBuildTrigger\0228.google.devtools.cloudb" - + "uild.v1.CreateBuildTriggerRequest\032+.goog" - + "le.devtools.cloudbuild.v1.BuildTrigger\"\201" - + "\001\202\323\344\223\002f\"\"/v1/projects/{project_id}/trigg" - + "ers:\007triggerZ7\",/v1/{parent=projects/*/l" - + "ocations/*}/triggers:\007trigger\332A\022project_" - + "id,trigger\022\366\001\n\017GetBuildTrigger\0225.google." - + "devtools.cloudbuild.v1.GetBuildTriggerRe" - + "quest\032+.google.devtools.cloudbuild.v1.Bu" - + "ildTrigger\"\177\202\323\344\223\002a\022//v1/projects/{projec" - + "t_id}/triggers/{trigger_id}Z.\022,/v1/{name" - + "=projects/*/locations/*/triggers/*}\332A\025pr" - + "oject_id,trigger_id\022\357\001\n\021ListBuildTrigger" - + "s\0227.google.devtools.cloudbuild.v1.ListBu" - + "ildTriggersRequest\0328.google.devtools.clo" - + "udbuild.v1.ListBuildTriggersResponse\"g\202\323" - + "\344\223\002T\022\"/v1/projects/{project_id}/triggers" - + "Z.\022,/v1/{parent=projects/*/locations/*}/" - + "triggers\332A\nproject_id\022\347\001\n\022DeleteBuildTri" - + "gger\0228.google.devtools.cloudbuild.v1.Del" - + "eteBuildTriggerRequest\032\026.google.protobuf" - + ".Empty\"\177\202\323\344\223\002a*//v1/projects/{project_id" - + "}/triggers/{trigger_id}Z.*,/v1/{name=pro" - + "jects/*/locations/*/triggers/*}\332A\025projec" - + "t_id,trigger_id\022\251\002\n\022UpdateBuildTrigger\0228" - + ".google.devtools.cloudbuild.v1.UpdateBui" - + "ldTriggerRequest\032+.google.devtools.cloud" - + "build.v1.BuildTrigger\"\253\001\202\323\344\223\002\204\0012//v1/pro" - + "jects/{project_id}/triggers/{trigger_id}" - + ":\007triggerZH2=/v1/{trigger.resource_name=" - + "projects/*/locations/*/triggers/*}:\007trig" - + "ger\332A\035project_id,trigger_id,trigger\022\245\002\n\017" - + "RunBuildTrigger\0225.google.devtools.cloudb" - + "uild.v1.RunBuildTriggerRequest\032\035.google." - + "longrunning.Operation\"\273\001\202\323\344\223\002t\"3/v1/proj" - + "ects/{project_id}/triggers/{trigger_id}:" - + "run:\006sourceZ5\"0/v1/{name=projects/*/loca" - + "tions/*/triggers/*}:run:\001*\332A\034project_id," - + "trigger_id,source\312A\037\n\005Build\022\026BuildOperat" - + "ionMetadata\022\225\002\n\025ReceiveTriggerWebhook\022;." + + "loudbuild.v1.TimeSpanB\003\340A\003\"\247\001\n\025UploadedP" + + "ythonPackage\022\013\n\003uri\030\001 \001(\t\022>\n\013file_hashes" + + "\030\002 \001(\0132).google.devtools.cloudbuild.v1.F" + + "ileHashes\022A\n\013push_timing\030\003 \001(\0132\'.google." + + "devtools.cloudbuild.v1.TimeSpanB\003\340A\003\"\247\001\n" + + "\025UploadedMavenArtifact\022\013\n\003uri\030\001 \001(\t\022>\n\013f" + + "ile_hashes\030\002 \001(\0132).google.devtools.cloud" + + "build.v1.FileHashes\022A\n\013push_timing\030\003 \001(\013" + + "2\'.google.devtools.cloudbuild.v1.TimeSpa" + + "nB\003\340A\003\"\207\004\n\tBuildStep\022\014\n\004name\030\001 \001(\t\022\013\n\003en" + + "v\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022\013\n\003dir\030\004 \001(\t\022\n\n\002id" + + "\030\005 \001(\t\022\020\n\010wait_for\030\006 \003(\t\022\022\n\nentrypoint\030\007" + + " \001(\t\022\022\n\nsecret_env\030\010 \003(\t\0226\n\007volumes\030\t \003(" + + "\0132%.google.devtools.cloudbuild.v1.Volume" + + "\022<\n\006timing\030\n \001(\0132\'.google.devtools.cloud" + + "build.v1.TimeSpanB\003\340A\003\022A\n\013pull_timing\030\r " + + "\001(\0132\'.google.devtools.cloudbuild.v1.Time" + + "SpanB\003\340A\003\022*\n\007timeout\030\013 \001(\0132\031.google.prot" + + "obuf.Duration\022@\n\006status\030\014 \001(\0162+.google.d" + + "evtools.cloudbuild.v1.Build.StatusB\003\340A\003\022" + + "\025\n\rallow_failure\030\016 \001(\010\022\026\n\texit_code\030\020 \001(" + + "\005B\003\340A\003\022\030\n\020allow_exit_codes\030\022 \003(\005\022\016\n\006scri" + + "pt\030\023 \001(\t\"$\n\006Volume\022\014\n\004name\030\001 \001(\t\022\014\n\004path" + + "\030\002 \001(\t\"\215\003\n\007Results\0229\n\006images\030\002 \003(\0132).goo" + + "gle.devtools.cloudbuild.v1.BuiltImage\022\031\n" + + "\021build_step_images\030\003 \003(\t\022\031\n\021artifact_man" + + "ifest\030\004 \001(\t\022\025\n\rnum_artifacts\030\005 \001(\003\022\032\n\022bu" + + "ild_step_outputs\030\006 \003(\014\022@\n\017artifact_timin" + + "g\030\007 \001(\0132\'.google.devtools.cloudbuild.v1." + + "TimeSpan\022M\n\017python_packages\030\010 \003(\01324.goog" + + "le.devtools.cloudbuild.v1.UploadedPython" + + "Package\022M\n\017maven_artifacts\030\t \003(\01324.googl" + + "e.devtools.cloudbuild.v1.UploadedMavenAr" + + "tifact\"`\n\016ArtifactResult\022\020\n\010location\030\001 \001" + + "(\t\022<\n\tfile_hash\030\002 \003(\0132).google.devtools." + + "cloudbuild.v1.FileHashes\"\240\022\n\005Build\022\021\n\004na" + + "me\030- \001(\tB\003\340A\003\022\017\n\002id\030\001 \001(\tB\003\340A\003\022\027\n\nprojec" + + "t_id\030\020 \001(\tB\003\340A\003\022@\n\006status\030\002 \001(\0162+.google" + + ".devtools.cloudbuild.v1.Build.StatusB\003\340A" + + "\003\022\032\n\rstatus_detail\030\030 \001(\tB\003\340A\003\0225\n\006source\030" + + "\003 \001(\0132%.google.devtools.cloudbuild.v1.So" + + "urce\0227\n\005steps\030\013 \003(\0132(.google.devtools.cl" + + "oudbuild.v1.BuildStep\022<\n\007results\030\n \001(\0132&" + + ".google.devtools.cloudbuild.v1.ResultsB\003" + + "\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\0223\n\nstart_time\030\007 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0224\n\013finish" + + "_time\030\010 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022*\n\007timeout\030\014 \001(\0132\031.google.protobuf." + + "Duration\022\016\n\006images\030\r \003(\t\022,\n\tqueue_ttl\030( " + + "\001(\0132\031.google.protobuf.Duration\022;\n\tartifa" + + "cts\030% \001(\0132(.google.devtools.cloudbuild.v" + + "1.Artifacts\022\023\n\013logs_bucket\030\023 \001(\t\022O\n\021sour" + + "ce_provenance\030\025 \001(\0132/.google.devtools.cl" + + "oudbuild.v1.SourceProvenanceB\003\340A\003\022\035\n\020bui" + + "ld_trigger_id\030\026 \001(\tB\003\340A\003\022<\n\007options\030\027 \001(" + + "\0132+.google.devtools.cloudbuild.v1.BuildO" + + "ptions\022\024\n\007log_url\030\031 \001(\tB\003\340A\003\022N\n\rsubstitu" + + "tions\030\035 \003(\01327.google.devtools.cloudbuild" + + ".v1.Build.SubstitutionsEntry\022\014\n\004tags\030\037 \003" + + "(\t\0226\n\007secrets\030 \003(\0132%.google.devtools.cl" + + "oudbuild.v1.Secret\022E\n\006timing\030! \003(\01320.goo" + + "gle.devtools.cloudbuild.v1.Build.TimingE" + + "ntryB\003\340A\003\022C\n\010approval\030, \001(\0132,.google.dev" + + "tools.cloudbuild.v1.BuildApprovalB\003\340A\003\022?" + + "\n\017service_account\030* \001(\tB&\372A#\n!iam.google" + + "apis.com/ServiceAccount\022A\n\021available_sec" + + "rets\030/ \001(\0132&.google.devtools.cloudbuild." + + "v1.Secrets\022C\n\010warnings\0301 \003(\0132,.google.de" + + "vtools.cloudbuild.v1.Build.WarningB\003\340A\003\022" + + "K\n\014failure_info\0303 \001(\01320.google.devtools." + + "cloudbuild.v1.Build.FailureInfoB\003\340A\003\032\250\001\n" + + "\007Warning\022\014\n\004text\030\001 \001(\t\022G\n\010priority\030\002 \001(\016" + + "25.google.devtools.cloudbuild.v1.Build.W" + + "arning.Priority\"F\n\010Priority\022\030\n\024PRIORITY_" + + "UNSPECIFIED\020\000\022\010\n\004INFO\020\001\022\013\n\007WARNING\020\002\022\t\n\005" + + "ALERT\020\003\032\236\002\n\013FailureInfo\022J\n\004type\030\001 \001(\0162<." + + "google.devtools.cloudbuild.v1.Build.Fail" + + "ureInfo.FailureType\022\016\n\006detail\030\002 \001(\t\"\262\001\n\013" + + "FailureType\022\034\n\030FAILURE_TYPE_UNSPECIFIED\020" + + "\000\022\017\n\013PUSH_FAILED\020\001\022\030\n\024PUSH_IMAGE_NOT_FOU" + + "ND\020\002\022\027\n\023PUSH_NOT_AUTHORIZED\020\003\022\023\n\017LOGGING" + + "_FAILURE\020\004\022\023\n\017USER_BUILD_STEP\020\005\022\027\n\023FETCH" + + "_SOURCE_FAILED\020\006\0324\n\022SubstitutionsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032V\n\013Timing" + + "Entry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.goog" + + "le.devtools.cloudbuild.v1.TimeSpan:\0028\001\"\231" + + "\001\n\006Status\022\022\n\016STATUS_UNKNOWN\020\000\022\013\n\007PENDING" + + "\020\n\022\n\n\006QUEUED\020\001\022\013\n\007WORKING\020\002\022\013\n\007SUCCESS\020\003" + + "\022\013\n\007FAILURE\020\004\022\022\n\016INTERNAL_ERROR\020\005\022\013\n\007TIM" + + "EOUT\020\006\022\r\n\tCANCELLED\020\007\022\013\n\007EXPIRED\020\t:\177\352A|\n" + + "\037cloudbuild.googleapis.com/Build\022!projec" + + "ts/{project}/builds/{build}\0226projects/{p" + + "roject}/locations/{location}/builds/{bui" + + "ld}\"\231\004\n\tArtifacts\022\016\n\006images\030\001 \003(\t\022I\n\007obj" + + "ects\030\002 \001(\01328.google.devtools.cloudbuild." + + "v1.Artifacts.ArtifactObjects\022O\n\017maven_ar" + + "tifacts\030\003 \003(\01326.google.devtools.cloudbui" + + "ld.v1.Artifacts.MavenArtifact\022O\n\017python_" + + "packages\030\005 \003(\01326.google.devtools.cloudbu" + + "ild.v1.Artifacts.PythonPackage\032p\n\017Artifa" + + "ctObjects\022\020\n\010location\030\001 \001(\t\022\r\n\005paths\030\002 \003" + + "(\t\022<\n\006timing\030\003 \001(\0132\'.google.devtools.clo" + + "udbuild.v1.TimeSpanB\003\340A\003\032i\n\rMavenArtifac" + + "t\022\022\n\nrepository\030\001 \001(\t\022\014\n\004path\030\002 \001(\t\022\023\n\013a" + + "rtifact_id\030\003 \001(\t\022\020\n\010group_id\030\004 \001(\t\022\017\n\007ve" + + "rsion\030\005 \001(\t\0322\n\rPythonPackage\022\022\n\nreposito" + + "ry\030\001 \001(\t\022\r\n\005paths\030\002 \003(\t\"h\n\010TimeSpan\022.\n\ns" + + "tart_time\030\001 \001(\0132\032.google.protobuf.Timest" + + "amp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf." + + "Timestamp\"M\n\026BuildOperationMetadata\0223\n\005b" + + "uild\030\001 \001(\0132$.google.devtools.cloudbuild." + + "v1.Build\"\303\003\n\020SourceProvenance\022M\n\027resolve" + + "d_storage_source\030\003 \001(\0132,.google.devtools" + + ".cloudbuild.v1.StorageSource\022G\n\024resolved" + + "_repo_source\030\006 \001(\0132).google.devtools.clo" + + "udbuild.v1.RepoSource\022^\n resolved_storag" + + "e_source_manifest\030\t \001(\01324.google.devtool" + + "s.cloudbuild.v1.StorageSourceManifest\022Y\n" + + "\013file_hashes\030\004 \003(\0132?.google.devtools.clo" + + "udbuild.v1.SourceProvenance.FileHashesEn" + + "tryB\003\340A\003\032\\\n\017FileHashesEntry\022\013\n\003key\030\001 \001(\t" + + "\0228\n\005value\030\002 \001(\0132).google.devtools.cloudb" + + "uild.v1.FileHashes:\0028\001\"D\n\nFileHashes\0226\n\t" + + "file_hash\030\001 \003(\0132#.google.devtools.cloudb" + + "uild.v1.Hash\"|\n\004Hash\022:\n\004type\030\001 \001(\0162,.goo" + + "gle.devtools.cloudbuild.v1.Hash.HashType" + + "\022\r\n\005value\030\002 \001(\014\")\n\010HashType\022\010\n\004NONE\020\000\022\n\n" + + "\006SHA256\020\001\022\007\n\003MD5\020\002\"\222\001\n\007Secrets\022J\n\016secret" + + "_manager\030\001 \003(\01322.google.devtools.cloudbu" + + "ild.v1.SecretManagerSecret\022;\n\006inline\030\002 \003" + + "(\0132+.google.devtools.cloudbuild.v1.Inlin" + + "eSecret\"\305\001\n\014InlineSecret\022<\n\014kms_key_name" + + "\030\001 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cry" + + "ptoKey\022H\n\007env_map\030\002 \003(\01327.google.devtool" + + "s.cloudbuild.v1.InlineSecret.EnvMapEntry" + + "\032-\n\013EnvMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\014:\0028\001\"i\n\023SecretManagerSecret\022E\n\014versio" + + "n_name\030\001 \001(\tB/\372A,\n*secretmanager.googlea" + + "pis.com/SecretVersion\022\013\n\003env\030\002 \001(\t\"\232\001\n\006S" + + "ecret\022\024\n\014kms_key_name\030\001 \001(\t\022H\n\nsecret_en" + + "v\030\003 \003(\01324.google.devtools.cloudbuild.v1." + + "Secret.SecretEnvEntry\0320\n\016SecretEnvEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\235\001\n\022Crea" + + "teBuildRequest\0224\n\006parent\030\004 \001(\tB$\372A!\022\037clo" + + "udbuild.googleapis.com/Build\022\027\n\nproject_" + + "id\030\001 \001(\tB\003\340A\002\0228\n\005build\030\002 \001(\0132$.google.de" + + "vtools.cloudbuild.v1.BuildB\003\340A\002\"o\n\017GetBu" + + "ildRequest\0222\n\004name\030\004 \001(\tB$\372A!\n\037cloudbuil" + + "d.googleapis.com/Build\022\027\n\nproject_id\030\001 \001" + + "(\tB\003\340A\002\022\017\n\002id\030\002 \001(\tB\003\340A\002\"\231\001\n\021ListBuildsR" + + "equest\0224\n\006parent\030\t \001(\tB$\372A!\022\037cloudbuild." + + "googleapis.com/Build\022\027\n\nproject_id\030\001 \001(\t" + + "B\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\022\016\n\006filter\030\010 \001(\t\"c\n\022ListBuildsRespon" + + "se\0224\n\006builds\030\001 \003(\0132$.google.devtools.clo" + + "udbuild.v1.Build\022\027\n\017next_page_token\030\002 \001(" + + "\t\"r\n\022CancelBuildRequest\0222\n\004name\030\004 \001(\tB$\372" + + "A!\n\037cloudbuild.googleapis.com/Build\022\027\n\np" + + "roject_id\030\001 \001(\tB\003\340A\002\022\017\n\002id\030\002 \001(\tB\003\340A\002\"p\n" + + "\023ApproveBuildRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022" + + "F\n\017approval_result\030\002 \001(\0132-.google.devtoo" + + "ls.cloudbuild.v1.ApprovalResult\"\267\002\n\rBuil" + + "dApproval\022F\n\005state\030\001 \001(\01622.google.devtoo" + + "ls.cloudbuild.v1.BuildApproval.StateB\003\340A" + + "\003\022B\n\006config\030\002 \001(\0132-.google.devtools.clou" + + "dbuild.v1.ApprovalConfigB\003\340A\003\022B\n\006result\030" + + "\003 \001(\0132-.google.devtools.cloudbuild.v1.Ap" + + "provalResultB\003\340A\003\"V\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\013\n\007PENDING\020\001\022\014\n\010APPROVED\020\002\022\014\n\010" + + "REJECTED\020\003\022\r\n\tCANCELLED\020\005\"+\n\016ApprovalCon" + + "fig\022\031\n\021approval_required\030\001 \001(\010\"\240\002\n\016Appro" + + "valResult\022\035\n\020approver_account\030\002 \001(\tB\003\340A\003" + + "\0226\n\rapproval_time\030\003 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022M\n\010decision\030\004 \001(\01626.goo" + + "gle.devtools.cloudbuild.v1.ApprovalResul" + + "t.DecisionB\003\340A\002\022\024\n\007comment\030\005 \001(\tB\003\340A\001\022\020\n" + + "\003url\030\006 \001(\tB\003\340A\001\"@\n\010Decision\022\030\n\024DECISION_" + + "UNSPECIFIED\020\000\022\014\n\010APPROVED\020\001\022\014\n\010REJECTED\020" + + "\002\"\353\007\n\014BuildTrigger\022\025\n\rresource_name\030\" \001(" + + "\t\022\017\n\002id\030\001 \001(\tB\003\340A\003\022\023\n\013description\030\n \001(\t\022" + + "\014\n\004name\030\025 \001(\t\022\014\n\004tags\030\023 \003(\t\022C\n\020trigger_t" + + "emplate\030\007 \001(\0132).google.devtools.cloudbui" + + "ld.v1.RepoSource\022A\n\006github\030\r \001(\01321.googl" + + "e.devtools.cloudbuild.v1.GitHubEventsCon" + + "fig\022B\n\rpubsub_config\030\035 \001(\0132+.google.devt" + + "ools.cloudbuild.v1.PubsubConfig\022D\n\016webho" + + "ok_config\030\037 \001(\0132,.google.devtools.cloudb" + + "uild.v1.WebhookConfig\022\024\n\nautodetect\030\022 \001(" + + "\010H\000\0225\n\005build\030\004 \001(\0132$.google.devtools.clo" + + "udbuild.v1.BuildH\000\022\022\n\010filename\030\010 \001(\tH\000\0224" + + "\n\013create_time\030\005 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022\020\n\010disabled\030\t \001(\010\022U\n\rsubsti" + + "tutions\030\013 \003(\0132>.google.devtools.cloudbui" + + "ld.v1.BuildTrigger.SubstitutionsEntry\022\025\n" + + "\rignored_files\030\017 \003(\t\022\026\n\016included_files\030\020" + + " \003(\t\022\023\n\006filter\030\036 \001(\tB\003\340A\001\022?\n\017service_acc" + + "ount\030! \001(\tB&\372A#\n!iam.googleapis.com/Serv" + + "iceAccount\0324\n\022SubstitutionsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\242\001\352A\236\001\n&cloudbu" + + "ild.googleapis.com/BuildTrigger\022%project" + + "s/{project}/triggers/{trigger}\022:projects" + + "/{project}/locations/{location}/triggers" + + "/{trigger}*\010triggers2\007triggerB\020\n\016build_t" + + "emplate\"\334\001\n\022GitHubEventsConfig\022\033\n\017instal" + + "lation_id\030\001 \001(\003B\002\030\001\022\r\n\005owner\030\006 \001(\t\022\014\n\004na" + + "me\030\007 \001(\t\022H\n\014pull_request\030\004 \001(\01320.google." + + "devtools.cloudbuild.v1.PullRequestFilter" + + "H\000\0229\n\004push\030\005 \001(\0132).google.devtools.cloud" + + "build.v1.PushFilterH\000B\007\n\005event\"\377\002\n\014Pubsu" + + "bConfig\022@\n\014subscription\030\001 \001(\tB*\340A\003\372A$\n\"p" + + "ubsub.googleapis.com/Subscription\022/\n\005top" + + "ic\030\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/Top" + + "ic\022E\n\025service_account_email\030\003 \001(\tB&\372A#\n!" + + "iam.googleapis.com/ServiceAccount\022@\n\005sta" + + "te\030\004 \001(\01621.google.devtools.cloudbuild.v1" + + ".PubsubConfig.State\"s\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\006\n\002OK\020\001\022\030\n\024SUBSCRIPTION_DELE" + + "TED\020\002\022\021\n\rTOPIC_DELETED\020\003\022\036\n\032SUBSCRIPTION" + + "_MISCONFIGURED\020\004\"\343\001\n\rWebhookConfig\022D\n\006se" + + "cret\030\003 \001(\tB2\340A\002\372A,\n*secretmanager.google" + + "apis.com/SecretVersionH\000\022A\n\005state\030\004 \001(\0162" + + "2.google.devtools.cloudbuild.v1.WebhookC" + + "onfig.State\":\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\006\n\002OK\020\001\022\022\n\016SECRET_DELETED\020\002B\r\n\013auth_" + + "method\"\224\002\n\021PullRequestFilter\022\020\n\006branch\030\002" + + " \001(\tH\000\022X\n\017comment_control\030\005 \001(\0162?.google" + + ".devtools.cloudbuild.v1.PullRequestFilte" + + "r.CommentControl\022\024\n\014invert_regex\030\006 \001(\010\"r" + + "\n\016CommentControl\022\025\n\021COMMENTS_DISABLED\020\000\022" + + "\024\n\020COMMENTS_ENABLED\020\001\0223\n/COMMENTS_ENABLE" + + "D_FOR_EXTERNAL_CONTRIBUTORS_ONLY\020\002B\t\n\007gi" + + "t_ref\"N\n\nPushFilter\022\020\n\006branch\030\002 \001(\tH\000\022\r\n" + + "\003tag\030\003 \001(\tH\000\022\024\n\014invert_regex\030\004 \001(\010B\t\n\007gi" + + "t_ref\"\264\001\n\031CreateBuildTriggerRequest\022;\n\006p" + + "arent\030\003 \001(\tB+\372A(\022&cloudbuild.googleapis." + + "com/BuildTrigger\022\027\n\nproject_id\030\001 \001(\tB\003\340A" + + "\002\022A\n\007trigger\030\002 \001(\0132+.google.devtools.clo" + + "udbuild.v1.BuildTriggerB\003\340A\002\"\205\001\n\026GetBuil" + + "dTriggerRequest\0229\n\004name\030\003 \001(\tB+\372A(\n&clou" + + "dbuild.googleapis.com/BuildTrigger\022\027\n\npr" + + "oject_id\030\001 \001(\tB\003\340A\002\022\027\n\ntrigger_id\030\002 \001(\tB" + + "\003\340A\002\"\227\001\n\030ListBuildTriggersRequest\022;\n\006par" + + "ent\030\004 \001(\tB+\372A(\022&cloudbuild.googleapis.co" + + "m/BuildTrigger\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"s" + + "\n\031ListBuildTriggersResponse\022=\n\010triggers\030" + + "\001 \003(\0132+.google.devtools.cloudbuild.v1.Bu" + + "ildTrigger\022\027\n\017next_page_token\030\002 \001(\t\"\210\001\n\031" + + "DeleteBuildTriggerRequest\0229\n\004name\030\003 \001(\tB" + + "+\372A(\n&cloudbuild.googleapis.com/BuildTri" + + "gger\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\027\n\ntrigger" + + "_id\030\002 \001(\tB\003\340A\002\"\220\001\n\031UpdateBuildTriggerReq" + + "uest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\027\n\ntrigger" + + "_id\030\002 \001(\tB\003\340A\002\022A\n\007trigger\030\003 \001(\0132+.google" + + ".devtools.cloudbuild.v1.BuildTriggerB\003\340A" + + "\002\"\334\t\n\014BuildOptions\022L\n\026source_provenance_" + + "hash\030\001 \003(\0162,.google.devtools.cloudbuild." + + "v1.Hash.HashType\022Y\n\027requested_verify_opt" + + "ion\030\002 \001(\01628.google.devtools.cloudbuild.v" + + "1.BuildOptions.VerifyOption\022M\n\014machine_t" + + "ype\030\003 \001(\01627.google.devtools.cloudbuild.v" + + "1.BuildOptions.MachineType\022\024\n\014disk_size_" + + "gb\030\006 \001(\003\022[\n\023substitution_option\030\004 \001(\0162>." + + "google.devtools.cloudbuild.v1.BuildOptio" + + "ns.SubstitutionOption\022\035\n\025dynamic_substit" + + "utions\030\021 \001(\010\022\\\n\024log_streaming_option\030\005 \001" + + "(\0162>.google.devtools.cloudbuild.v1.Build" + + "Options.LogStreamingOption\022\027\n\013worker_poo" + + "l\030\007 \001(\tB\002\030\001\022I\n\004pool\030\023 \001(\01326.google.devto" + + "ols.cloudbuild.v1.BuildOptions.PoolOptio" + + "nB\003\340A\001\022H\n\007logging\030\013 \001(\01627.google.devtool" + + "s.cloudbuild.v1.BuildOptions.LoggingMode" + + "\022\013\n\003env\030\014 \003(\t\022\022\n\nsecret_env\030\r \003(\t\0226\n\007vol" + + "umes\030\016 \003(\0132%.google.devtools.cloudbuild." + + "v1.Volume\032E\n\nPoolOption\0227\n\004name\030\001 \001(\tB)\372" + + "A&\n$cloudbuild.googleapis.com/WorkerPool" + + "\".\n\014VerifyOption\022\020\n\014NOT_VERIFIED\020\000\022\014\n\010VE" + + "RIFIED\020\001\"h\n\013MachineType\022\017\n\013UNSPECIFIED\020\000" + + "\022\020\n\014N1_HIGHCPU_8\020\001\022\021\n\rN1_HIGHCPU_32\020\002\022\020\n" + + "\014E2_HIGHCPU_8\020\005\022\021\n\rE2_HIGHCPU_32\020\006\"5\n\022Su" + + "bstitutionOption\022\016\n\nMUST_MATCH\020\000\022\017\n\013ALLO" + + "W_LOOSE\020\001\"G\n\022LogStreamingOption\022\022\n\016STREA" + + "M_DEFAULT\020\000\022\r\n\tSTREAM_ON\020\001\022\016\n\nSTREAM_OFF" + + "\020\002\"|\n\013LoggingMode\022\027\n\023LOGGING_UNSPECIFIED" + + "\020\000\022\n\n\006LEGACY\020\001\022\014\n\010GCS_ONLY\020\002\022\030\n\020STACKDRI" + + "VER_ONLY\020\003\032\002\010\001\022\026\n\022CLOUD_LOGGING_ONLY\020\005\022\010" + + "\n\004NONE\020\004\"\205\001\n\034ReceiveTriggerWebhookReques" + + "t\022\014\n\004name\030\005 \001(\t\022\"\n\004body\030\001 \001(\0132\024.google.a" + + "pi.HttpBody\022\022\n\nproject_id\030\002 \001(\t\022\017\n\007trigg" + + "er\030\003 \001(\t\022\016\n\006secret\030\004 \001(\t\"\037\n\035ReceiveTrigg" + + "erWebhookResponse\"\210\006\n\nWorkerPool\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\022\020\n\003uid" + + "\030\003 \001(\tB\003\340A\003\022O\n\013annotations\030\004 \003(\0132:.googl" + + "e.devtools.cloudbuild.v1.WorkerPool.Anno" + + "tationsEntry\0224\n\013create_time\030\005 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" + + "e\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013delete_time\030\007 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022C\n\005state\030\010 \001(\0162/.google.d" + + "evtools.cloudbuild.v1.WorkerPool.StateB\003" + + "\340A\003\022T\n\026private_pool_v1_config\030\014 \001(\01322.go" + + "ogle.devtools.cloudbuild.v1.PrivatePoolV" + + "1ConfigH\000\022\021\n\004etag\030\013 \001(\tB\003\340A\003\0322\n\020Annotati" + + "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"T\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREA" + + "TING\020\001\022\013\n\007RUNNING\020\002\022\014\n\010DELETING\020\003\022\013\n\007DEL" + + "ETED\020\004:\211\001\352A\205\001\n$cloudbuild.googleapis.com" + + "/WorkerPool\022Aprojects/{project}/location" + + "s/{location}/workerPools/{worker_pool}*\013" + + "workerPools2\nworkerPoolR\001\001B\010\n\006config\"\226\004\n" + + "\023PrivatePoolV1Config\022V\n\rworker_config\030\001 " + + "\001(\0132?.google.devtools.cloudbuild.v1.Priv" + + "atePoolV1Config.WorkerConfig\022X\n\016network_" + + "config\030\002 \001(\0132@.google.devtools.cloudbuil" + + "d.v1.PrivatePoolV1Config.NetworkConfig\032:" + + "\n\014WorkerConfig\022\024\n\014machine_type\030\001 \001(\t\022\024\n\014" + + "disk_size_gb\030\002 \001(\003\032\220\002\n\rNetworkConfig\022A\n\016" + + "peered_network\030\001 \001(\tB)\340A\005\340A\002\372A \n\036compute" + + ".googleapis.com/Network\022d\n\regress_option" + + "\030\002 \001(\0162M.google.devtools.cloudbuild.v1.P" + + "rivatePoolV1Config.NetworkConfig.EgressO" + + "ption\"V\n\014EgressOption\022\035\n\031EGRESS_OPTION_U" + + "NSPECIFIED\020\000\022\024\n\020NO_PUBLIC_EGRESS\020\001\022\021\n\rPU" + + "BLIC_EGRESS\020\002\"\320\001\n\027CreateWorkerPoolReques" + + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" + + "gleapis.com/Location\022C\n\013worker_pool\030\002 \001(" + + "\0132).google.devtools.cloudbuild.v1.Worker" + + "PoolB\003\340A\002\022\036\n\016worker_pool_id\030\003 \001(\tB\006\340A\005\340A" + + "\002\022\025\n\rvalidate_only\030\004 \001(\010\"R\n\024GetWorkerPoo" + + "lRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$cloudbui" + + "ld.googleapis.com/WorkerPool\"\221\001\n\027DeleteW" + + "orkerPoolRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$" + + "cloudbuild.googleapis.com/WorkerPool\022\014\n\004" + + "etag\030\002 \001(\t\022\025\n\rallow_missing\030\003 \001(\010\022\025\n\rval" + + "idate_only\030\004 \001(\010\"\246\001\n\027UpdateWorkerPoolReq" + + "uest\022C\n\013worker_pool\030\001 \001(\0132).google.devto" + + "ols.cloudbuild.v1.WorkerPoolB\003\340A\002\022/\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "sk\022\025\n\rvalidate_only\030\004 \001(\010\"z\n\026ListWorkerP" + + "oolsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loc" + + "ations.googleapis.com/Location\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"s\n\027ListWor" + + "kerPoolsResponse\022?\n\014worker_pools\030\001 \003(\0132)" + + ".google.devtools.cloudbuild.v1.WorkerPoo" + + "l\022\027\n\017next_page_token\030\002 \001(\t\"\307\001\n!CreateWor" + + "kerPoolOperationMetadata\022>\n\013worker_pool\030" + + "\001 \001(\tB)\372A&\n$cloudbuild.googleapis.com/Wo" + + "rkerPool\022/\n\013create_time\030\002 \001(\0132\032.google.p" + + "rotobuf.Timestamp\0221\n\rcomplete_time\030\003 \001(\013" + + "2\032.google.protobuf.Timestamp\"\307\001\n!UpdateW" + + "orkerPoolOperationMetadata\022>\n\013worker_poo" + + "l\030\001 \001(\tB)\372A&\n$cloudbuild.googleapis.com/" + + "WorkerPool\022/\n\013create_time\030\002 \001(\0132\032.google" + + ".protobuf.Timestamp\0221\n\rcomplete_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp\"\307\001\n!Delet" + + "eWorkerPoolOperationMetadata\022>\n\013worker_p" + + "ool\030\001 \001(\tB)\372A&\n$cloudbuild.googleapis.co" + + "m/WorkerPool\022/\n\013create_time\030\002 \001(\0132\032.goog" + + "le.protobuf.Timestamp\0221\n\rcomplete_time\030\003" + + " \001(\0132\032.google.protobuf.Timestamp2\266#\n\nClo" + + "udBuild\022\373\001\n\013CreateBuild\0221.google.devtool" + + "s.cloudbuild.v1.CreateBuildRequest\032\035.goo", + "gle.longrunning.Operation\"\231\001\202\323\344\223\002^\" /v1/" + + "projects/{project_id}/builds:\005buildZ3\"*/" + + "v1/{parent=projects/*/locations/*}/build" + + "s:\005build\332A\020project_id,build\312A\037\n\005Build\022\026B" + + "uildOperationMetadata\022\315\001\n\010GetBuild\022..goo" + + "gle.devtools.cloudbuild.v1.GetBuildReque" + + "st\032$.google.devtools.cloudbuild.v1.Build" + + "\"k\202\323\344\223\002U\022%/v1/projects/{project_id}/buil" + + "ds/{id}Z,\022*/v1/{name=projects/*/location" + + "s/*/builds/*}\332A\rproject_id,id\022\335\001\n\nListBu" + + "ilds\0220.google.devtools.cloudbuild.v1.Lis" + + "tBuildsRequest\0321.google.devtools.cloudbu" + + "ild.v1.ListBuildsResponse\"j\202\323\344\223\002P\022 /v1/p" + + "rojects/{project_id}/buildsZ,\022*/v1/{pare" + + "nt=projects/*/locations/*}/builds\332A\021proj" + + "ect_id,filter\022\347\001\n\013CancelBuild\0221.google.d" + + "evtools.cloudbuild.v1.CancelBuildRequest" + + "\032$.google.devtools.cloudbuild.v1.Build\"\177" + + "\202\323\344\223\002i\",/v1/projects/{project_id}/builds" + + "/{id}:cancel:\001*Z6\"1/v1/{name=projects/*/" + + "locations/*/builds/*}:cancel:\001*\332A\rprojec" + + "t_id,id\022\377\001\n\nRetryBuild\0220.google.devtools" + + ".cloudbuild.v1.RetryBuildRequest\032\035.googl" + + "e.longrunning.Operation\"\237\001\202\323\344\223\002g\"+/v1/pr" + + "ojects/{project_id}/builds/{id}:retry:\001*" + + "Z5\"0/v1/{name=projects/*/locations/*/bui" + + "lds/*}:retry:\001*\332A\rproject_id,id\312A\037\n\005Buil" + + "d\022\026BuildOperationMetadata\022\207\002\n\014ApproveBui" + + "ld\0222.google.devtools.cloudbuild.v1.Appro" + + "veBuildRequest\032\035.google.longrunning.Oper" + + "ation\"\243\001\202\323\344\223\002d\"&/v1/{name=projects/*/bui" + + "lds/*}:approve:\001*Z7\"2/v1/{name=projects/" + + "*/locations/*/builds/*}:approve:\001*\332A\024nam" + + "e,approval_result\312A\037\n\005Build\022\026BuildOperat" + + "ionMetadata\022\377\001\n\022CreateBuildTrigger\0228.goo" + + "gle.devtools.cloudbuild.v1.CreateBuildTr" + + "iggerRequest\032+.google.devtools.cloudbuil" + + "d.v1.BuildTrigger\"\201\001\202\323\344\223\002f\"\"/v1/projects" + + "/{project_id}/triggers:\007triggerZ7\",/v1/{" + + "parent=projects/*/locations/*}/triggers:" + + "\007trigger\332A\022project_id,trigger\022\366\001\n\017GetBui" + + "ldTrigger\0225.google.devtools.cloudbuild.v" + + "1.GetBuildTriggerRequest\032+.google.devtoo" + + "ls.cloudbuild.v1.BuildTrigger\"\177\202\323\344\223\002a\022//" + + "v1/projects/{project_id}/triggers/{trigg" + + "er_id}Z.\022,/v1/{name=projects/*/locations" + + "/*/triggers/*}\332A\025project_id,trigger_id\022\357" + + "\001\n\021ListBuildTriggers\0227.google.devtools.c" + + "loudbuild.v1.ListBuildTriggersRequest\0328." + + "google.devtools.cloudbuild.v1.ListBuildT" + + "riggersResponse\"g\202\323\344\223\002T\022\"/v1/projects/{p" + + "roject_id}/triggersZ.\022,/v1/{parent=proje" + + "cts/*/locations/*}/triggers\332A\nproject_id" + + "\022\347\001\n\022DeleteBuildTrigger\0228.google.devtool" + + "s.cloudbuild.v1.DeleteBuildTriggerReques" + + "t\032\026.google.protobuf.Empty\"\177\202\323\344\223\002a*//v1/p" + + "rojects/{project_id}/triggers/{trigger_i" + + "d}Z.*,/v1/{name=projects/*/locations/*/t" + + "riggers/*}\332A\025project_id,trigger_id\022\251\002\n\022U" + + "pdateBuildTrigger\0228.google.devtools.clou" + + "dbuild.v1.UpdateBuildTriggerRequest\032+.go" + + "ogle.devtools.cloudbuild.v1.BuildTrigger" + + "\"\253\001\202\323\344\223\002\204\0012//v1/projects/{project_id}/tr" + + "iggers/{trigger_id}:\007triggerZH2=/v1/{tri" + + "gger.resource_name=projects/*/locations/" + + "*/triggers/*}:\007trigger\332A\035project_id,trig" + + "ger_id,trigger\022\245\002\n\017RunBuildTrigger\0225.goo" + + "gle.devtools.cloudbuild.v1.RunBuildTrigg" + + "erRequest\032\035.google.longrunning.Operation" + + "\"\273\001\202\323\344\223\002t\"3/v1/projects/{project_id}/tri" + + "ggers/{trigger_id}:run:\006sourceZ5\"0/v1/{n" + + "ame=projects/*/locations/*/triggers/*}:r" + + "un:\001*\332A\034project_id,trigger_id,source\312A\037\n" + + "\005Build\022\026BuildOperationMetadata\022\225\002\n\025Recei" + + "veTriggerWebhook\022;.google.devtools.cloud" + + "build.v1.ReceiveTriggerWebhookRequest\032<." + "google.devtools.cloudbuild.v1.ReceiveTri" - + "ggerWebhookRequest\032<.google.devtools.clo" - + "udbuild.v1.ReceiveTriggerWebhookResponse" - + "\"\200\001\202\323\344\223\002z\"4/v1/projects/{project_id}/tri" - + "ggers/{trigger}:webhook:\004bodyZ<\"4/v1/{na" - + "me=projects/*/locations/*/triggers/*}:we" - + "bhook:\004body\022\206\002\n\020CreateWorkerPool\0226.googl" - + "e.devtools.cloudbuild.v1.CreateWorkerPoo" - + "lRequest\032\035.google.longrunning.Operation\"" - + "\232\001\202\323\344\223\002>\"//v1/{parent=projects/*/locatio" - + "ns/*}/workerPools:\013worker_pool\332A!parent," - + "worker_pool,worker_pool_id\312A/\n\nWorkerPoo" - + "l\022!CreateWorkerPoolOperationMetadata\022\257\001\n" - + "\rGetWorkerPool\0223.google.devtools.cloudbu" - + "ild.v1.GetWorkerPoolRequest\032).google.dev" - + "tools.cloudbuild.v1.WorkerPool\">\202\323\344\223\0021\022/" - + "/v1/{name=projects/*/locations/*/workerP" - + "ools/*}\332A\004name\022\346\001\n\020DeleteWorkerPool\0226.go" - + "ogle.devtools.cloudbuild.v1.DeleteWorker" - + "PoolRequest\032\035.google.longrunning.Operati" - + "on\"{\202\323\344\223\0021*//v1/{name=projects/*/locatio" - + "ns/*/workerPools/*}\332A\004name\312A:\n\025google.pr" - + "otobuf.Empty\022!DeleteWorkerPoolOperationM" - + "etadata\022\210\002\n\020UpdateWorkerPool\0226.google.de" - + "vtools.cloudbuild.v1.UpdateWorkerPoolReq" - + "uest\032\035.google.longrunning.Operation\"\234\001\202\323" - + "\344\223\002J2;/v1/{worker_pool.name=projects/*/l" - + "ocations/*/workerPools/*}:\013worker_pool\332A" - + "\027worker_pool,update_mask\312A/\n\nWorkerPool\022" - + "!UpdateWorkerPoolOperationMetadata\022\302\001\n\017L" - + "istWorkerPools\0225.google.devtools.cloudbu" - + "ild.v1.ListWorkerPoolsRequest\0326.google.d" - + "evtools.cloudbuild.v1.ListWorkerPoolsRes" - + "ponse\"@\202\323\344\223\0021\022//v1/{parent=projects/*/lo" - + "cations/*}/workerPools\332A\006parent\032M\312A\031clou" - + "dbuild.googleapis.com\322A.https://www.goog" - + "leapis.com/auth/cloud-platformB\222\006\n\030com.g" - + "oogle.cloudbuild.v1P\001ZGgoogle.golang.org" - + "/genproto/googleapis/devtools/cloudbuild" - + "/v1;cloudbuild\242\002\003GCB\252\002\032Google.Cloud.Clou" - + "dBuild.V1\352\002\030Google::Cloud::Build::V1\352AN\n" - + "\036compute.googleapis.com/Network\022,project" - + "s/{project}/global/networks/{network}\352AY" - + "\n!iam.googleapis.com/ServiceAccount\0224pro" - + "jects/{project}/serviceAccounts/{service" - + "_account}\352AJ\n#secretmanager.googleapis.c" - + "om/Secret\022#projects/{project}/secrets/{s" - + "ecret}\352Ad\n*secretmanager.googleapis.com/" - + "SecretVersion\0226projects/{project}/secret" - + "s/{secret}/versions/{version}\352Ap\n!cloudk" - + "ms.googleapis.com/CryptoKey\022Kprojects/{p" - + "roject}/locations/{location}/keyRings/{k" - + "eyring}/cryptoKeys/{key}\352AU\n\"pubsub.goog" - + "leapis.com/Subscription\022/projects/{proje" - + "ct}/subscriptions/{subscription}\352A@\n\033pub" - + "sub.googleapis.com/Topic\022!projects/{proj" - + "ect}/topics/{topic}b\006proto3" + + "ggerWebhookResponse\"\200\001\202\323\344\223\002z\"4/v1/projec" + + "ts/{project_id}/triggers/{trigger}:webho" + + "ok:\004bodyZ<\"4/v1/{name=projects/*/locatio" + + "ns/*/triggers/*}:webhook:\004body\022\206\002\n\020Creat" + + "eWorkerPool\0226.google.devtools.cloudbuild" + + ".v1.CreateWorkerPoolRequest\032\035.google.lon" + + "grunning.Operation\"\232\001\202\323\344\223\002>\"//v1/{parent" + + "=projects/*/locations/*}/workerPools:\013wo" + + "rker_pool\332A!parent,worker_pool,worker_po" + + "ol_id\312A/\n\nWorkerPool\022!CreateWorkerPoolOp" + + "erationMetadata\022\257\001\n\rGetWorkerPool\0223.goog" + + "le.devtools.cloudbuild.v1.GetWorkerPoolR" + + "equest\032).google.devtools.cloudbuild.v1.W" + + "orkerPool\">\202\323\344\223\0021\022//v1/{name=projects/*/" + + "locations/*/workerPools/*}\332A\004name\022\346\001\n\020De" + + "leteWorkerPool\0226.google.devtools.cloudbu" + + "ild.v1.DeleteWorkerPoolRequest\032\035.google." + + "longrunning.Operation\"{\202\323\344\223\0021*//v1/{name" + + "=projects/*/locations/*/workerPools/*}\332A" + + "\004name\312A:\n\025google.protobuf.Empty\022!DeleteW" + + "orkerPoolOperationMetadata\022\210\002\n\020UpdateWor" + + "kerPool\0226.google.devtools.cloudbuild.v1." + + "UpdateWorkerPoolRequest\032\035.google.longrun" + + "ning.Operation\"\234\001\202\323\344\223\002J2;/v1/{worker_poo" + + "l.name=projects/*/locations/*/workerPool" + + "s/*}:\013worker_pool\332A\027worker_pool,update_m" + + "ask\312A/\n\nWorkerPool\022!UpdateWorkerPoolOper" + + "ationMetadata\022\302\001\n\017ListWorkerPools\0225.goog" + + "le.devtools.cloudbuild.v1.ListWorkerPool" + + "sRequest\0326.google.devtools.cloudbuild.v1" + + ".ListWorkerPoolsResponse\"@\202\323\344\223\0021\022//v1/{p" + + "arent=projects/*/locations/*}/workerPool" + + "s\332A\006parent\032M\312A\031cloudbuild.googleapis.com" + + "\322A.https://www.googleapis.com/auth/cloud" + + "-platformB\222\006\n\030com.google.cloudbuild.v1P\001" + + "ZGgoogle.golang.org/genproto/googleapis/" + + "devtools/cloudbuild/v1;cloudbuild\242\002\003GCB\252" + + "\002\032Google.Cloud.CloudBuild.V1\352\002\030Google::C" + + "loud::Build::V1\352AN\n\036compute.googleapis.c" + + "om/Network\022,projects/{project}/global/ne" + + "tworks/{network}\352AY\n!iam.googleapis.com/" + + "ServiceAccount\0224projects/{project}/servi" + + "ceAccounts/{service_account}\352AJ\n#secretm" + + "anager.googleapis.com/Secret\022#projects/{" + + "project}/secrets/{secret}\352Ad\n*secretmana" + + "ger.googleapis.com/SecretVersion\0226projec" + + "ts/{project}/secrets/{secret}/versions/{" + + "version}\352Ap\n!cloudkms.googleapis.com/Cry" + + "ptoKey\022Kprojects/{project}/locations/{lo" + + "cation}/keyRings/{keyring}/cryptoKeys/{k" + + "ey}\352AU\n\"pubsub.googleapis.com/Subscripti" + + "on\022/projects/{project}/subscriptions/{su" + + "bscription}\352A@\n\033pubsub.googleapis.com/To" + + "pic\022!projects/{project}/topics/{topic}b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -919,8 +956,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Digest", "PushTiming", }); - internal_static_google_devtools_cloudbuild_v1_BuildStep_descriptor = + internal_static_google_devtools_cloudbuild_v1_UploadedPythonPackage_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_google_devtools_cloudbuild_v1_UploadedPythonPackage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_cloudbuild_v1_UploadedPythonPackage_descriptor, + new java.lang.String[] { + "Uri", "FileHashes", "PushTiming", + }); + internal_static_google_devtools_cloudbuild_v1_UploadedMavenArtifact_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_devtools_cloudbuild_v1_UploadedMavenArtifact_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_cloudbuild_v1_UploadedMavenArtifact_descriptor, + new java.lang.String[] { + "Uri", "FileHashes", "PushTiming", + }); + internal_static_google_devtools_cloudbuild_v1_BuildStep_descriptor = + getDescriptor().getMessageTypes().get(9); internal_static_google_devtools_cloudbuild_v1_BuildStep_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_BuildStep_descriptor, @@ -944,7 +997,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Script", }); internal_static_google_devtools_cloudbuild_v1_Volume_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_devtools_cloudbuild_v1_Volume_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Volume_descriptor, @@ -952,7 +1005,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Path", }); internal_static_google_devtools_cloudbuild_v1_Results_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_devtools_cloudbuild_v1_Results_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Results_descriptor, @@ -963,9 +1016,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NumArtifacts", "BuildStepOutputs", "ArtifactTiming", + "PythonPackages", + "MavenArtifacts", }); internal_static_google_devtools_cloudbuild_v1_ArtifactResult_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_devtools_cloudbuild_v1_ArtifactResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ArtifactResult_descriptor, @@ -973,7 +1028,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Location", "FileHash", }); internal_static_google_devtools_cloudbuild_v1_Build_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_devtools_cloudbuild_v1_Build_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Build_descriptor, @@ -1041,12 +1096,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_devtools_cloudbuild_v1_Artifacts_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_devtools_cloudbuild_v1_Artifacts_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Artifacts_descriptor, new java.lang.String[] { - "Images", "Objects", + "Images", "Objects", "MavenArtifacts", "PythonPackages", }); internal_static_google_devtools_cloudbuild_v1_Artifacts_ArtifactObjects_descriptor = internal_static_google_devtools_cloudbuild_v1_Artifacts_descriptor.getNestedTypes().get(0); @@ -1056,8 +1111,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Location", "Paths", "Timing", }); + internal_static_google_devtools_cloudbuild_v1_Artifacts_MavenArtifact_descriptor = + internal_static_google_devtools_cloudbuild_v1_Artifacts_descriptor.getNestedTypes().get(1); + internal_static_google_devtools_cloudbuild_v1_Artifacts_MavenArtifact_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_cloudbuild_v1_Artifacts_MavenArtifact_descriptor, + new java.lang.String[] { + "Repository", "Path", "ArtifactId", "GroupId", "Version", + }); + internal_static_google_devtools_cloudbuild_v1_Artifacts_PythonPackage_descriptor = + internal_static_google_devtools_cloudbuild_v1_Artifacts_descriptor.getNestedTypes().get(2); + internal_static_google_devtools_cloudbuild_v1_Artifacts_PythonPackage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_cloudbuild_v1_Artifacts_PythonPackage_descriptor, + new java.lang.String[] { + "Repository", "Paths", + }); internal_static_google_devtools_cloudbuild_v1_TimeSpan_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_devtools_cloudbuild_v1_TimeSpan_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_TimeSpan_descriptor, @@ -1065,7 +1136,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", "EndTime", }); internal_static_google_devtools_cloudbuild_v1_BuildOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_devtools_cloudbuild_v1_BuildOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_BuildOperationMetadata_descriptor, @@ -1073,7 +1144,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Build", }); internal_static_google_devtools_cloudbuild_v1_SourceProvenance_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_devtools_cloudbuild_v1_SourceProvenance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_SourceProvenance_descriptor, @@ -1094,7 +1165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_devtools_cloudbuild_v1_FileHashes_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_devtools_cloudbuild_v1_FileHashes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_FileHashes_descriptor, @@ -1102,7 +1173,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileHash", }); internal_static_google_devtools_cloudbuild_v1_Hash_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_devtools_cloudbuild_v1_Hash_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Hash_descriptor, @@ -1110,7 +1181,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", "Value", }); internal_static_google_devtools_cloudbuild_v1_Secrets_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_devtools_cloudbuild_v1_Secrets_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Secrets_descriptor, @@ -1118,7 +1189,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SecretManager", "Inline", }); internal_static_google_devtools_cloudbuild_v1_InlineSecret_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_devtools_cloudbuild_v1_InlineSecret_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_InlineSecret_descriptor, @@ -1136,7 +1207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_devtools_cloudbuild_v1_SecretManagerSecret_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_devtools_cloudbuild_v1_SecretManagerSecret_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_SecretManagerSecret_descriptor, @@ -1144,7 +1215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VersionName", "Env", }); internal_static_google_devtools_cloudbuild_v1_Secret_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_devtools_cloudbuild_v1_Secret_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Secret_descriptor, @@ -1160,7 +1231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_devtools_cloudbuild_v1_CreateBuildRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_devtools_cloudbuild_v1_CreateBuildRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_CreateBuildRequest_descriptor, @@ -1168,7 +1239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ProjectId", "Build", }); internal_static_google_devtools_cloudbuild_v1_GetBuildRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_devtools_cloudbuild_v1_GetBuildRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_GetBuildRequest_descriptor, @@ -1176,7 +1247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ProjectId", "Id", }); internal_static_google_devtools_cloudbuild_v1_ListBuildsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_devtools_cloudbuild_v1_ListBuildsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ListBuildsRequest_descriptor, @@ -1184,7 +1255,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ProjectId", "PageSize", "PageToken", "Filter", }); internal_static_google_devtools_cloudbuild_v1_ListBuildsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_devtools_cloudbuild_v1_ListBuildsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ListBuildsResponse_descriptor, @@ -1192,7 +1263,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Builds", "NextPageToken", }); internal_static_google_devtools_cloudbuild_v1_CancelBuildRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_devtools_cloudbuild_v1_CancelBuildRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_CancelBuildRequest_descriptor, @@ -1200,7 +1271,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ProjectId", "Id", }); internal_static_google_devtools_cloudbuild_v1_ApproveBuildRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_devtools_cloudbuild_v1_ApproveBuildRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ApproveBuildRequest_descriptor, @@ -1208,7 +1279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ApprovalResult", }); internal_static_google_devtools_cloudbuild_v1_BuildApproval_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_devtools_cloudbuild_v1_BuildApproval_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_BuildApproval_descriptor, @@ -1216,7 +1287,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "Config", "Result", }); internal_static_google_devtools_cloudbuild_v1_ApprovalConfig_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_google_devtools_cloudbuild_v1_ApprovalConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ApprovalConfig_descriptor, @@ -1224,7 +1295,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApprovalRequired", }); internal_static_google_devtools_cloudbuild_v1_ApprovalResult_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_google_devtools_cloudbuild_v1_ApprovalResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ApprovalResult_descriptor, @@ -1232,7 +1303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApproverAccount", "ApprovalTime", "Decision", "Comment", "Url", }); internal_static_google_devtools_cloudbuild_v1_BuildTrigger_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_google_devtools_cloudbuild_v1_BuildTrigger_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_BuildTrigger_descriptor, @@ -1269,7 +1340,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_devtools_cloudbuild_v1_GitHubEventsConfig_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(34); internal_static_google_devtools_cloudbuild_v1_GitHubEventsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_GitHubEventsConfig_descriptor, @@ -1277,7 +1348,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstallationId", "Owner", "Name", "PullRequest", "Push", "Event", }); internal_static_google_devtools_cloudbuild_v1_PubsubConfig_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(35); internal_static_google_devtools_cloudbuild_v1_PubsubConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_PubsubConfig_descriptor, @@ -1285,7 +1356,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "Topic", "ServiceAccountEmail", "State", }); internal_static_google_devtools_cloudbuild_v1_WebhookConfig_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(36); internal_static_google_devtools_cloudbuild_v1_WebhookConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_WebhookConfig_descriptor, @@ -1293,7 +1364,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Secret", "State", "AuthMethod", }); internal_static_google_devtools_cloudbuild_v1_PullRequestFilter_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(37); internal_static_google_devtools_cloudbuild_v1_PullRequestFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_PullRequestFilter_descriptor, @@ -1301,7 +1372,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Branch", "CommentControl", "InvertRegex", "GitRef", }); internal_static_google_devtools_cloudbuild_v1_PushFilter_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(38); internal_static_google_devtools_cloudbuild_v1_PushFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_PushFilter_descriptor, @@ -1309,7 +1380,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Branch", "Tag", "InvertRegex", "GitRef", }); internal_static_google_devtools_cloudbuild_v1_CreateBuildTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(39); internal_static_google_devtools_cloudbuild_v1_CreateBuildTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_CreateBuildTriggerRequest_descriptor, @@ -1317,7 +1388,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ProjectId", "Trigger", }); internal_static_google_devtools_cloudbuild_v1_GetBuildTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(40); internal_static_google_devtools_cloudbuild_v1_GetBuildTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_GetBuildTriggerRequest_descriptor, @@ -1325,7 +1396,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ProjectId", "TriggerId", }); internal_static_google_devtools_cloudbuild_v1_ListBuildTriggersRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(41); internal_static_google_devtools_cloudbuild_v1_ListBuildTriggersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ListBuildTriggersRequest_descriptor, @@ -1333,7 +1404,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ProjectId", "PageSize", "PageToken", }); internal_static_google_devtools_cloudbuild_v1_ListBuildTriggersResponse_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(42); internal_static_google_devtools_cloudbuild_v1_ListBuildTriggersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ListBuildTriggersResponse_descriptor, @@ -1341,7 +1412,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Triggers", "NextPageToken", }); internal_static_google_devtools_cloudbuild_v1_DeleteBuildTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(43); internal_static_google_devtools_cloudbuild_v1_DeleteBuildTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_DeleteBuildTriggerRequest_descriptor, @@ -1349,7 +1420,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ProjectId", "TriggerId", }); internal_static_google_devtools_cloudbuild_v1_UpdateBuildTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(44); internal_static_google_devtools_cloudbuild_v1_UpdateBuildTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_UpdateBuildTriggerRequest_descriptor, @@ -1357,7 +1428,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "TriggerId", "Trigger", }); internal_static_google_devtools_cloudbuild_v1_BuildOptions_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(45); internal_static_google_devtools_cloudbuild_v1_BuildOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_BuildOptions_descriptor, @@ -1387,7 +1458,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_devtools_cloudbuild_v1_ReceiveTriggerWebhookRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(46); internal_static_google_devtools_cloudbuild_v1_ReceiveTriggerWebhookRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ReceiveTriggerWebhookRequest_descriptor, @@ -1395,13 +1466,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Body", "ProjectId", "Trigger", "Secret", }); internal_static_google_devtools_cloudbuild_v1_ReceiveTriggerWebhookResponse_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(47); internal_static_google_devtools_cloudbuild_v1_ReceiveTriggerWebhookResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ReceiveTriggerWebhookResponse_descriptor, new java.lang.String[] {}); internal_static_google_devtools_cloudbuild_v1_WorkerPool_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(48); internal_static_google_devtools_cloudbuild_v1_WorkerPool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_WorkerPool_descriptor, @@ -1427,7 +1498,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(49); internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_descriptor, @@ -1455,7 +1526,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PeeredNetwork", "EgressOption", }); internal_static_google_devtools_cloudbuild_v1_CreateWorkerPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(50); internal_static_google_devtools_cloudbuild_v1_CreateWorkerPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_CreateWorkerPoolRequest_descriptor, @@ -1463,7 +1534,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "WorkerPool", "WorkerPoolId", "ValidateOnly", }); internal_static_google_devtools_cloudbuild_v1_GetWorkerPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(51); internal_static_google_devtools_cloudbuild_v1_GetWorkerPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_GetWorkerPoolRequest_descriptor, @@ -1471,7 +1542,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_devtools_cloudbuild_v1_DeleteWorkerPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(52); internal_static_google_devtools_cloudbuild_v1_DeleteWorkerPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_DeleteWorkerPoolRequest_descriptor, @@ -1479,7 +1550,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Etag", "AllowMissing", "ValidateOnly", }); internal_static_google_devtools_cloudbuild_v1_UpdateWorkerPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(53); internal_static_google_devtools_cloudbuild_v1_UpdateWorkerPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_UpdateWorkerPoolRequest_descriptor, @@ -1487,7 +1558,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkerPool", "UpdateMask", "ValidateOnly", }); internal_static_google_devtools_cloudbuild_v1_ListWorkerPoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(54); internal_static_google_devtools_cloudbuild_v1_ListWorkerPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ListWorkerPoolsRequest_descriptor, @@ -1495,7 +1566,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_devtools_cloudbuild_v1_ListWorkerPoolsResponse_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(55); internal_static_google_devtools_cloudbuild_v1_ListWorkerPoolsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ListWorkerPoolsResponse_descriptor, @@ -1503,7 +1574,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkerPools", "NextPageToken", }); internal_static_google_devtools_cloudbuild_v1_CreateWorkerPoolOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(56); internal_static_google_devtools_cloudbuild_v1_CreateWorkerPoolOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_CreateWorkerPoolOperationMetadata_descriptor, @@ -1511,7 +1582,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkerPool", "CreateTime", "CompleteTime", }); internal_static_google_devtools_cloudbuild_v1_UpdateWorkerPoolOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(57); internal_static_google_devtools_cloudbuild_v1_UpdateWorkerPoolOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_UpdateWorkerPoolOperationMetadata_descriptor, @@ -1519,7 +1590,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkerPool", "CreateTime", "CompleteTime", }); internal_static_google_devtools_cloudbuild_v1_DeleteWorkerPoolOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(58); internal_static_google_devtools_cloudbuild_v1_DeleteWorkerPoolOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_DeleteWorkerPoolOperationMetadata_descriptor, diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java index b4dc53fb6469..bfa799013ed4 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java @@ -129,7 +129,7 @@ public EventCase getEventCase() { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1411 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1507 * @return The installationId. */ @java.lang.Override @@ -833,7 +833,7 @@ public Builder clearEvent() { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. - * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=1411 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=1507 * @return The installationId. */ @java.lang.Override @@ -851,7 +851,7 @@ public long getInstallationId() { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. - * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=1411 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=1507 * @param value The installationId to set. * @return This builder for chaining. */ @@ -872,7 +872,7 @@ public Builder setInstallationId(long value) { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. - * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=1411 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=1507 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java index 7c8a52dab85f..012bbfe1ae3a 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java @@ -33,7 +33,7 @@ public interface GitHubEventsConfigOrBuilder * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1411 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=1507 * @return The installationId. */ @java.lang.Deprecated diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Results.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Results.java index ae128f3ea717..c395c1f4d600 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Results.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Results.java @@ -42,6 +42,8 @@ private Results() { buildStepImages_ = com.google.protobuf.LazyStringArrayList.EMPTY; artifactManifest_ = ""; buildStepOutputs_ = java.util.Collections.emptyList(); + pythonPackages_ = java.util.Collections.emptyList(); + mavenArtifacts_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -377,6 +379,146 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getArtifactTimingOrBuilder() { return getArtifactTiming(); } + public static final int PYTHON_PACKAGES_FIELD_NUMBER = 8; + private java.util.List pythonPackages_; + /** + * + * + *
+   * Python artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + */ + @java.lang.Override + public java.util.List getPythonPackagesList() { + return pythonPackages_; + } + /** + * + * + *
+   * Python artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + */ + @java.lang.Override + public java.util.List + getPythonPackagesOrBuilderList() { + return pythonPackages_; + } + /** + * + * + *
+   * Python artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + */ + @java.lang.Override + public int getPythonPackagesCount() { + return pythonPackages_.size(); + } + /** + * + * + *
+   * Python artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + */ + @java.lang.Override + public com.google.cloudbuild.v1.UploadedPythonPackage getPythonPackages(int index) { + return pythonPackages_.get(index); + } + /** + * + * + *
+   * Python artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + */ + @java.lang.Override + public com.google.cloudbuild.v1.UploadedPythonPackageOrBuilder getPythonPackagesOrBuilder( + int index) { + return pythonPackages_.get(index); + } + + public static final int MAVEN_ARTIFACTS_FIELD_NUMBER = 9; + private java.util.List mavenArtifacts_; + /** + * + * + *
+   * Maven artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + */ + @java.lang.Override + public java.util.List getMavenArtifactsList() { + return mavenArtifacts_; + } + /** + * + * + *
+   * Maven artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + */ + @java.lang.Override + public java.util.List + getMavenArtifactsOrBuilderList() { + return mavenArtifacts_; + } + /** + * + * + *
+   * Maven artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + */ + @java.lang.Override + public int getMavenArtifactsCount() { + return mavenArtifacts_.size(); + } + /** + * + * + *
+   * Maven artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + */ + @java.lang.Override + public com.google.cloudbuild.v1.UploadedMavenArtifact getMavenArtifacts(int index) { + return mavenArtifacts_.get(index); + } + /** + * + * + *
+   * Maven artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + */ + @java.lang.Override + public com.google.cloudbuild.v1.UploadedMavenArtifactOrBuilder getMavenArtifactsOrBuilder( + int index) { + return mavenArtifacts_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -409,6 +551,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (artifactTiming_ != null) { output.writeMessage(7, getArtifactTiming()); } + for (int i = 0; i < pythonPackages_.size(); i++) { + output.writeMessage(8, pythonPackages_.get(i)); + } + for (int i = 0; i < mavenArtifacts_.size(); i++) { + output.writeMessage(9, mavenArtifacts_.get(i)); + } getUnknownFields().writeTo(output); } @@ -447,6 +595,12 @@ public int getSerializedSize() { if (artifactTiming_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getArtifactTiming()); } + for (int i = 0; i < pythonPackages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, pythonPackages_.get(i)); + } + for (int i = 0; i < mavenArtifacts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, mavenArtifacts_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -471,6 +625,8 @@ public boolean equals(final java.lang.Object obj) { if (hasArtifactTiming()) { if (!getArtifactTiming().equals(other.getArtifactTiming())) return false; } + if (!getPythonPackagesList().equals(other.getPythonPackagesList())) return false; + if (!getMavenArtifactsList().equals(other.getMavenArtifactsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -502,6 +658,14 @@ public int hashCode() { hash = (37 * hash) + ARTIFACT_TIMING_FIELD_NUMBER; hash = (53 * hash) + getArtifactTiming().hashCode(); } + if (getPythonPackagesCount() > 0) { + hash = (37 * hash) + PYTHON_PACKAGES_FIELD_NUMBER; + hash = (53 * hash) + getPythonPackagesList().hashCode(); + } + if (getMavenArtifactsCount() > 0) { + hash = (37 * hash) + MAVEN_ARTIFACTS_FIELD_NUMBER; + hash = (53 * hash) + getMavenArtifactsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -660,6 +824,20 @@ public Builder clear() { artifactTiming_ = null; artifactTimingBuilder_ = null; } + if (pythonPackagesBuilder_ == null) { + pythonPackages_ = java.util.Collections.emptyList(); + } else { + pythonPackages_ = null; + pythonPackagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (mavenArtifactsBuilder_ == null) { + mavenArtifacts_ = java.util.Collections.emptyList(); + } else { + mavenArtifacts_ = null; + mavenArtifactsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); return this; } @@ -713,6 +891,24 @@ public com.google.cloudbuild.v1.Results buildPartial() { } else { result.artifactTiming_ = artifactTimingBuilder_.build(); } + if (pythonPackagesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + pythonPackages_ = java.util.Collections.unmodifiableList(pythonPackages_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.pythonPackages_ = pythonPackages_; + } else { + result.pythonPackages_ = pythonPackagesBuilder_.build(); + } + if (mavenArtifactsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + mavenArtifacts_ = java.util.Collections.unmodifiableList(mavenArtifacts_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.mavenArtifacts_ = mavenArtifacts_; + } else { + result.mavenArtifacts_ = mavenArtifactsBuilder_.build(); + } onBuilt(); return result; } @@ -819,6 +1015,60 @@ public Builder mergeFrom(com.google.cloudbuild.v1.Results other) { if (other.hasArtifactTiming()) { mergeArtifactTiming(other.getArtifactTiming()); } + if (pythonPackagesBuilder_ == null) { + if (!other.pythonPackages_.isEmpty()) { + if (pythonPackages_.isEmpty()) { + pythonPackages_ = other.pythonPackages_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePythonPackagesIsMutable(); + pythonPackages_.addAll(other.pythonPackages_); + } + onChanged(); + } + } else { + if (!other.pythonPackages_.isEmpty()) { + if (pythonPackagesBuilder_.isEmpty()) { + pythonPackagesBuilder_.dispose(); + pythonPackagesBuilder_ = null; + pythonPackages_ = other.pythonPackages_; + bitField0_ = (bitField0_ & ~0x00000008); + pythonPackagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPythonPackagesFieldBuilder() + : null; + } else { + pythonPackagesBuilder_.addAllMessages(other.pythonPackages_); + } + } + } + if (mavenArtifactsBuilder_ == null) { + if (!other.mavenArtifacts_.isEmpty()) { + if (mavenArtifacts_.isEmpty()) { + mavenArtifacts_ = other.mavenArtifacts_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.addAll(other.mavenArtifacts_); + } + onChanged(); + } + } else { + if (!other.mavenArtifacts_.isEmpty()) { + if (mavenArtifactsBuilder_.isEmpty()) { + mavenArtifactsBuilder_.dispose(); + mavenArtifactsBuilder_ = null; + mavenArtifacts_ = other.mavenArtifacts_; + bitField0_ = (bitField0_ & ~0x00000010); + mavenArtifactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMavenArtifactsFieldBuilder() + : null; + } else { + mavenArtifactsBuilder_.addAllMessages(other.mavenArtifacts_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -890,6 +1140,32 @@ public Builder mergeFrom( break; } // case 58 + case 66: + { + com.google.cloudbuild.v1.UploadedPythonPackage m = + input.readMessage( + com.google.cloudbuild.v1.UploadedPythonPackage.parser(), extensionRegistry); + if (pythonPackagesBuilder_ == null) { + ensurePythonPackagesIsMutable(); + pythonPackages_.add(m); + } else { + pythonPackagesBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.cloudbuild.v1.UploadedMavenArtifact m = + input.readMessage( + com.google.cloudbuild.v1.UploadedMavenArtifact.parser(), extensionRegistry); + if (mavenArtifactsBuilder_ == null) { + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.add(m); + } else { + mavenArtifactsBuilder_.addMessage(m); + } + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1940,6 +2216,762 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getArtifactTimingOrBuilder() { return artifactTimingBuilder_; } + private java.util.List pythonPackages_ = + java.util.Collections.emptyList(); + + private void ensurePythonPackagesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + pythonPackages_ = + new java.util.ArrayList( + pythonPackages_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloudbuild.v1.UploadedPythonPackage, + com.google.cloudbuild.v1.UploadedPythonPackage.Builder, + com.google.cloudbuild.v1.UploadedPythonPackageOrBuilder> + pythonPackagesBuilder_; + + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public java.util.List getPythonPackagesList() { + if (pythonPackagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(pythonPackages_); + } else { + return pythonPackagesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public int getPythonPackagesCount() { + if (pythonPackagesBuilder_ == null) { + return pythonPackages_.size(); + } else { + return pythonPackagesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public com.google.cloudbuild.v1.UploadedPythonPackage getPythonPackages(int index) { + if (pythonPackagesBuilder_ == null) { + return pythonPackages_.get(index); + } else { + return pythonPackagesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public Builder setPythonPackages( + int index, com.google.cloudbuild.v1.UploadedPythonPackage value) { + if (pythonPackagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePythonPackagesIsMutable(); + pythonPackages_.set(index, value); + onChanged(); + } else { + pythonPackagesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public Builder setPythonPackages( + int index, com.google.cloudbuild.v1.UploadedPythonPackage.Builder builderForValue) { + if (pythonPackagesBuilder_ == null) { + ensurePythonPackagesIsMutable(); + pythonPackages_.set(index, builderForValue.build()); + onChanged(); + } else { + pythonPackagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public Builder addPythonPackages(com.google.cloudbuild.v1.UploadedPythonPackage value) { + if (pythonPackagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePythonPackagesIsMutable(); + pythonPackages_.add(value); + onChanged(); + } else { + pythonPackagesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public Builder addPythonPackages( + int index, com.google.cloudbuild.v1.UploadedPythonPackage value) { + if (pythonPackagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePythonPackagesIsMutable(); + pythonPackages_.add(index, value); + onChanged(); + } else { + pythonPackagesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public Builder addPythonPackages( + com.google.cloudbuild.v1.UploadedPythonPackage.Builder builderForValue) { + if (pythonPackagesBuilder_ == null) { + ensurePythonPackagesIsMutable(); + pythonPackages_.add(builderForValue.build()); + onChanged(); + } else { + pythonPackagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public Builder addPythonPackages( + int index, com.google.cloudbuild.v1.UploadedPythonPackage.Builder builderForValue) { + if (pythonPackagesBuilder_ == null) { + ensurePythonPackagesIsMutable(); + pythonPackages_.add(index, builderForValue.build()); + onChanged(); + } else { + pythonPackagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public Builder addAllPythonPackages( + java.lang.Iterable values) { + if (pythonPackagesBuilder_ == null) { + ensurePythonPackagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pythonPackages_); + onChanged(); + } else { + pythonPackagesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public Builder clearPythonPackages() { + if (pythonPackagesBuilder_ == null) { + pythonPackages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + pythonPackagesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public Builder removePythonPackages(int index) { + if (pythonPackagesBuilder_ == null) { + ensurePythonPackagesIsMutable(); + pythonPackages_.remove(index); + onChanged(); + } else { + pythonPackagesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public com.google.cloudbuild.v1.UploadedPythonPackage.Builder getPythonPackagesBuilder( + int index) { + return getPythonPackagesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public com.google.cloudbuild.v1.UploadedPythonPackageOrBuilder getPythonPackagesOrBuilder( + int index) { + if (pythonPackagesBuilder_ == null) { + return pythonPackages_.get(index); + } else { + return pythonPackagesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public java.util.List + getPythonPackagesOrBuilderList() { + if (pythonPackagesBuilder_ != null) { + return pythonPackagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pythonPackages_); + } + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public com.google.cloudbuild.v1.UploadedPythonPackage.Builder addPythonPackagesBuilder() { + return getPythonPackagesFieldBuilder() + .addBuilder(com.google.cloudbuild.v1.UploadedPythonPackage.getDefaultInstance()); + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public com.google.cloudbuild.v1.UploadedPythonPackage.Builder addPythonPackagesBuilder( + int index) { + return getPythonPackagesFieldBuilder() + .addBuilder(index, com.google.cloudbuild.v1.UploadedPythonPackage.getDefaultInstance()); + } + /** + * + * + *
+     * Python artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + * + */ + public java.util.List + getPythonPackagesBuilderList() { + return getPythonPackagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloudbuild.v1.UploadedPythonPackage, + com.google.cloudbuild.v1.UploadedPythonPackage.Builder, + com.google.cloudbuild.v1.UploadedPythonPackageOrBuilder> + getPythonPackagesFieldBuilder() { + if (pythonPackagesBuilder_ == null) { + pythonPackagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloudbuild.v1.UploadedPythonPackage, + com.google.cloudbuild.v1.UploadedPythonPackage.Builder, + com.google.cloudbuild.v1.UploadedPythonPackageOrBuilder>( + pythonPackages_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + pythonPackages_ = null; + } + return pythonPackagesBuilder_; + } + + private java.util.List mavenArtifacts_ = + java.util.Collections.emptyList(); + + private void ensureMavenArtifactsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + mavenArtifacts_ = + new java.util.ArrayList( + mavenArtifacts_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloudbuild.v1.UploadedMavenArtifact, + com.google.cloudbuild.v1.UploadedMavenArtifact.Builder, + com.google.cloudbuild.v1.UploadedMavenArtifactOrBuilder> + mavenArtifactsBuilder_; + + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public java.util.List getMavenArtifactsList() { + if (mavenArtifactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mavenArtifacts_); + } else { + return mavenArtifactsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public int getMavenArtifactsCount() { + if (mavenArtifactsBuilder_ == null) { + return mavenArtifacts_.size(); + } else { + return mavenArtifactsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public com.google.cloudbuild.v1.UploadedMavenArtifact getMavenArtifacts(int index) { + if (mavenArtifactsBuilder_ == null) { + return mavenArtifacts_.get(index); + } else { + return mavenArtifactsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public Builder setMavenArtifacts( + int index, com.google.cloudbuild.v1.UploadedMavenArtifact value) { + if (mavenArtifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.set(index, value); + onChanged(); + } else { + mavenArtifactsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public Builder setMavenArtifacts( + int index, com.google.cloudbuild.v1.UploadedMavenArtifact.Builder builderForValue) { + if (mavenArtifactsBuilder_ == null) { + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.set(index, builderForValue.build()); + onChanged(); + } else { + mavenArtifactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public Builder addMavenArtifacts(com.google.cloudbuild.v1.UploadedMavenArtifact value) { + if (mavenArtifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.add(value); + onChanged(); + } else { + mavenArtifactsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public Builder addMavenArtifacts( + int index, com.google.cloudbuild.v1.UploadedMavenArtifact value) { + if (mavenArtifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.add(index, value); + onChanged(); + } else { + mavenArtifactsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public Builder addMavenArtifacts( + com.google.cloudbuild.v1.UploadedMavenArtifact.Builder builderForValue) { + if (mavenArtifactsBuilder_ == null) { + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.add(builderForValue.build()); + onChanged(); + } else { + mavenArtifactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public Builder addMavenArtifacts( + int index, com.google.cloudbuild.v1.UploadedMavenArtifact.Builder builderForValue) { + if (mavenArtifactsBuilder_ == null) { + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.add(index, builderForValue.build()); + onChanged(); + } else { + mavenArtifactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public Builder addAllMavenArtifacts( + java.lang.Iterable values) { + if (mavenArtifactsBuilder_ == null) { + ensureMavenArtifactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mavenArtifacts_); + onChanged(); + } else { + mavenArtifactsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public Builder clearMavenArtifacts() { + if (mavenArtifactsBuilder_ == null) { + mavenArtifacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + mavenArtifactsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public Builder removeMavenArtifacts(int index) { + if (mavenArtifactsBuilder_ == null) { + ensureMavenArtifactsIsMutable(); + mavenArtifacts_.remove(index); + onChanged(); + } else { + mavenArtifactsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public com.google.cloudbuild.v1.UploadedMavenArtifact.Builder getMavenArtifactsBuilder( + int index) { + return getMavenArtifactsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public com.google.cloudbuild.v1.UploadedMavenArtifactOrBuilder getMavenArtifactsOrBuilder( + int index) { + if (mavenArtifactsBuilder_ == null) { + return mavenArtifacts_.get(index); + } else { + return mavenArtifactsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public java.util.List + getMavenArtifactsOrBuilderList() { + if (mavenArtifactsBuilder_ != null) { + return mavenArtifactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mavenArtifacts_); + } + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public com.google.cloudbuild.v1.UploadedMavenArtifact.Builder addMavenArtifactsBuilder() { + return getMavenArtifactsFieldBuilder() + .addBuilder(com.google.cloudbuild.v1.UploadedMavenArtifact.getDefaultInstance()); + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public com.google.cloudbuild.v1.UploadedMavenArtifact.Builder addMavenArtifactsBuilder( + int index) { + return getMavenArtifactsFieldBuilder() + .addBuilder(index, com.google.cloudbuild.v1.UploadedMavenArtifact.getDefaultInstance()); + } + /** + * + * + *
+     * Maven artifacts uploaded to Artifact Registry at the end of the build.
+     * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + * + */ + public java.util.List + getMavenArtifactsBuilderList() { + return getMavenArtifactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloudbuild.v1.UploadedMavenArtifact, + com.google.cloudbuild.v1.UploadedMavenArtifact.Builder, + com.google.cloudbuild.v1.UploadedMavenArtifactOrBuilder> + getMavenArtifactsFieldBuilder() { + if (mavenArtifactsBuilder_ == null) { + mavenArtifactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloudbuild.v1.UploadedMavenArtifact, + com.google.cloudbuild.v1.UploadedMavenArtifact.Builder, + com.google.cloudbuild.v1.UploadedMavenArtifactOrBuilder>( + mavenArtifacts_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + mavenArtifacts_ = null; + } + return mavenArtifactsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ResultsOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ResultsOrBuilder.java index 42c21510fe3b..90a1e0300a05 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ResultsOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ResultsOrBuilder.java @@ -251,4 +251,108 @@ public interface ResultsOrBuilder * .google.devtools.cloudbuild.v1.TimeSpan artifact_timing = 7; */ com.google.cloudbuild.v1.TimeSpanOrBuilder getArtifactTimingOrBuilder(); + + /** + * + * + *
+   * Python artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + */ + java.util.List getPythonPackagesList(); + /** + * + * + *
+   * Python artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + */ + com.google.cloudbuild.v1.UploadedPythonPackage getPythonPackages(int index); + /** + * + * + *
+   * Python artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + */ + int getPythonPackagesCount(); + /** + * + * + *
+   * Python artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + */ + java.util.List + getPythonPackagesOrBuilderList(); + /** + * + * + *
+   * Python artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedPythonPackage python_packages = 8; + */ + com.google.cloudbuild.v1.UploadedPythonPackageOrBuilder getPythonPackagesOrBuilder(int index); + + /** + * + * + *
+   * Maven artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + */ + java.util.List getMavenArtifactsList(); + /** + * + * + *
+   * Maven artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + */ + com.google.cloudbuild.v1.UploadedMavenArtifact getMavenArtifacts(int index); + /** + * + * + *
+   * Maven artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + */ + int getMavenArtifactsCount(); + /** + * + * + *
+   * Maven artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + */ + java.util.List + getMavenArtifactsOrBuilderList(); + /** + * + * + *
+   * Maven artifacts uploaded to Artifact Registry at the end of the build.
+   * 
+ * + * repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; + */ + com.google.cloudbuild.v1.UploadedMavenArtifactOrBuilder getMavenArtifactsOrBuilder(int index); } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedMavenArtifact.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedMavenArtifact.java new file mode 100644 index 000000000000..99e990d4e30e --- /dev/null +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedMavenArtifact.java @@ -0,0 +1,1172 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/cloudbuild/v1/cloudbuild.proto + +package com.google.cloudbuild.v1; + +/** + * + * + *
+ * A Maven artifact uploaded using the MavenArtifact directive.
+ * 
+ * + * Protobuf type {@code google.devtools.cloudbuild.v1.UploadedMavenArtifact} + */ +public final class UploadedMavenArtifact extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.UploadedMavenArtifact) + UploadedMavenArtifactOrBuilder { + private static final long serialVersionUID = 0L; + // Use UploadedMavenArtifact.newBuilder() to construct. + private UploadedMavenArtifact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UploadedMavenArtifact() { + uri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UploadedMavenArtifact(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_UploadedMavenArtifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_UploadedMavenArtifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.UploadedMavenArtifact.class, + com.google.cloudbuild.v1.UploadedMavenArtifact.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * + * + *
+   * URI of the uploaded artifact.
+   * 
+ * + * string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of the uploaded artifact.
+   * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_HASHES_FIELD_NUMBER = 2; + private com.google.cloudbuild.v1.FileHashes fileHashes_; + /** + * + * + *
+   * Hash types and values of the Maven Artifact.
+   * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + * + * @return Whether the fileHashes field is set. + */ + @java.lang.Override + public boolean hasFileHashes() { + return fileHashes_ != null; + } + /** + * + * + *
+   * Hash types and values of the Maven Artifact.
+   * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + * + * @return The fileHashes. + */ + @java.lang.Override + public com.google.cloudbuild.v1.FileHashes getFileHashes() { + return fileHashes_ == null + ? com.google.cloudbuild.v1.FileHashes.getDefaultInstance() + : fileHashes_; + } + /** + * + * + *
+   * Hash types and values of the Maven Artifact.
+   * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + @java.lang.Override + public com.google.cloudbuild.v1.FileHashesOrBuilder getFileHashesOrBuilder() { + return getFileHashes(); + } + + public static final int PUSH_TIMING_FIELD_NUMBER = 3; + private com.google.cloudbuild.v1.TimeSpan pushTiming_; + /** + * + * + *
+   * Output only. Stores timing information for pushing the specified artifact.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pushTiming field is set. + */ + @java.lang.Override + public boolean hasPushTiming() { + return pushTiming_ != null; + } + /** + * + * + *
+   * Output only. Stores timing information for pushing the specified artifact.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pushTiming. + */ + @java.lang.Override + public com.google.cloudbuild.v1.TimeSpan getPushTiming() { + return pushTiming_ == null + ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() + : pushTiming_; + } + /** + * + * + *
+   * Output only. Stores timing information for pushing the specified artifact.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder() { + return getPushTiming(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (fileHashes_ != null) { + output.writeMessage(2, getFileHashes()); + } + if (pushTiming_ != null) { + output.writeMessage(3, getPushTiming()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (fileHashes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFileHashes()); + } + if (pushTiming_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPushTiming()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloudbuild.v1.UploadedMavenArtifact)) { + return super.equals(obj); + } + com.google.cloudbuild.v1.UploadedMavenArtifact other = + (com.google.cloudbuild.v1.UploadedMavenArtifact) obj; + + if (!getUri().equals(other.getUri())) return false; + if (hasFileHashes() != other.hasFileHashes()) return false; + if (hasFileHashes()) { + if (!getFileHashes().equals(other.getFileHashes())) return false; + } + if (hasPushTiming() != other.hasPushTiming()) return false; + if (hasPushTiming()) { + if (!getPushTiming().equals(other.getPushTiming())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + if (hasFileHashes()) { + hash = (37 * hash) + FILE_HASHES_FIELD_NUMBER; + hash = (53 * hash) + getFileHashes().hashCode(); + } + if (hasPushTiming()) { + hash = (37 * hash) + PUSH_TIMING_FIELD_NUMBER; + hash = (53 * hash) + getPushTiming().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloudbuild.v1.UploadedMavenArtifact parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.UploadedMavenArtifact parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.UploadedMavenArtifact parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.UploadedMavenArtifact parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.UploadedMavenArtifact parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.UploadedMavenArtifact parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.UploadedMavenArtifact parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.UploadedMavenArtifact parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloudbuild.v1.UploadedMavenArtifact parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.UploadedMavenArtifact parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloudbuild.v1.UploadedMavenArtifact parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.UploadedMavenArtifact parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloudbuild.v1.UploadedMavenArtifact prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A Maven artifact uploaded using the MavenArtifact directive.
+   * 
+ * + * Protobuf type {@code google.devtools.cloudbuild.v1.UploadedMavenArtifact} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.UploadedMavenArtifact) + com.google.cloudbuild.v1.UploadedMavenArtifactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_UploadedMavenArtifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_UploadedMavenArtifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.UploadedMavenArtifact.class, + com.google.cloudbuild.v1.UploadedMavenArtifact.Builder.class); + } + + // Construct using com.google.cloudbuild.v1.UploadedMavenArtifact.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + uri_ = ""; + + if (fileHashesBuilder_ == null) { + fileHashes_ = null; + } else { + fileHashes_ = null; + fileHashesBuilder_ = null; + } + if (pushTimingBuilder_ == null) { + pushTiming_ = null; + } else { + pushTiming_ = null; + pushTimingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_UploadedMavenArtifact_descriptor; + } + + @java.lang.Override + public com.google.cloudbuild.v1.UploadedMavenArtifact getDefaultInstanceForType() { + return com.google.cloudbuild.v1.UploadedMavenArtifact.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloudbuild.v1.UploadedMavenArtifact build() { + com.google.cloudbuild.v1.UploadedMavenArtifact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloudbuild.v1.UploadedMavenArtifact buildPartial() { + com.google.cloudbuild.v1.UploadedMavenArtifact result = + new com.google.cloudbuild.v1.UploadedMavenArtifact(this); + result.uri_ = uri_; + if (fileHashesBuilder_ == null) { + result.fileHashes_ = fileHashes_; + } else { + result.fileHashes_ = fileHashesBuilder_.build(); + } + if (pushTimingBuilder_ == null) { + result.pushTiming_ = pushTiming_; + } else { + result.pushTiming_ = pushTimingBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloudbuild.v1.UploadedMavenArtifact) { + return mergeFrom((com.google.cloudbuild.v1.UploadedMavenArtifact) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloudbuild.v1.UploadedMavenArtifact other) { + if (other == com.google.cloudbuild.v1.UploadedMavenArtifact.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (other.hasFileHashes()) { + mergeFileHashes(other.getFileHashes()); + } + if (other.hasPushTiming()) { + mergePushTiming(other.getPushTiming()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getFileHashesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getPushTimingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * URI of the uploaded artifact.
+     * 
+ * + * string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of the uploaded artifact.
+     * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of the uploaded artifact.
+     * 
+ * + * string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the uploaded artifact.
+     * 
+ * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the uploaded artifact.
+     * 
+ * + * string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private com.google.cloudbuild.v1.FileHashes fileHashes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.FileHashes, + com.google.cloudbuild.v1.FileHashes.Builder, + com.google.cloudbuild.v1.FileHashesOrBuilder> + fileHashesBuilder_; + /** + * + * + *
+     * Hash types and values of the Maven Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + * + * @return Whether the fileHashes field is set. + */ + public boolean hasFileHashes() { + return fileHashesBuilder_ != null || fileHashes_ != null; + } + /** + * + * + *
+     * Hash types and values of the Maven Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + * + * @return The fileHashes. + */ + public com.google.cloudbuild.v1.FileHashes getFileHashes() { + if (fileHashesBuilder_ == null) { + return fileHashes_ == null + ? com.google.cloudbuild.v1.FileHashes.getDefaultInstance() + : fileHashes_; + } else { + return fileHashesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Hash types and values of the Maven Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + public Builder setFileHashes(com.google.cloudbuild.v1.FileHashes value) { + if (fileHashesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fileHashes_ = value; + onChanged(); + } else { + fileHashesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Hash types and values of the Maven Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + public Builder setFileHashes(com.google.cloudbuild.v1.FileHashes.Builder builderForValue) { + if (fileHashesBuilder_ == null) { + fileHashes_ = builderForValue.build(); + onChanged(); + } else { + fileHashesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Hash types and values of the Maven Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + public Builder mergeFileHashes(com.google.cloudbuild.v1.FileHashes value) { + if (fileHashesBuilder_ == null) { + if (fileHashes_ != null) { + fileHashes_ = + com.google.cloudbuild.v1.FileHashes.newBuilder(fileHashes_) + .mergeFrom(value) + .buildPartial(); + } else { + fileHashes_ = value; + } + onChanged(); + } else { + fileHashesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Hash types and values of the Maven Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + public Builder clearFileHashes() { + if (fileHashesBuilder_ == null) { + fileHashes_ = null; + onChanged(); + } else { + fileHashes_ = null; + fileHashesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Hash types and values of the Maven Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + public com.google.cloudbuild.v1.FileHashes.Builder getFileHashesBuilder() { + + onChanged(); + return getFileHashesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Hash types and values of the Maven Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + public com.google.cloudbuild.v1.FileHashesOrBuilder getFileHashesOrBuilder() { + if (fileHashesBuilder_ != null) { + return fileHashesBuilder_.getMessageOrBuilder(); + } else { + return fileHashes_ == null + ? com.google.cloudbuild.v1.FileHashes.getDefaultInstance() + : fileHashes_; + } + } + /** + * + * + *
+     * Hash types and values of the Maven Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.FileHashes, + com.google.cloudbuild.v1.FileHashes.Builder, + com.google.cloudbuild.v1.FileHashesOrBuilder> + getFileHashesFieldBuilder() { + if (fileHashesBuilder_ == null) { + fileHashesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.FileHashes, + com.google.cloudbuild.v1.FileHashes.Builder, + com.google.cloudbuild.v1.FileHashesOrBuilder>( + getFileHashes(), getParentForChildren(), isClean()); + fileHashes_ = null; + } + return fileHashesBuilder_; + } + + private com.google.cloudbuild.v1.TimeSpan pushTiming_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.TimeSpan, + com.google.cloudbuild.v1.TimeSpan.Builder, + com.google.cloudbuild.v1.TimeSpanOrBuilder> + pushTimingBuilder_; + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pushTiming field is set. + */ + public boolean hasPushTiming() { + return pushTimingBuilder_ != null || pushTiming_ != null; + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pushTiming. + */ + public com.google.cloudbuild.v1.TimeSpan getPushTiming() { + if (pushTimingBuilder_ == null) { + return pushTiming_ == null + ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() + : pushTiming_; + } else { + return pushTimingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPushTiming(com.google.cloudbuild.v1.TimeSpan value) { + if (pushTimingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pushTiming_ = value; + onChanged(); + } else { + pushTimingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPushTiming(com.google.cloudbuild.v1.TimeSpan.Builder builderForValue) { + if (pushTimingBuilder_ == null) { + pushTiming_ = builderForValue.build(); + onChanged(); + } else { + pushTimingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePushTiming(com.google.cloudbuild.v1.TimeSpan value) { + if (pushTimingBuilder_ == null) { + if (pushTiming_ != null) { + pushTiming_ = + com.google.cloudbuild.v1.TimeSpan.newBuilder(pushTiming_) + .mergeFrom(value) + .buildPartial(); + } else { + pushTiming_ = value; + } + onChanged(); + } else { + pushTimingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPushTiming() { + if (pushTimingBuilder_ == null) { + pushTiming_ = null; + onChanged(); + } else { + pushTiming_ = null; + pushTimingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloudbuild.v1.TimeSpan.Builder getPushTimingBuilder() { + + onChanged(); + return getPushTimingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder() { + if (pushTimingBuilder_ != null) { + return pushTimingBuilder_.getMessageOrBuilder(); + } else { + return pushTiming_ == null + ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() + : pushTiming_; + } + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.TimeSpan, + com.google.cloudbuild.v1.TimeSpan.Builder, + com.google.cloudbuild.v1.TimeSpanOrBuilder> + getPushTimingFieldBuilder() { + if (pushTimingBuilder_ == null) { + pushTimingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.TimeSpan, + com.google.cloudbuild.v1.TimeSpan.Builder, + com.google.cloudbuild.v1.TimeSpanOrBuilder>( + getPushTiming(), getParentForChildren(), isClean()); + pushTiming_ = null; + } + return pushTimingBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.UploadedMavenArtifact) + } + + // @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.UploadedMavenArtifact) + private static final com.google.cloudbuild.v1.UploadedMavenArtifact DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloudbuild.v1.UploadedMavenArtifact(); + } + + public static com.google.cloudbuild.v1.UploadedMavenArtifact getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UploadedMavenArtifact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloudbuild.v1.UploadedMavenArtifact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedMavenArtifactOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedMavenArtifactOrBuilder.java new file mode 100644 index 000000000000..3fc8ad14c9d5 --- /dev/null +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedMavenArtifactOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/cloudbuild/v1/cloudbuild.proto + +package com.google.cloudbuild.v1; + +public interface UploadedMavenArtifactOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.UploadedMavenArtifact) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * URI of the uploaded artifact.
+   * 
+ * + * string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+   * URI of the uploaded artifact.
+   * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Hash types and values of the Maven Artifact.
+   * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + * + * @return Whether the fileHashes field is set. + */ + boolean hasFileHashes(); + /** + * + * + *
+   * Hash types and values of the Maven Artifact.
+   * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + * + * @return The fileHashes. + */ + com.google.cloudbuild.v1.FileHashes getFileHashes(); + /** + * + * + *
+   * Hash types and values of the Maven Artifact.
+   * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + com.google.cloudbuild.v1.FileHashesOrBuilder getFileHashesOrBuilder(); + + /** + * + * + *
+   * Output only. Stores timing information for pushing the specified artifact.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pushTiming field is set. + */ + boolean hasPushTiming(); + /** + * + * + *
+   * Output only. Stores timing information for pushing the specified artifact.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pushTiming. + */ + com.google.cloudbuild.v1.TimeSpan getPushTiming(); + /** + * + * + *
+   * Output only. Stores timing information for pushing the specified artifact.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder(); +} diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedPythonPackage.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedPythonPackage.java new file mode 100644 index 000000000000..5bd68d735c1a --- /dev/null +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedPythonPackage.java @@ -0,0 +1,1172 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/cloudbuild/v1/cloudbuild.proto + +package com.google.cloudbuild.v1; + +/** + * + * + *
+ * Artifact uploaded using the PythonPackage directive.
+ * 
+ * + * Protobuf type {@code google.devtools.cloudbuild.v1.UploadedPythonPackage} + */ +public final class UploadedPythonPackage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.UploadedPythonPackage) + UploadedPythonPackageOrBuilder { + private static final long serialVersionUID = 0L; + // Use UploadedPythonPackage.newBuilder() to construct. + private UploadedPythonPackage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UploadedPythonPackage() { + uri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UploadedPythonPackage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_UploadedPythonPackage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_UploadedPythonPackage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.UploadedPythonPackage.class, + com.google.cloudbuild.v1.UploadedPythonPackage.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * + * + *
+   * URI of the uploaded artifact.
+   * 
+ * + * string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * URI of the uploaded artifact.
+   * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_HASHES_FIELD_NUMBER = 2; + private com.google.cloudbuild.v1.FileHashes fileHashes_; + /** + * + * + *
+   * Hash types and values of the Python Artifact.
+   * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + * + * @return Whether the fileHashes field is set. + */ + @java.lang.Override + public boolean hasFileHashes() { + return fileHashes_ != null; + } + /** + * + * + *
+   * Hash types and values of the Python Artifact.
+   * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + * + * @return The fileHashes. + */ + @java.lang.Override + public com.google.cloudbuild.v1.FileHashes getFileHashes() { + return fileHashes_ == null + ? com.google.cloudbuild.v1.FileHashes.getDefaultInstance() + : fileHashes_; + } + /** + * + * + *
+   * Hash types and values of the Python Artifact.
+   * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + @java.lang.Override + public com.google.cloudbuild.v1.FileHashesOrBuilder getFileHashesOrBuilder() { + return getFileHashes(); + } + + public static final int PUSH_TIMING_FIELD_NUMBER = 3; + private com.google.cloudbuild.v1.TimeSpan pushTiming_; + /** + * + * + *
+   * Output only. Stores timing information for pushing the specified artifact.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pushTiming field is set. + */ + @java.lang.Override + public boolean hasPushTiming() { + return pushTiming_ != null; + } + /** + * + * + *
+   * Output only. Stores timing information for pushing the specified artifact.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pushTiming. + */ + @java.lang.Override + public com.google.cloudbuild.v1.TimeSpan getPushTiming() { + return pushTiming_ == null + ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() + : pushTiming_; + } + /** + * + * + *
+   * Output only. Stores timing information for pushing the specified artifact.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder() { + return getPushTiming(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (fileHashes_ != null) { + output.writeMessage(2, getFileHashes()); + } + if (pushTiming_ != null) { + output.writeMessage(3, getPushTiming()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (fileHashes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFileHashes()); + } + if (pushTiming_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPushTiming()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloudbuild.v1.UploadedPythonPackage)) { + return super.equals(obj); + } + com.google.cloudbuild.v1.UploadedPythonPackage other = + (com.google.cloudbuild.v1.UploadedPythonPackage) obj; + + if (!getUri().equals(other.getUri())) return false; + if (hasFileHashes() != other.hasFileHashes()) return false; + if (hasFileHashes()) { + if (!getFileHashes().equals(other.getFileHashes())) return false; + } + if (hasPushTiming() != other.hasPushTiming()) return false; + if (hasPushTiming()) { + if (!getPushTiming().equals(other.getPushTiming())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + if (hasFileHashes()) { + hash = (37 * hash) + FILE_HASHES_FIELD_NUMBER; + hash = (53 * hash) + getFileHashes().hashCode(); + } + if (hasPushTiming()) { + hash = (37 * hash) + PUSH_TIMING_FIELD_NUMBER; + hash = (53 * hash) + getPushTiming().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloudbuild.v1.UploadedPythonPackage parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.UploadedPythonPackage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.UploadedPythonPackage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.UploadedPythonPackage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.UploadedPythonPackage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.UploadedPythonPackage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.UploadedPythonPackage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.UploadedPythonPackage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloudbuild.v1.UploadedPythonPackage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.UploadedPythonPackage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloudbuild.v1.UploadedPythonPackage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.UploadedPythonPackage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloudbuild.v1.UploadedPythonPackage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Artifact uploaded using the PythonPackage directive.
+   * 
+ * + * Protobuf type {@code google.devtools.cloudbuild.v1.UploadedPythonPackage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.UploadedPythonPackage) + com.google.cloudbuild.v1.UploadedPythonPackageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_UploadedPythonPackage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_UploadedPythonPackage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.UploadedPythonPackage.class, + com.google.cloudbuild.v1.UploadedPythonPackage.Builder.class); + } + + // Construct using com.google.cloudbuild.v1.UploadedPythonPackage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + uri_ = ""; + + if (fileHashesBuilder_ == null) { + fileHashes_ = null; + } else { + fileHashes_ = null; + fileHashesBuilder_ = null; + } + if (pushTimingBuilder_ == null) { + pushTiming_ = null; + } else { + pushTiming_ = null; + pushTimingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_UploadedPythonPackage_descriptor; + } + + @java.lang.Override + public com.google.cloudbuild.v1.UploadedPythonPackage getDefaultInstanceForType() { + return com.google.cloudbuild.v1.UploadedPythonPackage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloudbuild.v1.UploadedPythonPackage build() { + com.google.cloudbuild.v1.UploadedPythonPackage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloudbuild.v1.UploadedPythonPackage buildPartial() { + com.google.cloudbuild.v1.UploadedPythonPackage result = + new com.google.cloudbuild.v1.UploadedPythonPackage(this); + result.uri_ = uri_; + if (fileHashesBuilder_ == null) { + result.fileHashes_ = fileHashes_; + } else { + result.fileHashes_ = fileHashesBuilder_.build(); + } + if (pushTimingBuilder_ == null) { + result.pushTiming_ = pushTiming_; + } else { + result.pushTiming_ = pushTimingBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloudbuild.v1.UploadedPythonPackage) { + return mergeFrom((com.google.cloudbuild.v1.UploadedPythonPackage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloudbuild.v1.UploadedPythonPackage other) { + if (other == com.google.cloudbuild.v1.UploadedPythonPackage.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (other.hasFileHashes()) { + mergeFileHashes(other.getFileHashes()); + } + if (other.hasPushTiming()) { + mergePushTiming(other.getPushTiming()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getFileHashesFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getPushTimingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
+     * URI of the uploaded artifact.
+     * 
+ * + * string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * URI of the uploaded artifact.
+     * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * URI of the uploaded artifact.
+     * 
+ * + * string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the uploaded artifact.
+     * 
+ * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * URI of the uploaded artifact.
+     * 
+ * + * string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private com.google.cloudbuild.v1.FileHashes fileHashes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.FileHashes, + com.google.cloudbuild.v1.FileHashes.Builder, + com.google.cloudbuild.v1.FileHashesOrBuilder> + fileHashesBuilder_; + /** + * + * + *
+     * Hash types and values of the Python Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + * + * @return Whether the fileHashes field is set. + */ + public boolean hasFileHashes() { + return fileHashesBuilder_ != null || fileHashes_ != null; + } + /** + * + * + *
+     * Hash types and values of the Python Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + * + * @return The fileHashes. + */ + public com.google.cloudbuild.v1.FileHashes getFileHashes() { + if (fileHashesBuilder_ == null) { + return fileHashes_ == null + ? com.google.cloudbuild.v1.FileHashes.getDefaultInstance() + : fileHashes_; + } else { + return fileHashesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Hash types and values of the Python Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + public Builder setFileHashes(com.google.cloudbuild.v1.FileHashes value) { + if (fileHashesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fileHashes_ = value; + onChanged(); + } else { + fileHashesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Hash types and values of the Python Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + public Builder setFileHashes(com.google.cloudbuild.v1.FileHashes.Builder builderForValue) { + if (fileHashesBuilder_ == null) { + fileHashes_ = builderForValue.build(); + onChanged(); + } else { + fileHashesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Hash types and values of the Python Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + public Builder mergeFileHashes(com.google.cloudbuild.v1.FileHashes value) { + if (fileHashesBuilder_ == null) { + if (fileHashes_ != null) { + fileHashes_ = + com.google.cloudbuild.v1.FileHashes.newBuilder(fileHashes_) + .mergeFrom(value) + .buildPartial(); + } else { + fileHashes_ = value; + } + onChanged(); + } else { + fileHashesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Hash types and values of the Python Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + public Builder clearFileHashes() { + if (fileHashesBuilder_ == null) { + fileHashes_ = null; + onChanged(); + } else { + fileHashes_ = null; + fileHashesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Hash types and values of the Python Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + public com.google.cloudbuild.v1.FileHashes.Builder getFileHashesBuilder() { + + onChanged(); + return getFileHashesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Hash types and values of the Python Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + public com.google.cloudbuild.v1.FileHashesOrBuilder getFileHashesOrBuilder() { + if (fileHashesBuilder_ != null) { + return fileHashesBuilder_.getMessageOrBuilder(); + } else { + return fileHashes_ == null + ? com.google.cloudbuild.v1.FileHashes.getDefaultInstance() + : fileHashes_; + } + } + /** + * + * + *
+     * Hash types and values of the Python Artifact.
+     * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.FileHashes, + com.google.cloudbuild.v1.FileHashes.Builder, + com.google.cloudbuild.v1.FileHashesOrBuilder> + getFileHashesFieldBuilder() { + if (fileHashesBuilder_ == null) { + fileHashesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.FileHashes, + com.google.cloudbuild.v1.FileHashes.Builder, + com.google.cloudbuild.v1.FileHashesOrBuilder>( + getFileHashes(), getParentForChildren(), isClean()); + fileHashes_ = null; + } + return fileHashesBuilder_; + } + + private com.google.cloudbuild.v1.TimeSpan pushTiming_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.TimeSpan, + com.google.cloudbuild.v1.TimeSpan.Builder, + com.google.cloudbuild.v1.TimeSpanOrBuilder> + pushTimingBuilder_; + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pushTiming field is set. + */ + public boolean hasPushTiming() { + return pushTimingBuilder_ != null || pushTiming_ != null; + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pushTiming. + */ + public com.google.cloudbuild.v1.TimeSpan getPushTiming() { + if (pushTimingBuilder_ == null) { + return pushTiming_ == null + ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() + : pushTiming_; + } else { + return pushTimingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPushTiming(com.google.cloudbuild.v1.TimeSpan value) { + if (pushTimingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pushTiming_ = value; + onChanged(); + } else { + pushTimingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPushTiming(com.google.cloudbuild.v1.TimeSpan.Builder builderForValue) { + if (pushTimingBuilder_ == null) { + pushTiming_ = builderForValue.build(); + onChanged(); + } else { + pushTimingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePushTiming(com.google.cloudbuild.v1.TimeSpan value) { + if (pushTimingBuilder_ == null) { + if (pushTiming_ != null) { + pushTiming_ = + com.google.cloudbuild.v1.TimeSpan.newBuilder(pushTiming_) + .mergeFrom(value) + .buildPartial(); + } else { + pushTiming_ = value; + } + onChanged(); + } else { + pushTimingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPushTiming() { + if (pushTimingBuilder_ == null) { + pushTiming_ = null; + onChanged(); + } else { + pushTiming_ = null; + pushTimingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloudbuild.v1.TimeSpan.Builder getPushTimingBuilder() { + + onChanged(); + return getPushTimingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder() { + if (pushTimingBuilder_ != null) { + return pushTimingBuilder_.getMessageOrBuilder(); + } else { + return pushTiming_ == null + ? com.google.cloudbuild.v1.TimeSpan.getDefaultInstance() + : pushTiming_; + } + } + /** + * + * + *
+     * Output only. Stores timing information for pushing the specified artifact.
+     * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.TimeSpan, + com.google.cloudbuild.v1.TimeSpan.Builder, + com.google.cloudbuild.v1.TimeSpanOrBuilder> + getPushTimingFieldBuilder() { + if (pushTimingBuilder_ == null) { + pushTimingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.TimeSpan, + com.google.cloudbuild.v1.TimeSpan.Builder, + com.google.cloudbuild.v1.TimeSpanOrBuilder>( + getPushTiming(), getParentForChildren(), isClean()); + pushTiming_ = null; + } + return pushTimingBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.UploadedPythonPackage) + } + + // @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.UploadedPythonPackage) + private static final com.google.cloudbuild.v1.UploadedPythonPackage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloudbuild.v1.UploadedPythonPackage(); + } + + public static com.google.cloudbuild.v1.UploadedPythonPackage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UploadedPythonPackage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloudbuild.v1.UploadedPythonPackage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedPythonPackageOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedPythonPackageOrBuilder.java new file mode 100644 index 000000000000..6b9653f3a98a --- /dev/null +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedPythonPackageOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/cloudbuild/v1/cloudbuild.proto + +package com.google.cloudbuild.v1; + +public interface UploadedPythonPackageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.UploadedPythonPackage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * URI of the uploaded artifact.
+   * 
+ * + * string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+   * URI of the uploaded artifact.
+   * 
+ * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Hash types and values of the Python Artifact.
+   * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + * + * @return Whether the fileHashes field is set. + */ + boolean hasFileHashes(); + /** + * + * + *
+   * Hash types and values of the Python Artifact.
+   * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + * + * @return The fileHashes. + */ + com.google.cloudbuild.v1.FileHashes getFileHashes(); + /** + * + * + *
+   * Hash types and values of the Python Artifact.
+   * 
+ * + * .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + com.google.cloudbuild.v1.FileHashesOrBuilder getFileHashesOrBuilder(); + + /** + * + * + *
+   * Output only. Stores timing information for pushing the specified artifact.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pushTiming field is set. + */ + boolean hasPushTiming(); + /** + * + * + *
+   * Output only. Stores timing information for pushing the specified artifact.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pushTiming. + */ + com.google.cloudbuild.v1.TimeSpan getPushTiming(); + /** + * + * + *
+   * Output only. Stores timing information for pushing the specified artifact.
+   * 
+ * + * + * .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder(); +} diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto b/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto index 3c3fa7232c92..c007e65b4411 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto @@ -504,6 +504,30 @@ message BuiltImage { TimeSpan push_timing = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Artifact uploaded using the PythonPackage directive. +message UploadedPythonPackage { + // URI of the uploaded artifact. + string uri = 1; + + // Hash types and values of the Python Artifact. + FileHashes file_hashes = 2; + + // Output only. Stores timing information for pushing the specified artifact. + TimeSpan push_timing = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A Maven artifact uploaded using the MavenArtifact directive. +message UploadedMavenArtifact { + // URI of the uploaded artifact. + string uri = 1; + + // Hash types and values of the Maven Artifact. + FileHashes file_hashes = 2; + + // Output only. Stores timing information for pushing the specified artifact. + TimeSpan push_timing = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // A step in the build pipeline. message BuildStep { // Required. The name of the container image that will run this particular @@ -660,6 +684,12 @@ message Results { // Time to push all non-container artifacts. TimeSpan artifact_timing = 7; + + // Python artifacts uploaded to Artifact Registry at the end of the build. + repeated UploadedPythonPackage python_packages = 8; + + // Maven artifacts uploaded to Artifact Registry at the end of the build. + repeated UploadedMavenArtifact maven_artifacts = 9; } // An artifact that was uploaded during a build. This @@ -953,6 +983,54 @@ message Artifacts { TimeSpan timing = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } + // A Maven artifact to upload to Artifact Registry upon successful completion + // of all build steps. + message MavenArtifact { + // 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; + + // 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; + + // Maven `artifactId` value used when uploading the artifact to Artifact + // Registry. + string artifact_id = 3; + + // Maven `groupId` value used when uploading the artifact to Artifact + // Registry. + string group_id = 4; + + // Maven `version` value used when uploading the artifact to Artifact + // Registry. + string version = 5; + } + + // Python package to upload to Artifact Registry upon successful completion + // of all build steps. A package can encapsulate multiple objects to be + // uploaded to a single repository. + message PythonPackage { + // Artifact Registry repository, in the form + // "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" + // + // Files in the workspace matching any path pattern will be uploaded to + // Artifact Registry with this location as a prefix. + string repository = 1; + + // Path globs used to match files in the build's workspace. For Python/ + // Twine, this is usually `dist/*`, and sometimes additionally an `.asc` + // file. + repeated string paths = 2; + } + // A list of images to be pushed upon the successful completion of all build // steps. // @@ -976,6 +1054,24 @@ message Artifacts { // // If any objects fail to be pushed, the build is marked FAILURE. ArtifactObjects objects = 2; + + // A list of Maven artifacts to be uploaded to Artifact Registry upon + // successful completion of all build steps. + // + // Artifacts in the workspace matching specified paths globs will be uploaded + // to the specified Artifact Registry repository using the builder service + // account's credentials. + // + // If any artifacts fail to be pushed, the build is marked FAILURE. + repeated MavenArtifact maven_artifacts = 3; + + // A list of Python packages to be uploaded to Artifact Registry upon + // successful completion of all build steps. + // + // The build service account credentials will be used to perform the upload. + // + // If any objects fail to be pushed, the build is marked FAILURE. + repeated PythonPackage python_packages = 5; } // Start and end times for a build execution phase.