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

Commit

Permalink
chore(ruby): Re-enable bigquery-storage-v1 generation, which also req…
Browse files Browse the repository at this point in the history
…uired updating protobuf from 3.15.3 to 3.18.1 for codegen (#172)

- [x] Regenerate this pull request now.

PiperOrigin-RevId: 403132955

Source-Link: googleapis/googleapis@d2977af

Source-Link: googleapis/googleapis-gen@99bb13c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTliYjEzYzgxM2MwZTljMjY4MmQwM2E4YjNjM2JjYjM4MmE5MDljOSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Oct 19, 2021
1 parent 7991c2a commit 99f4213
Show file tree
Hide file tree
Showing 38 changed files with 116 additions and 116 deletions.
Expand Up @@ -55,7 +55,7 @@
*
* <pre>{@code
* try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
* LocationName name = LocationName.of("[PROJECT]", "[LOCATION]");
* RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
* Repository response = artifactRegistryClient.getRepository(name);
* }
* }</pre>
Expand Down Expand Up @@ -424,15 +424,15 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ
*
* <pre>{@code
* try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
* LocationName name = LocationName.of("[PROJECT]", "[LOCATION]");
* RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
* Repository response = artifactRegistryClient.getRepository(name);
* }
* }</pre>
*
* @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) {
public final Repository getRepository(RepositoryName name) {
GetRepositoryRequest request =
GetRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return getRepository(request);
Expand Down
Expand Up @@ -40,7 +40,7 @@
*
* <pre>{@code
* try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
* LocationName name = LocationName.of("[PROJECT]", "[LOCATION]");
* RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
* Repository response = artifactRegistryClient.getRepository(name);
* }
* }</pre>
Expand Down
Expand Up @@ -226,7 +226,7 @@ public void getRepositoryTest() throws Exception {
.build();
mockArtifactRegistry.addResponse(expectedResponse);

LocationName name = LocationName.of("[PROJECT]", "[LOCATION]");
RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");

Repository actualResponse = client.getRepository(name);
Assert.assertEquals(expectedResponse, actualResponse);
Expand All @@ -248,7 +248,7 @@ public void getRepositoryExceptionTest() throws Exception {
mockArtifactRegistry.addException(exception);

try {
LocationName name = LocationName.of("[PROJECT]", "[LOCATION]");
RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
client.getRepository(name);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
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 @@ -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 @@ -83,7 +83,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "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"
+ "ame\030\001 \001(\tB2\340A\002\372A,\n*artifactregistry.goog"
+ "leapis.com/RepositoryB\375\001\n\'com.google.dev"
+ "tools.artifactregistry.v1B\017RepositoryPro"
+ "toP\001ZSgoogle.golang.org/genproto/googlea"
Expand Down
Expand Up @@ -123,7 +123,7 @@ message GetRepositoryRequest {
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
child_type: "artifactregistry.googleapis.com/Repository"
type: "artifactregistry.googleapis.com/Repository"
}
];
}
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
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 99f4213

Please sign in to comment.