Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
chore: update Java and Python dependencies (#183)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 408420890

Source-Link: googleapis/googleapis@2921f9f

Source-Link: googleapis/googleapis-gen@6598ca8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjU5OGNhOGNiYmY1MjI2NzMzYTA5OWM0NTA2NTE4YTVhZjZmZjc0YyJ9
  • Loading branch information
gcf-owl-bot[bot] committed Nov 10, 2021
1 parent 4768009 commit 5f09d12
Show file tree
Hide file tree
Showing 37 changed files with 123 additions and 121 deletions.
Expand Up @@ -310,7 +310,7 @@ public final ListRepositoriesPagedResponse listRepositories(LocationName parent)
*
* <pre>{@code
* try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
* String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (Repository element : artifactRegistryClient.listRepositories(parent).iterateAll()) {
* // doThingsWith(element);
* }
Expand All @@ -336,7 +336,7 @@ public final ListRepositoriesPagedResponse listRepositories(String parent) {
* try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
* ListRepositoriesRequest request =
* ListRepositoriesRequest.newBuilder()
* .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand All @@ -363,7 +363,7 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ
* try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
* ListRepositoriesRequest request =
* ListRepositoriesRequest.newBuilder()
* .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand Down Expand Up @@ -391,7 +391,7 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ
* try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
* ListRepositoriesRequest request =
* ListRepositoriesRequest.newBuilder()
* .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand Down
Expand Up @@ -36,6 +36,7 @@
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/devtools/artifactregistry/v1/service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ArtifactRegistryGrpc {

private ArtifactRegistryGrpc() {}
Expand Down
Expand Up @@ -36,6 +36,7 @@
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/devtools/artifactregistry/v1beta2/service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ArtifactRegistryGrpc {

private ArtifactRegistryGrpc() {}
Expand Down
Expand Up @@ -25,9 +25,9 @@
* 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
* * imageSizeBytes
* * mediaType
* * buildTime
* </pre>
*
* Protobuf type {@code google.devtools.artifactregistry.v1.DockerImage}
Expand Down Expand Up @@ -556,10 +556,10 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getUriBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
}
for (int i = 0; i < tags_.size(); i++) {
Expand All @@ -571,7 +571,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (uploadTime_ != null) {
output.writeMessage(5, getUploadTime());
}
if (!getMediaTypeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mediaType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, mediaType_);
}
if (buildTime_ != null) {
Expand All @@ -586,10 +586,10 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getUriBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
}
{
Expand All @@ -606,7 +606,7 @@ public int getSerializedSize() {
if (uploadTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUploadTime());
}
if (!getMediaTypeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mediaType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, mediaType_);
}
if (buildTime_ != null) {
Expand Down Expand Up @@ -779,9 +779,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* 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
* * imageSizeBytes
* * mediaType
* * buildTime
* </pre>
*
* Protobuf type {@code google.devtools.artifactregistry.v1.DockerImage}
Expand Down
Expand Up @@ -178,7 +178,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
Expand All @@ -190,7 +190,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -254,13 +254,13 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
if (pageSize_ != 0) {
output.writeInt32(2, pageSize_);
}
if (!getPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
unknownFields.writeTo(output);
Expand All @@ -272,13 +272,13 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
}
if (!getPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -267,7 +267,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < dockerImages_.size(); i++) {
output.writeMessage(1, dockerImages_.get(i));
}
if (!getNextPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
Expand All @@ -282,7 +282,7 @@ public int getSerializedSize() {
for (int i = 0; i < dockerImages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dockerImages_.get(i));
}
if (!getNextPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -258,13 +258,13 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
if (pageSize_ != 0) {
output.writeInt32(2, pageSize_);
}
if (!getPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
unknownFields.writeTo(output);
Expand All @@ -276,13 +276,13 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
}
if (!getPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -267,7 +267,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < repositories_.size(); i++) {
output.writeMessage(1, repositories_.get(i));
}
if (!getNextPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
Expand All @@ -282,7 +282,7 @@ public int getSerializedSize() {
for (int i = 0; i < repositories_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, repositories_.get(i));
}
if (!getNextPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -850,15 +850,15 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
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()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
Expand All @@ -869,7 +869,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (updateTime_ != null) {
output.writeMessage(6, getUpdateTime());
}
if (!getKmsKeyNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, kmsKeyName_);
}
unknownFields.writeTo(output);
Expand All @@ -881,15 +881,15 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
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()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
Expand All @@ -908,7 +908,7 @@ public int getSerializedSize() {
if (updateTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime());
}
if (!getKmsKeyNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, kmsKeyName_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -32,9 +32,9 @@ 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
// * imageSizeBytes
// * mediaType
// * buildTime
message DockerImage {
option (google.api.resource) = {
type: "artifactregistry.googleapis.com/DockerImage"
Expand Down
Expand Up @@ -296,10 +296,10 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
if (!getRepositoryIdBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, repositoryId_);
}
if (repository_ != null) {
Expand All @@ -314,10 +314,10 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
if (!getRepositoryIdBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, repositoryId_);
}
if (repository_ != null) {
Expand Down
Expand Up @@ -295,10 +295,10 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
if (!getTagIdBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagId_);
}
if (tag_ != null) {
Expand All @@ -313,10 +313,10 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
if (!getTagIdBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagId_);
}
if (tag_ != null) {
Expand Down
Expand Up @@ -174,7 +174,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
Expand All @@ -186,7 +186,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -174,7 +174,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
Expand All @@ -186,7 +186,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
Expand Down

0 comments on commit 5f09d12

Please sign in to comment.