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 (#123)

- [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 ba23c65 commit 8a9fc06
Show file tree
Hide file tree
Showing 42 changed files with 134 additions and 130 deletions.
Expand Up @@ -267,7 +267,9 @@ public static List<String> getDefaultServiceScopes() {

/** Returns a builder for the default credentials for this service. */
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
return GoogleCredentialsProvider.newBuilder()
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
.setUseJwtAccessWithScope(true);
}

/** Returns a builder for the default ChannelProvider for this service. */
Expand Down
Expand Up @@ -708,7 +708,9 @@ public static List<String> getDefaultServiceScopes() {

/** Returns a builder for the default credentials for this service. */
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
return GoogleCredentialsProvider.newBuilder()
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
.setUseJwtAccessWithScope(true);
}

/** Returns a builder for the default ChannelProvider for this service. */
Expand Down
Expand Up @@ -284,7 +284,7 @@ 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_);
}
for (int i = 0; i < serviceIds_.size(); i++) {
Expand All @@ -299,7 +299,7 @@ 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_);
}
{
Expand Down
Expand Up @@ -409,10 +409,10 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getServiceIdBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceId_);
}
if (!getErrorMessageBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_);
}
unknownFields.writeTo(output);
Expand All @@ -424,10 +424,10 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getServiceIdBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceId_);
}
if (!getErrorMessageBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -274,7 +274,7 @@ 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_);
}
for (int i = 0; i < names_.size(); i++) {
Expand All @@ -289,7 +289,7 @@ 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_);
}
{
Expand Down
Expand Up @@ -428,7 +428,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_);
}
if (disableDependentServices_ != false) {
Expand All @@ -449,7 +449,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_);
}
if (disableDependentServices_ != false) {
Expand Down
Expand Up @@ -188,7 +188,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 @@ -200,7 +200,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 @@ -180,7 +180,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 @@ -192,7 +192,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 @@ -321,16 +321,16 @@ 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_);
}
if (!getFilterBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_);
}
unknownFields.writeTo(output);
Expand All @@ -342,16 +342,16 @@ 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_);
}
if (!getFilterBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -264,7 +264,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < services_.size(); i++) {
output.writeMessage(1, services_.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 @@ -279,7 +279,7 @@ public int getSerializedSize() {
for (int i = 0; i < services_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, services_.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 @@ -356,7 +356,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_);
}
if (config_ != null) {
Expand All @@ -365,7 +365,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (state_ != com.google.api.serviceusage.v1.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(4, state_);
}
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_);
}
unknownFields.writeTo(output);
Expand All @@ -377,7 +377,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_);
}
if (config_ != null) {
Expand All @@ -386,7 +386,7 @@ public int getSerializedSize() {
if (state_ != com.google.api.serviceusage.v1.State.STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_);
}
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -813,10 +813,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 (!getTitleBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_);
}
for (int i = 0; i < apis_.size(); i++) {
Expand Down Expand Up @@ -852,10 +852,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 (!getTitleBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
}
for (int i = 0; i < apis_.size(); i++) {
Expand Down
Expand Up @@ -547,21 +547,21 @@ 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 (policyValue_ != 0L) {
output.writeInt64(2, policyValue_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetDimensions(), DimensionsDefaultEntryHolder.defaultEntry, 3);
if (!getMetricBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, metric_);
}
if (!getUnitBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, unit_);
}
if (!getContainerBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(container_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, container_);
}
unknownFields.writeTo(output);
Expand All @@ -573,7 +573,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_);
}
if (policyValue_ != 0L) {
Expand All @@ -589,13 +589,13 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, dimensions__);
}
if (!getMetricBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, metric_);
}
if (!getUnitBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, unit_);
}
if (!getContainerBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(container_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, container_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -294,7 +294,7 @@ 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_);
}
for (int i = 0; i < serviceIds_.size(); i++) {
Expand All @@ -309,7 +309,7 @@ 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_);
}
{
Expand Down
Expand Up @@ -451,10 +451,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 (!getUnitBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unit_);
}
if (isPrecise_ != false) {
Expand All @@ -463,7 +463,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (allowsAdminOverrides_ != false) {
output.writeBool(7, allowsAdminOverrides_);
}
if (!getMetricBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, metric_);
}
for (int i = 0; i < quotaBuckets_.size(); i++) {
Expand All @@ -478,10 +478,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 (!getUnitBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unit_);
}
if (isPrecise_ != false) {
Expand All @@ -490,7 +490,7 @@ public int getSerializedSize() {
if (allowsAdminOverrides_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, allowsAdminOverrides_);
}
if (!getMetricBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, metric_);
}
for (int i = 0; i < quotaBuckets_.size(); i++) {
Expand Down

0 comments on commit 8a9fc06

Please sign in to comment.