Artifact Registry is an artifact management system for storing artifacts from different + * package management systems. + * + *
The resources managed by this API are: + * + *
This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@code + * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + * LocationName name = LocationName.of("[PROJECT]", "[LOCATION]"); + * Repository response = artifactRegistryClient.getRepository(name); + * } + * }+ * + *
Note: close() needs to be called on the ArtifactRegistryClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *
The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of ArtifactRegistrySettings to + * create(). For example: + * + *
To customize credentials: + * + *
{@code + * ArtifactRegistrySettings artifactRegistrySettings = + * ArtifactRegistrySettings.newBuilder() + * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + * .build(); + * ArtifactRegistryClient artifactRegistryClient = + * ArtifactRegistryClient.create(artifactRegistrySettings); + * }+ * + *
To customize the endpoint: + * + *
{@code + * ArtifactRegistrySettings artifactRegistrySettings = + * ArtifactRegistrySettings.newBuilder().setEndpoint(myEndpoint).build(); + * ArtifactRegistryClient artifactRegistryClient = + * ArtifactRegistryClient.create(artifactRegistrySettings); + * }+ * + *
Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ArtifactRegistryClient implements BackgroundResource { + private final ArtifactRegistrySettings settings; + private final ArtifactRegistryStub stub; + + /** Constructs an instance of ArtifactRegistryClient with default settings. */ + public static final ArtifactRegistryClient create() throws IOException { + return create(ArtifactRegistrySettings.newBuilder().build()); + } + + /** + * Constructs an instance of ArtifactRegistryClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ArtifactRegistryClient create(ArtifactRegistrySettings settings) + throws IOException { + return new ArtifactRegistryClient(settings); + } + + /** + * Constructs an instance of ArtifactRegistryClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(ArtifactRegistrySettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final ArtifactRegistryClient create(ArtifactRegistryStub stub) { + return new ArtifactRegistryClient(stub); + } + + /** + * Constructs an instance of ArtifactRegistryClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected ArtifactRegistryClient(ArtifactRegistrySettings settings) throws IOException { + this.settings = settings; + this.stub = ((ArtifactRegistryStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected ArtifactRegistryClient(ArtifactRegistryStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ArtifactRegistrySettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ArtifactRegistryStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists docker images. + * + *
Sample code: + * + *
{@code + * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + * String parent = "parent-995424086"; + * for (DockerImage element : artifactRegistryClient.listDockerImages(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The name of the parent resource whose docker images will be listed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDockerImagesPagedResponse listDockerImages(String parent) { + ListDockerImagesRequest request = + ListDockerImagesRequest.newBuilder().setParent(parent).build(); + return listDockerImages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists docker images. + * + *
Sample code: + * + *
{@code + * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + * ListDockerImagesRequest request = + * ListDockerImagesRequest.newBuilder() + * .setParent("parent-995424086") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (DockerImage element : artifactRegistryClient.listDockerImages(request).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDockerImagesPagedResponse listDockerImages(ListDockerImagesRequest request) { + return listDockerImagesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists docker images. + * + *
Sample code: + * + *
{@code + * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + * ListDockerImagesRequest request = + * ListDockerImagesRequest.newBuilder() + * .setParent("parent-995424086") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * artifactRegistryClient.listDockerImagesPagedCallable().futureCall(request); + * // Do something. + * for (DockerImage element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + * ListDockerImagesRequest request = + * ListDockerImagesRequest.newBuilder() + * .setParent("parent-995424086") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListDockerImagesResponse response = + * artifactRegistryClient.listDockerImagesCallable().call(request); + * for (DockerImage element : response.getResponsesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
Sample code: + * + *
{@code + * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (Repository element : artifactRegistryClient.listRepositories(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The name of the parent resource whose repositories will be listed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRepositoriesPagedResponse listRepositories(LocationName parent) { + ListRepositoriesRequest request = + ListRepositoriesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listRepositories(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists repositories. + * + *
Sample code: + * + *
{@code + * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * for (Repository element : artifactRegistryClient.listRepositories(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The name of the parent resource whose repositories will be listed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRepositoriesPagedResponse listRepositories(String parent) { + ListRepositoriesRequest request = + ListRepositoriesRequest.newBuilder().setParent(parent).build(); + return listRepositories(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists repositories. + * + *
Sample code: + * + *
{@code + * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + * ListRepositoriesRequest request = + * ListRepositoriesRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (Repository element : artifactRegistryClient.listRepositories(request).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequest request) { + return listRepositoriesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists repositories. + * + *
Sample code: + * + *
{@code + * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + * ListRepositoriesRequest request = + * ListRepositoriesRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * artifactRegistryClient.listRepositoriesPagedCallable().futureCall(request); + * // Do something. + * for (Repository element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + * ListRepositoriesRequest request = + * ListRepositoriesRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListRepositoriesResponse response = + * artifactRegistryClient.listRepositoriesCallable().call(request); + * for (Repository element : response.getResponsesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
Sample code: + * + *
{@code + * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + * LocationName name = LocationName.of("[PROJECT]", "[LOCATION]"); + * Repository response = artifactRegistryClient.getRepository(name); + * } + * }+ * + * @param name Required. The name of the repository to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Repository getRepository(LocationName name) { + GetRepositoryRequest request = + GetRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getRepository(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a repository. + * + *
Sample code: + * + *
{@code + * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + * String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * Repository response = artifactRegistryClient.getRepository(name); + * } + * }+ * + * @param name Required. The name of the repository to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Repository getRepository(String name) { + GetRepositoryRequest request = GetRepositoryRequest.newBuilder().setName(name).build(); + return getRepository(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a repository. + * + *
Sample code: + * + *
{@code + * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + * GetRepositoryRequest request = + * GetRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .build(); + * Repository response = artifactRegistryClient.getRepository(request); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Repository getRepository(GetRepositoryRequest request) { + return getRepositoryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a repository. + * + *
Sample code: + * + *
{@code + * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + * GetRepositoryRequest request = + * GetRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * artifactRegistryClient.getRepositoryCallable().futureCall(request); + * // Do something. + * Repository response = future.get(); + * } + * }
The default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the total timeout of getRepository to 30 seconds: + * + *
{@code + * ArtifactRegistrySettings.Builder artifactRegistrySettingsBuilder = + * ArtifactRegistrySettings.newBuilder(); + * artifactRegistrySettingsBuilder + * .getRepositorySettings() + * .setRetrySettings( + * artifactRegistrySettingsBuilder + * .getRepositorySettings() + * .getRetrySettings() + * .toBuilder() + * .setTotalTimeout(Duration.ofSeconds(30)) + * .build()); + * ArtifactRegistrySettings artifactRegistrySettings = artifactRegistrySettingsBuilder.build(); + * }+ */ +@Generated("by gapic-generator-java") +public class ArtifactRegistrySettings extends ClientSettings
Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
+ *
+ * ======================= ArtifactRegistryClient =======================
+ *
+ * Service Description: The Artifact Registry API service.
+ *
+ * Artifact Registry is an artifact management system for storing artifacts from different
+ * package management systems.
+ *
+ * The resources managed by this API are:
+ *
+ * Sample for ArtifactRegistryClient:
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public abstract class ArtifactRegistryStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the total timeout of getRepository to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+public class GrpcArtifactRegistryCallableFactory implements GrpcStubCallableFactory {
+
+ @Override
+ public This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public class GrpcArtifactRegistryStub extends ArtifactRegistryStub {
+ private static final MethodDescriptor
+ *
+ *
+ * {@code
+ * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+ * LocationName name = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Repository response = artifactRegistryClient.getRepository(name);
+ * }
+ * }
+ */
+@Generated("by gapic-generator-java")
+package com.google.devtools.artifactregistry.v1;
+
+import javax.annotation.Generated;
diff --git a/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java b/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java
new file mode 100644
index 00000000..d6d0933f
--- /dev/null
+++ b/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java
@@ -0,0 +1,67 @@
+/*
+ * Copyright 2021 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.
+ */
+
+package com.google.devtools.artifactregistry.v1.stub;
+
+import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListDockerImagesPagedResponse;
+import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRepositoriesPagedResponse;
+
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.devtools.artifactregistry.v1.GetRepositoryRequest;
+import com.google.devtools.artifactregistry.v1.ListDockerImagesRequest;
+import com.google.devtools.artifactregistry.v1.ListDockerImagesResponse;
+import com.google.devtools.artifactregistry.v1.ListRepositoriesRequest;
+import com.google.devtools.artifactregistry.v1.ListRepositoriesResponse;
+import com.google.devtools.artifactregistry.v1.Repository;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the ArtifactRegistry service API.
+ *
+ *
+ *
+ *
+ * {@code
+ * ArtifactRegistryStubSettings.Builder artifactRegistrySettingsBuilder =
+ * ArtifactRegistryStubSettings.newBuilder();
+ * artifactRegistrySettingsBuilder
+ * .getRepositorySettings()
+ * .setRetrySettings(
+ * artifactRegistrySettingsBuilder
+ * .getRepositorySettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * ArtifactRegistryStubSettings artifactRegistrySettings = artifactRegistrySettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class ArtifactRegistryStubSettings extends StubSettings
+ * DockerImage represents a docker artifact. + * The following fields are returned as untyped metadata in the Version + * resource, using camelcase keys (i.e. metadata.imageSizeBytes): + * - imageSizeBytes + * - mediaType + * - buildTime + *+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.DockerImage} + */ +public final class DockerImage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.DockerImage) + DockerImageOrBuilder { + private static final long serialVersionUID = 0L; + // Use DockerImage.newBuilder() to construct. + private DockerImage(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DockerImage() { + name_ = ""; + uri_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + mediaType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DockerImage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DockerImage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tags_.add(s); + break; + } + case 32: + { + imageSizeBytes_ = input.readInt64(); + break; + } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (uploadTime_ != null) { + subBuilder = uploadTime_.toBuilder(); + } + uploadTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(uploadTime_); + uploadTime_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + mediaType_ = s; + break; + } + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (buildTime_ != null) { + subBuilder = buildTime_.toBuilder(); + } + buildTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(buildTime_); + buildTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + tags_ = tags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.ArtifactProto + .internal_static_google_devtools_artifactregistry_v1_DockerImage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.ArtifactProto + .internal_static_google_devtools_artifactregistry_v1_DockerImage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.DockerImage.class, + com.google.devtools.artifactregistry.v1.DockerImage.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. registry_location, project_id, repository_name and image id forms a unique + * image + * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`. + * For example, + * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ + * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", + * where "us-west4" is the registry_location, "test-project" is the + * project_id, "test-repo" is the repository_name and + * "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" + * is the image's digest. + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. registry_location, project_id, repository_name and image id forms a unique + * image + * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`. + * For example, + * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ + * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", + * where "us-west4" is the registry_location, "test-project" is the + * project_id, "test-repo" is the repository_name and + * "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" + * is the image's digest. + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int URI_FIELD_NUMBER = 2;
+ private volatile java.lang.Object uri_;
+ /**
+ *
+ *
+ * + * Required. URL to access the image. + * Example: + * us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf + *+ * + *
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. URL to access the image. + * Example: + * us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf + *+ * + *
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @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 TAGS_FIELD_NUMBER = 3;
+ private com.google.protobuf.LazyStringList tags_;
+ /**
+ *
+ *
+ * + * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @return A list containing the tags.
+ */
+ public com.google.protobuf.ProtocolStringList getTagsList() {
+ return tags_;
+ }
+ /**
+ *
+ *
+ * + * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @return The count of tags.
+ */
+ public int getTagsCount() {
+ return tags_.size();
+ }
+ /**
+ *
+ *
+ * + * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @param index The index of the element to return.
+ * @return The tags at the given index.
+ */
+ public java.lang.String getTags(int index) {
+ return tags_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the tags at the given index.
+ */
+ public com.google.protobuf.ByteString getTagsBytes(int index) {
+ return tags_.getByteString(index);
+ }
+
+ public static final int IMAGE_SIZE_BYTES_FIELD_NUMBER = 4;
+ private long imageSizeBytes_;
+ /**
+ *
+ *
+ * + * Calculated size of the image. + * This field is returned as the 'metadata.imageSizeBytes' field in the + * Version resource. + *+ * + *
int64 image_size_bytes = 4;
+ *
+ * @return The imageSizeBytes.
+ */
+ @java.lang.Override
+ public long getImageSizeBytes() {
+ return imageSizeBytes_;
+ }
+
+ public static final int UPLOAD_TIME_FIELD_NUMBER = 5;
+ private com.google.protobuf.Timestamp uploadTime_;
+ /**
+ *
+ *
+ * + * Time the image was uploaded. + *+ * + *
.google.protobuf.Timestamp upload_time = 5;
+ *
+ * @return Whether the uploadTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasUploadTime() {
+ return uploadTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Time the image was uploaded. + *+ * + *
.google.protobuf.Timestamp upload_time = 5;
+ *
+ * @return The uploadTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getUploadTime() {
+ return uploadTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : uploadTime_;
+ }
+ /**
+ *
+ *
+ * + * Time the image was uploaded. + *+ * + *
.google.protobuf.Timestamp upload_time = 5;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getUploadTimeOrBuilder() {
+ return getUploadTime();
+ }
+
+ public static final int MEDIA_TYPE_FIELD_NUMBER = 6;
+ private volatile java.lang.Object mediaType_;
+ /**
+ *
+ *
+ * + * Media type of this image, e.g. + * "application/vnd.docker.distribution.manifest.v2+json". + * This field is returned as the 'metadata.mediaType' field in the + * Version resource. + *+ * + *
string media_type = 6;
+ *
+ * @return The mediaType.
+ */
+ @java.lang.Override
+ public java.lang.String getMediaType() {
+ java.lang.Object ref = mediaType_;
+ 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();
+ mediaType_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Media type of this image, e.g. + * "application/vnd.docker.distribution.manifest.v2+json". + * This field is returned as the 'metadata.mediaType' field in the + * Version resource. + *+ * + *
string media_type = 6;
+ *
+ * @return The bytes for mediaType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMediaTypeBytes() {
+ java.lang.Object ref = mediaType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mediaType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BUILD_TIME_FIELD_NUMBER = 7;
+ private com.google.protobuf.Timestamp buildTime_;
+ /**
+ *
+ *
+ * + * The time this image was built. + * This field is returned as the 'metadata.buildTime' field in the + * Version resource. + * The build time is returned to the client as an RFC 3339 string, which can + * be easily used with the JavaScript Date constructor. + *+ * + *
.google.protobuf.Timestamp build_time = 7;
+ *
+ * @return Whether the buildTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasBuildTime() {
+ return buildTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this image was built. + * This field is returned as the 'metadata.buildTime' field in the + * Version resource. + * The build time is returned to the client as an RFC 3339 string, which can + * be easily used with the JavaScript Date constructor. + *+ * + *
.google.protobuf.Timestamp build_time = 7;
+ *
+ * @return The buildTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getBuildTime() {
+ return buildTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : buildTime_;
+ }
+ /**
+ *
+ *
+ * + * The time this image was built. + * This field is returned as the 'metadata.buildTime' field in the + * Version resource. + * The build time is returned to the client as an RFC 3339 string, which can + * be easily used with the JavaScript Date constructor. + *+ * + *
.google.protobuf.Timestamp build_time = 7;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getBuildTimeOrBuilder() {
+ return getBuildTime();
+ }
+
+ 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 (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!getUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
+ }
+ for (int i = 0; i < tags_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i));
+ }
+ if (imageSizeBytes_ != 0L) {
+ output.writeInt64(4, imageSizeBytes_);
+ }
+ if (uploadTime_ != null) {
+ output.writeMessage(5, getUploadTime());
+ }
+ if (!getMediaTypeBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, mediaType_);
+ }
+ if (buildTime_ != null) {
+ output.writeMessage(7, getBuildTime());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!getUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < tags_.size(); i++) {
+ dataSize += computeStringSizeNoTag(tags_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getTagsList().size();
+ }
+ if (imageSizeBytes_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, imageSizeBytes_);
+ }
+ if (uploadTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUploadTime());
+ }
+ if (!getMediaTypeBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, mediaType_);
+ }
+ if (buildTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBuildTime());
+ }
+ size += unknownFields.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.devtools.artifactregistry.v1.DockerImage)) {
+ return super.equals(obj);
+ }
+ com.google.devtools.artifactregistry.v1.DockerImage other =
+ (com.google.devtools.artifactregistry.v1.DockerImage) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getTagsList().equals(other.getTagsList())) return false;
+ if (getImageSizeBytes() != other.getImageSizeBytes()) return false;
+ if (hasUploadTime() != other.hasUploadTime()) return false;
+ if (hasUploadTime()) {
+ if (!getUploadTime().equals(other.getUploadTime())) return false;
+ }
+ if (!getMediaType().equals(other.getMediaType())) return false;
+ if (hasBuildTime() != other.hasBuildTime()) return false;
+ if (hasBuildTime()) {
+ if (!getBuildTime().equals(other.getBuildTime())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) 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) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ if (getTagsCount() > 0) {
+ hash = (37 * hash) + TAGS_FIELD_NUMBER;
+ hash = (53 * hash) + getTagsList().hashCode();
+ }
+ hash = (37 * hash) + IMAGE_SIZE_BYTES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getImageSizeBytes());
+ if (hasUploadTime()) {
+ hash = (37 * hash) + UPLOAD_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getUploadTime().hashCode();
+ }
+ hash = (37 * hash) + MEDIA_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getMediaType().hashCode();
+ if (hasBuildTime()) {
+ hash = (37 * hash) + BUILD_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getBuildTime().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.devtools.artifactregistry.v1.DockerImage parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.DockerImage parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.DockerImage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.DockerImage 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.devtools.artifactregistry.v1.DockerImage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.DockerImage parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.DockerImage parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.DockerImage 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.devtools.artifactregistry.v1.DockerImage parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.DockerImage 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.devtools.artifactregistry.v1.DockerImage parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.DockerImage 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.devtools.artifactregistry.v1.DockerImage 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;
+ }
+ /**
+ *
+ *
+ * + * DockerImage represents a docker artifact. + * The following fields are returned as untyped metadata in the Version + * resource, using camelcase keys (i.e. metadata.imageSizeBytes): + * - imageSizeBytes + * - mediaType + * - buildTime + *+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.DockerImage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. registry_location, project_id, repository_name and image id forms a unique + * image + * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`. + * For example, + * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ + * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", + * where "us-west4" is the registry_location, "test-project" is the + * project_id, "test-repo" is the repository_name and + * "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" + * is the image's digest. + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. registry_location, project_id, repository_name and image id forms a unique + * image + * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`. + * For example, + * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ + * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", + * where "us-west4" is the registry_location, "test-project" is the + * project_id, "test-repo" is the repository_name and + * "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" + * is the image's digest. + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. registry_location, project_id, repository_name and image id forms a unique + * image + * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`. + * For example, + * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ + * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", + * where "us-west4" is the registry_location, "test-project" is the + * project_id, "test-repo" is the repository_name and + * "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" + * is the image's digest. + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. registry_location, project_id, repository_name and image id forms a unique + * image + * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`. + * For example, + * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ + * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", + * where "us-west4" is the registry_location, "test-project" is the + * project_id, "test-repo" is the repository_name and + * "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" + * is the image's digest. + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. registry_location, project_id, repository_name and image id forms a unique + * image + * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`. + * For example, + * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ + * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", + * where "us-west4" is the registry_location, "test-project" is the + * project_id, "test-repo" is the repository_name and + * "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" + * is the image's digest. + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ * + * Required. URL to access the image. + * Example: + * us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf + *+ * + *
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. URL to access the image. + * Example: + * us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf + *+ * + *
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. URL to access the image. + * Example: + * us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf + *+ * + *
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @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;
+ }
+ /**
+ *
+ *
+ * + * Required. URL to access the image. + * Example: + * us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf + *+ * + *
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+
+ uri_ = getDefaultInstance().getUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. URL to access the image. + * Example: + * us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf + *+ * + *
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @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.protobuf.LazyStringList tags_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureTagsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ *
+ *
+ * + * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @return A list containing the tags.
+ */
+ public com.google.protobuf.ProtocolStringList getTagsList() {
+ return tags_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @return The count of tags.
+ */
+ public int getTagsCount() {
+ return tags_.size();
+ }
+ /**
+ *
+ *
+ * + * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @param index The index of the element to return.
+ * @return The tags at the given index.
+ */
+ public java.lang.String getTags(int index) {
+ return tags_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the tags at the given index.
+ */
+ public com.google.protobuf.ByteString getTagsBytes(int index) {
+ return tags_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @param index The index to set the value at.
+ * @param value The tags to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTags(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTagsIsMutable();
+ tags_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @param value The tags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addTags(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTagsIsMutable();
+ tags_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @param values The tags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllTags(java.lang.Iterable+ * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTags() {
+ tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @param value The bytes of the tags to add.
+ * @return This builder for chaining.
+ */
+ public Builder addTagsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureTagsIsMutable();
+ tags_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private long imageSizeBytes_;
+ /**
+ *
+ *
+ * + * Calculated size of the image. + * This field is returned as the 'metadata.imageSizeBytes' field in the + * Version resource. + *+ * + *
int64 image_size_bytes = 4;
+ *
+ * @return The imageSizeBytes.
+ */
+ @java.lang.Override
+ public long getImageSizeBytes() {
+ return imageSizeBytes_;
+ }
+ /**
+ *
+ *
+ * + * Calculated size of the image. + * This field is returned as the 'metadata.imageSizeBytes' field in the + * Version resource. + *+ * + *
int64 image_size_bytes = 4;
+ *
+ * @param value The imageSizeBytes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setImageSizeBytes(long value) {
+
+ imageSizeBytes_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Calculated size of the image. + * This field is returned as the 'metadata.imageSizeBytes' field in the + * Version resource. + *+ * + *
int64 image_size_bytes = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearImageSizeBytes() {
+
+ imageSizeBytes_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp uploadTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ uploadTimeBuilder_;
+ /**
+ *
+ *
+ * + * Time the image was uploaded. + *+ * + *
.google.protobuf.Timestamp upload_time = 5;
+ *
+ * @return Whether the uploadTime field is set.
+ */
+ public boolean hasUploadTime() {
+ return uploadTimeBuilder_ != null || uploadTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Time the image was uploaded. + *+ * + *
.google.protobuf.Timestamp upload_time = 5;
+ *
+ * @return The uploadTime.
+ */
+ public com.google.protobuf.Timestamp getUploadTime() {
+ if (uploadTimeBuilder_ == null) {
+ return uploadTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : uploadTime_;
+ } else {
+ return uploadTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Time the image was uploaded. + *+ * + *
.google.protobuf.Timestamp upload_time = 5;
+ */
+ public Builder setUploadTime(com.google.protobuf.Timestamp value) {
+ if (uploadTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uploadTime_ = value;
+ onChanged();
+ } else {
+ uploadTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time the image was uploaded. + *+ * + *
.google.protobuf.Timestamp upload_time = 5;
+ */
+ public Builder setUploadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (uploadTimeBuilder_ == null) {
+ uploadTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ uploadTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time the image was uploaded. + *+ * + *
.google.protobuf.Timestamp upload_time = 5;
+ */
+ public Builder mergeUploadTime(com.google.protobuf.Timestamp value) {
+ if (uploadTimeBuilder_ == null) {
+ if (uploadTime_ != null) {
+ uploadTime_ =
+ com.google.protobuf.Timestamp.newBuilder(uploadTime_).mergeFrom(value).buildPartial();
+ } else {
+ uploadTime_ = value;
+ }
+ onChanged();
+ } else {
+ uploadTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time the image was uploaded. + *+ * + *
.google.protobuf.Timestamp upload_time = 5;
+ */
+ public Builder clearUploadTime() {
+ if (uploadTimeBuilder_ == null) {
+ uploadTime_ = null;
+ onChanged();
+ } else {
+ uploadTime_ = null;
+ uploadTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time the image was uploaded. + *+ * + *
.google.protobuf.Timestamp upload_time = 5;
+ */
+ public com.google.protobuf.Timestamp.Builder getUploadTimeBuilder() {
+
+ onChanged();
+ return getUploadTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Time the image was uploaded. + *+ * + *
.google.protobuf.Timestamp upload_time = 5;
+ */
+ public com.google.protobuf.TimestampOrBuilder getUploadTimeOrBuilder() {
+ if (uploadTimeBuilder_ != null) {
+ return uploadTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return uploadTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : uploadTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Time the image was uploaded. + *+ * + *
.google.protobuf.Timestamp upload_time = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getUploadTimeFieldBuilder() {
+ if (uploadTimeBuilder_ == null) {
+ uploadTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getUploadTime(), getParentForChildren(), isClean());
+ uploadTime_ = null;
+ }
+ return uploadTimeBuilder_;
+ }
+
+ private java.lang.Object mediaType_ = "";
+ /**
+ *
+ *
+ * + * Media type of this image, e.g. + * "application/vnd.docker.distribution.manifest.v2+json". + * This field is returned as the 'metadata.mediaType' field in the + * Version resource. + *+ * + *
string media_type = 6;
+ *
+ * @return The mediaType.
+ */
+ public java.lang.String getMediaType() {
+ java.lang.Object ref = mediaType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mediaType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Media type of this image, e.g. + * "application/vnd.docker.distribution.manifest.v2+json". + * This field is returned as the 'metadata.mediaType' field in the + * Version resource. + *+ * + *
string media_type = 6;
+ *
+ * @return The bytes for mediaType.
+ */
+ public com.google.protobuf.ByteString getMediaTypeBytes() {
+ java.lang.Object ref = mediaType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mediaType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Media type of this image, e.g. + * "application/vnd.docker.distribution.manifest.v2+json". + * This field is returned as the 'metadata.mediaType' field in the + * Version resource. + *+ * + *
string media_type = 6;
+ *
+ * @param value The mediaType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMediaType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ mediaType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Media type of this image, e.g. + * "application/vnd.docker.distribution.manifest.v2+json". + * This field is returned as the 'metadata.mediaType' field in the + * Version resource. + *+ * + *
string media_type = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMediaType() {
+
+ mediaType_ = getDefaultInstance().getMediaType();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Media type of this image, e.g. + * "application/vnd.docker.distribution.manifest.v2+json". + * This field is returned as the 'metadata.mediaType' field in the + * Version resource. + *+ * + *
string media_type = 6;
+ *
+ * @param value The bytes for mediaType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMediaTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ mediaType_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp buildTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ buildTimeBuilder_;
+ /**
+ *
+ *
+ * + * The time this image was built. + * This field is returned as the 'metadata.buildTime' field in the + * Version resource. + * The build time is returned to the client as an RFC 3339 string, which can + * be easily used with the JavaScript Date constructor. + *+ * + *
.google.protobuf.Timestamp build_time = 7;
+ *
+ * @return Whether the buildTime field is set.
+ */
+ public boolean hasBuildTime() {
+ return buildTimeBuilder_ != null || buildTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time this image was built. + * This field is returned as the 'metadata.buildTime' field in the + * Version resource. + * The build time is returned to the client as an RFC 3339 string, which can + * be easily used with the JavaScript Date constructor. + *+ * + *
.google.protobuf.Timestamp build_time = 7;
+ *
+ * @return The buildTime.
+ */
+ public com.google.protobuf.Timestamp getBuildTime() {
+ if (buildTimeBuilder_ == null) {
+ return buildTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : buildTime_;
+ } else {
+ return buildTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this image was built. + * This field is returned as the 'metadata.buildTime' field in the + * Version resource. + * The build time is returned to the client as an RFC 3339 string, which can + * be easily used with the JavaScript Date constructor. + *+ * + *
.google.protobuf.Timestamp build_time = 7;
+ */
+ public Builder setBuildTime(com.google.protobuf.Timestamp value) {
+ if (buildTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ buildTime_ = value;
+ onChanged();
+ } else {
+ buildTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this image was built. + * This field is returned as the 'metadata.buildTime' field in the + * Version resource. + * The build time is returned to the client as an RFC 3339 string, which can + * be easily used with the JavaScript Date constructor. + *+ * + *
.google.protobuf.Timestamp build_time = 7;
+ */
+ public Builder setBuildTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (buildTimeBuilder_ == null) {
+ buildTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ buildTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this image was built. + * This field is returned as the 'metadata.buildTime' field in the + * Version resource. + * The build time is returned to the client as an RFC 3339 string, which can + * be easily used with the JavaScript Date constructor. + *+ * + *
.google.protobuf.Timestamp build_time = 7;
+ */
+ public Builder mergeBuildTime(com.google.protobuf.Timestamp value) {
+ if (buildTimeBuilder_ == null) {
+ if (buildTime_ != null) {
+ buildTime_ =
+ com.google.protobuf.Timestamp.newBuilder(buildTime_).mergeFrom(value).buildPartial();
+ } else {
+ buildTime_ = value;
+ }
+ onChanged();
+ } else {
+ buildTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this image was built. + * This field is returned as the 'metadata.buildTime' field in the + * Version resource. + * The build time is returned to the client as an RFC 3339 string, which can + * be easily used with the JavaScript Date constructor. + *+ * + *
.google.protobuf.Timestamp build_time = 7;
+ */
+ public Builder clearBuildTime() {
+ if (buildTimeBuilder_ == null) {
+ buildTime_ = null;
+ onChanged();
+ } else {
+ buildTime_ = null;
+ buildTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time this image was built. + * This field is returned as the 'metadata.buildTime' field in the + * Version resource. + * The build time is returned to the client as an RFC 3339 string, which can + * be easily used with the JavaScript Date constructor. + *+ * + *
.google.protobuf.Timestamp build_time = 7;
+ */
+ public com.google.protobuf.Timestamp.Builder getBuildTimeBuilder() {
+
+ onChanged();
+ return getBuildTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time this image was built. + * This field is returned as the 'metadata.buildTime' field in the + * Version resource. + * The build time is returned to the client as an RFC 3339 string, which can + * be easily used with the JavaScript Date constructor. + *+ * + *
.google.protobuf.Timestamp build_time = 7;
+ */
+ public com.google.protobuf.TimestampOrBuilder getBuildTimeOrBuilder() {
+ if (buildTimeBuilder_ != null) {
+ return buildTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return buildTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : buildTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time this image was built. + * This field is returned as the 'metadata.buildTime' field in the + * Version resource. + * The build time is returned to the client as an RFC 3339 string, which can + * be easily used with the JavaScript Date constructor. + *+ * + *
.google.protobuf.Timestamp build_time = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getBuildTimeFieldBuilder() {
+ if (buildTimeBuilder_ == null) {
+ buildTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getBuildTime(), getParentForChildren(), isClean());
+ buildTime_ = null;
+ }
+ return buildTimeBuilder_;
+ }
+
+ @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.artifactregistry.v1.DockerImage)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.DockerImage)
+ private static final com.google.devtools.artifactregistry.v1.DockerImage DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.DockerImage();
+ }
+
+ public static com.google.devtools.artifactregistry.v1.DockerImage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. registry_location, project_id, repository_name and image id forms a unique + * image + * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`. + * For example, + * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ + * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", + * where "us-west4" is the registry_location, "test-project" is the + * project_id, "test-repo" is the repository_name and + * "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" + * is the image's digest. + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. registry_location, project_id, repository_name and image id forms a unique + * image + * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`. + * For example, + * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ + * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", + * where "us-west4" is the registry_location, "test-project" is the + * project_id, "test-repo" is the repository_name and + * "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" + * is the image's digest. + *+ * + *
string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Required. URL to access the image. + * Example: + * us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf + *+ * + *
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ * + * Required. URL to access the image. + * Example: + * us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf + *+ * + *
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
+
+ /**
+ *
+ *
+ * + * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @return A list containing the tags.
+ */
+ java.util.List+ * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @return The count of tags.
+ */
+ int getTagsCount();
+ /**
+ *
+ *
+ * + * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @param index The index of the element to return.
+ * @return The tags at the given index.
+ */
+ java.lang.String getTags(int index);
+ /**
+ *
+ *
+ * + * Tags attached to this image. + *+ * + *
repeated string tags = 3;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the tags at the given index.
+ */
+ com.google.protobuf.ByteString getTagsBytes(int index);
+
+ /**
+ *
+ *
+ * + * Calculated size of the image. + * This field is returned as the 'metadata.imageSizeBytes' field in the + * Version resource. + *+ * + *
int64 image_size_bytes = 4;
+ *
+ * @return The imageSizeBytes.
+ */
+ long getImageSizeBytes();
+
+ /**
+ *
+ *
+ * + * Time the image was uploaded. + *+ * + *
.google.protobuf.Timestamp upload_time = 5;
+ *
+ * @return Whether the uploadTime field is set.
+ */
+ boolean hasUploadTime();
+ /**
+ *
+ *
+ * + * Time the image was uploaded. + *+ * + *
.google.protobuf.Timestamp upload_time = 5;
+ *
+ * @return The uploadTime.
+ */
+ com.google.protobuf.Timestamp getUploadTime();
+ /**
+ *
+ *
+ * + * Time the image was uploaded. + *+ * + *
.google.protobuf.Timestamp upload_time = 5;
+ */
+ com.google.protobuf.TimestampOrBuilder getUploadTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Media type of this image, e.g. + * "application/vnd.docker.distribution.manifest.v2+json". + * This field is returned as the 'metadata.mediaType' field in the + * Version resource. + *+ * + *
string media_type = 6;
+ *
+ * @return The mediaType.
+ */
+ java.lang.String getMediaType();
+ /**
+ *
+ *
+ * + * Media type of this image, e.g. + * "application/vnd.docker.distribution.manifest.v2+json". + * This field is returned as the 'metadata.mediaType' field in the + * Version resource. + *+ * + *
string media_type = 6;
+ *
+ * @return The bytes for mediaType.
+ */
+ com.google.protobuf.ByteString getMediaTypeBytes();
+
+ /**
+ *
+ *
+ * + * The time this image was built. + * This field is returned as the 'metadata.buildTime' field in the + * Version resource. + * The build time is returned to the client as an RFC 3339 string, which can + * be easily used with the JavaScript Date constructor. + *+ * + *
.google.protobuf.Timestamp build_time = 7;
+ *
+ * @return Whether the buildTime field is set.
+ */
+ boolean hasBuildTime();
+ /**
+ *
+ *
+ * + * The time this image was built. + * This field is returned as the 'metadata.buildTime' field in the + * Version resource. + * The build time is returned to the client as an RFC 3339 string, which can + * be easily used with the JavaScript Date constructor. + *+ * + *
.google.protobuf.Timestamp build_time = 7;
+ *
+ * @return The buildTime.
+ */
+ com.google.protobuf.Timestamp getBuildTime();
+ /**
+ *
+ *
+ * + * The time this image was built. + * This field is returned as the 'metadata.buildTime' field in the + * Version resource. + * The build time is returned to the client as an RFC 3339 string, which can + * be easily used with the JavaScript Date constructor. + *+ * + *
.google.protobuf.Timestamp build_time = 7;
+ */
+ com.google.protobuf.TimestampOrBuilder getBuildTimeOrBuilder();
+}
diff --git a/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GetRepositoryRequest.java b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GetRepositoryRequest.java
new file mode 100644
index 00000000..61cab971
--- /dev/null
+++ b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/GetRepositoryRequest.java
@@ -0,0 +1,654 @@
+/*
+ * 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/artifactregistry/v1/repository.proto
+
+package com.google.devtools.artifactregistry.v1;
+
+/**
+ *
+ *
+ * + * The request to retrieve a repository. + *+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.GetRepositoryRequest} + */ +public final class GetRepositoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.GetRepositoryRequest) + GetRepositoryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetRepositoryRequest.newBuilder() to construct. + private GetRepositoryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private GetRepositoryRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetRepositoryRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetRepositoryRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_GetRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_GetRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.GetRepositoryRequest.class, + com.google.devtools.artifactregistry.v1.GetRepositoryRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. The name of the repository to retrieve. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the repository to retrieve. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.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.devtools.artifactregistry.v1.GetRepositoryRequest)) {
+ return super.equals(obj);
+ }
+ com.google.devtools.artifactregistry.v1.GetRepositoryRequest other =
+ (com.google.devtools.artifactregistry.v1.GetRepositoryRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!unknownFields.equals(other.unknownFields)) 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) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.devtools.artifactregistry.v1.GetRepositoryRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.GetRepositoryRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.GetRepositoryRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.GetRepositoryRequest 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.devtools.artifactregistry.v1.GetRepositoryRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.GetRepositoryRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.GetRepositoryRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.GetRepositoryRequest 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.devtools.artifactregistry.v1.GetRepositoryRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.GetRepositoryRequest 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.devtools.artifactregistry.v1.GetRepositoryRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.GetRepositoryRequest 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.devtools.artifactregistry.v1.GetRepositoryRequest 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;
+ }
+ /**
+ *
+ *
+ * + * The request to retrieve a repository. + *+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.GetRepositoryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The name of the repository to retrieve. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the repository to retrieve. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the repository to retrieve. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the repository to retrieve. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the repository to retrieve. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = 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.artifactregistry.v1.GetRepositoryRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.GetRepositoryRequest)
+ private static final com.google.devtools.artifactregistry.v1.GetRepositoryRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.GetRepositoryRequest();
+ }
+
+ public static com.google.devtools.artifactregistry.v1.GetRepositoryRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The name of the repository to retrieve. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. The name of the repository to retrieve. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListDockerImagesRequest.java b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListDockerImagesRequest.java
new file mode 100644
index 00000000..c2b7e263
--- /dev/null
+++ b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListDockerImagesRequest.java
@@ -0,0 +1,913 @@
+/*
+ * 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/artifactregistry/v1/artifact.proto
+
+package com.google.devtools.artifactregistry.v1;
+
+/**
+ *
+ *
+ * + * The request to list docker images. + *+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListDockerImagesRequest} + */ +public final class ListDockerImagesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ListDockerImagesRequest) + ListDockerImagesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDockerImagesRequest.newBuilder() to construct. + private ListDockerImagesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListDockerImagesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDockerImagesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListDockerImagesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.ArtifactProto + .internal_static_google_devtools_artifactregistry_v1_ListDockerImagesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.ArtifactProto + .internal_static_google_devtools_artifactregistry_v1_ListDockerImagesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ListDockerImagesRequest.class, + com.google.devtools.artifactregistry.v1.ListDockerImagesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+ * Required. The name of the parent resource whose docker images will be listed. + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ 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();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the parent resource whose docker images will be listed. + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PAGE_SIZE_FIELD_NUMBER = 2;
+ private int pageSize_;
+ /**
+ *
+ *
+ * + * The maximum number of artifacts to return. + *+ * + *
int32 page_size = 2;
+ *
+ * @return The pageSize.
+ */
+ @java.lang.Override
+ public int getPageSize() {
+ return pageSize_;
+ }
+
+ public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
+ private volatile java.lang.Object pageToken_;
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @return The pageToken.
+ */
+ @java.lang.Override
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ 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();
+ pageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @return The bytes for pageToken.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (pageSize_ != 0) {
+ output.writeInt32(2, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (pageSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
+ }
+ size += unknownFields.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.devtools.artifactregistry.v1.ListDockerImagesRequest)) {
+ return super.equals(obj);
+ }
+ com.google.devtools.artifactregistry.v1.ListDockerImagesRequest other =
+ (com.google.devtools.artifactregistry.v1.ListDockerImagesRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (getPageSize() != other.getPageSize()) return false;
+ if (!getPageToken().equals(other.getPageToken())) return false;
+ if (!unknownFields.equals(other.unknownFields)) 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) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getPageSize();
+ hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesRequest 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.devtools.artifactregistry.v1.ListDockerImagesRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesRequest 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.devtools.artifactregistry.v1.ListDockerImagesRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesRequest 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.devtools.artifactregistry.v1.ListDockerImagesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesRequest 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.devtools.artifactregistry.v1.ListDockerImagesRequest 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;
+ }
+ /**
+ *
+ *
+ * + * The request to list docker images. + *+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListDockerImagesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The name of the parent resource whose docker images will be listed. + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the parent resource whose docker images will be listed. + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the parent resource whose docker images will be listed. + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the parent resource whose docker images will be listed. + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the parent resource whose docker images will be listed. + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int pageSize_;
+ /**
+ *
+ *
+ * + * The maximum number of artifacts to return. + *+ * + *
int32 page_size = 2;
+ *
+ * @return The pageSize.
+ */
+ @java.lang.Override
+ public int getPageSize() {
+ return pageSize_;
+ }
+ /**
+ *
+ *
+ * + * The maximum number of artifacts to return. + *+ * + *
int32 page_size = 2;
+ *
+ * @param value The pageSize to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageSize(int value) {
+
+ pageSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The maximum number of artifacts to return. + *+ * + *
int32 page_size = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPageSize() {
+
+ pageSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pageToken_ = "";
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @return The pageToken.
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @return The bytes for pageToken.
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @param value The pageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPageToken() {
+
+ pageToken_ = getDefaultInstance().getPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @param value The bytes for pageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ pageToken_ = 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.artifactregistry.v1.ListDockerImagesRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ListDockerImagesRequest)
+ private static final com.google.devtools.artifactregistry.v1.ListDockerImagesRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ListDockerImagesRequest();
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The name of the parent resource whose docker images will be listed. + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. The name of the parent resource whose docker images will be listed. + *+ * + *
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * The maximum number of artifacts to return. + *+ * + *
int32 page_size = 2;
+ *
+ * @return The pageSize.
+ */
+ int getPageSize();
+
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @return The pageToken.
+ */
+ java.lang.String getPageToken();
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @return The bytes for pageToken.
+ */
+ com.google.protobuf.ByteString getPageTokenBytes();
+}
diff --git a/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListDockerImagesResponse.java b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListDockerImagesResponse.java
new file mode 100644
index 00000000..5c90afc6
--- /dev/null
+++ b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListDockerImagesResponse.java
@@ -0,0 +1,1156 @@
+/*
+ * 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/artifactregistry/v1/artifact.proto
+
+package com.google.devtools.artifactregistry.v1;
+
+/**
+ *
+ *
+ * + * The response from listing docker images. + *+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListDockerImagesResponse} + */ +public final class ListDockerImagesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ListDockerImagesResponse) + ListDockerImagesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDockerImagesResponse.newBuilder() to construct. + private ListDockerImagesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListDockerImagesResponse() { + dockerImages_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDockerImagesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListDockerImagesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dockerImages_ = + new java.util.ArrayList
+ * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.devtools.artifactregistry.v1.DockerImageOrBuilder>
+ getDockerImagesOrBuilderList() {
+ return dockerImages_;
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ @java.lang.Override
+ public int getDockerImagesCount() {
+ return dockerImages_.size();
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.DockerImage getDockerImages(int index) {
+ return dockerImages_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.DockerImageOrBuilder getDockerImagesOrBuilder(
+ int index) {
+ return dockerImages_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object nextPageToken_;
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of artifacts, or empty if there are no + * more artifacts to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ @java.lang.Override
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ 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();
+ nextPageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of artifacts, or empty if there are no + * more artifacts to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 < dockerImages_.size(); i++) {
+ output.writeMessage(1, dockerImages_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < dockerImages_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dockerImages_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ size += unknownFields.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.devtools.artifactregistry.v1.ListDockerImagesResponse)) {
+ return super.equals(obj);
+ }
+ com.google.devtools.artifactregistry.v1.ListDockerImagesResponse other =
+ (com.google.devtools.artifactregistry.v1.ListDockerImagesResponse) obj;
+
+ if (!getDockerImagesList().equals(other.getDockerImagesList())) return false;
+ if (!getNextPageToken().equals(other.getNextPageToken())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getDockerImagesCount() > 0) {
+ hash = (37 * hash) + DOCKER_IMAGES_FIELD_NUMBER;
+ hash = (53 * hash) + getDockerImagesList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesResponse 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.devtools.artifactregistry.v1.ListDockerImagesResponse parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesResponse 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.devtools.artifactregistry.v1.ListDockerImagesResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesResponse 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.devtools.artifactregistry.v1.ListDockerImagesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesResponse 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.devtools.artifactregistry.v1.ListDockerImagesResponse 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;
+ }
+ /**
+ *
+ *
+ * + * The response from listing docker images. + *+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListDockerImagesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public java.util.List+ * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public int getDockerImagesCount() {
+ if (dockerImagesBuilder_ == null) {
+ return dockerImages_.size();
+ } else {
+ return dockerImagesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public com.google.devtools.artifactregistry.v1.DockerImage getDockerImages(int index) {
+ if (dockerImagesBuilder_ == null) {
+ return dockerImages_.get(index);
+ } else {
+ return dockerImagesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public Builder setDockerImages(
+ int index, com.google.devtools.artifactregistry.v1.DockerImage value) {
+ if (dockerImagesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDockerImagesIsMutable();
+ dockerImages_.set(index, value);
+ onChanged();
+ } else {
+ dockerImagesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public Builder setDockerImages(
+ int index, com.google.devtools.artifactregistry.v1.DockerImage.Builder builderForValue) {
+ if (dockerImagesBuilder_ == null) {
+ ensureDockerImagesIsMutable();
+ dockerImages_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ dockerImagesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public Builder addDockerImages(com.google.devtools.artifactregistry.v1.DockerImage value) {
+ if (dockerImagesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDockerImagesIsMutable();
+ dockerImages_.add(value);
+ onChanged();
+ } else {
+ dockerImagesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public Builder addDockerImages(
+ int index, com.google.devtools.artifactregistry.v1.DockerImage value) {
+ if (dockerImagesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDockerImagesIsMutable();
+ dockerImages_.add(index, value);
+ onChanged();
+ } else {
+ dockerImagesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public Builder addDockerImages(
+ com.google.devtools.artifactregistry.v1.DockerImage.Builder builderForValue) {
+ if (dockerImagesBuilder_ == null) {
+ ensureDockerImagesIsMutable();
+ dockerImages_.add(builderForValue.build());
+ onChanged();
+ } else {
+ dockerImagesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public Builder addDockerImages(
+ int index, com.google.devtools.artifactregistry.v1.DockerImage.Builder builderForValue) {
+ if (dockerImagesBuilder_ == null) {
+ ensureDockerImagesIsMutable();
+ dockerImages_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ dockerImagesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public Builder addAllDockerImages(
+ java.lang.Iterable extends com.google.devtools.artifactregistry.v1.DockerImage> values) {
+ if (dockerImagesBuilder_ == null) {
+ ensureDockerImagesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dockerImages_);
+ onChanged();
+ } else {
+ dockerImagesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public Builder clearDockerImages() {
+ if (dockerImagesBuilder_ == null) {
+ dockerImages_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ dockerImagesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public Builder removeDockerImages(int index) {
+ if (dockerImagesBuilder_ == null) {
+ ensureDockerImagesIsMutable();
+ dockerImages_.remove(index);
+ onChanged();
+ } else {
+ dockerImagesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public com.google.devtools.artifactregistry.v1.DockerImage.Builder getDockerImagesBuilder(
+ int index) {
+ return getDockerImagesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public com.google.devtools.artifactregistry.v1.DockerImageOrBuilder getDockerImagesOrBuilder(
+ int index) {
+ if (dockerImagesBuilder_ == null) {
+ return dockerImages_.get(index);
+ } else {
+ return dockerImagesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public java.util.List extends com.google.devtools.artifactregistry.v1.DockerImageOrBuilder>
+ getDockerImagesOrBuilderList() {
+ if (dockerImagesBuilder_ != null) {
+ return dockerImagesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(dockerImages_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public com.google.devtools.artifactregistry.v1.DockerImage.Builder addDockerImagesBuilder() {
+ return getDockerImagesFieldBuilder()
+ .addBuilder(com.google.devtools.artifactregistry.v1.DockerImage.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public com.google.devtools.artifactregistry.v1.DockerImage.Builder addDockerImagesBuilder(
+ int index) {
+ return getDockerImagesFieldBuilder()
+ .addBuilder(
+ index, com.google.devtools.artifactregistry.v1.DockerImage.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ public java.util.List+ * The token to retrieve the next page of artifacts, or empty if there are no + * more artifacts to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of artifacts, or empty if there are no + * more artifacts to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of artifacts, or empty if there are no + * more artifacts to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @param value The nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of artifacts, or empty if there are no + * more artifacts to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNextPageToken() {
+
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of artifacts, or empty if there are no + * more artifacts to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @param value The bytes for nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nextPageToken_ = 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.artifactregistry.v1.ListDockerImagesResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ListDockerImagesResponse)
+ private static final com.google.devtools.artifactregistry.v1.ListDockerImagesResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ListDockerImagesResponse();
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListDockerImagesResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ java.util.List+ * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ com.google.devtools.artifactregistry.v1.DockerImage getDockerImages(int index);
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ int getDockerImagesCount();
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ java.util.List extends com.google.devtools.artifactregistry.v1.DockerImageOrBuilder>
+ getDockerImagesOrBuilderList();
+ /**
+ *
+ *
+ * + * The docker images returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1;
+ */
+ com.google.devtools.artifactregistry.v1.DockerImageOrBuilder getDockerImagesOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of artifacts, or empty if there are no + * more artifacts to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ java.lang.String getNextPageToken();
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of artifacts, or empty if there are no + * more artifacts to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ com.google.protobuf.ByteString getNextPageTokenBytes();
+}
diff --git a/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRepositoriesRequest.java b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRepositoriesRequest.java
new file mode 100644
index 00000000..1bd71c29
--- /dev/null
+++ b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRepositoriesRequest.java
@@ -0,0 +1,927 @@
+/*
+ * 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/artifactregistry/v1/repository.proto
+
+package com.google.devtools.artifactregistry.v1;
+
+/**
+ *
+ *
+ * + * The request to list repositories. + *+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListRepositoriesRequest} + */ +public final class ListRepositoriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ListRepositoriesRequest) + ListRepositoriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListRepositoriesRequest.newBuilder() to construct. + private ListRepositoriesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListRepositoriesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRepositoriesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListRepositoriesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_ListRepositoriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.RepositoryProto + .internal_static_google_devtools_artifactregistry_v1_ListRepositoriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ListRepositoriesRequest.class, + com.google.devtools.artifactregistry.v1.ListRepositoriesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+ * Required. The name of the parent resource whose repositories will be listed. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ 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();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the parent resource whose repositories will be listed. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PAGE_SIZE_FIELD_NUMBER = 2;
+ private int pageSize_;
+ /**
+ *
+ *
+ * + * The maximum number of repositories to return. + *+ * + *
int32 page_size = 2;
+ *
+ * @return The pageSize.
+ */
+ @java.lang.Override
+ public int getPageSize() {
+ return pageSize_;
+ }
+
+ public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
+ private volatile java.lang.Object pageToken_;
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @return The pageToken.
+ */
+ @java.lang.Override
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ 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();
+ pageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @return The bytes for pageToken.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (pageSize_ != 0) {
+ output.writeInt32(2, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (pageSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
+ }
+ size += unknownFields.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.devtools.artifactregistry.v1.ListRepositoriesRequest)) {
+ return super.equals(obj);
+ }
+ com.google.devtools.artifactregistry.v1.ListRepositoriesRequest other =
+ (com.google.devtools.artifactregistry.v1.ListRepositoriesRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (getPageSize() != other.getPageSize()) return false;
+ if (!getPageToken().equals(other.getPageToken())) return false;
+ if (!unknownFields.equals(other.unknownFields)) 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) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getPageSize();
+ hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesRequest 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.devtools.artifactregistry.v1.ListRepositoriesRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesRequest 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.devtools.artifactregistry.v1.ListRepositoriesRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesRequest 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.devtools.artifactregistry.v1.ListRepositoriesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesRequest 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.devtools.artifactregistry.v1.ListRepositoriesRequest 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;
+ }
+ /**
+ *
+ *
+ * + * The request to list repositories. + *+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListRepositoriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The name of the parent resource whose repositories will be listed. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the parent resource whose repositories will be listed. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the parent resource whose repositories will be listed. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the parent resource whose repositories will be listed. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The name of the parent resource whose repositories will be listed. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int pageSize_;
+ /**
+ *
+ *
+ * + * The maximum number of repositories to return. + *+ * + *
int32 page_size = 2;
+ *
+ * @return The pageSize.
+ */
+ @java.lang.Override
+ public int getPageSize() {
+ return pageSize_;
+ }
+ /**
+ *
+ *
+ * + * The maximum number of repositories to return. + *+ * + *
int32 page_size = 2;
+ *
+ * @param value The pageSize to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageSize(int value) {
+
+ pageSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The maximum number of repositories to return. + *+ * + *
int32 page_size = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPageSize() {
+
+ pageSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pageToken_ = "";
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @return The pageToken.
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @return The bytes for pageToken.
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @param value The pageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPageToken() {
+
+ pageToken_ = getDefaultInstance().getPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @param value The bytes for pageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ pageToken_ = 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.artifactregistry.v1.ListRepositoriesRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ListRepositoriesRequest)
+ private static final com.google.devtools.artifactregistry.v1.ListRepositoriesRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ListRepositoriesRequest();
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The name of the parent resource whose repositories will be listed. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. The name of the parent resource whose repositories will be listed. + *+ * + *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * The maximum number of repositories to return. + *+ * + *
int32 page_size = 2;
+ *
+ * @return The pageSize.
+ */
+ int getPageSize();
+
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @return The pageToken.
+ */
+ java.lang.String getPageToken();
+ /**
+ *
+ *
+ * + * The next_page_token value returned from a previous list request, if any. + *+ * + *
string page_token = 3;
+ *
+ * @return The bytes for pageToken.
+ */
+ com.google.protobuf.ByteString getPageTokenBytes();
+}
diff --git a/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRepositoriesResponse.java b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRepositoriesResponse.java
new file mode 100644
index 00000000..5e17cbf0
--- /dev/null
+++ b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ListRepositoriesResponse.java
@@ -0,0 +1,1156 @@
+/*
+ * 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/artifactregistry/v1/repository.proto
+
+package com.google.devtools.artifactregistry.v1;
+
+/**
+ *
+ *
+ * + * The response from listing repositories. + *+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListRepositoriesResponse} + */ +public final class ListRepositoriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ListRepositoriesResponse) + ListRepositoriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListRepositoriesResponse.newBuilder() to construct. + private ListRepositoriesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListRepositoriesResponse() { + repositories_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRepositoriesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListRepositoriesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + repositories_ = + new java.util.ArrayList
+ * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.devtools.artifactregistry.v1.RepositoryOrBuilder>
+ getRepositoriesOrBuilderList() {
+ return repositories_;
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ @java.lang.Override
+ public int getRepositoriesCount() {
+ return repositories_.size();
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.Repository getRepositories(int index) {
+ return repositories_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.RepositoryOrBuilder getRepositoriesOrBuilder(
+ int index) {
+ return repositories_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object nextPageToken_;
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of repositories, or empty if there are + * no more repositories to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ @java.lang.Override
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ 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();
+ nextPageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of repositories, or empty if there are + * no more repositories to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 < repositories_.size(); i++) {
+ output.writeMessage(1, repositories_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < repositories_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, repositories_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ size += unknownFields.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.devtools.artifactregistry.v1.ListRepositoriesResponse)) {
+ return super.equals(obj);
+ }
+ com.google.devtools.artifactregistry.v1.ListRepositoriesResponse other =
+ (com.google.devtools.artifactregistry.v1.ListRepositoriesResponse) obj;
+
+ if (!getRepositoriesList().equals(other.getRepositoriesList())) return false;
+ if (!getNextPageToken().equals(other.getNextPageToken())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getRepositoriesCount() > 0) {
+ hash = (37 * hash) + REPOSITORIES_FIELD_NUMBER;
+ hash = (53 * hash) + getRepositoriesList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesResponse 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.devtools.artifactregistry.v1.ListRepositoriesResponse parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesResponse 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.devtools.artifactregistry.v1.ListRepositoriesResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesResponse 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.devtools.artifactregistry.v1.ListRepositoriesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesResponse 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.devtools.artifactregistry.v1.ListRepositoriesResponse 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;
+ }
+ /**
+ *
+ *
+ * + * The response from listing repositories. + *+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ListRepositoriesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public java.util.List+ * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public int getRepositoriesCount() {
+ if (repositoriesBuilder_ == null) {
+ return repositories_.size();
+ } else {
+ return repositoriesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public com.google.devtools.artifactregistry.v1.Repository getRepositories(int index) {
+ if (repositoriesBuilder_ == null) {
+ return repositories_.get(index);
+ } else {
+ return repositoriesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public Builder setRepositories(
+ int index, com.google.devtools.artifactregistry.v1.Repository value) {
+ if (repositoriesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRepositoriesIsMutable();
+ repositories_.set(index, value);
+ onChanged();
+ } else {
+ repositoriesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public Builder setRepositories(
+ int index, com.google.devtools.artifactregistry.v1.Repository.Builder builderForValue) {
+ if (repositoriesBuilder_ == null) {
+ ensureRepositoriesIsMutable();
+ repositories_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ repositoriesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public Builder addRepositories(com.google.devtools.artifactregistry.v1.Repository value) {
+ if (repositoriesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRepositoriesIsMutable();
+ repositories_.add(value);
+ onChanged();
+ } else {
+ repositoriesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public Builder addRepositories(
+ int index, com.google.devtools.artifactregistry.v1.Repository value) {
+ if (repositoriesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRepositoriesIsMutable();
+ repositories_.add(index, value);
+ onChanged();
+ } else {
+ repositoriesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public Builder addRepositories(
+ com.google.devtools.artifactregistry.v1.Repository.Builder builderForValue) {
+ if (repositoriesBuilder_ == null) {
+ ensureRepositoriesIsMutable();
+ repositories_.add(builderForValue.build());
+ onChanged();
+ } else {
+ repositoriesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public Builder addRepositories(
+ int index, com.google.devtools.artifactregistry.v1.Repository.Builder builderForValue) {
+ if (repositoriesBuilder_ == null) {
+ ensureRepositoriesIsMutable();
+ repositories_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ repositoriesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public Builder addAllRepositories(
+ java.lang.Iterable extends com.google.devtools.artifactregistry.v1.Repository> values) {
+ if (repositoriesBuilder_ == null) {
+ ensureRepositoriesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, repositories_);
+ onChanged();
+ } else {
+ repositoriesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public Builder clearRepositories() {
+ if (repositoriesBuilder_ == null) {
+ repositories_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ repositoriesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public Builder removeRepositories(int index) {
+ if (repositoriesBuilder_ == null) {
+ ensureRepositoriesIsMutable();
+ repositories_.remove(index);
+ onChanged();
+ } else {
+ repositoriesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public com.google.devtools.artifactregistry.v1.Repository.Builder getRepositoriesBuilder(
+ int index) {
+ return getRepositoriesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public com.google.devtools.artifactregistry.v1.RepositoryOrBuilder getRepositoriesOrBuilder(
+ int index) {
+ if (repositoriesBuilder_ == null) {
+ return repositories_.get(index);
+ } else {
+ return repositoriesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public java.util.List extends com.google.devtools.artifactregistry.v1.RepositoryOrBuilder>
+ getRepositoriesOrBuilderList() {
+ if (repositoriesBuilder_ != null) {
+ return repositoriesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(repositories_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public com.google.devtools.artifactregistry.v1.Repository.Builder addRepositoriesBuilder() {
+ return getRepositoriesFieldBuilder()
+ .addBuilder(com.google.devtools.artifactregistry.v1.Repository.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public com.google.devtools.artifactregistry.v1.Repository.Builder addRepositoriesBuilder(
+ int index) {
+ return getRepositoriesFieldBuilder()
+ .addBuilder(
+ index, com.google.devtools.artifactregistry.v1.Repository.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ public java.util.List+ * The token to retrieve the next page of repositories, or empty if there are + * no more repositories to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of repositories, or empty if there are + * no more repositories to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of repositories, or empty if there are + * no more repositories to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @param value The nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of repositories, or empty if there are + * no more repositories to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNextPageToken() {
+
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of repositories, or empty if there are + * no more repositories to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @param value The bytes for nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nextPageToken_ = 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.artifactregistry.v1.ListRepositoriesResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ListRepositoriesResponse)
+ private static final com.google.devtools.artifactregistry.v1.ListRepositoriesResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ListRepositoriesResponse();
+ }
+
+ public static com.google.devtools.artifactregistry.v1.ListRepositoriesResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ java.util.List+ * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ com.google.devtools.artifactregistry.v1.Repository getRepositories(int index);
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ int getRepositoriesCount();
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ java.util.List extends com.google.devtools.artifactregistry.v1.RepositoryOrBuilder>
+ getRepositoriesOrBuilderList();
+ /**
+ *
+ *
+ * + * The repositories returned. + *+ * + *
repeated .google.devtools.artifactregistry.v1.Repository repositories = 1;
+ */
+ com.google.devtools.artifactregistry.v1.RepositoryOrBuilder getRepositoriesOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of repositories, or empty if there are + * no more repositories to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ java.lang.String getNextPageToken();
+ /**
+ *
+ *
+ * + * The token to retrieve the next page of repositories, or empty if there are + * no more repositories to return. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ com.google.protobuf.ByteString getNextPageTokenBytes();
+}
diff --git a/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/LocationName.java b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/LocationName.java
new file mode 100644
index 00000000..5ffa2755
--- /dev/null
+++ b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/LocationName.java
@@ -0,0 +1,192 @@
+/*
+ * Copyright 2021 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.
+ */
+
+package com.google.devtools.artifactregistry.v1;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+@Generated("by gapic-generator-java")
+public class LocationName implements ResourceName {
+ private static final PathTemplate PROJECT_LOCATION =
+ PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}");
+ private volatile Map+ * A Repository for storing artifacts with a specific format. + *+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.Repository} + */ +public final class Repository extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.Repository) + RepositoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use Repository.newBuilder() to construct. + private Repository(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Repository() { + name_ = ""; + format_ = 0; + description_ = ""; + kmsKeyName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Repository(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Repository( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + format_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry
+ * A package format. + *+ * + * Protobuf enum {@code google.devtools.artifactregistry.v1.Repository.Format} + */ + public enum Format implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified package format. + *+ * + *
FORMAT_UNSPECIFIED = 0;
+ */
+ FORMAT_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Docker package format. + *+ * + *
DOCKER = 1;
+ */
+ DOCKER(1),
+ /**
+ *
+ *
+ * + * Maven package format. + *+ * + *
MAVEN = 2;
+ */
+ MAVEN(2),
+ /**
+ *
+ *
+ * + * NPM package format. + *+ * + *
NPM = 3;
+ */
+ NPM(3),
+ /**
+ *
+ *
+ * + * APT package format. + *+ * + *
APT = 5;
+ */
+ APT(5),
+ /**
+ *
+ *
+ * + * YUM package format. + *+ * + *
YUM = 6;
+ */
+ YUM(6),
+ /**
+ *
+ *
+ * + * Python package format. + *+ * + *
PYTHON = 8;
+ */
+ PYTHON(8),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified package format. + *+ * + *
FORMAT_UNSPECIFIED = 0;
+ */
+ public static final int FORMAT_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Docker package format. + *+ * + *
DOCKER = 1;
+ */
+ public static final int DOCKER_VALUE = 1;
+ /**
+ *
+ *
+ * + * Maven package format. + *+ * + *
MAVEN = 2;
+ */
+ public static final int MAVEN_VALUE = 2;
+ /**
+ *
+ *
+ * + * NPM package format. + *+ * + *
NPM = 3;
+ */
+ public static final int NPM_VALUE = 3;
+ /**
+ *
+ *
+ * + * APT package format. + *+ * + *
APT = 5;
+ */
+ public static final int APT_VALUE = 5;
+ /**
+ *
+ *
+ * + * YUM package format. + *+ * + *
YUM = 6;
+ */
+ public static final int YUM_VALUE = 6;
+ /**
+ *
+ *
+ * + * Python package format. + *+ * + *
PYTHON = 8;
+ */
+ public static final int PYTHON_VALUE = 8;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Format valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Format forNumber(int value) {
+ switch (value) {
+ case 0:
+ return FORMAT_UNSPECIFIED;
+ case 1:
+ return DOCKER;
+ case 2:
+ return MAVEN;
+ case 3:
+ return NPM;
+ case 5:
+ return APT;
+ case 6:
+ return YUM;
+ case 8:
+ return PYTHON;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The name of the repository, for example: + * "projects/p1/locations/us-central1/repositories/repo1". + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the repository, for example: + * "projects/p1/locations/us-central1/repositories/repo1". + *+ * + *
string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FORMAT_FIELD_NUMBER = 2;
+ private int format_;
+ /**
+ *
+ *
+ * + * The format of packages that are stored in the repository. + *+ * + *
.google.devtools.artifactregistry.v1.Repository.Format format = 2;
+ *
+ * @return The enum numeric value on the wire for format.
+ */
+ @java.lang.Override
+ public int getFormatValue() {
+ return format_;
+ }
+ /**
+ *
+ *
+ * + * The format of packages that are stored in the repository. + *+ * + *
.google.devtools.artifactregistry.v1.Repository.Format format = 2;
+ *
+ * @return The format.
+ */
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.Repository.Format getFormat() {
+ @SuppressWarnings("deprecation")
+ com.google.devtools.artifactregistry.v1.Repository.Format result =
+ com.google.devtools.artifactregistry.v1.Repository.Format.valueOf(format_);
+ return result == null
+ ? com.google.devtools.artifactregistry.v1.Repository.Format.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 3;
+ private volatile java.lang.Object description_;
+ /**
+ *
+ *
+ * + * The user-provided description of the repository. + *+ * + *
string description = 3;
+ *
+ * @return The description.
+ */
+ @java.lang.Override
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ 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();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The user-provided description of the repository. + *+ * + *
string description = 3;
+ *
+ * @return The bytes for description.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LABELS_FIELD_NUMBER = 4;
+
+ private static final class LabelsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry+ * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ @java.lang.Override
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ @java.lang.Override
+ public java.util.Map+ * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * The time when the repository was created. + *+ * + *
.google.protobuf.Timestamp create_time = 5;
+ *
+ * @return Whether the createTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateTime() {
+ return createTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was created. + *+ * + *
.google.protobuf.Timestamp create_time = 5;
+ *
+ * @return The createTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getCreateTime() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was created. + *+ * + *
.google.protobuf.Timestamp create_time = 5;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ return getCreateTime();
+ }
+
+ public static final int UPDATE_TIME_FIELD_NUMBER = 6;
+ private com.google.protobuf.Timestamp updateTime_;
+ /**
+ *
+ *
+ * + * The time when the repository was last updated. + *+ * + *
.google.protobuf.Timestamp update_time = 6;
+ *
+ * @return Whether the updateTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateTime() {
+ return updateTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was last updated. + *+ * + *
.google.protobuf.Timestamp update_time = 6;
+ *
+ * @return The updateTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was last updated. + *+ * + *
.google.protobuf.Timestamp update_time = 6;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ return getUpdateTime();
+ }
+
+ public static final int KMS_KEY_NAME_FIELD_NUMBER = 8;
+ private volatile java.lang.Object kmsKeyName_;
+ /**
+ *
+ *
+ * + * The Cloud KMS resource name of the customer managed encryption key that’s + * used to encrypt the contents of the Repository. Has the form: + * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. + * This value may not be changed after the Repository has been created. + *+ * + *
string kms_key_name = 8;
+ *
+ * @return The kmsKeyName.
+ */
+ @java.lang.Override
+ public java.lang.String getKmsKeyName() {
+ java.lang.Object ref = kmsKeyName_;
+ 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();
+ kmsKeyName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The Cloud KMS resource name of the customer managed encryption key that’s + * used to encrypt the contents of the Repository. Has the form: + * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. + * This value may not be changed after the Repository has been created. + *+ * + *
string kms_key_name = 8;
+ *
+ * @return The bytes for kmsKeyName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
+ java.lang.Object ref = kmsKeyName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ kmsKeyName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (format_
+ != com.google.devtools.artifactregistry.v1.Repository.Format.FORMAT_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, format_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
+ if (createTime_ != null) {
+ output.writeMessage(5, getCreateTime());
+ }
+ if (updateTime_ != null) {
+ output.writeMessage(6, getUpdateTime());
+ }
+ if (!getKmsKeyNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, kmsKeyName_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (format_
+ != com.google.devtools.artifactregistry.v1.Repository.Format.FORMAT_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, format_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
+ }
+ for (java.util.Map.Entry+ * A Repository for storing artifacts with a specific format. + *+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.Repository} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The name of the repository, for example: + * "projects/p1/locations/us-central1/repositories/repo1". + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the repository, for example: + * "projects/p1/locations/us-central1/repositories/repo1". + *+ * + *
string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the repository, for example: + * "projects/p1/locations/us-central1/repositories/repo1". + *+ * + *
string name = 1;
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The name of the repository, for example: + * "projects/p1/locations/us-central1/repositories/repo1". + *+ * + *
string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The name of the repository, for example: + * "projects/p1/locations/us-central1/repositories/repo1". + *+ * + *
string name = 1;
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int format_ = 0;
+ /**
+ *
+ *
+ * + * The format of packages that are stored in the repository. + *+ * + *
.google.devtools.artifactregistry.v1.Repository.Format format = 2;
+ *
+ * @return The enum numeric value on the wire for format.
+ */
+ @java.lang.Override
+ public int getFormatValue() {
+ return format_;
+ }
+ /**
+ *
+ *
+ * + * The format of packages that are stored in the repository. + *+ * + *
.google.devtools.artifactregistry.v1.Repository.Format format = 2;
+ *
+ * @param value The enum numeric value on the wire for format to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFormatValue(int value) {
+
+ format_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The format of packages that are stored in the repository. + *+ * + *
.google.devtools.artifactregistry.v1.Repository.Format format = 2;
+ *
+ * @return The format.
+ */
+ @java.lang.Override
+ public com.google.devtools.artifactregistry.v1.Repository.Format getFormat() {
+ @SuppressWarnings("deprecation")
+ com.google.devtools.artifactregistry.v1.Repository.Format result =
+ com.google.devtools.artifactregistry.v1.Repository.Format.valueOf(format_);
+ return result == null
+ ? com.google.devtools.artifactregistry.v1.Repository.Format.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * The format of packages that are stored in the repository. + *+ * + *
.google.devtools.artifactregistry.v1.Repository.Format format = 2;
+ *
+ * @param value The format to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFormat(com.google.devtools.artifactregistry.v1.Repository.Format value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ format_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The format of packages that are stored in the repository. + *+ * + *
.google.devtools.artifactregistry.v1.Repository.Format format = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFormat() {
+
+ format_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ *
+ *
+ * + * The user-provided description of the repository. + *+ * + *
string description = 3;
+ *
+ * @return The description.
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The user-provided description of the repository. + *+ * + *
string description = 3;
+ *
+ * @return The bytes for description.
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The user-provided description of the repository. + *+ * + *
string description = 3;
+ *
+ * @param value The description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescription(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The user-provided description of the repository. + *+ * + *
string description = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDescription() {
+
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The user-provided description of the repository. + *+ * + *
string description = 3;
+ *
+ * @param value The bytes for description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField+ * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ @java.lang.Override
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ @java.lang.Override
+ public java.util.Map+ * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ public Builder removeLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableLabels().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ public Builder putLabels(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableLabels().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ public Builder putAllLabels(java.util.Map+ * The time when the repository was created. + *+ * + *
.google.protobuf.Timestamp create_time = 5;
+ *
+ * @return Whether the createTime field is set.
+ */
+ public boolean hasCreateTime() {
+ return createTimeBuilder_ != null || createTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was created. + *+ * + *
.google.protobuf.Timestamp create_time = 5;
+ *
+ * @return The createTime.
+ */
+ public com.google.protobuf.Timestamp getCreateTime() {
+ if (createTimeBuilder_ == null) {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ } else {
+ return createTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was created. + *+ * + *
.google.protobuf.Timestamp create_time = 5;
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ createTime_ = value;
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was created. + *+ * + *
.google.protobuf.Timestamp create_time = 5;
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was created. + *+ * + *
.google.protobuf.Timestamp create_time = 5;
+ */
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (createTime_ != null) {
+ createTime_ =
+ com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
+ } else {
+ createTime_ = value;
+ }
+ onChanged();
+ } else {
+ createTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was created. + *+ * + *
.google.protobuf.Timestamp create_time = 5;
+ */
+ public Builder clearCreateTime() {
+ if (createTimeBuilder_ == null) {
+ createTime_ = null;
+ onChanged();
+ } else {
+ createTime_ = null;
+ createTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was created. + *+ * + *
.google.protobuf.Timestamp create_time = 5;
+ */
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was created. + *+ * + *
.google.protobuf.Timestamp create_time = 5;
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was created. + *+ * + *
.google.protobuf.Timestamp create_time = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getCreateTimeFieldBuilder() {
+ if (createTimeBuilder_ == null) {
+ createTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getCreateTime(), getParentForChildren(), isClean());
+ createTime_ = null;
+ }
+ return createTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp updateTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ updateTimeBuilder_;
+ /**
+ *
+ *
+ * + * The time when the repository was last updated. + *+ * + *
.google.protobuf.Timestamp update_time = 6;
+ *
+ * @return Whether the updateTime field is set.
+ */
+ public boolean hasUpdateTime() {
+ return updateTimeBuilder_ != null || updateTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was last updated. + *+ * + *
.google.protobuf.Timestamp update_time = 6;
+ *
+ * @return The updateTime.
+ */
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ if (updateTimeBuilder_ == null) {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ } else {
+ return updateTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was last updated. + *+ * + *
.google.protobuf.Timestamp update_time = 6;
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ updateTime_ = value;
+ onChanged();
+ } else {
+ updateTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was last updated. + *+ * + *
.google.protobuf.Timestamp update_time = 6;
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ updateTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was last updated. + *+ * + *
.google.protobuf.Timestamp update_time = 6;
+ */
+ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (updateTime_ != null) {
+ updateTime_ =
+ com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
+ } else {
+ updateTime_ = value;
+ }
+ onChanged();
+ } else {
+ updateTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was last updated. + *+ * + *
.google.protobuf.Timestamp update_time = 6;
+ */
+ public Builder clearUpdateTime() {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = null;
+ onChanged();
+ } else {
+ updateTime_ = null;
+ updateTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was last updated. + *+ * + *
.google.protobuf.Timestamp update_time = 6;
+ */
+ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
+
+ onChanged();
+ return getUpdateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was last updated. + *+ * + *
.google.protobuf.Timestamp update_time = 6;
+ */
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ if (updateTimeBuilder_ != null) {
+ return updateTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The time when the repository was last updated. + *+ * + *
.google.protobuf.Timestamp update_time = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getUpdateTimeFieldBuilder() {
+ if (updateTimeBuilder_ == null) {
+ updateTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getUpdateTime(), getParentForChildren(), isClean());
+ updateTime_ = null;
+ }
+ return updateTimeBuilder_;
+ }
+
+ private java.lang.Object kmsKeyName_ = "";
+ /**
+ *
+ *
+ * + * The Cloud KMS resource name of the customer managed encryption key that’s + * used to encrypt the contents of the Repository. Has the form: + * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. + * This value may not be changed after the Repository has been created. + *+ * + *
string kms_key_name = 8;
+ *
+ * @return The kmsKeyName.
+ */
+ public java.lang.String getKmsKeyName() {
+ java.lang.Object ref = kmsKeyName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ kmsKeyName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The Cloud KMS resource name of the customer managed encryption key that’s + * used to encrypt the contents of the Repository. Has the form: + * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. + * This value may not be changed after the Repository has been created. + *+ * + *
string kms_key_name = 8;
+ *
+ * @return The bytes for kmsKeyName.
+ */
+ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
+ java.lang.Object ref = kmsKeyName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ kmsKeyName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The Cloud KMS resource name of the customer managed encryption key that’s + * used to encrypt the contents of the Repository. Has the form: + * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. + * This value may not be changed after the Repository has been created. + *+ * + *
string kms_key_name = 8;
+ *
+ * @param value The kmsKeyName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKmsKeyName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ kmsKeyName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The Cloud KMS resource name of the customer managed encryption key that’s + * used to encrypt the contents of the Repository. Has the form: + * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. + * This value may not be changed after the Repository has been created. + *+ * + *
string kms_key_name = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKmsKeyName() {
+
+ kmsKeyName_ = getDefaultInstance().getKmsKeyName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The Cloud KMS resource name of the customer managed encryption key that’s + * used to encrypt the contents of the Repository. Has the form: + * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. + * This value may not be changed after the Repository has been created. + *+ * + *
string kms_key_name = 8;
+ *
+ * @param value The bytes for kmsKeyName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ kmsKeyName_ = 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.artifactregistry.v1.Repository)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.Repository)
+ private static final com.google.devtools.artifactregistry.v1.Repository DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.Repository();
+ }
+
+ public static com.google.devtools.artifactregistry.v1.Repository getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The name of the repository, for example: + * "projects/p1/locations/us-central1/repositories/repo1". + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * The name of the repository, for example: + * "projects/p1/locations/us-central1/repositories/repo1". + *+ * + *
string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * The format of packages that are stored in the repository. + *+ * + *
.google.devtools.artifactregistry.v1.Repository.Format format = 2;
+ *
+ * @return The enum numeric value on the wire for format.
+ */
+ int getFormatValue();
+ /**
+ *
+ *
+ * + * The format of packages that are stored in the repository. + *+ * + *
.google.devtools.artifactregistry.v1.Repository.Format format = 2;
+ *
+ * @return The format.
+ */
+ com.google.devtools.artifactregistry.v1.Repository.Format getFormat();
+
+ /**
+ *
+ *
+ * + * The user-provided description of the repository. + *+ * + *
string description = 3;
+ *
+ * @return The description.
+ */
+ java.lang.String getDescription();
+ /**
+ *
+ *
+ * + * The user-provided description of the repository. + *+ * + *
string description = 3;
+ *
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ /**
+ *
+ *
+ * + * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ int getLabelsCount();
+ /**
+ *
+ *
+ * + * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ boolean containsLabels(java.lang.String key);
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ java.util.Map+ * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+ /**
+ *
+ *
+ * + * Labels with user-defined metadata. + * This field may contain up to 64 entries. Label keys and values may be no + * longer than 63 characters. Label keys must begin with a lowercase letter + * and may only contain lowercase letters, numeric characters, underscores, + * and dashes. + *+ * + *
map<string, string> labels = 4;
+ */
+ java.lang.String getLabelsOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ * + * The time when the repository was created. + *+ * + *
.google.protobuf.Timestamp create_time = 5;
+ *
+ * @return Whether the createTime field is set.
+ */
+ boolean hasCreateTime();
+ /**
+ *
+ *
+ * + * The time when the repository was created. + *+ * + *
.google.protobuf.Timestamp create_time = 5;
+ *
+ * @return The createTime.
+ */
+ com.google.protobuf.Timestamp getCreateTime();
+ /**
+ *
+ *
+ * + * The time when the repository was created. + *+ * + *
.google.protobuf.Timestamp create_time = 5;
+ */
+ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The time when the repository was last updated. + *+ * + *
.google.protobuf.Timestamp update_time = 6;
+ *
+ * @return Whether the updateTime field is set.
+ */
+ boolean hasUpdateTime();
+ /**
+ *
+ *
+ * + * The time when the repository was last updated. + *+ * + *
.google.protobuf.Timestamp update_time = 6;
+ *
+ * @return The updateTime.
+ */
+ com.google.protobuf.Timestamp getUpdateTime();
+ /**
+ *
+ *
+ * + * The time when the repository was last updated. + *+ * + *
.google.protobuf.Timestamp update_time = 6;
+ */
+ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The Cloud KMS resource name of the customer managed encryption key that’s + * used to encrypt the contents of the Repository. Has the form: + * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. + * This value may not be changed after the Repository has been created. + *+ * + *
string kms_key_name = 8;
+ *
+ * @return The kmsKeyName.
+ */
+ java.lang.String getKmsKeyName();
+ /**
+ *
+ *
+ * + * The Cloud KMS resource name of the customer managed encryption key that’s + * used to encrypt the contents of the Repository. Has the form: + * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. + * This value may not be changed after the Repository has been created. + *+ * + *
string kms_key_name = 8;
+ *
+ * @return The bytes for kmsKeyName.
+ */
+ com.google.protobuf.ByteString getKmsKeyNameBytes();
+}
diff --git a/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryProto.java b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryProto.java
new file mode 100644
index 00000000..b8e83c21
--- /dev/null
+++ b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryProto.java
@@ -0,0 +1,161 @@
+/*
+ * 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/artifactregistry/v1/repository.proto
+
+package com.google.devtools.artifactregistry.v1;
+
+public final class RepositoryProto {
+ private RepositoryProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_devtools_artifactregistry_v1_Repository_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_devtools_artifactregistry_v1_Repository_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_devtools_artifactregistry_v1_Repository_LabelsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_devtools_artifactregistry_v1_Repository_LabelsEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_devtools_artifactregistry_v1_ListRepositoriesRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_devtools_artifactregistry_v1_ListRepositoriesRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_devtools_artifactregistry_v1_ListRepositoriesResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_devtools_artifactregistry_v1_ListRepositoriesResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_devtools_artifactregistry_v1_GetRepositoryRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_devtools_artifactregistry_v1_GetRepositoryRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n4google/devtools/artifactregistry/v1/re"
+ + "pository.proto\022#google.devtools.artifact"
+ + "registry.v1\032\037google/api/field_behavior.p"
+ + "roto\032\031google/api/resource.proto\032\037google/"
+ + "protobuf/timestamp.proto\032\034google/api/ann"
+ + "otations.proto\"\277\004\n\nRepository\022\014\n\004name\030\001 "
+ + "\001(\t\022F\n\006format\030\002 \001(\01626.google.devtools.ar"
+ + "tifactregistry.v1.Repository.Format\022\023\n\013d"
+ + "escription\030\003 \001(\t\022K\n\006labels\030\004 \003(\0132;.googl"
+ + "e.devtools.artifactregistry.v1.Repositor"
+ + "y.LabelsEntry\022/\n\013create_time\030\005 \001(\0132\032.goo"
+ + "gle.protobuf.Timestamp\022/\n\013update_time\030\006 "
+ + "\001(\0132\032.google.protobuf.Timestamp\022\024\n\014kms_k"
+ + "ey_name\030\010 \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001("
+ + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"^\n\006Format\022\026\n\022FORMAT"
+ + "_UNSPECIFIED\020\000\022\n\n\006DOCKER\020\001\022\t\n\005MAVEN\020\002\022\007\n"
+ + "\003NPM\020\003\022\007\n\003APT\020\005\022\007\n\003YUM\020\006\022\n\n\006PYTHON\020\010:r\352A"
+ + "o\n*artifactregistry.googleapis.com/Repos"
+ + "itory\022Aprojects/{project}/locations/{loc"
+ + "ation}/repositories/{repository}\"\204\001\n\027Lis"
+ + "tRepositoriesRequest\022B\n\006parent\030\001 \001(\tB2\340A"
+ + "\002\372A,\022*artifactregistry.googleapis.com/Re"
+ + "pository\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke"
+ + "n\030\003 \001(\t\"z\n\030ListRepositoriesResponse\022E\n\014r"
+ + "epositories\030\001 \003(\0132/.google.devtools.arti"
+ + "factregistry.v1.Repository\022\027\n\017next_page_"
+ + "token\030\002 \001(\t\"X\n\024GetRepositoryRequest\022@\n\004n"
+ + "ame\030\001 \001(\tB2\340A\002\372A,\022*artifactregistry.goog"
+ + "leapis.com/RepositoryB\375\001\n\'com.google.dev"
+ + "tools.artifactregistry.v1B\017RepositoryPro"
+ + "toP\001ZSgoogle.golang.org/genproto/googlea"
+ + "pis/devtools/artifactregistry/v1;artifac"
+ + "tregistry\252\002 Google.Cloud.ArtifactRegistr"
+ + "y.V1\312\002 Google\\Cloud\\ArtifactRegistry\\V1\352"
+ + "\002#Google::Cloud::ArtifactRegistry::V1b\006p"
+ + "roto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ com.google.api.AnnotationsProto.getDescriptor(),
+ });
+ internal_static_google_devtools_artifactregistry_v1_Repository_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_devtools_artifactregistry_v1_Repository_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_devtools_artifactregistry_v1_Repository_descriptor,
+ new java.lang.String[] {
+ "Name", "Format", "Description", "Labels", "CreateTime", "UpdateTime", "KmsKeyName",
+ });
+ internal_static_google_devtools_artifactregistry_v1_Repository_LabelsEntry_descriptor =
+ internal_static_google_devtools_artifactregistry_v1_Repository_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_devtools_artifactregistry_v1_Repository_LabelsEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_devtools_artifactregistry_v1_Repository_LabelsEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_devtools_artifactregistry_v1_ListRepositoriesRequest_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_devtools_artifactregistry_v1_ListRepositoriesRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_devtools_artifactregistry_v1_ListRepositoriesRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "PageSize", "PageToken",
+ });
+ internal_static_google_devtools_artifactregistry_v1_ListRepositoriesResponse_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_devtools_artifactregistry_v1_ListRepositoriesResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_devtools_artifactregistry_v1_ListRepositoriesResponse_descriptor,
+ new java.lang.String[] {
+ "Repositories", "NextPageToken",
+ });
+ internal_static_google_devtools_artifactregistry_v1_GetRepositoryRequest_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_devtools_artifactregistry_v1_GetRepositoryRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_devtools_artifactregistry_v1_GetRepositoryRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceReference);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ com.google.protobuf.TimestampProto.getDescriptor();
+ com.google.api.AnnotationsProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ServiceProto.java b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ServiceProto.java
new file mode 100644
index 00000000..924e861a
--- /dev/null
+++ b/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ServiceProto.java
@@ -0,0 +1,99 @@
+/*
+ * 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/artifactregistry/v1/service.proto
+
+package com.google.devtools.artifactregistry.v1;
+
+public final class ServiceProto {
+ private ServiceProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n1google/devtools/artifactregistry/v1/se"
+ + "rvice.proto\022#google.devtools.artifactreg"
+ + "istry.v1\032\034google/api/annotations.proto\032\027"
+ + "google/api/client.proto\0322google/devtools"
+ + "/artifactregistry/v1/artifact.proto\0324goo"
+ + "gle/devtools/artifactregistry/v1/reposit"
+ + "ory.proto\032\032google/iam/v1/policy.proto2\231\006"
+ + "\n\020ArtifactRegistry\022\341\001\n\020ListDockerImages\022"
+ + "<.google.devtools.artifactregistry.v1.Li"
+ + "stDockerImagesRequest\032=.google.devtools."
+ + "artifactregistry.v1.ListDockerImagesResp"
+ + "onse\"P\202\323\344\223\002A\022?/v1/{parent=projects/*/loc"
+ + "ations/*/repositories/*}/dockerImages\332A\006"
+ + "parent\022\322\001\n\020ListRepositories\022<.google.dev"
+ + "tools.artifactregistry.v1.ListRepositori"
+ + "esRequest\032=.google.devtools.artifactregi"
+ + "stry.v1.ListRepositoriesResponse\"A\202\323\344\223\0022"
+ + "\0220/v1/{parent=projects/*/locations/*}/re"
+ + "positories\332A\006parent\022\274\001\n\rGetRepository\0229."
+ + "google.devtools.artifactregistry.v1.GetR"
+ + "epositoryRequest\032/.google.devtools.artif"
+ + "actregistry.v1.Repository\"?\202\323\344\223\0022\0220/v1/{"
+ + "name=projects/*/locations/*/repositories"
+ + "/*}\332A\004name\032\214\001\312A\037artifactregistry.googlea"
+ + "pis.com\322Aghttps://www.googleapis.com/aut"
+ + "h/cloud-platform,https://www.googleapis."
+ + "com/auth/cloud-platform.read-onlyB\372\001\n\'co"
+ + "m.google.devtools.artifactregistry.v1B\014S"
+ + "erviceProtoP\001ZSgoogle.golang.org/genprot"
+ + "o/googleapis/devtools/artifactregistry/v"
+ + "1;artifactregistry\252\002 Google.Cloud.Artifa"
+ + "ctRegistry.V1\312\002 Google\\Cloud\\ArtifactReg"
+ + "istry\\V1\352\002#Google::Cloud::ArtifactRegist"
+ + "ry::V1b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.api.ClientProto.getDescriptor(),
+ com.google.devtools.artifactregistry.v1.ArtifactProto.getDescriptor(),
+ com.google.devtools.artifactregistry.v1.RepositoryProto.getDescriptor(),
+ com.google.iam.v1.PolicyProto.getDescriptor(),
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.ClientProto.defaultHost);
+ registry.add(com.google.api.AnnotationsProto.http);
+ registry.add(com.google.api.ClientProto.methodSignature);
+ registry.add(com.google.api.ClientProto.oauthScopes);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.AnnotationsProto.getDescriptor();
+ com.google.api.ClientProto.getDescriptor();
+ com.google.devtools.artifactregistry.v1.ArtifactProto.getDescriptor();
+ com.google.devtools.artifactregistry.v1.RepositoryProto.getDescriptor();
+ com.google.iam.v1.PolicyProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto b/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto
new file mode 100644
index 00000000..9adc076e
--- /dev/null
+++ b/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto
@@ -0,0 +1,106 @@
+// Copyright 2021 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
+//
+// http://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.
+
+syntax = "proto3";
+
+package google.devtools.artifactregistry.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+import "google/api/annotations.proto";
+
+option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1";
+option go_package = "google.golang.org/genproto/googleapis/devtools/artifactregistry/v1;artifactregistry";
+option java_multiple_files = true;
+option java_outer_classname = "ArtifactProto";
+option java_package = "com.google.devtools.artifactregistry.v1";
+option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1";
+option ruby_package = "Google::Cloud::ArtifactRegistry::V1";
+
+// DockerImage represents a docker artifact.
+// The following fields are returned as untyped metadata in the Version
+// resource, using camelcase keys (i.e. metadata.imageSizeBytes):
+// - imageSizeBytes
+// - mediaType
+// - buildTime
+message DockerImage {
+ option (google.api.resource) = {
+ type: "artifactregistry.googleapis.com/DockerImage"
+ pattern: "projects/{project}/locations/{location}/repositories/{repository}/dockerImages/{docker_image}"
+ };
+
+ // Required. registry_location, project_id, repository_name and image id forms a unique
+ // image
+ // name:`projects/