diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClient.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClient.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClient.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClient.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceSettings.java similarity index 99% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceSettings.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceSettings.java index 1dc5eb55e893..128602d89417 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceSettings.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.protobuf.Empty; diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClient.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClient.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClient.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClient.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceSettings.java similarity index 99% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceSettings.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceSettings.java index b05fe6b30735..4387ecb52bda 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceSettings.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.protobuf.Empty; diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/gapic_metadata.json b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/gapic_metadata.json rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/gapic_metadata.json diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/package-info.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/package-info.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/package-info.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/package-info.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcLocalInventoryServiceCallableFactory.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcLocalInventoryServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcLocalInventoryServiceCallableFactory.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcLocalInventoryServiceCallableFactory.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcLocalInventoryServiceStub.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcLocalInventoryServiceStub.java similarity index 99% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcLocalInventoryServiceStub.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcLocalInventoryServiceStub.java index f3d4616b86d9..e7ce7fc3a527 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcLocalInventoryServiceStub.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcLocalInventoryServiceStub.java @@ -36,7 +36,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcRegionalInventoryServiceCallableFactory.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcRegionalInventoryServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcRegionalInventoryServiceCallableFactory.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcRegionalInventoryServiceCallableFactory.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcRegionalInventoryServiceStub.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcRegionalInventoryServiceStub.java similarity index 99% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcRegionalInventoryServiceStub.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcRegionalInventoryServiceStub.java index d6066dfb81ae..998717f893b6 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcRegionalInventoryServiceStub.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/GrpcRegionalInventoryServiceStub.java @@ -36,7 +36,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonLocalInventoryServiceCallableFactory.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonLocalInventoryServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonLocalInventoryServiceCallableFactory.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonLocalInventoryServiceCallableFactory.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonLocalInventoryServiceStub.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonLocalInventoryServiceStub.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonLocalInventoryServiceStub.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonLocalInventoryServiceStub.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonRegionalInventoryServiceCallableFactory.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonRegionalInventoryServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonRegionalInventoryServiceCallableFactory.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonRegionalInventoryServiceCallableFactory.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonRegionalInventoryServiceStub.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonRegionalInventoryServiceStub.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonRegionalInventoryServiceStub.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/HttpJsonRegionalInventoryServiceStub.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStub.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStub.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStub.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStub.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStub.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStub.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStub.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStub.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1beta/reflect-config.json b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1beta/reflect-config.json similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1beta/reflect-config.json rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1beta/reflect-config.json diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClientHttpJsonTest.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClientHttpJsonTest.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClientTest.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClientTest.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClientTest.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockLocalInventoryService.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockLocalInventoryService.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockLocalInventoryService.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockLocalInventoryService.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockLocalInventoryServiceImpl.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockLocalInventoryServiceImpl.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockLocalInventoryServiceImpl.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockLocalInventoryServiceImpl.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockRegionalInventoryService.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockRegionalInventoryService.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockRegionalInventoryService.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockRegionalInventoryService.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockRegionalInventoryServiceImpl.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockRegionalInventoryServiceImpl.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockRegionalInventoryServiceImpl.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/MockRegionalInventoryServiceImpl.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClientHttpJsonTest.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClientHttpJsonTest.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClientTest.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClientTest.java rename to java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/test/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClientTest.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceGrpc.java b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceGrpc.java similarity index 50% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceGrpc.java rename to java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceGrpc.java index 53baa09639a3..5c54cd4168cd 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceGrpc.java +++ b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 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.shopping.merchant.inventories.v1beta; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
* Service to manage local inventory for products *@@ -15,147 +32,211 @@ public final class LocalInventoryServiceGrpc { private LocalInventoryServiceGrpc() {} - public static final java.lang.String SERVICE_NAME = "google.shopping.merchant.inventories.v1beta.LocalInventoryService"; + public static final java.lang.String SERVICE_NAME = + "google.shopping.merchant.inventories.v1beta.LocalInventoryService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor
* Service to manage local inventory for products *@@ -163,6 +244,8 @@ public LocalInventoryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc. public interface AsyncService { /** + * + * *
* Lists the `LocalInventory` resources for the given product in your merchant * account. The response might contain fewer items than specified by @@ -171,12 +254,18 @@ public interface AsyncService { * `LocalInventory` resources are listed per product for a given account. **/ - default void listLocalInventories(com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest request, - io.grpc.stub.StreamObserver
* Inserts a `LocalInventory` resource to a product in your merchant * account. @@ -187,12 +276,17 @@ default void listLocalInventories(com.google.shopping.merchant.inventories.v1bet * resource to appear in products. **/ - default void insertLocalInventory(com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest request, - io.grpc.stub.StreamObserver
* Deletes the specified `LocalInventory` from the given product in your * merchant account. It might take a up to an hour for the @@ -201,36 +295,40 @@ default void insertLocalInventory(com.google.shopping.merchant.inventories.v1bet * period before attempting a delete again. **/ - default void deleteLocalInventory(com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest request, + default void deleteLocalInventory( + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest request, io.grpc.stub.StreamObserver
* Service to manage local inventory for products **/ - public static abstract class LocalInventoryServiceImplBase + public abstract static class LocalInventoryServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return LocalInventoryServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service LocalInventoryService. + * *
* Service to manage local inventory for products **/ public static final class LocalInventoryServiceStub extends io.grpc.stub.AbstractAsyncStub
* Lists the `LocalInventory` resources for the given product in your merchant * account. The response might contain fewer items than specified by @@ -249,13 +349,20 @@ protected LocalInventoryServiceStub build( * `LocalInventory` resources are listed per product for a given account. **/ - public void listLocalInventories(com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest request, - io.grpc.stub.StreamObserver
* Inserts a `LocalInventory` resource to a product in your merchant * account. @@ -266,13 +373,19 @@ public void listLocalInventories(com.google.shopping.merchant.inventories.v1beta * resource to appear in products. **/ - public void insertLocalInventory(com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest request, - io.grpc.stub.StreamObserver
* Deletes the specified `LocalInventory` from the given product in your * merchant account. It might take a up to an hour for the @@ -281,15 +394,19 @@ public void insertLocalInventory(com.google.shopping.merchant.inventories.v1beta * period before attempting a delete again. **/ - public void deleteLocalInventory(com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest request, + public void deleteLocalInventory( + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest request, io.grpc.stub.StreamObserver
* Service to manage local inventory for products *@@ -308,6 +425,8 @@ protected LocalInventoryServiceBlockingStub build( } /** + * + * *
* Lists the `LocalInventory` resources for the given product in your merchant * account. The response might contain fewer items than specified by @@ -316,12 +435,16 @@ protected LocalInventoryServiceBlockingStub build( * `LocalInventory` resources are listed per product for a given account. **/ - public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse listLocalInventories(com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest request) { + public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + listLocalInventories( + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLocalInventoriesMethod(), getCallOptions(), request); } /** + * + * *
* Inserts a `LocalInventory` resource to a product in your merchant * account. @@ -332,12 +455,15 @@ public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRespo * resource to appear in products. **/ - public com.google.shopping.merchant.inventories.v1beta.LocalInventory insertLocalInventory(com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest request) { + public com.google.shopping.merchant.inventories.v1beta.LocalInventory insertLocalInventory( + com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getInsertLocalInventoryMethod(), getCallOptions(), request); } /** + * + * *
* Deletes the specified `LocalInventory` from the given product in your * merchant account. It might take a up to an hour for the @@ -346,14 +472,17 @@ public com.google.shopping.merchant.inventories.v1beta.LocalInventory insertLoca * period before attempting a delete again. **/ - public com.google.protobuf.Empty deleteLocalInventory(com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest request) { + public com.google.protobuf.Empty deleteLocalInventory( + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteLocalInventoryMethod(), getCallOptions(), request); } } /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service LocalInventoryService. + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * LocalInventoryService. + * *
* Service to manage local inventory for products *@@ -372,6 +501,8 @@ protected LocalInventoryServiceFutureStub build( } /** + * + * *
* Lists the `LocalInventory` resources for the given product in your merchant * account. The response might contain fewer items than specified by @@ -380,13 +511,17 @@ protected LocalInventoryServiceFutureStub build( * `LocalInventory` resources are listed per product for a given account. **/ - public com.google.common.util.concurrent.ListenableFuture
* Inserts a `LocalInventory` resource to a product in your merchant * account. @@ -397,13 +532,17 @@ public com.google.common.util.concurrent.ListenableFuture* - **/ - public com.google.common.util.concurrent.ListenableFuture insertLocalInventory( - com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.shopping.merchant.inventories.v1beta.LocalInventory> + insertLocalInventory( + com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getInsertLocalInventoryMethod(), getCallOptions()), request); } /** + * + * * * Deletes the specified `LocalInventory` from the given product in your * merchant account. It might take a up to an hour for the @@ -412,8 +551,9 @@ public com.google.common.util.concurrent.ListenableFuture* - **/ - public com.google.common.util.concurrent.ListenableFuture deleteLocalInventory( - com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteLocalInventory( + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteLocalInventoryMethod(), getCallOptions()), request); } @@ -423,11 +563,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod , - io.grpc.stub.ServerCalls.ServerStreamingMethod , - io.grpc.stub.ServerCalls.ClientStreamingMethod , - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod , + io.grpc.stub.ServerCalls.ServerStreamingMethod , + io.grpc.stub.ServerCalls.ClientStreamingMethod , + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -441,15 +581,22 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_LOCAL_INVENTORIES: - serviceImpl.listLocalInventories((com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.listLocalInventories( + (com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse>) + responseObserver); break; case METHODID_INSERT_LOCAL_INVENTORY: - serviceImpl.insertLocalInventory((com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.insertLocalInventory( + (com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest) request, + (io.grpc.stub.StreamObserver< + com.google.shopping.merchant.inventories.v1beta.LocalInventory>) + responseObserver); break; case METHODID_DELETE_LOCAL_INVENTORY: - serviceImpl.deleteLocalInventory((com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest) request, + serviceImpl.deleteLocalInventory( + (com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest) request, (io.grpc.stub.StreamObserver ) responseObserver); break; default: @@ -471,31 +618,31 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListLocalInventoriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest, - com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse>( - service, METHODID_LIST_LOCAL_INVENTORIES))) + getListLocalInventoriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest, + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse>( + service, METHODID_LIST_LOCAL_INVENTORIES))) .addMethod( - getInsertLocalInventoryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest, - com.google.shopping.merchant.inventories.v1beta.LocalInventory>( - service, METHODID_INSERT_LOCAL_INVENTORY))) + getInsertLocalInventoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest, + com.google.shopping.merchant.inventories.v1beta.LocalInventory>( + service, METHODID_INSERT_LOCAL_INVENTORY))) .addMethod( - getDeleteLocalInventoryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_LOCAL_INVENTORY))) + getDeleteLocalInventoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_LOCAL_INVENTORY))) .build(); } - private static abstract class LocalInventoryServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class LocalInventoryServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { LocalInventoryServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -537,12 +684,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (LocalInventoryServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocalInventoryServiceFileDescriptorSupplier()) - .addMethod(getListLocalInventoriesMethod()) - .addMethod(getInsertLocalInventoryMethod()) - .addMethod(getDeleteLocalInventoryMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LocalInventoryServiceFileDescriptorSupplier()) + .addMethod(getListLocalInventoriesMethod()) + .addMethod(getInsertLocalInventoryMethod()) + .addMethod(getDeleteLocalInventoryMethod()) + .build(); } } } diff --git a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceGrpc.java b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceGrpc.java new file mode 100644 index 000000000000..f7fd4d453c18 --- /dev/null +++ b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceGrpc.java @@ -0,0 +1,728 @@ +/* + * Copyright 2023 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.shopping.merchant.inventories.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + * + * Service to manage regional inventory for products. There is also separate + * `regions` resource and API to manage regions definitions. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/shopping/merchant/inventories/v1beta/regionalinventory.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class RegionalInventoryServiceGrpc { + + private RegionalInventoryServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.shopping.merchant.inventories.v1beta.RegionalInventoryService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest, + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse> + getListRegionalInventoriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRegionalInventories", + requestType = + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest.class, + responseType = + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest, + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse> + getListRegionalInventoriesMethod() { + io.grpc.MethodDescriptor< + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest, + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse> + getListRegionalInventoriesMethod; + if ((getListRegionalInventoriesMethod = + RegionalInventoryServiceGrpc.getListRegionalInventoriesMethod) + == null) { + synchronized (RegionalInventoryServiceGrpc.class) { + if ((getListRegionalInventoriesMethod = + RegionalInventoryServiceGrpc.getListRegionalInventoriesMethod) + == null) { + RegionalInventoryServiceGrpc.getListRegionalInventoriesMethod = + getListRegionalInventoriesMethod = + io.grpc.MethodDescriptor + .+ newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListRegionalInventories")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.inventories.v1beta + .ListRegionalInventoriesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.inventories.v1beta + .ListRegionalInventoriesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new RegionalInventoryServiceMethodDescriptorSupplier( + "ListRegionalInventories")) + .build(); + } + } + } + return getListRegionalInventoriesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest, + com.google.shopping.merchant.inventories.v1beta.RegionalInventory> + getInsertRegionalInventoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "InsertRegionalInventory", + requestType = + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest.class, + responseType = com.google.shopping.merchant.inventories.v1beta.RegionalInventory.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest, + com.google.shopping.merchant.inventories.v1beta.RegionalInventory> + getInsertRegionalInventoryMethod() { + io.grpc.MethodDescriptor< + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest, + com.google.shopping.merchant.inventories.v1beta.RegionalInventory> + getInsertRegionalInventoryMethod; + if ((getInsertRegionalInventoryMethod = + RegionalInventoryServiceGrpc.getInsertRegionalInventoryMethod) + == null) { + synchronized (RegionalInventoryServiceGrpc.class) { + if ((getInsertRegionalInventoryMethod = + RegionalInventoryServiceGrpc.getInsertRegionalInventoryMethod) + == null) { + RegionalInventoryServiceGrpc.getInsertRegionalInventoryMethod = + getInsertRegionalInventoryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "InsertRegionalInventory")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.inventories.v1beta + .InsertRegionalInventoryRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.inventories.v1beta.RegionalInventory + .getDefaultInstance())) + .setSchemaDescriptor( + new RegionalInventoryServiceMethodDescriptorSupplier( + "InsertRegionalInventory")) + .build(); + } + } + } + return getInsertRegionalInventoryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest, + com.google.protobuf.Empty> + getDeleteRegionalInventoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRegionalInventory", + requestType = + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest, + com.google.protobuf.Empty> + getDeleteRegionalInventoryMethod() { + io.grpc.MethodDescriptor< + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest, + com.google.protobuf.Empty> + getDeleteRegionalInventoryMethod; + if ((getDeleteRegionalInventoryMethod = + RegionalInventoryServiceGrpc.getDeleteRegionalInventoryMethod) + == null) { + synchronized (RegionalInventoryServiceGrpc.class) { + if ((getDeleteRegionalInventoryMethod = + RegionalInventoryServiceGrpc.getDeleteRegionalInventoryMethod) + == null) { + RegionalInventoryServiceGrpc.getDeleteRegionalInventoryMethod = + getDeleteRegionalInventoryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteRegionalInventory")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.inventories.v1beta + .DeleteRegionalInventoryRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new RegionalInventoryServiceMethodDescriptorSupplier( + "DeleteRegionalInventory")) + .build(); + } + } + } + return getDeleteRegionalInventoryMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static RegionalInventoryServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public RegionalInventoryServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RegionalInventoryServiceStub(channel, callOptions); + } + }; + return RegionalInventoryServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static RegionalInventoryServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public RegionalInventoryServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RegionalInventoryServiceBlockingStub(channel, callOptions); + } + }; + return RegionalInventoryServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static RegionalInventoryServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public RegionalInventoryServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RegionalInventoryServiceFutureStub(channel, callOptions); + } + }; + return RegionalInventoryServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + * + * Service to manage regional inventory for products. There is also separate + * `regions` resource and API to manage regions definitions. + *+ */ + public interface AsyncService { + + /** + * + * + *+ * Lists the `RegionalInventory` resources for the given product in your + * merchant account. The response might contain fewer items than specified by + * `pageSize`. If `pageToken` was returned in previous request, it can be + * used to obtain additional results. + * `RegionalInventory` resources are listed per product for a given account. + *+ */ + default void listRegionalInventories( + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest request, + io.grpc.stub.StreamObserver< + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRegionalInventoriesMethod(), responseObserver); + } + + /** + * + * + *+ * Inserts a `RegionalInventory` to a given product in your + * merchant account. + * Replaces the full `RegionalInventory` resource if an entry with the same + * [`region`][google.shopping.merchant.inventories.v1beta.RegionalInventory.region] + * already exists for the product. + * It might take up to 30 minutes for the new or updated `RegionalInventory` + * resource to appear in products. + *+ */ + default void insertRegionalInventory( + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest request, + io.grpc.stub.StreamObserver< + com.google.shopping.merchant.inventories.v1beta.RegionalInventory> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getInsertRegionalInventoryMethod(), responseObserver); + } + + /** + * + * + *+ * Deletes the specified `RegionalInventory` resource from the given product + * in your merchant account. It might take up to an hour for the + * `RegionalInventory` to be deleted from the specific product. + * Once you have received a successful delete response, wait for that + * period before attempting a delete again. + *+ */ + default void deleteRegionalInventory( + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRegionalInventoryMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service RegionalInventoryService. + * + * + * Service to manage regional inventory for products. There is also separate + * `regions` resource and API to manage regions definitions. + *+ */ + public abstract static class RegionalInventoryServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return RegionalInventoryServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service RegionalInventoryService. + * + *+ * Service to manage regional inventory for products. There is also separate + * `regions` resource and API to manage regions definitions. + *+ */ + public static final class RegionalInventoryServiceStub + extends io.grpc.stub.AbstractAsyncStub{ + private RegionalInventoryServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RegionalInventoryServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RegionalInventoryServiceStub(channel, callOptions); + } + + /** + * + * + * + * Lists the `RegionalInventory` resources for the given product in your + * merchant account. The response might contain fewer items than specified by + * `pageSize`. If `pageToken` was returned in previous request, it can be + * used to obtain additional results. + * `RegionalInventory` resources are listed per product for a given account. + *+ */ + public void listRegionalInventories( + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest request, + io.grpc.stub.StreamObserver< + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRegionalInventoriesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *+ * Inserts a `RegionalInventory` to a given product in your + * merchant account. + * Replaces the full `RegionalInventory` resource if an entry with the same + * [`region`][google.shopping.merchant.inventories.v1beta.RegionalInventory.region] + * already exists for the product. + * It might take up to 30 minutes for the new or updated `RegionalInventory` + * resource to appear in products. + *+ */ + public void insertRegionalInventory( + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest request, + io.grpc.stub.StreamObserver< + com.google.shopping.merchant.inventories.v1beta.RegionalInventory> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getInsertRegionalInventoryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *+ * Deletes the specified `RegionalInventory` resource from the given product + * in your merchant account. It might take up to an hour for the + * `RegionalInventory` to be deleted from the specific product. + * Once you have received a successful delete response, wait for that + * period before attempting a delete again. + *+ */ + public void deleteRegionalInventory( + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRegionalInventoryMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service RegionalInventoryService. + * + * + * Service to manage regional inventory for products. There is also separate + * `regions` resource and API to manage regions definitions. + *+ */ + public static final class RegionalInventoryServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub{ + private RegionalInventoryServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RegionalInventoryServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RegionalInventoryServiceBlockingStub(channel, callOptions); + } + + /** + * + * + * + * Lists the `RegionalInventory` resources for the given product in your + * merchant account. The response might contain fewer items than specified by + * `pageSize`. If `pageToken` was returned in previous request, it can be + * used to obtain additional results. + * `RegionalInventory` resources are listed per product for a given account. + *+ */ + public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + listRegionalInventories( + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRegionalInventoriesMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Inserts a `RegionalInventory` to a given product in your + * merchant account. + * Replaces the full `RegionalInventory` resource if an entry with the same + * [`region`][google.shopping.merchant.inventories.v1beta.RegionalInventory.region] + * already exists for the product. + * It might take up to 30 minutes for the new or updated `RegionalInventory` + * resource to appear in products. + *+ */ + public com.google.shopping.merchant.inventories.v1beta.RegionalInventory + insertRegionalInventory( + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getInsertRegionalInventoryMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Deletes the specified `RegionalInventory` resource from the given product + * in your merchant account. It might take up to an hour for the + * `RegionalInventory` to be deleted from the specific product. + * Once you have received a successful delete response, wait for that + * period before attempting a delete again. + *+ */ + public com.google.protobuf.Empty deleteRegionalInventory( + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRegionalInventoryMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * RegionalInventoryService. + * + *+ * Service to manage regional inventory for products. There is also separate + * `regions` resource and API to manage regions definitions. + *+ */ + public static final class RegionalInventoryServiceFutureStub + extends io.grpc.stub.AbstractFutureStub{ + private RegionalInventoryServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RegionalInventoryServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RegionalInventoryServiceFutureStub(channel, callOptions); + } + + /** + * + * + * + * Lists the `RegionalInventory` resources for the given product in your + * merchant account. The response might contain fewer items than specified by + * `pageSize`. If `pageToken` was returned in previous request, it can be + * used to obtain additional results. + * `RegionalInventory` resources are listed per product for a given account. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse> + listRegionalInventories( + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRegionalInventoriesMethod(), getCallOptions()), request); + } + + /** + * + * + *+ * Inserts a `RegionalInventory` to a given product in your + * merchant account. + * Replaces the full `RegionalInventory` resource if an entry with the same + * [`region`][google.shopping.merchant.inventories.v1beta.RegionalInventory.region] + * already exists for the product. + * It might take up to 30 minutes for the new or updated `RegionalInventory` + * resource to appear in products. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.shopping.merchant.inventories.v1beta.RegionalInventory> + insertRegionalInventory( + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getInsertRegionalInventoryMethod(), getCallOptions()), request); + } + + /** + * + * + *+ * Deletes the specified `RegionalInventory` resource from the given product + * in your merchant account. It might take up to an hour for the + * `RegionalInventory` to be deleted from the specific product. + * Once you have received a successful delete response, wait for that + * period before attempting a delete again. + *+ */ + public com.google.common.util.concurrent.ListenableFuture+ deleteRegionalInventory( + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRegionalInventoryMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_REGIONAL_INVENTORIES = 0; + private static final int METHODID_INSERT_REGIONAL_INVENTORY = 1; + private static final int METHODID_DELETE_REGIONAL_INVENTORY = 2; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod , + io.grpc.stub.ServerCalls.ServerStreamingMethod , + io.grpc.stub.ServerCalls.ClientStreamingMethod , + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_REGIONAL_INVENTORIES: + serviceImpl.listRegionalInventories( + (com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.shopping.merchant.inventories.v1beta + .ListRegionalInventoriesResponse>) + responseObserver); + break; + case METHODID_INSERT_REGIONAL_INVENTORY: + serviceImpl.insertRegionalInventory( + (com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.shopping.merchant.inventories.v1beta.RegionalInventory>) + responseObserver); + break; + case METHODID_DELETE_REGIONAL_INVENTORY: + serviceImpl.deleteRegionalInventory( + (com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest) + request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListRegionalInventoriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest, + com.google.shopping.merchant.inventories.v1beta + .ListRegionalInventoriesResponse>( + service, METHODID_LIST_REGIONAL_INVENTORIES))) + .addMethod( + getInsertRegionalInventoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest, + com.google.shopping.merchant.inventories.v1beta.RegionalInventory>( + service, METHODID_INSERT_REGIONAL_INVENTORY))) + .addMethod( + getDeleteRegionalInventoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_REGIONAL_INVENTORY))) + .build(); + } + + private abstract static class RegionalInventoryServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + RegionalInventoryServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("RegionalInventoryService"); + } + } + + private static final class RegionalInventoryServiceFileDescriptorSupplier + extends RegionalInventoryServiceBaseDescriptorSupplier { + RegionalInventoryServiceFileDescriptorSupplier() {} + } + + private static final class RegionalInventoryServiceMethodDescriptorSupplier + extends RegionalInventoryServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + RegionalInventoryServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (RegionalInventoryServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new RegionalInventoryServiceFileDescriptorSupplier()) + .addMethod(getListRegionalInventoriesMethod()) + .addMethod(getInsertRegionalInventoryMethod()) + .addMethod(getDeleteRegionalInventoryMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteLocalInventoryRequest.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteLocalInventoryRequest.java similarity index 53% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteLocalInventoryRequest.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteLocalInventoryRequest.java index ee98b0e0076f..694d9061f376 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteLocalInventoryRequest.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteLocalInventoryRequest.java @@ -1,59 +1,85 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/localinventory.proto package com.google.shopping.merchant.inventories.v1beta; /** + * + * * * Request message for the `DeleteLocalInventory` method. ** * Protobuf type {@code google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest} */ -public final class DeleteLocalInventoryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteLocalInventoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest) DeleteLocalInventoryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteLocalInventoryRequest.newBuilder() to construct. private DeleteLocalInventoryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private DeleteLocalInventoryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteLocalInventoryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_DeleteLocalInventoryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_DeleteLocalInventoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_DeleteLocalInventoryRequest_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_DeleteLocalInventoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest.class, com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest.Builder.class); + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest.class, + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest.Builder + .class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * ** Required. The name of the local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` ** - *string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * * @return The name. */ @java.lang.Override @@ -62,31 +88,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` ** - *string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +159,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest)) { + if (!(obj + instanceof com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest)) { return super.equals(obj); } - com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest other = (com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest) obj; + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest other = + (com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,132 +187,145 @@ public int hashCode() { return hash; } - public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + 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.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest 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.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + 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.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest 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.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + 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.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest prototype) { + + public static Builder newBuilder( + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * ** Request message for the `DeleteLocalInventory` method. ** * Protobuf type {@code google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest) com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_DeleteLocalInventoryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_DeleteLocalInventoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_DeleteLocalInventoryRequest_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_DeleteLocalInventoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest.class, com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest.Builder.class); + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest.class, + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest.Builder + .class); } - // Construct using com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest.newBuilder() - private Builder() { + // Construct using + // com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,19 +335,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_DeleteLocalInventoryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_DeleteLocalInventoryRequest_descriptor; } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest getDefaultInstanceForType() { - return com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest.getDefaultInstance(); + public com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + .getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest build() { - com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest result = buildPartial(); + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -313,14 +358,19 @@ public com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryReque } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest buildPartial() { - com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest result = new com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + buildPartial() { + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest result = + new com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest result) { + private void buildPartial0( + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -331,46 +381,52 @@ private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.Delet public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest) { - return mergeFrom((com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest)other); + if (other + instanceof com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest) { + return mergeFrom( + (com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest other) { - if (other == com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest other) { + if (other + == com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -402,17 +458,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +480,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * * * Required. The name of the local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` ** - *string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,22 +511,25 @@ public java.lang.String getName() { } } /** + * + * ** Required. The name of the local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` ** - *string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -471,32 +537,43 @@ public java.lang.String getName() { } } /** + * + * ** Required. The name of the local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` ** - *string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * 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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Required. The name of the local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` ** - *string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * * @return This builder for chaining. */ public Builder clearName() { @@ -506,28 +583,34 @@ public Builder clearName() { return this; } /** + * + * ** Required. The name of the local inventory for the given product to delete. * Format: * `accounts/{account}/products/{product}/localInventories/{store_code}` ** - *string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,41 +620,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest) - private static final com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest DEFAULT_INSTANCE; + private static final com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest(); + DEFAULT_INSTANCE = + new com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest(); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest getDefaultInstance() { + public static com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public DeleteLocalInventoryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public DeleteLocalInventoryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,9 +669,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest getDefaultInstanceForType() { + public com.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteLocalInventoryRequestOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteLocalInventoryRequestOrBuilder.java new file mode 100644 index 000000000000..debcfec144ba --- /dev/null +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteLocalInventoryRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/localinventory.proto + +package com.google.shopping.merchant.inventories.v1beta; + +public interface DeleteLocalInventoryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Required. The name of the local inventory for the given product to delete. + * Format: + * `accounts/{account}/products/{product}/localInventories/{store_code}` + *+ * + *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *+ * Required. The name of the local inventory for the given product to delete. + * Format: + * `accounts/{account}/products/{product}/localInventories/{store_code}` + *+ * + *+ * 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/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteRegionalInventoryRequest.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteRegionalInventoryRequest.java similarity index 52% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteRegionalInventoryRequest.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteRegionalInventoryRequest.java index 966a4bca332b..e6420c95aee0 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteRegionalInventoryRequest.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteRegionalInventoryRequest.java @@ -1,59 +1,86 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/regionalinventory.proto package com.google.shopping.merchant.inventories.v1beta; /** + * + * ** Request message for the `DeleteRegionalInventory` method. ** * Protobuf type {@code google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest} */ -public final class DeleteRegionalInventoryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteRegionalInventoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest) DeleteRegionalInventoryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteRegionalInventoryRequest.newBuilder() to construct. - private DeleteRegionalInventoryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + private DeleteRegionalInventoryRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private DeleteRegionalInventoryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteRegionalInventoryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_DeleteRegionalInventoryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_DeleteRegionalInventoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_DeleteRegionalInventoryRequest_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_DeleteRegionalInventoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest.class, com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest.Builder.class); + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest.class, + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest.Builder + .class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * ** Required. The name of the `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` ** - *string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * * @return The name. */ @java.lang.Override @@ -62,31 +89,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` ** - *string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -95,6 +124,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +136,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -131,15 +160,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest)) { + if (!(obj + instanceof + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest)) { return super.equals(obj); } - com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest other = (com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest) obj; + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest other = + (com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,132 +189,146 @@ public int hashCode() { return hash; } - public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + 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.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest 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.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + 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.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest 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.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + 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.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest prototype) { + + public static Builder newBuilder( + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * ** Request message for the `DeleteRegionalInventory` method. ** - * Protobuf type {@code google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest} + * Protobuf type {@code + * google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest) com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_DeleteRegionalInventoryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_DeleteRegionalInventoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_DeleteRegionalInventoryRequest_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_DeleteRegionalInventoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest.class, com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest.Builder.class); + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest.class, + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest.Builder + .class); } - // Construct using com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest.newBuilder() - private Builder() { + // Construct using + // com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,19 +338,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_DeleteRegionalInventoryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_DeleteRegionalInventoryRequest_descriptor; } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest getDefaultInstanceForType() { - return com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest.getDefaultInstance(); + public com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + .getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest build() { - com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest result = buildPartial(); + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -313,14 +361,19 @@ public com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRe } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest buildPartial() { - com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest result = new com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + buildPartial() { + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest result = + new com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest result) { + private void buildPartial0( + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -331,46 +384,53 @@ private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.Delet public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest) { - return mergeFrom((com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest)other); + if (other + instanceof + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest) { + return mergeFrom( + (com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest other) { - if (other == com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest other) { + if (other + == com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -402,17 +462,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +484,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * * * Required. The name of the `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` ** - *string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,22 +515,25 @@ public java.lang.String getName() { } } /** + * + * ** Required. The name of the `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` ** - *string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -471,32 +541,43 @@ public java.lang.String getName() { } } /** + * + * ** Required. The name of the `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` ** - *string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * 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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Required. The name of the `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` ** - *string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * * @return This builder for chaining. */ public Builder clearName() { @@ -506,28 +587,34 @@ public Builder clearName() { return this; } /** + * + * ** Required. The name of the `RegionalInventory` resource to delete. * Format: * `accounts/{account}/products/{product}/regionalInventories/{region}` ** - *string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,41 +624,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest) - private static final com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest DEFAULT_INSTANCE; + private static final com.google.shopping.merchant.inventories.v1beta + .DeleteRegionalInventoryRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest(); + DEFAULT_INSTANCE = + new com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest(); } - public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest getDefaultInstance() { + public static com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public DeleteRegionalInventoryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public DeleteRegionalInventoryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,9 +674,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest getDefaultInstanceForType() { + public com.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteRegionalInventoryRequestOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteRegionalInventoryRequestOrBuilder.java new file mode 100644 index 000000000000..3e0a16717e9f --- /dev/null +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/DeleteRegionalInventoryRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/regionalinventory.proto + +package com.google.shopping.merchant.inventories.v1beta; + +public interface DeleteRegionalInventoryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Required. The name of the `RegionalInventory` resource to delete. + * Format: + * `accounts/{account}/products/{product}/regionalInventories/{region}` + *+ * + *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *+ * Required. The name of the `RegionalInventory` resource to delete. + * Format: + * `accounts/{account}/products/{product}/regionalInventories/{region}` + *+ * + *+ * 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/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertLocalInventoryRequest.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertLocalInventoryRequest.java similarity index 58% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertLocalInventoryRequest.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertLocalInventoryRequest.java index 212821ebc5d5..ac2b3bfee675 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertLocalInventoryRequest.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertLocalInventoryRequest.java @@ -1,58 +1,82 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/localinventory.proto package com.google.shopping.merchant.inventories.v1beta; /** + * + * ** Request message for the `InsertLocalInventory` method. ** * Protobuf type {@code google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest} */ -public final class InsertLocalInventoryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InsertLocalInventoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest) InsertLocalInventoryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InsertLocalInventoryRequest.newBuilder() to construct. private InsertLocalInventoryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private InsertLocalInventoryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InsertLocalInventoryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_InsertLocalInventoryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_InsertLocalInventoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_InsertLocalInventoryRequest_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_InsertLocalInventoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest.class, com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest.Builder.class); + com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest.class, + com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest.Builder + .class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * ** Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The parent. */ @java.lang.Override @@ -61,30 +85,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * ** Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -95,13 +119,18 @@ public java.lang.String getParent() { public static final int LOCAL_INVENTORY_FIELD_NUMBER = 2; private com.google.shopping.merchant.inventories.v1beta.LocalInventory localInventory_; /** + * + * ** Required. Local inventory information of the product. If the product * already has a `LocalInventory` resource for the same `storeCode`, full * replacement of the `LocalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return Whether the localInventory field is set. */ @java.lang.Override @@ -109,34 +138,49 @@ public boolean hasLocalInventory() { return localInventory_ != null; } /** + * + * ** Required. Local inventory information of the product. If the product * already has a `LocalInventory` resource for the same `storeCode`, full * replacement of the `LocalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return The localInventory. */ @java.lang.Override public com.google.shopping.merchant.inventories.v1beta.LocalInventory getLocalInventory() { - return localInventory_ == null ? com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance() : localInventory_; + return localInventory_ == null + ? com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance() + : localInventory_; } /** + * + * ** Required. Local inventory information of the product. If the product * already has a `LocalInventory` resource for the same `storeCode`, full * replacement of the `LocalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder getLocalInventoryOrBuilder() { - return localInventory_ == null ? com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance() : localInventory_; + public com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder + getLocalInventoryOrBuilder() { + return localInventory_ == null + ? com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance() + : localInventory_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,8 +192,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -169,8 +212,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (localInventory_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLocalInventory()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLocalInventory()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -180,19 +222,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest)) { + if (!(obj + instanceof com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest)) { return super.equals(obj); } - com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest other = (com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest) obj; + com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest other = + (com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasLocalInventory() != other.hasLocalInventory()) return false; if (hasLocalInventory()) { - if (!getLocalInventory() - .equals(other.getLocalInventory())) return false; + if (!getLocalInventory().equals(other.getLocalInventory())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,132 +258,145 @@ public int hashCode() { return hash; } - public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + 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.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest 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.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + 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.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest 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.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + 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.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest prototype) { + + public static Builder newBuilder( + com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * ** Request message for the `InsertLocalInventory` method. ** * Protobuf type {@code google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest) com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_InsertLocalInventoryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_InsertLocalInventoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_InsertLocalInventoryRequest_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_InsertLocalInventoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest.class, com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest.Builder.class); + com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest.class, + com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest.Builder + .class); } - // Construct using com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -356,19 +411,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_InsertLocalInventoryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_InsertLocalInventoryRequest_descriptor; } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest getDefaultInstanceForType() { - return com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest.getDefaultInstance(); + public com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + .getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest build() { - com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest result = buildPartial(); + com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -376,22 +434,26 @@ public com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryReque } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest buildPartial() { - com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest result = new com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + buildPartial() { + com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest result = + new com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest result) { + private void buildPartial0( + com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.localInventory_ = localInventoryBuilder_ == null - ? localInventory_ - : localInventoryBuilder_.build(); + result.localInventory_ = + localInventoryBuilder_ == null ? localInventory_ : localInventoryBuilder_.build(); } } @@ -399,46 +461,52 @@ private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.Inser public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest) { - return mergeFrom((com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest)other); + if (other + instanceof com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest) { + return mergeFrom( + (com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest other) { - if (other == com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest other) { + if (other + == com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -473,24 +541,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getLocalInventoryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getLocalInventoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,23 +569,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * * * Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -525,21 +597,22 @@ public java.lang.String getParent() { } } /** + * + * ** Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -547,30 +620,37 @@ public java.lang.String getParent() { } } /** + * + * ** Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *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(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return This builder for chaining. */ public Builder clearParent() { @@ -580,18 +660,22 @@ public Builder clearParent() { return this; } /** + * + * ** Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *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(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -601,47 +685,67 @@ public Builder setParentBytes( private com.google.shopping.merchant.inventories.v1beta.LocalInventory localInventory_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.merchant.inventories.v1beta.LocalInventory, com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder, com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder> localInventoryBuilder_; + com.google.shopping.merchant.inventories.v1beta.LocalInventory, + com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder, + com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder> + localInventoryBuilder_; /** + * + * ** Required. Local inventory information of the product. If the product * already has a `LocalInventory` resource for the same `storeCode`, full * replacement of the `LocalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return Whether the localInventory field is set. */ public boolean hasLocalInventory() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * ** Required. Local inventory information of the product. If the product * already has a `LocalInventory` resource for the same `storeCode`, full * replacement of the `LocalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return The localInventory. */ public com.google.shopping.merchant.inventories.v1beta.LocalInventory getLocalInventory() { if (localInventoryBuilder_ == null) { - return localInventory_ == null ? com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance() : localInventory_; + return localInventory_ == null + ? com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance() + : localInventory_; } else { return localInventoryBuilder_.getMessage(); } } /** + * + * ** Required. Local inventory information of the product. If the product * already has a `LocalInventory` resource for the same `storeCode`, full * replacement of the `LocalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ - public Builder setLocalInventory(com.google.shopping.merchant.inventories.v1beta.LocalInventory value) { + public Builder setLocalInventory( + com.google.shopping.merchant.inventories.v1beta.LocalInventory value) { if (localInventoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -655,13 +759,17 @@ public Builder setLocalInventory(com.google.shopping.merchant.inventories.v1beta return this; } /** + * + * ** Required. Local inventory information of the product. If the product * already has a `LocalInventory` resource for the same `storeCode`, full * replacement of the `LocalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ public Builder setLocalInventory( com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder builderForValue) { @@ -675,19 +783,26 @@ public Builder setLocalInventory( return this; } /** + * + * ** Required. Local inventory information of the product. If the product * already has a `LocalInventory` resource for the same `storeCode`, full * replacement of the `LocalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ - public Builder mergeLocalInventory(com.google.shopping.merchant.inventories.v1beta.LocalInventory value) { + public Builder mergeLocalInventory( + com.google.shopping.merchant.inventories.v1beta.LocalInventory value) { if (localInventoryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - localInventory_ != null && - localInventory_ != com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && localInventory_ != null + && localInventory_ + != com.google.shopping.merchant.inventories.v1beta.LocalInventory + .getDefaultInstance()) { getLocalInventoryBuilder().mergeFrom(value); } else { localInventory_ = value; @@ -700,13 +815,17 @@ public Builder mergeLocalInventory(com.google.shopping.merchant.inventories.v1be return this; } /** + * + * ** Required. Local inventory information of the product. If the product * already has a `LocalInventory` resource for the same `storeCode`, full * replacement of the `LocalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ public Builder clearLocalInventory() { bitField0_ = (bitField0_ & ~0x00000002); @@ -719,61 +838,79 @@ public Builder clearLocalInventory() { return this; } /** + * + * ** Required. Local inventory information of the product. If the product * already has a `LocalInventory` resource for the same `storeCode`, full * replacement of the `LocalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ - public com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder getLocalInventoryBuilder() { + public com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder + getLocalInventoryBuilder() { bitField0_ |= 0x00000002; onChanged(); return getLocalInventoryFieldBuilder().getBuilder(); } /** + * + * ** Required. Local inventory information of the product. If the product * already has a `LocalInventory` resource for the same `storeCode`, full * replacement of the `LocalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ - public com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder getLocalInventoryOrBuilder() { + public com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder + getLocalInventoryOrBuilder() { if (localInventoryBuilder_ != null) { return localInventoryBuilder_.getMessageOrBuilder(); } else { - return localInventory_ == null ? - com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance() : localInventory_; + return localInventory_ == null + ? com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance() + : localInventory_; } } /** + * + * ** Required. Local inventory information of the product. If the product * already has a `LocalInventory` resource for the same `storeCode`, full * replacement of the `LocalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.merchant.inventories.v1beta.LocalInventory, com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder, com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder> + com.google.shopping.merchant.inventories.v1beta.LocalInventory, + com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder, + com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder> getLocalInventoryFieldBuilder() { if (localInventoryBuilder_ == null) { - localInventoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.merchant.inventories.v1beta.LocalInventory, com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder, com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder>( - getLocalInventory(), - getParentForChildren(), - isClean()); + localInventoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.inventories.v1beta.LocalInventory, + com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder, + com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder>( + getLocalInventory(), getParentForChildren(), isClean()); localInventory_ = null; } return localInventoryBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -783,41 +920,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest) - private static final com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest DEFAULT_INSTANCE; + private static final com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest(); + DEFAULT_INSTANCE = + new com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest(); } - public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest getDefaultInstance() { + public static com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public InsertLocalInventoryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public InsertLocalInventoryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -829,9 +969,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest getDefaultInstanceForType() { + public com.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertLocalInventoryRequestOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertLocalInventoryRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertLocalInventoryRequestOrBuilder.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertLocalInventoryRequestOrBuilder.java index 4e076097758d..4ed6335c2344 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertLocalInventoryRequestOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertLocalInventoryRequestOrBuilder.java @@ -1,64 +1,100 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/localinventory.proto package com.google.shopping.merchant.inventories.v1beta; -public interface InsertLocalInventoryRequestOrBuilder extends +public interface InsertLocalInventoryRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest) com.google.protobuf.MessageOrBuilder { /** + * + * * * Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The parent. */ java.lang.String getParent(); /** + * + * ** Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * ** Required. Local inventory information of the product. If the product * already has a `LocalInventory` resource for the same `storeCode`, full * replacement of the `LocalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return Whether the localInventory field is set. */ boolean hasLocalInventory(); /** + * + * ** Required. Local inventory information of the product. If the product * already has a `LocalInventory` resource for the same `storeCode`, full * replacement of the `LocalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return The localInventory. */ com.google.shopping.merchant.inventories.v1beta.LocalInventory getLocalInventory(); /** + * + * ** Required. Local inventory information of the product. If the product * already has a `LocalInventory` resource for the same `storeCode`, full * replacement of the `LocalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ - com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder getLocalInventoryOrBuilder(); + com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder + getLocalInventoryOrBuilder(); } diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertRegionalInventoryRequest.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertRegionalInventoryRequest.java similarity index 57% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertRegionalInventoryRequest.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertRegionalInventoryRequest.java index daf4d6432539..7dc001dfac3a 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertRegionalInventoryRequest.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertRegionalInventoryRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/regionalinventory.proto package com.google.shopping.merchant.inventories.v1beta; /** + * + * ** Request message for the `InsertRegionalInventory` method. ** * Protobuf type {@code google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest} */ -public final class InsertRegionalInventoryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InsertRegionalInventoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest) InsertRegionalInventoryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InsertRegionalInventoryRequest.newBuilder() to construct. - private InsertRegionalInventoryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + private InsertRegionalInventoryRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private InsertRegionalInventoryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InsertRegionalInventoryRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_InsertRegionalInventoryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_InsertRegionalInventoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_InsertRegionalInventoryRequest_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_InsertRegionalInventoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest.class, com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest.Builder.class); + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest.class, + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest.Builder + .class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * ** Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The parent. */ @java.lang.Override @@ -61,30 +86,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * ** Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -95,13 +120,18 @@ public java.lang.String getParent() { public static final int REGIONAL_INVENTORY_FIELD_NUMBER = 2; private com.google.shopping.merchant.inventories.v1beta.RegionalInventory regionalInventory_; /** + * + * ** Required. Regional inventory information to add to the product. If the * product already has a `RegionalInventory` resource for the same `region`, * full replacement of the `RegionalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return Whether the regionalInventory field is set. */ @java.lang.Override @@ -109,34 +139,49 @@ public boolean hasRegionalInventory() { return regionalInventory_ != null; } /** + * + * ** Required. Regional inventory information to add to the product. If the * product already has a `RegionalInventory` resource for the same `region`, * full replacement of the `RegionalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return The regionalInventory. */ @java.lang.Override public com.google.shopping.merchant.inventories.v1beta.RegionalInventory getRegionalInventory() { - return regionalInventory_ == null ? com.google.shopping.merchant.inventories.v1beta.RegionalInventory.getDefaultInstance() : regionalInventory_; + return regionalInventory_ == null + ? com.google.shopping.merchant.inventories.v1beta.RegionalInventory.getDefaultInstance() + : regionalInventory_; } /** + * + * ** Required. Regional inventory information to add to the product. If the * product already has a `RegionalInventory` resource for the same `region`, * full replacement of the `RegionalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder getRegionalInventoryOrBuilder() { - return regionalInventory_ == null ? com.google.shopping.merchant.inventories.v1beta.RegionalInventory.getDefaultInstance() : regionalInventory_; + public com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder + getRegionalInventoryOrBuilder() { + return regionalInventory_ == null + ? com.google.shopping.merchant.inventories.v1beta.RegionalInventory.getDefaultInstance() + : regionalInventory_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,8 +193,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -169,8 +213,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (regionalInventory_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRegionalInventory()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRegionalInventory()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -180,19 +223,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest)) { + if (!(obj + instanceof + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest)) { return super.equals(obj); } - com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest other = (com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest) obj; + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest other = + (com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasRegionalInventory() != other.hasRegionalInventory()) return false; if (hasRegionalInventory()) { - if (!getRegionalInventory() - .equals(other.getRegionalInventory())) return false; + if (!getRegionalInventory().equals(other.getRegionalInventory())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,132 +260,146 @@ public int hashCode() { return hash; } - public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + 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.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest 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.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + 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.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest 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.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + 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.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest prototype) { + + public static Builder newBuilder( + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * ** Request message for the `InsertRegionalInventory` method. ** - * Protobuf type {@code google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest} + * Protobuf type {@code + * google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest) com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_InsertRegionalInventoryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_InsertRegionalInventoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_InsertRegionalInventoryRequest_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_InsertRegionalInventoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest.class, com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest.Builder.class); + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest.class, + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest.Builder + .class); } - // Construct using com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -356,19 +414,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_InsertRegionalInventoryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_InsertRegionalInventoryRequest_descriptor; } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest getDefaultInstanceForType() { - return com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest.getDefaultInstance(); + public com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + .getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest build() { - com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest result = buildPartial(); + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -376,22 +437,28 @@ public com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRe } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest buildPartial() { - com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest result = new com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + buildPartial() { + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest result = + new com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest result) { + private void buildPartial0( + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.regionalInventory_ = regionalInventoryBuilder_ == null - ? regionalInventory_ - : regionalInventoryBuilder_.build(); + result.regionalInventory_ = + regionalInventoryBuilder_ == null + ? regionalInventory_ + : regionalInventoryBuilder_.build(); } } @@ -399,46 +466,53 @@ private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.Inser public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest) { - return mergeFrom((com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest)other); + if (other + instanceof + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest) { + return mergeFrom( + (com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest other) { - if (other == com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest other) { + if (other + == com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -473,24 +547,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRegionalInventoryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getRegionalInventoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,23 +576,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * * * Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -525,21 +604,22 @@ public java.lang.String getParent() { } } /** + * + * ** Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -547,30 +627,37 @@ public java.lang.String getParent() { } } /** + * + * ** Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *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(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return This builder for chaining. */ public Builder clearParent() { @@ -580,18 +667,22 @@ public Builder clearParent() { return this; } /** + * + * ** Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *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(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -601,47 +692,68 @@ public Builder setParentBytes( private com.google.shopping.merchant.inventories.v1beta.RegionalInventory regionalInventory_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.merchant.inventories.v1beta.RegionalInventory, com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder, com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder> regionalInventoryBuilder_; + com.google.shopping.merchant.inventories.v1beta.RegionalInventory, + com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder, + com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder> + regionalInventoryBuilder_; /** + * + * ** Required. Regional inventory information to add to the product. If the * product already has a `RegionalInventory` resource for the same `region`, * full replacement of the `RegionalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return Whether the regionalInventory field is set. */ public boolean hasRegionalInventory() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * ** Required. Regional inventory information to add to the product. If the * product already has a `RegionalInventory` resource for the same `region`, * full replacement of the `RegionalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return The regionalInventory. */ - public com.google.shopping.merchant.inventories.v1beta.RegionalInventory getRegionalInventory() { + public com.google.shopping.merchant.inventories.v1beta.RegionalInventory + getRegionalInventory() { if (regionalInventoryBuilder_ == null) { - return regionalInventory_ == null ? com.google.shopping.merchant.inventories.v1beta.RegionalInventory.getDefaultInstance() : regionalInventory_; + return regionalInventory_ == null + ? com.google.shopping.merchant.inventories.v1beta.RegionalInventory.getDefaultInstance() + : regionalInventory_; } else { return regionalInventoryBuilder_.getMessage(); } } /** + * + * ** Required. Regional inventory information to add to the product. If the * product already has a `RegionalInventory` resource for the same `region`, * full replacement of the `RegionalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ - public Builder setRegionalInventory(com.google.shopping.merchant.inventories.v1beta.RegionalInventory value) { + public Builder setRegionalInventory( + com.google.shopping.merchant.inventories.v1beta.RegionalInventory value) { if (regionalInventoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -655,13 +767,17 @@ public Builder setRegionalInventory(com.google.shopping.merchant.inventories.v1b return this; } /** + * + * ** Required. Regional inventory information to add to the product. If the * product already has a `RegionalInventory` resource for the same `region`, * full replacement of the `RegionalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ public Builder setRegionalInventory( com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder builderForValue) { @@ -675,19 +791,26 @@ public Builder setRegionalInventory( return this; } /** + * + * ** Required. Regional inventory information to add to the product. If the * product already has a `RegionalInventory` resource for the same `region`, * full replacement of the `RegionalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ - public Builder mergeRegionalInventory(com.google.shopping.merchant.inventories.v1beta.RegionalInventory value) { + public Builder mergeRegionalInventory( + com.google.shopping.merchant.inventories.v1beta.RegionalInventory value) { if (regionalInventoryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - regionalInventory_ != null && - regionalInventory_ != com.google.shopping.merchant.inventories.v1beta.RegionalInventory.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && regionalInventory_ != null + && regionalInventory_ + != com.google.shopping.merchant.inventories.v1beta.RegionalInventory + .getDefaultInstance()) { getRegionalInventoryBuilder().mergeFrom(value); } else { regionalInventory_ = value; @@ -700,13 +823,17 @@ public Builder mergeRegionalInventory(com.google.shopping.merchant.inventories.v return this; } /** + * + * ** Required. Regional inventory information to add to the product. If the * product already has a `RegionalInventory` resource for the same `region`, * full replacement of the `RegionalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ public Builder clearRegionalInventory() { bitField0_ = (bitField0_ & ~0x00000002); @@ -719,61 +846,79 @@ public Builder clearRegionalInventory() { return this; } /** + * + * ** Required. Regional inventory information to add to the product. If the * product already has a `RegionalInventory` resource for the same `region`, * full replacement of the `RegionalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ - public com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder getRegionalInventoryBuilder() { + public com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder + getRegionalInventoryBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRegionalInventoryFieldBuilder().getBuilder(); } /** + * + * ** Required. Regional inventory information to add to the product. If the * product already has a `RegionalInventory` resource for the same `region`, * full replacement of the `RegionalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ - public com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder getRegionalInventoryOrBuilder() { + public com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder + getRegionalInventoryOrBuilder() { if (regionalInventoryBuilder_ != null) { return regionalInventoryBuilder_.getMessageOrBuilder(); } else { - return regionalInventory_ == null ? - com.google.shopping.merchant.inventories.v1beta.RegionalInventory.getDefaultInstance() : regionalInventory_; + return regionalInventory_ == null + ? com.google.shopping.merchant.inventories.v1beta.RegionalInventory.getDefaultInstance() + : regionalInventory_; } } /** + * + * ** Required. Regional inventory information to add to the product. If the * product already has a `RegionalInventory` resource for the same `region`, * full replacement of the `RegionalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.merchant.inventories.v1beta.RegionalInventory, com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder, com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder> + com.google.shopping.merchant.inventories.v1beta.RegionalInventory, + com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder, + com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder> getRegionalInventoryFieldBuilder() { if (regionalInventoryBuilder_ == null) { - regionalInventoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.merchant.inventories.v1beta.RegionalInventory, com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder, com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder>( - getRegionalInventory(), - getParentForChildren(), - isClean()); + regionalInventoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.inventories.v1beta.RegionalInventory, + com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder, + com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder>( + getRegionalInventory(), getParentForChildren(), isClean()); regionalInventory_ = null; } return regionalInventoryBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -783,41 +928,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest) - private static final com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest DEFAULT_INSTANCE; + private static final com.google.shopping.merchant.inventories.v1beta + .InsertRegionalInventoryRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest(); + DEFAULT_INSTANCE = + new com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest(); } - public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest getDefaultInstance() { + public static com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public InsertRegionalInventoryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public InsertRegionalInventoryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -829,9 +978,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest getDefaultInstanceForType() { + public com.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertRegionalInventoryRequestOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertRegionalInventoryRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertRegionalInventoryRequestOrBuilder.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertRegionalInventoryRequestOrBuilder.java index e9c002260a8b..1c219667a60e 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertRegionalInventoryRequestOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/InsertRegionalInventoryRequestOrBuilder.java @@ -1,64 +1,100 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/regionalinventory.proto package com.google.shopping.merchant.inventories.v1beta; -public interface InsertRegionalInventoryRequestOrBuilder extends +public interface InsertRegionalInventoryRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest) com.google.protobuf.MessageOrBuilder { /** + * + * * * Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The parent. */ java.lang.String getParent(); /** + * + * ** Required. The account and product where this inventory will be inserted. * Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * ** Required. Regional inventory information to add to the product. If the * product already has a `RegionalInventory` resource for the same `region`, * full replacement of the `RegionalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return Whether the regionalInventory field is set. */ boolean hasRegionalInventory(); /** + * + * ** Required. Regional inventory information to add to the product. If the * product already has a `RegionalInventory` resource for the same `region`, * full replacement of the `RegionalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return The regionalInventory. */ com.google.shopping.merchant.inventories.v1beta.RegionalInventory getRegionalInventory(); /** + * + * ** Required. Regional inventory information to add to the product. If the * product already has a `RegionalInventory` resource for the same `region`, * full replacement of the `RegionalInventory` resource is performed. ** - *.google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventory = 2 [(.google.api.field_behavior) = REQUIRED]; + *
*/ - com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder getRegionalInventoryOrBuilder(); + com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder + getRegionalInventoryOrBuilder(); } diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesRequest.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesRequest.java similarity index 66% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesRequest.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesRequest.java index eec93597dca2..c7418ceecd49 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesRequest.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/localinventory.proto package com.google.shopping.merchant.inventories.v1beta; /** + * + * ** Request message for the `ListLocalInventories` method. ** * Protobuf type {@code google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest} */ -public final class ListLocalInventoriesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLocalInventoriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest) ListLocalInventoriesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLocalInventoriesRequest.newBuilder() to construct. private ListLocalInventoriesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private ListLocalInventoriesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,28 +44,33 @@ private ListLocalInventoriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLocalInventoriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesRequest_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest.class, com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest.Builder.class); + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest.class, + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest.Builder + .class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * ** Required. The `name` of the parent product to list local inventories for. * Format: @@ -55,6 +78,7 @@ protected java.lang.Object newInstance( ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The parent. */ @java.lang.Override @@ -63,14 +87,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 product to list local inventories for. * Format: @@ -78,16 +103,15 @@ public java.lang.String getParent() { ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,6 +122,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * ** The maximum number of `LocalInventory` resources for the given * product to return. The service returns fewer than this value if the number @@ -107,6 +133,7 @@ public java.lang.String getParent() { ** *int32 page_size = 2;
+ * * @return The pageSize. */ @java.lang.Override @@ -115,9 +142,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * ** A page token, received from a previous `ListLocalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -129,6 +159,7 @@ public int getPageSize() { ** *string page_token = 3;
+ * * @return The pageToken. */ @java.lang.Override @@ -137,14 +168,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * ** A page token, received from a previous `ListLocalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -156,16 +188,15 @@ public java.lang.String getPageToken() { ** *string page_token = 3;
+ * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -174,6 +205,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,8 +217,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -209,8 +240,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -223,19 +253,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest)) { + if (!(obj + instanceof com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest)) { return super.equals(obj); } - com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest other = (com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest) obj; + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest other = + (com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,132 +287,145 @@ public int hashCode() { return hash; } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + 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.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest 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.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + 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.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest 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.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + 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.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest prototype) { + + public static Builder newBuilder( + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * ** Request message for the `ListLocalInventories` method. ** * Protobuf type {@code google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest) com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesRequest_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest.class, com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest.Builder.class); + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest.class, + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest.Builder + .class); } - // Construct using com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -395,19 +437,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesRequest_descriptor; } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest getDefaultInstanceForType() { - return com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest.getDefaultInstance(); + public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + .getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest build() { - com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest result = buildPartial(); + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -415,14 +460,19 @@ public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesReque } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest buildPartial() { - com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest result = new com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + buildPartial() { + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest result = + new com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest result) { + private void buildPartial0( + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -439,46 +489,52 @@ private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.ListL public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest) { - return mergeFrom((com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest)other); + if (other + instanceof com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest) { + return mergeFrom( + (com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest other) { - if (other == com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest other) { + if (other + == com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -518,27 +574,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -548,10 +608,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * * * Required. The `name` of the parent product to list local inventories for. * Format: @@ -559,13 +622,13 @@ public Builder mergeFrom( ** *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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -574,6 +637,8 @@ public java.lang.String getParent() { } } /** + * + * ** Required. The `name` of the parent product to list local inventories for. * Format: @@ -581,15 +646,14 @@ public java.lang.String getParent() { ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -597,6 +661,8 @@ public java.lang.String getParent() { } } /** + * + * ** Required. The `name` of the parent product to list local inventories for. * Format: @@ -604,18 +670,22 @@ public java.lang.String getParent() { ** *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(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Required. The `name` of the parent product to list local inventories for. * Format: @@ -623,6 +693,7 @@ public Builder setParent( ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return This builder for chaining. */ public Builder clearParent() { @@ -632,6 +703,8 @@ public Builder clearParent() { return this; } /** + * + * ** Required. The `name` of the parent product to list local inventories for. * Format: @@ -639,12 +712,14 @@ public Builder clearParent() { ** *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(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -652,8 +727,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * ** The maximum number of `LocalInventory` resources for the given * product to return. The service returns fewer than this value if the number @@ -663,6 +740,7 @@ public Builder setParentBytes( ** *int32 page_size = 2;
+ * * @return The pageSize. */ @java.lang.Override @@ -670,6 +748,8 @@ public int getPageSize() { return pageSize_; } /** + * + * ** The maximum number of `LocalInventory` resources for the given * product to return. The service returns fewer than this value if the number @@ -679,6 +759,7 @@ public int getPageSize() { ** *int32 page_size = 2;
+ * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -690,6 +771,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * ** The maximum number of `LocalInventory` resources for the given * product to return. The service returns fewer than this value if the number @@ -699,6 +782,7 @@ public Builder setPageSize(int value) { ** *int32 page_size = 2;
+ * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -710,6 +794,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * ** A page token, received from a previous `ListLocalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -721,13 +807,13 @@ public Builder clearPageSize() { ** *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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -736,6 +822,8 @@ public java.lang.String getPageToken() { } } /** + * + * ** A page token, received from a previous `ListLocalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -747,15 +835,14 @@ public java.lang.String getPageToken() { ** *string page_token = 3;
+ * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -763,6 +850,8 @@ public java.lang.String getPageToken() { } } /** + * + * ** A page token, received from a previous `ListLocalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -774,18 +863,22 @@ public java.lang.String getPageToken() { ** *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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * ** A page token, received from a previous `ListLocalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -797,6 +890,7 @@ public Builder setPageToken( ** *string page_token = 3;
+ * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -806,6 +900,8 @@ public Builder clearPageToken() { return this; } /** + * + * ** A page token, received from a previous `ListLocalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -817,21 +913,23 @@ public Builder clearPageToken() { ** *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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -841,41 +939,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest) - private static final com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest DEFAULT_INSTANCE; + private static final com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest(); + DEFAULT_INSTANCE = + new com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest(); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest getDefaultInstance() { + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public ListLocalInventoriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public ListLocalInventoriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -887,9 +988,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest getDefaultInstanceForType() { + public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesRequestOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesRequestOrBuilder.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesRequestOrBuilder.java index 26e946b308cb..690647509c74 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesRequestOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/localinventory.proto package com.google.shopping.merchant.inventories.v1beta; -public interface ListLocalInventoriesRequestOrBuilder extends +public interface ListLocalInventoriesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * * * Required. The `name` of the parent product to list local inventories for. * Format: @@ -15,10 +33,13 @@ public interface ListLocalInventoriesRequestOrBuilder extends ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The parent. */ java.lang.String getParent(); /** + * + * ** Required. The `name` of the parent product to list local inventories for. * Format: @@ -26,12 +47,14 @@ public interface ListLocalInventoriesRequestOrBuilder extends ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * ** The maximum number of `LocalInventory` resources for the given * product to return. The service returns fewer than this value if the number @@ -41,11 +64,14 @@ public interface ListLocalInventoriesRequestOrBuilder extends ** *int32 page_size = 2;
+ * * @return The pageSize. */ int getPageSize(); /** + * + * ** A page token, received from a previous `ListLocalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -57,10 +83,13 @@ public interface ListLocalInventoriesRequestOrBuilder extends ** *string page_token = 3;
+ * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * ** A page token, received from a previous `ListLocalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -72,8 +101,8 @@ public interface ListLocalInventoriesRequestOrBuilder extends ** *string page_token = 3;
+ * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesResponse.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesResponse.java similarity index 59% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesResponse.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesResponse.java index 60195f438003..f0636f836bda 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesResponse.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/localinventory.proto package com.google.shopping.merchant.inventories.v1beta; /** + * + * ** Response message for the `ListLocalInventories` method. ** * Protobuf type {@code google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse} */ -public final class ListLocalInventoriesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLocalInventoriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse) ListLocalInventoriesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLocalInventoriesResponse.newBuilder() to construct. private ListLocalInventoriesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private ListLocalInventoriesResponse() { localInventories_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,100 +44,131 @@ private ListLocalInventoriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLocalInventoriesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesResponse_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse.class, com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse.Builder.class); + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse.class, + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse.Builder + .class); } public static final int LOCAL_INVENTORIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.ListlocalInventories_; + private java.util.List + localInventories_; /** + * + * * * The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ @java.lang.Override - public java.util.ListgetLocalInventoriesList() { + public java.util.List + getLocalInventoriesList() { return localInventories_; } /** + * + * * * The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ @java.lang.Override - public java.util.List extends com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder> + public java.util.List< + ? extends com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder> getLocalInventoriesOrBuilderList() { return localInventories_; } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ @java.lang.Override public int getLocalInventoriesCount() { return localInventories_.size(); } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.LocalInventory getLocalInventories(int index) { + public com.google.shopping.merchant.inventories.v1beta.LocalInventory getLocalInventories( + int index) { return localInventories_.get(index); } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder getLocalInventoriesOrBuilder( - int index) { + public com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder + getLocalInventoriesOrBuilder(int index) { return localInventories_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * ** A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *string next_page_token = 2;
+ * * @return The nextPageToken. */ @java.lang.Override @@ -128,30 +177,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * ** A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *string next_page_token = 2;
+ * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -160,6 +209,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +221,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < localInventories_.size(); i++) { output.writeMessage(1, localInventories_.get(i)); } @@ -189,8 +238,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < localInventories_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, localInventories_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, localInventories_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -203,17 +251,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse)) { + if (!(obj + instanceof com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse)) { return super.equals(obj); } - com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse other = (com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse) obj; + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse other = + (com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse) obj; - if (!getLocalInventoriesList() - .equals(other.getLocalInventoriesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getLocalInventoriesList().equals(other.getLocalInventoriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -236,132 +284,145 @@ public int hashCode() { return hash; } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + 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.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse 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.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + 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.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse 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.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + 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.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse prototype) { + + public static Builder newBuilder( + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * ** Response message for the `ListLocalInventories` method. ** * Protobuf type {@code google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse) com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesResponse_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse.class, com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse.Builder.class); + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse.class, + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse.Builder + .class); } - // Construct using com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -378,19 +439,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesResponse_descriptor; } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse getDefaultInstanceForType() { - return com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse.getDefaultInstance(); + public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + getDefaultInstanceForType() { + return com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + .getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse build() { - com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse result = buildPartial(); + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -398,15 +462,20 @@ public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRespo } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse buildPartial() { - com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse result = new com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse(this); + public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + buildPartial() { + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse result = + new com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse result) { + private void buildPartialRepeatedFields( + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse result) { if (localInventoriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { localInventories_ = java.util.Collections.unmodifiableList(localInventories_); @@ -418,7 +487,8 @@ private void buildPartialRepeatedFields(com.google.shopping.merchant.inventories } } - private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse result) { + private void buildPartial0( + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -429,46 +499,52 @@ private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.ListL public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse) { - return mergeFrom((com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse)other); + if (other + instanceof com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse) { + return mergeFrom( + (com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse other) { - if (other == com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse other) { + if (other + == com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + .getDefaultInstance()) return this; if (localInventoriesBuilder_ == null) { if (!other.localInventories_.isEmpty()) { if (localInventories_.isEmpty()) { @@ -487,9 +563,10 @@ public Builder mergeFrom(com.google.shopping.merchant.inventories.v1beta.ListLoc localInventoriesBuilder_ = null; localInventories_ = other.localInventories_; bitField0_ = (bitField0_ & ~0x00000001); - localInventoriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLocalInventoriesFieldBuilder() : null; + localInventoriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocalInventoriesFieldBuilder() + : null; } else { localInventoriesBuilder_.addAllMessages(other.localInventories_); } @@ -526,30 +603,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.shopping.merchant.inventories.v1beta.LocalInventory m = - input.readMessage( - com.google.shopping.merchant.inventories.v1beta.LocalInventory.parser(), - extensionRegistry); - if (localInventoriesBuilder_ == null) { - ensureLocalInventoriesIsMutable(); - localInventories_.add(m); - } else { - localInventoriesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.shopping.merchant.inventories.v1beta.LocalInventory m = + input.readMessage( + com.google.shopping.merchant.inventories.v1beta.LocalInventory.parser(), + extensionRegistry); + if (localInventoriesBuilder_ == null) { + ensureLocalInventoriesIsMutable(); + localInventories_.add(m); + } else { + localInventoriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -559,29 +639,41 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List localInventories_ = - java.util.Collections.emptyList(); + private java.util.List + localInventories_ = java.util.Collections.emptyList(); + private void ensureLocalInventoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - localInventories_ = new java.util.ArrayList (localInventories_); + localInventories_ = + new java.util.ArrayList ( + localInventories_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.shopping.merchant.inventories.v1beta.LocalInventory, com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder, com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder> localInventoriesBuilder_; + com.google.shopping.merchant.inventories.v1beta.LocalInventory, + com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder, + com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder> + localInventoriesBuilder_; /** + * + * * * The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ - public java.util.ListgetLocalInventoriesList() { + public java.util.List + getLocalInventoriesList() { if (localInventoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(localInventories_); } else { @@ -589,12 +681,16 @@ public java.util.List * The `LocalInventory` resources for the given product from the specified * account. * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ public int getLocalInventoriesCount() { if (localInventoriesBuilder_ == null) { @@ -604,14 +700,19 @@ public int getLocalInventoriesCount() { } } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ - public com.google.shopping.merchant.inventories.v1beta.LocalInventory getLocalInventories(int index) { + public com.google.shopping.merchant.inventories.v1beta.LocalInventory getLocalInventories( + int index) { if (localInventoriesBuilder_ == null) { return localInventories_.get(index); } else { @@ -619,12 +720,16 @@ public com.google.shopping.merchant.inventories.v1beta.LocalInventory getLocalIn } } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ public Builder setLocalInventories( int index, com.google.shopping.merchant.inventories.v1beta.LocalInventory value) { @@ -641,15 +746,20 @@ public Builder setLocalInventories( return this; } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ public Builder setLocalInventories( - int index, com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder builderForValue) { + int index, + com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder builderForValue) { if (localInventoriesBuilder_ == null) { ensureLocalInventoriesIsMutable(); localInventories_.set(index, builderForValue.build()); @@ -660,14 +770,19 @@ public Builder setLocalInventories( return this; } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ - public Builder addLocalInventories(com.google.shopping.merchant.inventories.v1beta.LocalInventory value) { + public Builder addLocalInventories( + com.google.shopping.merchant.inventories.v1beta.LocalInventory value) { if (localInventoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -681,12 +796,16 @@ public Builder addLocalInventories(com.google.shopping.merchant.inventories.v1be return this; } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ public Builder addLocalInventories( int index, com.google.shopping.merchant.inventories.v1beta.LocalInventory value) { @@ -703,12 +822,16 @@ public Builder addLocalInventories( return this; } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ public Builder addLocalInventories( com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder builderForValue) { @@ -722,15 +845,20 @@ public Builder addLocalInventories( return this; } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ public Builder addLocalInventories( - int index, com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder builderForValue) { + int index, + com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder builderForValue) { if (localInventoriesBuilder_ == null) { ensureLocalInventoriesIsMutable(); localInventories_.add(index, builderForValue.build()); @@ -741,19 +869,23 @@ public Builder addLocalInventories( return this; } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ public Builder addAllLocalInventories( - java.lang.Iterable extends com.google.shopping.merchant.inventories.v1beta.LocalInventory> values) { + java.lang.Iterable extends com.google.shopping.merchant.inventories.v1beta.LocalInventory> + values) { if (localInventoriesBuilder_ == null) { ensureLocalInventoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, localInventories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, localInventories_); onChanged(); } else { localInventoriesBuilder_.addAllMessages(values); @@ -761,12 +893,16 @@ public Builder addAllLocalInventories( return this; } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ public Builder clearLocalInventories() { if (localInventoriesBuilder_ == null) { @@ -779,12 +915,16 @@ public Builder clearLocalInventories() { return this; } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ public Builder removeLocalInventories(int index) { if (localInventoriesBuilder_ == null) { @@ -797,42 +937,56 @@ public Builder removeLocalInventories(int index) { return this; } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ - public com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder getLocalInventoriesBuilder( - int index) { + public com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder + getLocalInventoriesBuilder(int index) { return getLocalInventoriesFieldBuilder().getBuilder(index); } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ - public com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder getLocalInventoriesOrBuilder( - int index) { + public com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder + getLocalInventoriesOrBuilder(int index) { if (localInventoriesBuilder_ == null) { - return localInventories_.get(index); } else { + return localInventories_.get(index); + } else { return localInventoriesBuilder_.getMessageOrBuilder(index); } } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ - public java.util.List extends com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder> - getLocalInventoriesOrBuilderList() { + public java.util.List< + ? extends com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder> + getLocalInventoriesOrBuilderList() { if (localInventoriesBuilder_ != null) { return localInventoriesBuilder_.getMessageOrBuilderList(); } else { @@ -840,48 +994,70 @@ public com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder g } } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ - public com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder addLocalInventoriesBuilder() { - return getLocalInventoriesFieldBuilder().addBuilder( - com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance()); + public com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder + addLocalInventoriesBuilder() { + return getLocalInventoriesFieldBuilder() + .addBuilder( + com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance()); } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ - public com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder addLocalInventoriesBuilder( - int index) { - return getLocalInventoriesFieldBuilder().addBuilder( - index, com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance()); + public com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder + addLocalInventoriesBuilder(int index) { + return getLocalInventoriesFieldBuilder() + .addBuilder( + index, + com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance()); } /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ - public java.util.List- getLocalInventoriesBuilderList() { + public java.util.List + getLocalInventoriesBuilderList() { return getLocalInventoriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.shopping.merchant.inventories.v1beta.LocalInventory, com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder, com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder> + com.google.shopping.merchant.inventories.v1beta.LocalInventory, + com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder, + com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder> getLocalInventoriesFieldBuilder() { if (localInventoriesBuilder_ == null) { - localInventoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.shopping.merchant.inventories.v1beta.LocalInventory, com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder, com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder>( + localInventoriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.inventories.v1beta.LocalInventory, + com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder, + com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder>( localInventories_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -893,19 +1069,21 @@ public com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder ad private java.lang.Object nextPageToken_ = ""; /** + * + * * * A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -914,21 +1092,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * ** A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *string next_page_token = 2;
+ * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -936,30 +1115,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * ** A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * ** A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *string next_page_token = 2;
+ * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -969,27 +1155,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * ** A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -999,41 +1189,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse) - private static final com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse DEFAULT_INSTANCE; + private static final com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse(); + DEFAULT_INSTANCE = + new com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse(); } - public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse getDefaultInstance() { + public static com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public ListLocalInventoriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public ListLocalInventoriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1045,9 +1238,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse getDefaultInstanceForType() { + public com.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesResponseOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesResponseOrBuilder.java similarity index 56% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesResponseOrBuilder.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesResponseOrBuilder.java index 47f04ecc5681..7a087bc55d59 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesResponseOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListLocalInventoriesResponseOrBuilder.java @@ -1,80 +1,121 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/localinventory.proto package com.google.shopping.merchant.inventories.v1beta; -public interface ListLocalInventoriesResponseOrBuilder extends +public interface ListLocalInventoriesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * * * The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ - java.util.List+ java.util.List getLocalInventoriesList(); /** + * + * * * The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ com.google.shopping.merchant.inventories.v1beta.LocalInventory getLocalInventories(int index); /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ int getLocalInventoriesCount(); /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ - java.util.List extends com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder> + java.util.List extends com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder> getLocalInventoriesOrBuilderList(); /** + * + * ** The `LocalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.LocalInventory local_inventories = 1; + *
*/ - com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder getLocalInventoriesOrBuilder( - int index); + com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder + getLocalInventoriesOrBuilder(int index); /** + * + * ** A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *string next_page_token = 2;
+ * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * ** A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *string next_page_token = 2;
+ * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesRequest.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesRequest.java similarity index 65% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesRequest.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesRequest.java index 8aa45c06ced1..5e7b15efe468 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesRequest.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/regionalinventory.proto package com.google.shopping.merchant.inventories.v1beta; /** + * + * ** Request message for the `ListRegionalInventories` method. ** * Protobuf type {@code google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest} */ -public final class ListRegionalInventoriesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRegionalInventoriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest) ListRegionalInventoriesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRegionalInventoriesRequest.newBuilder() to construct. - private ListRegionalInventoriesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + private ListRegionalInventoriesRequest( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private ListRegionalInventoriesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,34 +45,40 @@ private ListRegionalInventoriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRegionalInventoriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesRequest_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest.class, com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest.Builder.class); + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest.class, + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest.Builder + .class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * ** Required. The `name` of the parent product to list `RegionalInventory` * resources for. Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The parent. */ @java.lang.Override @@ -62,30 +87,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 product to list `RegionalInventory` * resources for. Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -96,6 +121,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * ** The maximum number of `RegionalInventory` resources for the given product * to return. The service returns fewer than this value if the number of @@ -105,6 +132,7 @@ public java.lang.String getParent() { ** *int32 page_size = 2;
+ * * @return The pageSize. */ @java.lang.Override @@ -113,9 +141,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * ** A page token, received from a previous `ListRegionalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -127,6 +158,7 @@ public int getPageSize() { ** *string page_token = 3;
+ * * @return The pageToken. */ @java.lang.Override @@ -135,14 +167,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * ** A page token, received from a previous `ListRegionalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -154,16 +187,15 @@ public java.lang.String getPageToken() { ** *string page_token = 3;
+ * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -172,6 +204,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,8 +216,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -207,8 +239,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -221,19 +252,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest)) { + if (!(obj + instanceof + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest)) { return super.equals(obj); } - com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest other = (com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest) obj; + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest other = + (com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -256,132 +287,146 @@ public int hashCode() { return hash; } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + 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.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest 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.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + 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.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest 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.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + 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.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest prototype) { + + public static Builder newBuilder( + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * ** Request message for the `ListRegionalInventories` method. ** - * Protobuf type {@code google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest} + * Protobuf type {@code + * google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest) com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesRequest_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest.class, com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest.Builder.class); + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest.class, + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest.Builder + .class); } - // Construct using com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -393,19 +438,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesRequest_descriptor; } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest getDefaultInstanceForType() { - return com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest.getDefaultInstance(); + public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + .getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest build() { - com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest result = buildPartial(); + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -413,14 +461,19 @@ public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRe } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest buildPartial() { - com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest result = new com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + buildPartial() { + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest result = + new com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest result) { + private void buildPartial0( + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -437,46 +490,53 @@ private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.ListR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest) { - return mergeFrom((com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest)other); + if (other + instanceof + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest) { + return mergeFrom( + (com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest other) { - if (other == com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest other) { + if (other + == com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -516,27 +576,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -546,23 +610,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * * * Required. The `name` of the parent product to list `RegionalInventory` * resources for. Format: `accounts/{account}/products/{product}` ** *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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -571,21 +638,22 @@ public java.lang.String getParent() { } } /** + * + * ** Required. The `name` of the parent product to list `RegionalInventory` * resources for. Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -593,30 +661,37 @@ public java.lang.String getParent() { } } /** + * + * ** Required. The `name` of the parent product to list `RegionalInventory` * resources for. Format: `accounts/{account}/products/{product}` ** *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(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Required. The `name` of the parent product to list `RegionalInventory` * resources for. Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return This builder for chaining. */ public Builder clearParent() { @@ -626,18 +701,22 @@ public Builder clearParent() { return this; } /** + * + * ** Required. The `name` of the parent product to list `RegionalInventory` * resources for. Format: `accounts/{account}/products/{product}` ** *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(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -645,8 +724,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * ** The maximum number of `RegionalInventory` resources for the given product * to return. The service returns fewer than this value if the number of @@ -656,6 +737,7 @@ public Builder setParentBytes( ** *int32 page_size = 2;
+ * * @return The pageSize. */ @java.lang.Override @@ -663,6 +745,8 @@ public int getPageSize() { return pageSize_; } /** + * + * ** The maximum number of `RegionalInventory` resources for the given product * to return. The service returns fewer than this value if the number of @@ -672,6 +756,7 @@ public int getPageSize() { ** *int32 page_size = 2;
+ * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -683,6 +768,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * ** The maximum number of `RegionalInventory` resources for the given product * to return. The service returns fewer than this value if the number of @@ -692,6 +779,7 @@ public Builder setPageSize(int value) { ** *int32 page_size = 2;
+ * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -703,6 +791,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * ** A page token, received from a previous `ListRegionalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -714,13 +804,13 @@ public Builder clearPageSize() { ** *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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -729,6 +819,8 @@ public java.lang.String getPageToken() { } } /** + * + * ** A page token, received from a previous `ListRegionalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -740,15 +832,14 @@ public java.lang.String getPageToken() { ** *string page_token = 3;
+ * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -756,6 +847,8 @@ public java.lang.String getPageToken() { } } /** + * + * ** A page token, received from a previous `ListRegionalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -767,18 +860,22 @@ public java.lang.String getPageToken() { ** *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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * ** A page token, received from a previous `ListRegionalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -790,6 +887,7 @@ public Builder setPageToken( ** *string page_token = 3;
+ * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -799,6 +897,8 @@ public Builder clearPageToken() { return this; } /** + * + * ** A page token, received from a previous `ListRegionalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -810,21 +910,23 @@ public Builder clearPageToken() { ** *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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -834,41 +936,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest) - private static final com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest DEFAULT_INSTANCE; + private static final com.google.shopping.merchant.inventories.v1beta + .ListRegionalInventoriesRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest(); + DEFAULT_INSTANCE = + new com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest(); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest getDefaultInstance() { + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public ListRegionalInventoriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public ListRegionalInventoriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -880,9 +986,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest getDefaultInstanceForType() { + public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesRequestOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesRequestOrBuilder.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesRequestOrBuilder.java index e94d8af6b8ad..39af77f9bac6 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesRequestOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/regionalinventory.proto package com.google.shopping.merchant.inventories.v1beta; -public interface ListRegionalInventoriesRequestOrBuilder extends +public interface ListRegionalInventoriesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * * * Required. The `name` of the parent product to list `RegionalInventory` * resources for. Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The parent. */ java.lang.String getParent(); /** + * + * ** Required. The `name` of the parent product to list `RegionalInventory` * resources for. Format: `accounts/{account}/products/{product}` ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * ** The maximum number of `RegionalInventory` resources for the given product * to return. The service returns fewer than this value if the number of @@ -39,11 +62,14 @@ public interface ListRegionalInventoriesRequestOrBuilder extends ** *int32 page_size = 2;
+ * * @return The pageSize. */ int getPageSize(); /** + * + * ** A page token, received from a previous `ListRegionalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -55,10 +81,13 @@ public interface ListRegionalInventoriesRequestOrBuilder extends ** *string page_token = 3;
+ * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * ** A page token, received from a previous `ListRegionalInventories` call. * Provide the page token to retrieve the subsequent page. @@ -70,8 +99,8 @@ public interface ListRegionalInventoriesRequestOrBuilder extends ** *string page_token = 3;
+ * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesResponse.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesResponse.java similarity index 58% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesResponse.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesResponse.java index a698a4eead9c..ac99fea8ba28 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesResponse.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ListRegionalInventoriesResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/regionalinventory.proto package com.google.shopping.merchant.inventories.v1beta; /** + * + * ** Response message for the `ListRegionalInventories` method. ** * Protobuf type {@code google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse} */ -public final class ListRegionalInventoriesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRegionalInventoriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse) ListRegionalInventoriesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRegionalInventoriesResponse.newBuilder() to construct. - private ListRegionalInventoriesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + private ListRegionalInventoriesResponse( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private ListRegionalInventoriesResponse() { regionalInventories_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,100 +45,131 @@ private ListRegionalInventoriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRegionalInventoriesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesResponse_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse.class, com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse.Builder.class); + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse.class, + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse.Builder + .class); } public static final int REGIONAL_INVENTORIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.ListregionalInventories_; + private java.util.List + regionalInventories_; /** + * + * * * The `RegionalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1; + *
*/ @java.lang.Override - public java.util.ListgetRegionalInventoriesList() { + public java.util.List + getRegionalInventoriesList() { return regionalInventories_; } /** + * + * * * The `RegionalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1; + *
*/ @java.lang.Override - public java.util.List extends com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder> + public java.util.List< + ? extends com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder> getRegionalInventoriesOrBuilderList() { return regionalInventories_; } /** + * + * ** The `RegionalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1; + *
*/ @java.lang.Override public int getRegionalInventoriesCount() { return regionalInventories_.size(); } /** + * + * ** The `RegionalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1; + *
*/ @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.RegionalInventory getRegionalInventories(int index) { + public com.google.shopping.merchant.inventories.v1beta.RegionalInventory getRegionalInventories( + int index) { return regionalInventories_.get(index); } /** + * + * ** The `RegionalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1; + *
*/ @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder getRegionalInventoriesOrBuilder( - int index) { + public com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder + getRegionalInventoriesOrBuilder(int index) { return regionalInventories_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * ** A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *string next_page_token = 2;
+ * * @return The nextPageToken. */ @java.lang.Override @@ -128,30 +178,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * ** A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *string next_page_token = 2;
+ * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -160,6 +210,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +222,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < regionalInventories_.size(); i++) { output.writeMessage(1, regionalInventories_.get(i)); } @@ -189,8 +239,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < regionalInventories_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, regionalInventories_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, regionalInventories_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -203,17 +253,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse)) { + if (!(obj + instanceof + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse)) { return super.equals(obj); } - com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse other = (com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse) obj; + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse other = + (com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse) obj; - if (!getRegionalInventoriesList() - .equals(other.getRegionalInventoriesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getRegionalInventoriesList().equals(other.getRegionalInventoriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -236,132 +287,146 @@ public int hashCode() { return hash; } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + 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.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse 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.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + 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.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse 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.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + 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.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse prototype) { + + public static Builder newBuilder( + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * ** Response message for the `ListRegionalInventories` method. ** - * Protobuf type {@code google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse} + * Protobuf type {@code + * google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse) com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesResponse_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse.class, com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse.Builder.class); + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse.class, + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + .Builder.class); } - // Construct using com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -378,19 +443,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesResponse_descriptor; } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse getDefaultInstanceForType() { - return com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse.getDefaultInstance(); + public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + getDefaultInstanceForType() { + return com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + .getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse build() { - com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse result = buildPartial(); + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -398,15 +466,20 @@ public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRe } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse buildPartial() { - com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse result = new com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse(this); + public com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + buildPartial() { + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse result = + new com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse result) { + private void buildPartialRepeatedFields( + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse result) { if (regionalInventoriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { regionalInventories_ = java.util.Collections.unmodifiableList(regionalInventories_); @@ -418,7 +491,8 @@ private void buildPartialRepeatedFields(com.google.shopping.merchant.inventories } } - private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse result) { + private void buildPartial0( + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -429,46 +503,54 @@ private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.ListR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse) { - return mergeFrom((com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse)other); + if (other + instanceof + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse) { + return mergeFrom( + (com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse other) { - if (other == com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse other) { + if (other + == com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse + .getDefaultInstance()) return this; if (regionalInventoriesBuilder_ == null) { if (!other.regionalInventories_.isEmpty()) { if (regionalInventories_.isEmpty()) { @@ -487,9 +569,10 @@ public Builder mergeFrom(com.google.shopping.merchant.inventories.v1beta.ListReg regionalInventoriesBuilder_ = null; regionalInventories_ = other.regionalInventories_; bitField0_ = (bitField0_ & ~0x00000001); - regionalInventoriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRegionalInventoriesFieldBuilder() : null; + regionalInventoriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRegionalInventoriesFieldBuilder() + : null; } else { regionalInventoriesBuilder_.addAllMessages(other.regionalInventories_); } @@ -526,30 +609,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.shopping.merchant.inventories.v1beta.RegionalInventory m = - input.readMessage( - com.google.shopping.merchant.inventories.v1beta.RegionalInventory.parser(), - extensionRegistry); - if (regionalInventoriesBuilder_ == null) { - ensureRegionalInventoriesIsMutable(); - regionalInventories_.add(m); - } else { - regionalInventoriesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.shopping.merchant.inventories.v1beta.RegionalInventory m = + input.readMessage( + com.google.shopping.merchant.inventories.v1beta.RegionalInventory.parser(), + extensionRegistry); + if (regionalInventoriesBuilder_ == null) { + ensureRegionalInventoriesIsMutable(); + regionalInventories_.add(m); + } else { + regionalInventoriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -559,29 +645,42 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List regionalInventories_ = - java.util.Collections.emptyList(); + private java.util.List + regionalInventories_ = java.util.Collections.emptyList(); + private void ensureRegionalInventoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - regionalInventories_ = new java.util.ArrayList (regionalInventories_); + regionalInventories_ = + new java.util.ArrayList< + com.google.shopping.merchant.inventories.v1beta.RegionalInventory>( + regionalInventories_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.shopping.merchant.inventories.v1beta.RegionalInventory, com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder, com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder> regionalInventoriesBuilder_; + com.google.shopping.merchant.inventories.v1beta.RegionalInventory, + com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder, + com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder> + regionalInventoriesBuilder_; /** + * + * * * The `RegionalInventory` resources for the given product from the specified * account. ** - *repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1; + *
*/ - public java.util.ListgetRegionalInventoriesList() { + public java.util.List + getRegionalInventoriesList() { if (regionalInventoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(regionalInventories_); } else { @@ -589,12 +688,16 @@ public java.util.List * The `RegionalInventory` resources for the given product from the specified * account. *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
public int getRegionalInventoriesCount() {
if (regionalInventoriesBuilder_ == null) {
@@ -604,14 +707,19 @@ public int getRegionalInventoriesCount() {
}
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
- public com.google.shopping.merchant.inventories.v1beta.RegionalInventory getRegionalInventories(int index) {
+ public com.google.shopping.merchant.inventories.v1beta.RegionalInventory getRegionalInventories(
+ int index) {
if (regionalInventoriesBuilder_ == null) {
return regionalInventories_.get(index);
} else {
@@ -619,12 +727,16 @@ public com.google.shopping.merchant.inventories.v1beta.RegionalInventory getRegi
}
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
public Builder setRegionalInventories(
int index, com.google.shopping.merchant.inventories.v1beta.RegionalInventory value) {
@@ -641,15 +753,20 @@ public Builder setRegionalInventories(
return this;
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
public Builder setRegionalInventories(
- int index, com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder builderForValue) {
+ int index,
+ com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder builderForValue) {
if (regionalInventoriesBuilder_ == null) {
ensureRegionalInventoriesIsMutable();
regionalInventories_.set(index, builderForValue.build());
@@ -660,14 +777,19 @@ public Builder setRegionalInventories(
return this;
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
- public Builder addRegionalInventories(com.google.shopping.merchant.inventories.v1beta.RegionalInventory value) {
+ public Builder addRegionalInventories(
+ com.google.shopping.merchant.inventories.v1beta.RegionalInventory value) {
if (regionalInventoriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -681,12 +803,16 @@ public Builder addRegionalInventories(com.google.shopping.merchant.inventories.v
return this;
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
public Builder addRegionalInventories(
int index, com.google.shopping.merchant.inventories.v1beta.RegionalInventory value) {
@@ -703,12 +829,16 @@ public Builder addRegionalInventories(
return this;
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
public Builder addRegionalInventories(
com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder builderForValue) {
@@ -722,15 +852,20 @@ public Builder addRegionalInventories(
return this;
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
public Builder addRegionalInventories(
- int index, com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder builderForValue) {
+ int index,
+ com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder builderForValue) {
if (regionalInventoriesBuilder_ == null) {
ensureRegionalInventoriesIsMutable();
regionalInventories_.add(index, builderForValue.build());
@@ -741,19 +876,24 @@ public Builder addRegionalInventories(
return this;
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
public Builder addAllRegionalInventories(
- java.lang.Iterable extends com.google.shopping.merchant.inventories.v1beta.RegionalInventory> values) {
+ java.lang.Iterable<
+ ? extends com.google.shopping.merchant.inventories.v1beta.RegionalInventory>
+ values) {
if (regionalInventoriesBuilder_ == null) {
ensureRegionalInventoriesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, regionalInventories_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, regionalInventories_);
onChanged();
} else {
regionalInventoriesBuilder_.addAllMessages(values);
@@ -761,12 +901,16 @@ public Builder addAllRegionalInventories(
return this;
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
public Builder clearRegionalInventories() {
if (regionalInventoriesBuilder_ == null) {
@@ -779,12 +923,16 @@ public Builder clearRegionalInventories() {
return this;
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
public Builder removeRegionalInventories(int index) {
if (regionalInventoriesBuilder_ == null) {
@@ -797,42 +945,56 @@ public Builder removeRegionalInventories(int index) {
return this;
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
- public com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder getRegionalInventoriesBuilder(
- int index) {
+ public com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder
+ getRegionalInventoriesBuilder(int index) {
return getRegionalInventoriesFieldBuilder().getBuilder(index);
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
- public com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder getRegionalInventoriesOrBuilder(
- int index) {
+ public com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder
+ getRegionalInventoriesOrBuilder(int index) {
if (regionalInventoriesBuilder_ == null) {
- return regionalInventories_.get(index); } else {
+ return regionalInventories_.get(index);
+ } else {
return regionalInventoriesBuilder_.getMessageOrBuilder(index);
}
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
- public java.util.List extends com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder>
- getRegionalInventoriesOrBuilderList() {
+ public java.util.List<
+ ? extends com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder>
+ getRegionalInventoriesOrBuilderList() {
if (regionalInventoriesBuilder_ != null) {
return regionalInventoriesBuilder_.getMessageOrBuilderList();
} else {
@@ -840,48 +1002,72 @@ public com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilde
}
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
- public com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder addRegionalInventoriesBuilder() {
- return getRegionalInventoriesFieldBuilder().addBuilder(
- com.google.shopping.merchant.inventories.v1beta.RegionalInventory.getDefaultInstance());
+ public com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder
+ addRegionalInventoriesBuilder() {
+ return getRegionalInventoriesFieldBuilder()
+ .addBuilder(
+ com.google.shopping.merchant.inventories.v1beta.RegionalInventory
+ .getDefaultInstance());
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
- public com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder addRegionalInventoriesBuilder(
- int index) {
- return getRegionalInventoriesFieldBuilder().addBuilder(
- index, com.google.shopping.merchant.inventories.v1beta.RegionalInventory.getDefaultInstance());
+ public com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder
+ addRegionalInventoriesBuilder(int index) {
+ return getRegionalInventoriesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.shopping.merchant.inventories.v1beta.RegionalInventory
+ .getDefaultInstance());
}
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
- public java.util.List* A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *
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;
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
@@ -914,21 +1102,22 @@ public java.lang.String getNextPageToken() {
}
}
/**
+ *
+ *
* * A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *
string next_page_token = 2;
+ *
* @return The bytes for nextPageToken.
*/
- public com.google.protobuf.ByteString
- getNextPageTokenBytes() {
+ 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);
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
@@ -936,30 +1125,37 @@ public java.lang.String getNextPageToken() {
}
}
/**
+ *
+ *
* * A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *
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(); }
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
nextPageToken_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
+ *
+ *
* * A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *
string next_page_token = 2;
+ *
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
@@ -969,27 +1165,31 @@ public Builder clearNextPageToken() {
return this;
}
/**
+ *
+ *
* * A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *
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(); }
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
checkByteStringIsUtf8(value);
nextPageToken_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
+
@java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@@ -999,41 +1199,45 @@ public final Builder mergeUnknownFields(
return super.mergeUnknownFields(unknownFields);
}
-
// @@protoc_insertion_point(builder_scope:google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse)
}
// @@protoc_insertion_point(class_scope:google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse)
- private static final com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse DEFAULT_INSTANCE;
+ private static final com.google.shopping.merchant.inventories.v1beta
+ .ListRegionalInventoriesResponse
+ DEFAULT_INSTANCE;
+
static {
- DEFAULT_INSTANCE = new com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse();
+ DEFAULT_INSTANCE =
+ new com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse();
}
- public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse getDefaultInstance() {
+ public static com.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse
+ getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser* The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
- java.util.List* The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
- com.google.shopping.merchant.inventories.v1beta.RegionalInventory getRegionalInventories(int index);
+ com.google.shopping.merchant.inventories.v1beta.RegionalInventory getRegionalInventories(
+ int index);
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
int getRegionalInventoriesCount();
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
- java.util.List extends com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder>
+ java.util.List<
+ ? extends com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder>
getRegionalInventoriesOrBuilderList();
/**
+ *
+ *
* * The `RegionalInventory` resources for the given product from the specified * account. ** - *
repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
+ * repeated .google.shopping.merchant.inventories.v1beta.RegionalInventory regional_inventories = 1;
+ *
*/
- com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder getRegionalInventoriesOrBuilder(
- int index);
+ com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder
+ getRegionalInventoriesOrBuilder(int index);
/**
+ *
+ *
* * A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *
string next_page_token = 2;
+ *
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
+ *
+ *
* * A token, which can be sent as `pageToken` to retrieve the next page. * If this field is omitted, there are no subsequent pages. ** *
string next_page_token = 2;
+ *
* @return The bytes for nextPageToken.
*/
- com.google.protobuf.ByteString
- getNextPageTokenBytes();
+ com.google.protobuf.ByteString getNextPageTokenBytes();
}
diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventory.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventory.java
similarity index 78%
rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventory.java
rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventory.java
index 03c7a982e4f6..d9e58b84d1e5 100644
--- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventory.java
+++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventory.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 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/shopping/merchant/inventories/v1beta/localinventory.proto
package com.google.shopping.merchant.inventories.v1beta;
/**
+ *
+ *
* * Local inventory information for the product. Represents in-store information * for a specific product at the store specified by @@ -14,15 +31,16 @@ * * Protobuf type {@code google.shopping.merchant.inventories.v1beta.LocalInventory} */ -public final class LocalInventory extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LocalInventory extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.inventories.v1beta.LocalInventory) LocalInventoryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocalInventory.newBuilder() to construct. private LocalInventory(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private LocalInventory() { name_ = ""; storeCode_ = ""; @@ -35,29 +53,33 @@ private LocalInventory() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LocalInventory(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_LocalInventory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_LocalInventory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_LocalInventory_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_LocalInventory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.LocalInventory.class, com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder.class); + com.google.shopping.merchant.inventories.v1beta.LocalInventory.class, + com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * ** Output only. The name of the `LocalInventory` resource. * Format: @@ -65,6 +87,7 @@ protected java.lang.Object newInstance( ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The name. */ @java.lang.Override @@ -73,14 +96,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * ** Output only. The name of the `LocalInventory` resource. * Format: @@ -88,16 +112,15 @@ public java.lang.String getName() { ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -108,12 +131,15 @@ public java.lang.String getName() { public static final int ACCOUNT_FIELD_NUMBER = 2; private long account_ = 0L; /** + * + * ** Output only. The account that owns the product. This field will be ignored * if set by the client. ** *int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The account. */ @java.lang.Override @@ -122,9 +148,12 @@ public long getAccount() { } public static final int STORE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object storeCode_ = ""; /** + * + * ** Required. Store code (the store ID from your Business Profile) of the * physical store the product is sold in. See the [Local product inventory @@ -133,6 +162,7 @@ public long getAccount() { ** *string store_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The storeCode. */ @java.lang.Override @@ -141,14 +171,15 @@ public java.lang.String getStoreCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storeCode_ = s; return s; } } /** + * + * ** Required. Store code (the store ID from your Business Profile) of the * physical store the product is sold in. See the [Local product inventory @@ -157,16 +188,15 @@ public java.lang.String getStoreCode() { ** *string store_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for storeCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getStoreCodeBytes() { + public com.google.protobuf.ByteString getStoreCodeBytes() { java.lang.Object ref = storeCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storeCode_ = b; return b; } else { @@ -177,11 +207,14 @@ public java.lang.String getStoreCode() { public static final int PRICE_FIELD_NUMBER = 4; private com.google.shopping.type.Price price_; /** + * + * ** Price of the product at this store. ** *.google.shopping.type.Price price = 4;
+ * * @return Whether the price field is set. */ @java.lang.Override @@ -189,11 +222,14 @@ public boolean hasPrice() { return price_ != null; } /** + * + * ** Price of the product at this store. ** *.google.shopping.type.Price price = 4;
+ * * @return The price. */ @java.lang.Override @@ -201,6 +237,8 @@ public com.google.shopping.type.Price getPrice() { return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; } /** + * + * ** Price of the product at this store. *@@ -215,6 +253,8 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { public static final int SALE_PRICE_FIELD_NUMBER = 5; private com.google.shopping.type.Price salePrice_; /** + * + * ** Sale price of the product at this store. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date] @@ -222,6 +262,7 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { ** *.google.shopping.type.Price sale_price = 5;
+ * * @return Whether the salePrice field is set. */ @java.lang.Override @@ -229,6 +270,8 @@ public boolean hasSalePrice() { return salePrice_ != null; } /** + * + * ** Sale price of the product at this store. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date] @@ -236,6 +279,7 @@ public boolean hasSalePrice() { ** *.google.shopping.type.Price sale_price = 5;
+ * * @return The salePrice. */ @java.lang.Override @@ -243,6 +287,8 @@ public com.google.shopping.type.Price getSalePrice() { return salePrice_ == null ? com.google.shopping.type.Price.getDefaultInstance() : salePrice_; } /** + * + * ** Sale price of the product at this store. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date] @@ -259,12 +305,15 @@ public com.google.shopping.type.PriceOrBuilder getSalePriceOrBuilder() { public static final int SALE_PRICE_EFFECTIVE_DATE_FIELD_NUMBER = 6; private com.google.type.Interval salePriceEffectiveDate_; /** + * + * ** The `TimePeriod` of the * sale at this store. ** *.google.type.Interval sale_price_effective_date = 6;
+ * * @return Whether the salePriceEffectiveDate field is set. */ @java.lang.Override @@ -272,19 +321,26 @@ public boolean hasSalePriceEffectiveDate() { return salePriceEffectiveDate_ != null; } /** + * + * ** The `TimePeriod` of the * sale at this store. ** *.google.type.Interval sale_price_effective_date = 6;
+ * * @return The salePriceEffectiveDate. */ @java.lang.Override public com.google.type.Interval getSalePriceEffectiveDate() { - return salePriceEffectiveDate_ == null ? com.google.type.Interval.getDefaultInstance() : salePriceEffectiveDate_; + return salePriceEffectiveDate_ == null + ? com.google.type.Interval.getDefaultInstance() + : salePriceEffectiveDate_; } /** + * + * ** The `TimePeriod` of the * sale at this store. @@ -294,13 +350,18 @@ public com.google.type.Interval getSalePriceEffectiveDate() { */ @java.lang.Override public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { - return salePriceEffectiveDate_ == null ? com.google.type.Interval.getDefaultInstance() : salePriceEffectiveDate_; + return salePriceEffectiveDate_ == null + ? com.google.type.Interval.getDefaultInstance() + : salePriceEffectiveDate_; } public static final int AVAILABILITY_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object availability_ = ""; /** + * + * ** Availability of the product at this store. * For accepted attribute values, see the [local product inventory feed @@ -308,6 +369,7 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { ** *optional string availability = 7;
+ * * @return Whether the availability field is set. */ @java.lang.Override @@ -315,6 +377,8 @@ public boolean hasAvailability() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * ** Availability of the product at this store. * For accepted attribute values, see the [local product inventory feed @@ -322,6 +386,7 @@ public boolean hasAvailability() { ** *optional string availability = 7;
+ * * @return The availability. */ @java.lang.Override @@ -330,14 +395,15 @@ public java.lang.String getAvailability() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); availability_ = s; return s; } } /** + * + * ** Availability of the product at this store. * For accepted attribute values, see the [local product inventory feed @@ -345,16 +411,15 @@ public java.lang.String getAvailability() { ** *optional string availability = 7;
+ * * @return The bytes for availability. */ @java.lang.Override - public com.google.protobuf.ByteString - getAvailabilityBytes() { + public com.google.protobuf.ByteString getAvailabilityBytes() { java.lang.Object ref = availability_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); availability_ = b; return b; } else { @@ -365,12 +430,15 @@ public java.lang.String getAvailability() { public static final int QUANTITY_FIELD_NUMBER = 8; private long quantity_ = 0L; /** + * + * ** Quantity of the product available at this store. Must be greater than or * equal to zero. ** *optional int64 quantity = 8;
+ * * @return Whether the quantity field is set. */ @java.lang.Override @@ -378,12 +446,15 @@ public boolean hasQuantity() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * ** Quantity of the product available at this store. Must be greater than or * equal to zero. ** *optional int64 quantity = 8;
+ * * @return The quantity. */ @java.lang.Override @@ -392,9 +463,12 @@ public long getQuantity() { } public static final int PICKUP_METHOD_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object pickupMethod_ = ""; /** + * + * ** Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with @@ -404,6 +478,7 @@ public long getQuantity() { ** *optional string pickup_method = 9;
+ * * @return Whether the pickupMethod field is set. */ @java.lang.Override @@ -411,6 +486,8 @@ public boolean hasPickupMethod() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * ** Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with @@ -420,6 +497,7 @@ public boolean hasPickupMethod() { ** *optional string pickup_method = 9;
+ * * @return The pickupMethod. */ @java.lang.Override @@ -428,14 +506,15 @@ public java.lang.String getPickupMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pickupMethod_ = s; return s; } } /** + * + * ** Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with @@ -445,16 +524,15 @@ public java.lang.String getPickupMethod() { ** *optional string pickup_method = 9;
+ * * @return The bytes for pickupMethod. */ @java.lang.Override - public com.google.protobuf.ByteString - getPickupMethodBytes() { + public com.google.protobuf.ByteString getPickupMethodBytes() { java.lang.Object ref = pickupMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pickupMethod_ = b; return b; } else { @@ -463,9 +541,12 @@ public java.lang.String getPickupMethod() { } public static final int PICKUP_SLA_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object pickupSla_ = ""; /** + * + * ** Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with @@ -475,6 +556,7 @@ public java.lang.String getPickupMethod() { ** *optional string pickup_sla = 10;
+ * * @return Whether the pickupSla field is set. */ @java.lang.Override @@ -482,6 +564,8 @@ public boolean hasPickupSla() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * ** Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with @@ -491,6 +575,7 @@ public boolean hasPickupSla() { ** *optional string pickup_sla = 10;
+ * * @return The pickupSla. */ @java.lang.Override @@ -499,14 +584,15 @@ public java.lang.String getPickupSla() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pickupSla_ = s; return s; } } /** + * + * ** Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with @@ -516,16 +602,15 @@ public java.lang.String getPickupSla() { ** *optional string pickup_sla = 10;
+ * * @return The bytes for pickupSla. */ @java.lang.Override - public com.google.protobuf.ByteString - getPickupSlaBytes() { + public com.google.protobuf.ByteString getPickupSlaBytes() { java.lang.Object ref = pickupSla_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pickupSla_ = b; return b; } else { @@ -534,14 +619,18 @@ public java.lang.String getPickupSla() { } public static final int INSTORE_PRODUCT_LOCATION_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object instoreProductLocation_ = ""; /** + * + * ** Location of the product inside the store. Maximum length is 20 bytes. ** *optional string instore_product_location = 11;
+ * * @return Whether the instoreProductLocation field is set. */ @java.lang.Override @@ -549,11 +638,14 @@ public boolean hasInstoreProductLocation() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * ** Location of the product inside the store. Maximum length is 20 bytes. ** *optional string instore_product_location = 11;
+ * * @return The instoreProductLocation. */ @java.lang.Override @@ -562,29 +654,29 @@ public java.lang.String getInstoreProductLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instoreProductLocation_ = s; return s; } } /** + * + * ** Location of the product inside the store. Maximum length is 20 bytes. ** *optional string instore_product_location = 11;
+ * * @return The bytes for instoreProductLocation. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstoreProductLocationBytes() { + public com.google.protobuf.ByteString getInstoreProductLocationBytes() { java.lang.Object ref = instoreProductLocation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instoreProductLocation_ = b; return b; } else { @@ -593,9 +685,12 @@ public java.lang.String getInstoreProductLocation() { } public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER = 12; + @SuppressWarnings("serial") private java.util.ListcustomAttributes_; /** + * + * * * A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -609,6 +704,8 @@ public java.util.ListgetCustomAttribu return customAttributes_; } /** + * + * * * A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -618,11 +715,13 @@ public java.util.ListgetCustomAttribu * repeated .google.shopping.type.CustomAttribute custom_attributes = 12;
*/ @java.lang.Override - public java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> + public java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> getCustomAttributesOrBuilderList() { return customAttributes_; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -636,6 +735,8 @@ public int getCustomAttributesCount() { return customAttributes_.size(); } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -649,6 +750,8 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { return customAttributes_.get(index); } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -658,12 +761,12 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { *repeated .google.shopping.type.CustomAttribute custom_attributes = 12;
*/ @java.lang.Override - public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBuilder( - int index) { + public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index) { return customAttributes_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -675,8 +778,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -726,30 +828,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (account_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, account_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, account_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storeCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, storeCode_); } if (price_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPrice()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPrice()); } if (salePrice_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSalePrice()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSalePrice()); } if (salePriceEffectiveDate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSalePriceEffectiveDate()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSalePriceEffectiveDate()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, availability_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, quantity_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, quantity_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pickupMethod_); @@ -761,8 +859,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, instoreProductLocation_); } for (int i = 0; i < customAttributes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, customAttributes_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, customAttributes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -772,61 +870,50 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.shopping.merchant.inventories.v1beta.LocalInventory)) { return super.equals(obj); } - com.google.shopping.merchant.inventories.v1beta.LocalInventory other = (com.google.shopping.merchant.inventories.v1beta.LocalInventory) obj; + com.google.shopping.merchant.inventories.v1beta.LocalInventory other = + (com.google.shopping.merchant.inventories.v1beta.LocalInventory) obj; - if (!getName() - .equals(other.getName())) return false; - if (getAccount() - != other.getAccount()) return false; - if (!getStoreCode() - .equals(other.getStoreCode())) return false; + if (!getName().equals(other.getName())) return false; + if (getAccount() != other.getAccount()) return false; + if (!getStoreCode().equals(other.getStoreCode())) return false; if (hasPrice() != other.hasPrice()) return false; if (hasPrice()) { - if (!getPrice() - .equals(other.getPrice())) return false; + if (!getPrice().equals(other.getPrice())) return false; } if (hasSalePrice() != other.hasSalePrice()) return false; if (hasSalePrice()) { - if (!getSalePrice() - .equals(other.getSalePrice())) return false; + if (!getSalePrice().equals(other.getSalePrice())) return false; } if (hasSalePriceEffectiveDate() != other.hasSalePriceEffectiveDate()) return false; if (hasSalePriceEffectiveDate()) { - if (!getSalePriceEffectiveDate() - .equals(other.getSalePriceEffectiveDate())) return false; + if (!getSalePriceEffectiveDate().equals(other.getSalePriceEffectiveDate())) return false; } if (hasAvailability() != other.hasAvailability()) return false; if (hasAvailability()) { - if (!getAvailability() - .equals(other.getAvailability())) return false; + if (!getAvailability().equals(other.getAvailability())) return false; } if (hasQuantity() != other.hasQuantity()) return false; if (hasQuantity()) { - if (getQuantity() - != other.getQuantity()) return false; + if (getQuantity() != other.getQuantity()) return false; } if (hasPickupMethod() != other.hasPickupMethod()) return false; if (hasPickupMethod()) { - if (!getPickupMethod() - .equals(other.getPickupMethod())) return false; + if (!getPickupMethod().equals(other.getPickupMethod())) return false; } if (hasPickupSla() != other.hasPickupSla()) return false; if (hasPickupSla()) { - if (!getPickupSla() - .equals(other.getPickupSla())) return false; + if (!getPickupSla().equals(other.getPickupSla())) return false; } if (hasInstoreProductLocation() != other.hasInstoreProductLocation()) return false; if (hasInstoreProductLocation()) { - if (!getInstoreProductLocation() - .equals(other.getInstoreProductLocation())) return false; + if (!getInstoreProductLocation().equals(other.getInstoreProductLocation())) return false; } - if (!getCustomAttributesList() - .equals(other.getCustomAttributesList())) return false; + if (!getCustomAttributesList().equals(other.getCustomAttributesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -841,8 +928,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAccount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAccount()); hash = (37 * hash) + STORE_CODE_FIELD_NUMBER; hash = (53 * hash) + getStoreCode().hashCode(); if (hasPrice()) { @@ -863,8 +949,7 @@ public int hashCode() { } if (hasQuantity()) { hash = (37 * hash) + QUANTITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getQuantity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getQuantity()); } if (hasPickupMethod()) { hash = (37 * hash) + PICKUP_METHOD_FIELD_NUMBER; @@ -888,98 +973,104 @@ public int hashCode() { } public static com.google.shopping.merchant.inventories.v1beta.LocalInventory parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.shopping.merchant.inventories.v1beta.LocalInventory parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.shopping.merchant.inventories.v1beta.LocalInventory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.shopping.merchant.inventories.v1beta.LocalInventory 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.shopping.merchant.inventories.v1beta.LocalInventory parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.LocalInventory parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.shopping.merchant.inventories.v1beta.LocalInventory parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.LocalInventory parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.LocalInventory parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.shopping.merchant.inventories.v1beta.LocalInventory parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.LocalInventory parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.shopping.merchant.inventories.v1beta.LocalInventory parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.shopping.merchant.inventories.v1beta.LocalInventory parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.shopping.merchant.inventories.v1beta.LocalInventory parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.shopping.merchant.inventories.v1beta.LocalInventory parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.shopping.merchant.inventories.v1beta.LocalInventory prototype) { + + public static Builder newBuilder( + com.google.shopping.merchant.inventories.v1beta.LocalInventory prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * ** Local inventory information for the product. Represents in-store information * for a specific product at the store specified by @@ -990,33 +1081,32 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.shopping.merchant.inventories.v1beta.LocalInventory} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.inventories.v1beta.LocalInventory) com.google.shopping.merchant.inventories.v1beta.LocalInventoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_LocalInventory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_LocalInventory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_LocalInventory_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_LocalInventory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.LocalInventory.class, com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder.class); + com.google.shopping.merchant.inventories.v1beta.LocalInventory.class, + com.google.shopping.merchant.inventories.v1beta.LocalInventory.Builder.class); } // Construct using com.google.shopping.merchant.inventories.v1beta.LocalInventory.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1055,13 +1145,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_LocalInventory_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.inventories.v1beta.LocalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_LocalInventory_descriptor; } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.LocalInventory getDefaultInstanceForType() { + public com.google.shopping.merchant.inventories.v1beta.LocalInventory + getDefaultInstanceForType() { return com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance(); } @@ -1076,14 +1167,18 @@ public com.google.shopping.merchant.inventories.v1beta.LocalInventory build() { @java.lang.Override public com.google.shopping.merchant.inventories.v1beta.LocalInventory buildPartial() { - com.google.shopping.merchant.inventories.v1beta.LocalInventory result = new com.google.shopping.merchant.inventories.v1beta.LocalInventory(this); + com.google.shopping.merchant.inventories.v1beta.LocalInventory result = + new com.google.shopping.merchant.inventories.v1beta.LocalInventory(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.shopping.merchant.inventories.v1beta.LocalInventory result) { + private void buildPartialRepeatedFields( + com.google.shopping.merchant.inventories.v1beta.LocalInventory result) { if (customAttributesBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0)) { customAttributes_ = java.util.Collections.unmodifiableList(customAttributes_); @@ -1095,7 +1190,8 @@ private void buildPartialRepeatedFields(com.google.shopping.merchant.inventories } } - private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.LocalInventory result) { + private void buildPartial0( + com.google.shopping.merchant.inventories.v1beta.LocalInventory result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -1107,19 +1203,16 @@ private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.Local result.storeCode_ = storeCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.price_ = priceBuilder_ == null - ? price_ - : priceBuilder_.build(); + result.price_ = priceBuilder_ == null ? price_ : priceBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.salePrice_ = salePriceBuilder_ == null - ? salePrice_ - : salePriceBuilder_.build(); + result.salePrice_ = salePriceBuilder_ == null ? salePrice_ : salePriceBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.salePriceEffectiveDate_ = salePriceEffectiveDateBuilder_ == null - ? salePriceEffectiveDate_ - : salePriceEffectiveDateBuilder_.build(); + result.salePriceEffectiveDate_ = + salePriceEffectiveDateBuilder_ == null + ? salePriceEffectiveDate_ + : salePriceEffectiveDateBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000040) != 0)) { @@ -1149,38 +1242,39 @@ private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.Local public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.shopping.merchant.inventories.v1beta.LocalInventory) { - return mergeFrom((com.google.shopping.merchant.inventories.v1beta.LocalInventory)other); + return mergeFrom((com.google.shopping.merchant.inventories.v1beta.LocalInventory) other); } else { super.mergeFrom(other); return this; @@ -1188,7 +1282,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.shopping.merchant.inventories.v1beta.LocalInventory other) { - if (other == com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance()) return this; + if (other + == com.google.shopping.merchant.inventories.v1beta.LocalInventory.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1252,9 +1348,10 @@ public Builder mergeFrom(com.google.shopping.merchant.inventories.v1beta.LocalIn customAttributesBuilder_ = null; customAttributes_ = other.customAttributes_; bitField0_ = (bitField0_ & ~0x00000800); - customAttributesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCustomAttributesFieldBuilder() : null; + customAttributesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomAttributesFieldBuilder() + : null; } else { customAttributesBuilder_.addAllMessages(other.customAttributes_); } @@ -1286,86 +1383,93 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - account_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - storeCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getPriceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getSalePriceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getSalePriceEffectiveDateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - availability_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: { - quantity_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: { - pickupMethod_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: { - pickupSla_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: { - instoreProductLocation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: { - com.google.shopping.type.CustomAttribute m = - input.readMessage( - com.google.shopping.type.CustomAttribute.parser(), - extensionRegistry); - if (customAttributesBuilder_ == null) { - ensureCustomAttributesIsMutable(); - customAttributes_.add(m); - } else { - customAttributesBuilder_.addMessage(m); - } - break; - } // case 98 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + account_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + storeCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getPriceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getSalePriceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + getSalePriceEffectiveDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + availability_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + quantity_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + pickupMethod_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + pickupSla_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + instoreProductLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + com.google.shopping.type.CustomAttribute m = + input.readMessage( + com.google.shopping.type.CustomAttribute.parser(), extensionRegistry); + if (customAttributesBuilder_ == null) { + ensureCustomAttributesIsMutable(); + customAttributes_.add(m); + } else { + customAttributesBuilder_.addMessage(m); + } + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1375,10 +1479,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * * * Output only. The name of the `LocalInventory` resource. * Format: @@ -1386,13 +1493,13 @@ public Builder mergeFrom( ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1401,6 +1508,8 @@ public java.lang.String getName() { } } /** + * + * ** Output only. The name of the `LocalInventory` resource. * Format: @@ -1408,15 +1517,14 @@ public java.lang.String getName() { ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1424,6 +1532,8 @@ public java.lang.String getName() { } } /** + * + * ** Output only. The name of the `LocalInventory` resource. * Format: @@ -1431,18 +1541,22 @@ public java.lang.String getName() { ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Output only. The name of the `LocalInventory` resource. * Format: @@ -1450,6 +1564,7 @@ public Builder setName( ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return This builder for chaining. */ public Builder clearName() { @@ -1459,6 +1574,8 @@ public Builder clearName() { return this; } /** + * + * ** Output only. The name of the `LocalInventory` resource. * Format: @@ -1466,12 +1583,14 @@ public Builder clearName() { ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1479,14 +1598,17 @@ public Builder setNameBytes( return this; } - private long account_ ; + private long account_; /** + * + * ** Output only. The account that owns the product. This field will be ignored * if set by the client. ** *int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The account. */ @java.lang.Override @@ -1494,12 +1616,15 @@ public long getAccount() { return account_; } /** + * + * ** Output only. The account that owns the product. This field will be ignored * if set by the client. ** *int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The account to set. * @return This builder for chaining. */ @@ -1511,12 +1636,15 @@ public Builder setAccount(long value) { return this; } /** + * + * ** Output only. The account that owns the product. This field will be ignored * if set by the client. ** *int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return This builder for chaining. */ public Builder clearAccount() { @@ -1528,6 +1656,8 @@ public Builder clearAccount() { private java.lang.Object storeCode_ = ""; /** + * + * ** Required. Store code (the store ID from your Business Profile) of the * physical store the product is sold in. See the [Local product inventory @@ -1536,13 +1666,13 @@ public Builder clearAccount() { ** *string store_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The storeCode. */ public java.lang.String getStoreCode() { java.lang.Object ref = storeCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storeCode_ = s; return s; @@ -1551,6 +1681,8 @@ public java.lang.String getStoreCode() { } } /** + * + * ** Required. Store code (the store ID from your Business Profile) of the * physical store the product is sold in. See the [Local product inventory @@ -1559,15 +1691,14 @@ public java.lang.String getStoreCode() { ** *string store_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for storeCode. */ - public com.google.protobuf.ByteString - getStoreCodeBytes() { + public com.google.protobuf.ByteString getStoreCodeBytes() { java.lang.Object ref = storeCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storeCode_ = b; return b; } else { @@ -1575,6 +1706,8 @@ public java.lang.String getStoreCode() { } } /** + * + * ** Required. Store code (the store ID from your Business Profile) of the * physical store the product is sold in. See the [Local product inventory @@ -1583,18 +1716,22 @@ public java.lang.String getStoreCode() { ** *string store_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @param value The storeCode to set. * @return This builder for chaining. */ - public Builder setStoreCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStoreCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } storeCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * ** Required. Store code (the store ID from your Business Profile) of the * physical store the product is sold in. See the [Local product inventory @@ -1603,6 +1740,7 @@ public Builder setStoreCode( ** *string store_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @return This builder for chaining. */ public Builder clearStoreCode() { @@ -1612,6 +1750,8 @@ public Builder clearStoreCode() { return this; } /** + * + * ** Required. Store code (the store ID from your Business Profile) of the * physical store the product is sold in. See the [Local product inventory @@ -1620,12 +1760,14 @@ public Builder clearStoreCode() { ** *string store_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @param value The bytes for storeCode to set. * @return This builder for chaining. */ - public Builder setStoreCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStoreCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); storeCode_ = value; bitField0_ |= 0x00000004; @@ -1635,24 +1777,33 @@ public Builder setStoreCodeBytes( private com.google.shopping.type.Price price_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.type.Price, com.google.shopping.type.Price.Builder, com.google.shopping.type.PriceOrBuilder> priceBuilder_; + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + priceBuilder_; /** + * + * ** Price of the product at this store. ** *.google.shopping.type.Price price = 4;
+ * * @return Whether the price field is set. */ public boolean hasPrice() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * ** Price of the product at this store. ** *.google.shopping.type.Price price = 4;
+ * * @return The price. */ public com.google.shopping.type.Price getPrice() { @@ -1663,6 +1814,8 @@ public com.google.shopping.type.Price getPrice() { } } /** + * + * ** Price of the product at this store. *@@ -1683,14 +1836,15 @@ public Builder setPrice(com.google.shopping.type.Price value) { return this; } /** + * + * ** Price of the product at this store. ** *.google.shopping.type.Price price = 4;
*/ - public Builder setPrice( - com.google.shopping.type.Price.Builder builderForValue) { + public Builder setPrice(com.google.shopping.type.Price.Builder builderForValue) { if (priceBuilder_ == null) { price_ = builderForValue.build(); } else { @@ -1701,6 +1855,8 @@ public Builder setPrice( return this; } /** + * + * ** Price of the product at this store. *@@ -1709,9 +1865,9 @@ public Builder setPrice( */ public Builder mergePrice(com.google.shopping.type.Price value) { if (priceBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - price_ != null && - price_ != com.google.shopping.type.Price.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && price_ != null + && price_ != com.google.shopping.type.Price.getDefaultInstance()) { getPriceBuilder().mergeFrom(value); } else { price_ = value; @@ -1724,6 +1880,8 @@ public Builder mergePrice(com.google.shopping.type.Price value) { return this; } /** + * + * ** Price of the product at this store. *@@ -1741,6 +1899,8 @@ public Builder clearPrice() { return this; } /** + * + * ** Price of the product at this store. *@@ -1753,6 +1913,8 @@ public com.google.shopping.type.Price.Builder getPriceBuilder() { return getPriceFieldBuilder().getBuilder(); } /** + * + * ** Price of the product at this store. *@@ -1763,11 +1925,12 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { if (priceBuilder_ != null) { return priceBuilder_.getMessageOrBuilder(); } else { - return price_ == null ? - com.google.shopping.type.Price.getDefaultInstance() : price_; + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; } } /** + * + * ** Price of the product at this store. *@@ -1775,14 +1938,17 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { *.google.shopping.type.Price price = 4;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.type.Price, com.google.shopping.type.Price.Builder, com.google.shopping.type.PriceOrBuilder> + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> getPriceFieldBuilder() { if (priceBuilder_ == null) { - priceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.type.Price, com.google.shopping.type.Price.Builder, com.google.shopping.type.PriceOrBuilder>( - getPrice(), - getParentForChildren(), - isClean()); + priceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getPrice(), getParentForChildren(), isClean()); price_ = null; } return priceBuilder_; @@ -1790,8 +1956,13 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { private com.google.shopping.type.Price salePrice_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.type.Price, com.google.shopping.type.Price.Builder, com.google.shopping.type.PriceOrBuilder> salePriceBuilder_; + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + salePriceBuilder_; /** + * + * ** Sale price of the product at this store. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date] @@ -1799,12 +1970,15 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { ** *.google.shopping.type.Price sale_price = 5;
+ * * @return Whether the salePrice field is set. */ public boolean hasSalePrice() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * ** Sale price of the product at this store. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date] @@ -1812,16 +1986,21 @@ public boolean hasSalePrice() { ** *.google.shopping.type.Price sale_price = 5;
+ * * @return The salePrice. */ public com.google.shopping.type.Price getSalePrice() { if (salePriceBuilder_ == null) { - return salePrice_ == null ? com.google.shopping.type.Price.getDefaultInstance() : salePrice_; + return salePrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : salePrice_; } else { return salePriceBuilder_.getMessage(); } } /** + * + * ** Sale price of the product at this store. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date] @@ -1844,6 +2023,8 @@ public Builder setSalePrice(com.google.shopping.type.Price value) { return this; } /** + * + * ** Sale price of the product at this store. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date] @@ -1852,8 +2033,7 @@ public Builder setSalePrice(com.google.shopping.type.Price value) { * *.google.shopping.type.Price sale_price = 5;
*/ - public Builder setSalePrice( - com.google.shopping.type.Price.Builder builderForValue) { + public Builder setSalePrice(com.google.shopping.type.Price.Builder builderForValue) { if (salePriceBuilder_ == null) { salePrice_ = builderForValue.build(); } else { @@ -1864,6 +2044,8 @@ public Builder setSalePrice( return this; } /** + * + * ** Sale price of the product at this store. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date] @@ -1874,9 +2056,9 @@ public Builder setSalePrice( */ public Builder mergeSalePrice(com.google.shopping.type.Price value) { if (salePriceBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - salePrice_ != null && - salePrice_ != com.google.shopping.type.Price.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && salePrice_ != null + && salePrice_ != com.google.shopping.type.Price.getDefaultInstance()) { getSalePriceBuilder().mergeFrom(value); } else { salePrice_ = value; @@ -1889,6 +2071,8 @@ public Builder mergeSalePrice(com.google.shopping.type.Price value) { return this; } /** + * + * ** Sale price of the product at this store. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date] @@ -1908,6 +2092,8 @@ public Builder clearSalePrice() { return this; } /** + * + * ** Sale price of the product at this store. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date] @@ -1922,6 +2108,8 @@ public com.google.shopping.type.Price.Builder getSalePriceBuilder() { return getSalePriceFieldBuilder().getBuilder(); } /** + * + * ** Sale price of the product at this store. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date] @@ -1934,11 +2122,14 @@ public com.google.shopping.type.PriceOrBuilder getSalePriceOrBuilder() { if (salePriceBuilder_ != null) { return salePriceBuilder_.getMessageOrBuilder(); } else { - return salePrice_ == null ? - com.google.shopping.type.Price.getDefaultInstance() : salePrice_; + return salePrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : salePrice_; } } /** + * + * ** Sale price of the product at this store. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date] @@ -1948,14 +2139,17 @@ public com.google.shopping.type.PriceOrBuilder getSalePriceOrBuilder() { *.google.shopping.type.Price sale_price = 5;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.type.Price, com.google.shopping.type.Price.Builder, com.google.shopping.type.PriceOrBuilder> + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> getSalePriceFieldBuilder() { if (salePriceBuilder_ == null) { - salePriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.type.Price, com.google.shopping.type.Price.Builder, com.google.shopping.type.PriceOrBuilder>( - getSalePrice(), - getParentForChildren(), - isClean()); + salePriceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getSalePrice(), getParentForChildren(), isClean()); salePrice_ = null; } return salePriceBuilder_; @@ -1963,36 +2157,49 @@ public com.google.shopping.type.PriceOrBuilder getSalePriceOrBuilder() { private com.google.type.Interval salePriceEffectiveDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder> salePriceEffectiveDateBuilder_; + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + salePriceEffectiveDateBuilder_; /** + * + * ** The `TimePeriod` of the * sale at this store. ** *.google.type.Interval sale_price_effective_date = 6;
+ * * @return Whether the salePriceEffectiveDate field is set. */ public boolean hasSalePriceEffectiveDate() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * ** The `TimePeriod` of the * sale at this store. ** *.google.type.Interval sale_price_effective_date = 6;
+ * * @return The salePriceEffectiveDate. */ public com.google.type.Interval getSalePriceEffectiveDate() { if (salePriceEffectiveDateBuilder_ == null) { - return salePriceEffectiveDate_ == null ? com.google.type.Interval.getDefaultInstance() : salePriceEffectiveDate_; + return salePriceEffectiveDate_ == null + ? com.google.type.Interval.getDefaultInstance() + : salePriceEffectiveDate_; } else { return salePriceEffectiveDateBuilder_.getMessage(); } } /** + * + * ** The `TimePeriod` of the * sale at this store. @@ -2014,6 +2221,8 @@ public Builder setSalePriceEffectiveDate(com.google.type.Interval value) { return this; } /** + * + * ** The `TimePeriod` of the * sale at this store. @@ -2021,8 +2230,7 @@ public Builder setSalePriceEffectiveDate(com.google.type.Interval value) { * *.google.type.Interval sale_price_effective_date = 6;
*/ - public Builder setSalePriceEffectiveDate( - com.google.type.Interval.Builder builderForValue) { + public Builder setSalePriceEffectiveDate(com.google.type.Interval.Builder builderForValue) { if (salePriceEffectiveDateBuilder_ == null) { salePriceEffectiveDate_ = builderForValue.build(); } else { @@ -2033,6 +2241,8 @@ public Builder setSalePriceEffectiveDate( return this; } /** + * + * ** The `TimePeriod` of the * sale at this store. @@ -2042,9 +2252,9 @@ public Builder setSalePriceEffectiveDate( */ public Builder mergeSalePriceEffectiveDate(com.google.type.Interval value) { if (salePriceEffectiveDateBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - salePriceEffectiveDate_ != null && - salePriceEffectiveDate_ != com.google.type.Interval.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && salePriceEffectiveDate_ != null + && salePriceEffectiveDate_ != com.google.type.Interval.getDefaultInstance()) { getSalePriceEffectiveDateBuilder().mergeFrom(value); } else { salePriceEffectiveDate_ = value; @@ -2057,6 +2267,8 @@ public Builder mergeSalePriceEffectiveDate(com.google.type.Interval value) { return this; } /** + * + * ** The `TimePeriod` of the * sale at this store. @@ -2075,6 +2287,8 @@ public Builder clearSalePriceEffectiveDate() { return this; } /** + * + * ** The `TimePeriod` of the * sale at this store. @@ -2088,6 +2302,8 @@ public com.google.type.Interval.Builder getSalePriceEffectiveDateBuilder() { return getSalePriceEffectiveDateFieldBuilder().getBuilder(); } /** + * + * ** The `TimePeriod` of the * sale at this store. @@ -2099,11 +2315,14 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { if (salePriceEffectiveDateBuilder_ != null) { return salePriceEffectiveDateBuilder_.getMessageOrBuilder(); } else { - return salePriceEffectiveDate_ == null ? - com.google.type.Interval.getDefaultInstance() : salePriceEffectiveDate_; + return salePriceEffectiveDate_ == null + ? com.google.type.Interval.getDefaultInstance() + : salePriceEffectiveDate_; } } /** + * + * ** The `TimePeriod` of the * sale at this store. @@ -2112,14 +2331,17 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { *.google.type.Interval sale_price_effective_date = 6;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder> + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> getSalePriceEffectiveDateFieldBuilder() { if (salePriceEffectiveDateBuilder_ == null) { - salePriceEffectiveDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder>( - getSalePriceEffectiveDate(), - getParentForChildren(), - isClean()); + salePriceEffectiveDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder>( + getSalePriceEffectiveDate(), getParentForChildren(), isClean()); salePriceEffectiveDate_ = null; } return salePriceEffectiveDateBuilder_; @@ -2127,6 +2349,8 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { private java.lang.Object availability_ = ""; /** + * + * ** Availability of the product at this store. * For accepted attribute values, see the [local product inventory feed @@ -2134,12 +2358,15 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { ** *optional string availability = 7;
+ * * @return Whether the availability field is set. */ public boolean hasAvailability() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * ** Availability of the product at this store. * For accepted attribute values, see the [local product inventory feed @@ -2147,13 +2374,13 @@ public boolean hasAvailability() { ** *optional string availability = 7;
+ * * @return The availability. */ public java.lang.String getAvailability() { java.lang.Object ref = availability_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); availability_ = s; return s; @@ -2162,6 +2389,8 @@ public java.lang.String getAvailability() { } } /** + * + * ** Availability of the product at this store. * For accepted attribute values, see the [local product inventory feed @@ -2169,15 +2398,14 @@ public java.lang.String getAvailability() { ** *optional string availability = 7;
+ * * @return The bytes for availability. */ - public com.google.protobuf.ByteString - getAvailabilityBytes() { + public com.google.protobuf.ByteString getAvailabilityBytes() { java.lang.Object ref = availability_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); availability_ = b; return b; } else { @@ -2185,6 +2413,8 @@ public java.lang.String getAvailability() { } } /** + * + * ** Availability of the product at this store. * For accepted attribute values, see the [local product inventory feed @@ -2192,18 +2422,22 @@ public java.lang.String getAvailability() { ** *optional string availability = 7;
+ * * @param value The availability to set. * @return This builder for chaining. */ - public Builder setAvailability( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAvailability(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } availability_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * ** Availability of the product at this store. * For accepted attribute values, see the [local product inventory feed @@ -2211,6 +2445,7 @@ public Builder setAvailability( ** *optional string availability = 7;
+ * * @return This builder for chaining. */ public Builder clearAvailability() { @@ -2220,6 +2455,8 @@ public Builder clearAvailability() { return this; } /** + * + * ** Availability of the product at this store. * For accepted attribute values, see the [local product inventory feed @@ -2227,12 +2464,14 @@ public Builder clearAvailability() { ** *optional string availability = 7;
+ * * @param value The bytes for availability to set. * @return This builder for chaining. */ - public Builder setAvailabilityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAvailabilityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); availability_ = value; bitField0_ |= 0x00000040; @@ -2240,14 +2479,17 @@ public Builder setAvailabilityBytes( return this; } - private long quantity_ ; + private long quantity_; /** + * + * ** Quantity of the product available at this store. Must be greater than or * equal to zero. ** *optional int64 quantity = 8;
+ * * @return Whether the quantity field is set. */ @java.lang.Override @@ -2255,12 +2497,15 @@ public boolean hasQuantity() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * ** Quantity of the product available at this store. Must be greater than or * equal to zero. ** *optional int64 quantity = 8;
+ * * @return The quantity. */ @java.lang.Override @@ -2268,12 +2513,15 @@ public long getQuantity() { return quantity_; } /** + * + * ** Quantity of the product available at this store. Must be greater than or * equal to zero. ** *optional int64 quantity = 8;
+ * * @param value The quantity to set. * @return This builder for chaining. */ @@ -2285,12 +2533,15 @@ public Builder setQuantity(long value) { return this; } /** + * + * ** Quantity of the product available at this store. Must be greater than or * equal to zero. ** *optional int64 quantity = 8;
+ * * @return This builder for chaining. */ public Builder clearQuantity() { @@ -2302,6 +2553,8 @@ public Builder clearQuantity() { private java.lang.Object pickupMethod_ = ""; /** + * + * ** Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with @@ -2311,12 +2564,15 @@ public Builder clearQuantity() { ** *optional string pickup_method = 9;
+ * * @return Whether the pickupMethod field is set. */ public boolean hasPickupMethod() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * ** Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with @@ -2326,13 +2582,13 @@ public boolean hasPickupMethod() { ** *optional string pickup_method = 9;
+ * * @return The pickupMethod. */ public java.lang.String getPickupMethod() { java.lang.Object ref = pickupMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pickupMethod_ = s; return s; @@ -2341,6 +2597,8 @@ public java.lang.String getPickupMethod() { } } /** + * + * ** Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with @@ -2350,15 +2608,14 @@ public java.lang.String getPickupMethod() { ** *optional string pickup_method = 9;
+ * * @return The bytes for pickupMethod. */ - public com.google.protobuf.ByteString - getPickupMethodBytes() { + public com.google.protobuf.ByteString getPickupMethodBytes() { java.lang.Object ref = pickupMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pickupMethod_ = b; return b; } else { @@ -2366,6 +2623,8 @@ public java.lang.String getPickupMethod() { } } /** + * + * ** Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with @@ -2375,18 +2634,22 @@ public java.lang.String getPickupMethod() { ** *optional string pickup_method = 9;
+ * * @param value The pickupMethod to set. * @return This builder for chaining. */ - public Builder setPickupMethod( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPickupMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pickupMethod_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * ** Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with @@ -2396,6 +2659,7 @@ public Builder setPickupMethod( ** *optional string pickup_method = 9;
+ * * @return This builder for chaining. */ public Builder clearPickupMethod() { @@ -2405,6 +2669,8 @@ public Builder clearPickupMethod() { return this; } /** + * + * ** Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with @@ -2414,12 +2680,14 @@ public Builder clearPickupMethod() { ** *optional string pickup_method = 9;
+ * * @param value The bytes for pickupMethod to set. * @return This builder for chaining. */ - public Builder setPickupMethodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPickupMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pickupMethod_ = value; bitField0_ |= 0x00000100; @@ -2429,6 +2697,8 @@ public Builder setPickupMethodBytes( private java.lang.Object pickupSla_ = ""; /** + * + * ** Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with @@ -2438,12 +2708,15 @@ public Builder setPickupMethodBytes( ** *optional string pickup_sla = 10;
+ * * @return Whether the pickupSla field is set. */ public boolean hasPickupSla() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * ** Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with @@ -2453,13 +2726,13 @@ public boolean hasPickupSla() { ** *optional string pickup_sla = 10;
+ * * @return The pickupSla. */ public java.lang.String getPickupSla() { java.lang.Object ref = pickupSla_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pickupSla_ = s; return s; @@ -2468,6 +2741,8 @@ public java.lang.String getPickupSla() { } } /** + * + * ** Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with @@ -2477,15 +2752,14 @@ public java.lang.String getPickupSla() { ** *optional string pickup_sla = 10;
+ * * @return The bytes for pickupSla. */ - public com.google.protobuf.ByteString - getPickupSlaBytes() { + public com.google.protobuf.ByteString getPickupSlaBytes() { java.lang.Object ref = pickupSla_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pickupSla_ = b; return b; } else { @@ -2493,6 +2767,8 @@ public java.lang.String getPickupSla() { } } /** + * + * ** Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with @@ -2502,18 +2778,22 @@ public java.lang.String getPickupSla() { ** *optional string pickup_sla = 10;
+ * * @param value The pickupSla to set. * @return This builder for chaining. */ - public Builder setPickupSla( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPickupSla(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pickupSla_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * ** Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with @@ -2523,6 +2803,7 @@ public Builder setPickupSla( ** *optional string pickup_sla = 10;
+ * * @return This builder for chaining. */ public Builder clearPickupSla() { @@ -2532,6 +2813,8 @@ public Builder clearPickupSla() { return this; } /** + * + * ** Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with @@ -2541,12 +2824,14 @@ public Builder clearPickupSla() { ** *optional string pickup_sla = 10;
+ * * @param value The bytes for pickupSla to set. * @return This builder for chaining. */ - public Builder setPickupSlaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPickupSlaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pickupSla_ = value; bitField0_ |= 0x00000200; @@ -2556,29 +2841,34 @@ public Builder setPickupSlaBytes( private java.lang.Object instoreProductLocation_ = ""; /** + * + * ** Location of the product inside the store. Maximum length is 20 bytes. ** *optional string instore_product_location = 11;
+ * * @return Whether the instoreProductLocation field is set. */ public boolean hasInstoreProductLocation() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * ** Location of the product inside the store. Maximum length is 20 bytes. ** *optional string instore_product_location = 11;
+ * * @return The instoreProductLocation. */ public java.lang.String getInstoreProductLocation() { java.lang.Object ref = instoreProductLocation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instoreProductLocation_ = s; return s; @@ -2587,20 +2877,21 @@ public java.lang.String getInstoreProductLocation() { } } /** + * + * ** Location of the product inside the store. Maximum length is 20 bytes. ** *optional string instore_product_location = 11;
+ * * @return The bytes for instoreProductLocation. */ - public com.google.protobuf.ByteString - getInstoreProductLocationBytes() { + public com.google.protobuf.ByteString getInstoreProductLocationBytes() { java.lang.Object ref = instoreProductLocation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instoreProductLocation_ = b; return b; } else { @@ -2608,28 +2899,35 @@ public java.lang.String getInstoreProductLocation() { } } /** + * + * ** Location of the product inside the store. Maximum length is 20 bytes. ** *optional string instore_product_location = 11;
+ * * @param value The instoreProductLocation to set. * @return This builder for chaining. */ - public Builder setInstoreProductLocation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInstoreProductLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } instoreProductLocation_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * ** Location of the product inside the store. Maximum length is 20 bytes. ** *optional string instore_product_location = 11;
+ * * @return This builder for chaining. */ public Builder clearInstoreProductLocation() { @@ -2639,17 +2937,21 @@ public Builder clearInstoreProductLocation() { return this; } /** + * + * ** Location of the product inside the store. Maximum length is 20 bytes. ** *optional string instore_product_location = 11;
+ * * @param value The bytes for instoreProductLocation to set. * @return This builder for chaining. */ - public Builder setInstoreProductLocationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInstoreProductLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); instoreProductLocation_ = value; bitField0_ |= 0x00000400; @@ -2658,18 +2960,25 @@ public Builder setInstoreProductLocationBytes( } private java.util.ListcustomAttributes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCustomAttributesIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - customAttributes_ = new java.util.ArrayList (customAttributes_); + customAttributes_ = + new java.util.ArrayList (customAttributes_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.shopping.type.CustomAttribute, com.google.shopping.type.CustomAttribute.Builder, com.google.shopping.type.CustomAttributeOrBuilder> customAttributesBuilder_; + com.google.shopping.type.CustomAttribute, + com.google.shopping.type.CustomAttribute.Builder, + com.google.shopping.type.CustomAttributeOrBuilder> + customAttributesBuilder_; /** + * + * * * A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2686,6 +2995,8 @@ public java.util.ListgetCustomAttribu } } /** + * + * * * A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2702,6 +3013,8 @@ public int getCustomAttributesCount() { } } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2718,6 +3031,8 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { } } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2726,8 +3041,7 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { * *repeated .google.shopping.type.CustomAttribute custom_attributes = 12;
*/ - public Builder setCustomAttributes( - int index, com.google.shopping.type.CustomAttribute value) { + public Builder setCustomAttributes(int index, com.google.shopping.type.CustomAttribute value) { if (customAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2741,6 +3055,8 @@ public Builder setCustomAttributes( return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2761,6 +3077,8 @@ public Builder setCustomAttributes( return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2783,6 +3101,8 @@ public Builder addCustomAttributes(com.google.shopping.type.CustomAttribute valu return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2791,8 +3111,7 @@ public Builder addCustomAttributes(com.google.shopping.type.CustomAttribute valu * *repeated .google.shopping.type.CustomAttribute custom_attributes = 12;
*/ - public Builder addCustomAttributes( - int index, com.google.shopping.type.CustomAttribute value) { + public Builder addCustomAttributes(int index, com.google.shopping.type.CustomAttribute value) { if (customAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2806,6 +3125,8 @@ public Builder addCustomAttributes( return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2826,6 +3147,8 @@ public Builder addCustomAttributes( return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2846,6 +3169,8 @@ public Builder addCustomAttributes( return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2858,8 +3183,7 @@ public Builder addAllCustomAttributes( java.lang.Iterable extends com.google.shopping.type.CustomAttribute> values) { if (customAttributesBuilder_ == null) { ensureCustomAttributesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, customAttributes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customAttributes_); onChanged(); } else { customAttributesBuilder_.addAllMessages(values); @@ -2867,6 +3191,8 @@ public Builder addAllCustomAttributes( return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2886,6 +3212,8 @@ public Builder clearCustomAttributes() { return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2905,6 +3233,8 @@ public Builder removeCustomAttributes(int index) { return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2913,11 +3243,12 @@ public Builder removeCustomAttributes(int index) { * *repeated .google.shopping.type.CustomAttribute custom_attributes = 12;
*/ - public com.google.shopping.type.CustomAttribute.Builder getCustomAttributesBuilder( - int index) { + public com.google.shopping.type.CustomAttribute.Builder getCustomAttributesBuilder(int index) { return getCustomAttributesFieldBuilder().getBuilder(index); } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2929,11 +3260,14 @@ public com.google.shopping.type.CustomAttribute.Builder getCustomAttributesBuild public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBuilder( int index) { if (customAttributesBuilder_ == null) { - return customAttributes_.get(index); } else { + return customAttributes_.get(index); + } else { return customAttributesBuilder_.getMessageOrBuilder(index); } } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2942,8 +3276,8 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu * *repeated .google.shopping.type.CustomAttribute custom_attributes = 12;
*/ - public java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> - getCustomAttributesOrBuilderList() { + public java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> + getCustomAttributesOrBuilderList() { if (customAttributesBuilder_ != null) { return customAttributesBuilder_.getMessageOrBuilderList(); } else { @@ -2951,6 +3285,8 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu } } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2960,10 +3296,12 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu *repeated .google.shopping.type.CustomAttribute custom_attributes = 12;
*/ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuilder() { - return getCustomAttributesFieldBuilder().addBuilder( - com.google.shopping.type.CustomAttribute.getDefaultInstance()); + return getCustomAttributesFieldBuilder() + .addBuilder(com.google.shopping.type.CustomAttribute.getDefaultInstance()); } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2972,12 +3310,13 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild * *repeated .google.shopping.type.CustomAttribute custom_attributes = 12;
*/ - public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuilder( - int index) { - return getCustomAttributesFieldBuilder().addBuilder( - index, com.google.shopping.type.CustomAttribute.getDefaultInstance()); + public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuilder(int index) { + return getCustomAttributesFieldBuilder() + .addBuilder(index, com.google.shopping.type.CustomAttribute.getDefaultInstance()); } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2986,16 +3325,22 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild * *repeated .google.shopping.type.CustomAttribute custom_attributes = 12;
*/ - public java.util.List- getCustomAttributesBuilderList() { + public java.util.List + getCustomAttributesBuilderList() { return getCustomAttributesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.shopping.type.CustomAttribute, com.google.shopping.type.CustomAttribute.Builder, com.google.shopping.type.CustomAttributeOrBuilder> + com.google.shopping.type.CustomAttribute, + com.google.shopping.type.CustomAttribute.Builder, + com.google.shopping.type.CustomAttributeOrBuilder> getCustomAttributesFieldBuilder() { if (customAttributesBuilder_ == null) { - customAttributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.shopping.type.CustomAttribute, com.google.shopping.type.CustomAttribute.Builder, com.google.shopping.type.CustomAttributeOrBuilder>( + customAttributesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.type.CustomAttribute, + com.google.shopping.type.CustomAttribute.Builder, + com.google.shopping.type.CustomAttributeOrBuilder>( customAttributes_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), @@ -3004,9 +3349,9 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild } return customAttributesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3016,41 +3361,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.shopping.merchant.inventories.v1beta.LocalInventory) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.inventories.v1beta.LocalInventory) - private static final com.google.shopping.merchant.inventories.v1beta.LocalInventory DEFAULT_INSTANCE; + private static final com.google.shopping.merchant.inventories.v1beta.LocalInventory + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.shopping.merchant.inventories.v1beta.LocalInventory(); } - public static com.google.shopping.merchant.inventories.v1beta.LocalInventory getDefaultInstance() { + public static com.google.shopping.merchant.inventories.v1beta.LocalInventory + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public LocalInventory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public LocalInventory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3062,9 +3409,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.LocalInventory getDefaultInstanceForType() { + public com.google.shopping.merchant.inventories.v1beta.LocalInventory + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryName.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryName.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryName.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryName.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryOrBuilder.java similarity index 87% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryOrBuilder.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryOrBuilder.java index 1a65afed157c..b2b43234a82e 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/localinventory.proto package com.google.shopping.merchant.inventories.v1beta; -public interface LocalInventoryOrBuilder extends +public interface LocalInventoryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.shopping.merchant.inventories.v1beta.LocalInventory) com.google.protobuf.MessageOrBuilder { /** + * + * * * Output only. The name of the `LocalInventory` resource. * Format: @@ -15,10 +33,13 @@ public interface LocalInventoryOrBuilder extends ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The name. */ java.lang.String getName(); /** + * + * ** Output only. The name of the `LocalInventory` resource. * Format: @@ -26,23 +47,28 @@ public interface LocalInventoryOrBuilder extends ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * ** Output only. The account that owns the product. This field will be ignored * if set by the client. ** *int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The account. */ long getAccount(); /** + * + * ** Required. Store code (the store ID from your Business Profile) of the * physical store the product is sold in. See the [Local product inventory @@ -51,10 +77,13 @@ public interface LocalInventoryOrBuilder extends ** *string store_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The storeCode. */ java.lang.String getStoreCode(); /** + * + * ** Required. Store code (the store ID from your Business Profile) of the * physical store the product is sold in. See the [Local product inventory @@ -63,30 +92,38 @@ public interface LocalInventoryOrBuilder extends ** *string store_code = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for storeCode. */ - com.google.protobuf.ByteString - getStoreCodeBytes(); + com.google.protobuf.ByteString getStoreCodeBytes(); /** + * + * ** Price of the product at this store. ** *.google.shopping.type.Price price = 4;
+ * * @return Whether the price field is set. */ boolean hasPrice(); /** + * + * ** Price of the product at this store. ** *.google.shopping.type.Price price = 4;
+ * * @return The price. */ com.google.shopping.type.Price getPrice(); /** + * + * ** Price of the product at this store. *@@ -96,6 +133,8 @@ public interface LocalInventoryOrBuilder extends com.google.shopping.type.PriceOrBuilder getPriceOrBuilder(); /** + * + * ** Sale price of the product at this store. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date] @@ -103,10 +142,13 @@ public interface LocalInventoryOrBuilder extends ** *.google.shopping.type.Price sale_price = 5;
+ * * @return Whether the salePrice field is set. */ boolean hasSalePrice(); /** + * + * ** Sale price of the product at this store. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date] @@ -114,10 +156,13 @@ public interface LocalInventoryOrBuilder extends ** *.google.shopping.type.Price sale_price = 5;
+ * * @return The salePrice. */ com.google.shopping.type.Price getSalePrice(); /** + * + * ** Sale price of the product at this store. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date] @@ -129,26 +174,34 @@ public interface LocalInventoryOrBuilder extends com.google.shopping.type.PriceOrBuilder getSalePriceOrBuilder(); /** + * + * ** The `TimePeriod` of the * sale at this store. ** *.google.type.Interval sale_price_effective_date = 6;
+ * * @return Whether the salePriceEffectiveDate field is set. */ boolean hasSalePriceEffectiveDate(); /** + * + * ** The `TimePeriod` of the * sale at this store. ** *.google.type.Interval sale_price_effective_date = 6;
+ * * @return The salePriceEffectiveDate. */ com.google.type.Interval getSalePriceEffectiveDate(); /** + * + * ** The `TimePeriod` of the * sale at this store. @@ -159,6 +212,8 @@ public interface LocalInventoryOrBuilder extends com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder(); /** + * + * ** Availability of the product at this store. * For accepted attribute values, see the [local product inventory feed @@ -166,10 +221,13 @@ public interface LocalInventoryOrBuilder extends ** *optional string availability = 7;
+ * * @return Whether the availability field is set. */ boolean hasAvailability(); /** + * + * ** Availability of the product at this store. * For accepted attribute values, see the [local product inventory feed @@ -177,10 +235,13 @@ public interface LocalInventoryOrBuilder extends ** *optional string availability = 7;
+ * * @return The availability. */ java.lang.String getAvailability(); /** + * + * ** Availability of the product at this store. * For accepted attribute values, see the [local product inventory feed @@ -188,33 +249,41 @@ public interface LocalInventoryOrBuilder extends ** *optional string availability = 7;
+ * * @return The bytes for availability. */ - com.google.protobuf.ByteString - getAvailabilityBytes(); + com.google.protobuf.ByteString getAvailabilityBytes(); /** + * + * ** Quantity of the product available at this store. Must be greater than or * equal to zero. ** *optional int64 quantity = 8;
+ * * @return Whether the quantity field is set. */ boolean hasQuantity(); /** + * + * ** Quantity of the product available at this store. Must be greater than or * equal to zero. ** *optional int64 quantity = 8;
+ * * @return The quantity. */ long getQuantity(); /** + * + * ** Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with @@ -224,10 +293,13 @@ public interface LocalInventoryOrBuilder extends ** *optional string pickup_method = 9;
+ * * @return Whether the pickupMethod field is set. */ boolean hasPickupMethod(); /** + * + * ** Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with @@ -237,10 +309,13 @@ public interface LocalInventoryOrBuilder extends ** *optional string pickup_method = 9;
+ * * @return The pickupMethod. */ java.lang.String getPickupMethod(); /** + * + * ** Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with @@ -250,12 +325,14 @@ public interface LocalInventoryOrBuilder extends ** *optional string pickup_method = 9;
+ * * @return The bytes for pickupMethod. */ - com.google.protobuf.ByteString - getPickupMethodBytes(); + com.google.protobuf.ByteString getPickupMethodBytes(); /** + * + * ** Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with @@ -265,10 +342,13 @@ public interface LocalInventoryOrBuilder extends ** *optional string pickup_sla = 10;
+ * * @return Whether the pickupSla field is set. */ boolean hasPickupSla(); /** + * + * ** Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with @@ -278,10 +358,13 @@ public interface LocalInventoryOrBuilder extends ** *optional string pickup_sla = 10;
+ * * @return The pickupSla. */ java.lang.String getPickupSla(); /** + * + * ** Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with @@ -291,41 +374,51 @@ public interface LocalInventoryOrBuilder extends ** *optional string pickup_sla = 10;
+ * * @return The bytes for pickupSla. */ - com.google.protobuf.ByteString - getPickupSlaBytes(); + com.google.protobuf.ByteString getPickupSlaBytes(); /** + * + * ** Location of the product inside the store. Maximum length is 20 bytes. ** *optional string instore_product_location = 11;
+ * * @return Whether the instoreProductLocation field is set. */ boolean hasInstoreProductLocation(); /** + * + * ** Location of the product inside the store. Maximum length is 20 bytes. ** *optional string instore_product_location = 11;
+ * * @return The instoreProductLocation. */ java.lang.String getInstoreProductLocation(); /** + * + * ** Location of the product inside the store. Maximum length is 20 bytes. ** *optional string instore_product_location = 11;
+ * * @return The bytes for instoreProductLocation. */ - com.google.protobuf.ByteString - getInstoreProductLocationBytes(); + com.google.protobuf.ByteString getInstoreProductLocationBytes(); /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -334,9 +427,10 @@ public interface LocalInventoryOrBuilder extends * *repeated .google.shopping.type.CustomAttribute custom_attributes = 12;
*/ - java.util.List- getCustomAttributesList(); + java.util.List getCustomAttributesList(); /** + * + * * * A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -347,6 +441,8 @@ public interface LocalInventoryOrBuilder extends */ com.google.shopping.type.CustomAttribute getCustomAttributes(int index); /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -357,6 +453,8 @@ public interface LocalInventoryOrBuilder extends */ int getCustomAttributesCount(); /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -365,9 +463,11 @@ public interface LocalInventoryOrBuilder extends * *repeated .google.shopping.type.CustomAttribute custom_attributes = 12;
*/ - java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> + java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> getCustomAttributesOrBuilderList(); /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -376,6 +476,5 @@ public interface LocalInventoryOrBuilder extends * *repeated .google.shopping.type.CustomAttribute custom_attributes = 12;
*/ - com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBuilder( - int index); + com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index); } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryProto.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryProto.java new file mode 100644 index 000000000000..19c4627f9049 --- /dev/null +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryProto.java @@ -0,0 +1,211 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/localinventory.proto + +package com.google.shopping.merchant.inventories.v1beta; + +public final class LocalInventoryProto { + private LocalInventoryProto() {} + + 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_shopping_merchant_inventories_v1beta_LocalInventory_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_inventories_v1beta_LocalInventory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_inventories_v1beta_InsertLocalInventoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_inventories_v1beta_InsertLocalInventoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_inventories_v1beta_DeleteLocalInventoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_inventories_v1beta_DeleteLocalInventoryRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n@google/shopping/merchant/inventories/v" + + "1beta/localinventory.proto\022+google.shopp" + + "ing.merchant.inventories.v1beta\032\034google/" + + "api/annotations.proto\032\027google/api/client" + + ".proto\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032\033google/proto" + + "buf/empty.proto\032 google/shopping/type/ty" + + "pes.proto\032\032google/type/interval.proto\"\215\005" + + "\n\016LocalInventory\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\025\n\007" + + "account\030\002 \001(\003B\004\342A\001\003\022\030\n\nstore_code\030\003 \001(\tB" + + "\004\342A\001\002\022*\n\005price\030\004 \001(\0132\033.google.shopping.t" + + "ype.Price\022/\n\nsale_price\030\005 \001(\0132\033.google.s" + + "hopping.type.Price\0228\n\031sale_price_effecti" + + "ve_date\030\006 \001(\0132\025.google.type.Interval\022\031\n\014" + + "availability\030\007 \001(\tH\000\210\001\001\022\025\n\010quantity\030\010 \001(" + + "\003H\001\210\001\001\022\032\n\rpickup_method\030\t \001(\tH\002\210\001\001\022\027\n\npi" + + "ckup_sla\030\n \001(\tH\003\210\001\001\022%\n\030instore_product_l" + + "ocation\030\013 \001(\tH\004\210\001\001\022@\n\021custom_attributes\030" + + "\014 \003(\0132%.google.shopping.type.CustomAttri" + + "bute:s\352Ap\n)merchantapi.googleapis.com/Lo" + + "calInventory\022Caccounts/{account}/product" + + "s/{product}/localInventories/{store_code" + + "}B\017\n\r_availabilityB\013\n\t_quantityB\020\n\016_pick" + + "up_methodB\r\n\013_pickup_slaB\033\n\031_instore_pro" + + "duct_location\"Z\n\033ListLocalInventoriesReq" + + "uest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\217\001\n\034ListLocalI" + + "nventoriesResponse\022V\n\021local_inventories\030" + + "\001 \003(\0132;.google.shopping.merchant.invento" + + "ries.v1beta.LocalInventory\022\027\n\017next_page_" + + "token\030\002 \001(\t\"\217\001\n\033InsertLocalInventoryRequ" + + "est\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022Z\n\017local_inven" + + "tory\030\002 \001(\0132;.google.shopping.merchant.in" + + "ventories.v1beta.LocalInventoryB\004\342A\001\002\"_\n" + + "\033DeleteLocalInventoryRequest\022@\n\004name\030\001 \001" + + "(\tB2\342A\001\002\372A+\n)merchantapi.googleapis.com/" + + "LocalInventory2\270\006\n\025LocalInventoryService" + + "\022\201\002\n\024ListLocalInventories\022H.google.shopp" + + "ing.merchant.inventories.v1beta.ListLoca" + + "lInventoriesRequest\032I.google.shopping.me" + + "rchant.inventories.v1beta.ListLocalInven" + + "toriesResponse\"T\332A\006parent\202\323\344\223\002E\022C/invent" + + "ories/v1beta/{parent=accounts/*/products" + + "/*}/localInventories\022\202\002\n\024InsertLocalInve" + + "ntory\022H.google.shopping.merchant.invento" + + "ries.v1beta.InsertLocalInventoryRequest\032" + + ";.google.shopping.merchant.inventories.v" + + "1beta.LocalInventory\"c\202\323\344\223\002]\"J/inventori" + + "es/v1beta/{parent=accounts/*/products/*}" + + "/localInventories:insert:\017local_inventor" + + "y\022\314\001\n\024DeleteLocalInventory\022H.google.shop" + + "ping.merchant.inventories.v1beta.DeleteL" + + "ocalInventoryRequest\032\026.google.protobuf.E" + + "mpty\"R\332A\004name\202\323\344\223\002E*C/inventories/v1beta" + + "/{name=accounts/*/products/*/localInvent" + + "ories/*}\032G\312A\032merchantapi.googleapis.com\322" + + "A\'https://www.googleapis.com/auth/conten" + + "tB\241\001\n/com.google.shopping.merchant.inven" + + "tories.v1betaB\023LocalInventoryProtoP\001ZWcl" + + "oud.google.com/go/shopping/merchant/inve" + + "ntories/apiv1beta/inventoriespb;inventor" + + "iespbb\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.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.shopping.type.TypesProto.getDescriptor(), + com.google.type.IntervalProto.getDescriptor(), + }); + internal_static_google_shopping_merchant_inventories_v1beta_LocalInventory_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_shopping_merchant_inventories_v1beta_LocalInventory_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_inventories_v1beta_LocalInventory_descriptor, + new java.lang.String[] { + "Name", + "Account", + "StoreCode", + "Price", + "SalePrice", + "SalePriceEffectiveDate", + "Availability", + "Quantity", + "PickupMethod", + "PickupSla", + "InstoreProductLocation", + "CustomAttributes", + "Availability", + "Quantity", + "PickupMethod", + "PickupSla", + "InstoreProductLocation", + }); + internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_inventories_v1beta_ListLocalInventoriesResponse_descriptor, + new java.lang.String[] { + "LocalInventories", "NextPageToken", + }); + internal_static_google_shopping_merchant_inventories_v1beta_InsertLocalInventoryRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_shopping_merchant_inventories_v1beta_InsertLocalInventoryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_inventories_v1beta_InsertLocalInventoryRequest_descriptor, + new java.lang.String[] { + "Parent", "LocalInventory", + }); + internal_static_google_shopping_merchant_inventories_v1beta_DeleteLocalInventoryRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_shopping_merchant_inventories_v1beta_DeleteLocalInventoryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_inventories_v1beta_DeleteLocalInventoryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + 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.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.shopping.type.TypesProto.getDescriptor(); + com.google.type.IntervalProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventory.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventory.java similarity index 76% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventory.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventory.java index 7326d512e3c6..ed69dccf4152 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventory.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventory.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/regionalinventory.proto package com.google.shopping.merchant.inventories.v1beta; /** + * + * ** Regional inventory information for the product. Represents specific * information like price and availability for a given product in a specific @@ -15,15 +32,16 @@ * * Protobuf type {@code google.shopping.merchant.inventories.v1beta.RegionalInventory} */ -public final class RegionalInventory extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RegionalInventory extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.inventories.v1beta.RegionalInventory) RegionalInventoryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RegionalInventory.newBuilder() to construct. private RegionalInventory(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private RegionalInventory() { name_ = ""; region_ = ""; @@ -33,29 +51,33 @@ private RegionalInventory() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RegionalInventory(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_RegionalInventory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_RegionalInventory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_RegionalInventory_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_RegionalInventory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.RegionalInventory.class, com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder.class); + com.google.shopping.merchant.inventories.v1beta.RegionalInventory.class, + com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * ** Output only. The name of the `RegionalInventory` resource. * Format: @@ -63,6 +85,7 @@ protected java.lang.Object newInstance( ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The name. */ @java.lang.Override @@ -71,14 +94,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * ** Output only. The name of the `RegionalInventory` resource. * Format: @@ -86,16 +110,15 @@ public java.lang.String getName() { ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -106,12 +129,15 @@ public java.lang.String getName() { public static final int ACCOUNT_FIELD_NUMBER = 2; private long account_ = 0L; /** + * + * ** Output only. The account that owns the product. This field will be ignored * if set by the client. ** *int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The account. */ @java.lang.Override @@ -120,9 +146,12 @@ public long getAccount() { } public static final int REGION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object region_ = ""; /** + * + * ** Required. ID of the region for this * `RegionalInventory` resource. See the [Regional availability and @@ -131,6 +160,7 @@ public long getAccount() { ** *string region = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The region. */ @java.lang.Override @@ -139,14 +169,15 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * ** Required. ID of the region for this * `RegionalInventory` resource. See the [Regional availability and @@ -155,16 +186,15 @@ public java.lang.String getRegion() { ** *string region = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -175,11 +205,14 @@ public java.lang.String getRegion() { public static final int PRICE_FIELD_NUMBER = 4; private com.google.shopping.type.Price price_; /** + * + * ** Price of the product in this region. ** *.google.shopping.type.Price price = 4;
+ * * @return Whether the price field is set. */ @java.lang.Override @@ -187,11 +220,14 @@ public boolean hasPrice() { return price_ != null; } /** + * + * ** Price of the product in this region. ** *.google.shopping.type.Price price = 4;
+ * * @return The price. */ @java.lang.Override @@ -199,6 +235,8 @@ public com.google.shopping.type.Price getPrice() { return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; } /** + * + * ** Price of the product in this region. *@@ -213,6 +251,8 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { public static final int SALE_PRICE_FIELD_NUMBER = 5; private com.google.shopping.type.Price salePrice_; /** + * + * ** Sale price of the product in this region. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date] @@ -220,6 +260,7 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { ** *.google.shopping.type.Price sale_price = 5;
+ * * @return Whether the salePrice field is set. */ @java.lang.Override @@ -227,6 +268,8 @@ public boolean hasSalePrice() { return salePrice_ != null; } /** + * + * ** Sale price of the product in this region. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date] @@ -234,6 +277,7 @@ public boolean hasSalePrice() { ** *.google.shopping.type.Price sale_price = 5;
+ * * @return The salePrice. */ @java.lang.Override @@ -241,6 +285,8 @@ public com.google.shopping.type.Price getSalePrice() { return salePrice_ == null ? com.google.shopping.type.Price.getDefaultInstance() : salePrice_; } /** + * + * ** Sale price of the product in this region. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date] @@ -257,12 +303,15 @@ public com.google.shopping.type.PriceOrBuilder getSalePriceOrBuilder() { public static final int SALE_PRICE_EFFECTIVE_DATE_FIELD_NUMBER = 6; private com.google.type.Interval salePriceEffectiveDate_; /** + * + * ** The `TimePeriod` of the * sale price in this region. ** *.google.type.Interval sale_price_effective_date = 6;
+ * * @return Whether the salePriceEffectiveDate field is set. */ @java.lang.Override @@ -270,19 +319,26 @@ public boolean hasSalePriceEffectiveDate() { return salePriceEffectiveDate_ != null; } /** + * + * ** The `TimePeriod` of the * sale price in this region. ** *.google.type.Interval sale_price_effective_date = 6;
+ * * @return The salePriceEffectiveDate. */ @java.lang.Override public com.google.type.Interval getSalePriceEffectiveDate() { - return salePriceEffectiveDate_ == null ? com.google.type.Interval.getDefaultInstance() : salePriceEffectiveDate_; + return salePriceEffectiveDate_ == null + ? com.google.type.Interval.getDefaultInstance() + : salePriceEffectiveDate_; } /** + * + * ** The `TimePeriod` of the * sale price in this region. @@ -292,13 +348,18 @@ public com.google.type.Interval getSalePriceEffectiveDate() { */ @java.lang.Override public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { - return salePriceEffectiveDate_ == null ? com.google.type.Interval.getDefaultInstance() : salePriceEffectiveDate_; + return salePriceEffectiveDate_ == null + ? com.google.type.Interval.getDefaultInstance() + : salePriceEffectiveDate_; } public static final int AVAILABILITY_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object availability_ = ""; /** + * + * ** Availability of the product in this region. * For accepted attribute values, see the [regional product inventory feed @@ -306,6 +367,7 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { ** *optional string availability = 7;
+ * * @return Whether the availability field is set. */ @java.lang.Override @@ -313,6 +375,8 @@ public boolean hasAvailability() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * ** Availability of the product in this region. * For accepted attribute values, see the [regional product inventory feed @@ -320,6 +384,7 @@ public boolean hasAvailability() { ** *optional string availability = 7;
+ * * @return The availability. */ @java.lang.Override @@ -328,14 +393,15 @@ public java.lang.String getAvailability() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); availability_ = s; return s; } } /** + * + * ** Availability of the product in this region. * For accepted attribute values, see the [regional product inventory feed @@ -343,16 +409,15 @@ public java.lang.String getAvailability() { ** *optional string availability = 7;
+ * * @return The bytes for availability. */ @java.lang.Override - public com.google.protobuf.ByteString - getAvailabilityBytes() { + public com.google.protobuf.ByteString getAvailabilityBytes() { java.lang.Object ref = availability_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); availability_ = b; return b; } else { @@ -361,9 +426,12 @@ public java.lang.String getAvailability() { } public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private java.util.ListcustomAttributes_; /** + * + * * * A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -377,6 +445,8 @@ public java.util.ListgetCustomAttribu return customAttributes_; } /** + * + * * * A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -386,11 +456,13 @@ public java.util.ListgetCustomAttribu * repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
*/ @java.lang.Override - public java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> + public java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> getCustomAttributesOrBuilderList() { return customAttributes_; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -404,6 +476,8 @@ public int getCustomAttributesCount() { return customAttributes_.size(); } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -417,6 +491,8 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { return customAttributes_.get(index); } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -426,12 +502,12 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { *repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
*/ @java.lang.Override - public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBuilder( - int index) { + public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index) { return customAttributes_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -443,8 +519,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -482,30 +557,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (account_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, account_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, account_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } if (price_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPrice()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPrice()); } if (salePrice_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSalePrice()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSalePrice()); } if (salePriceEffectiveDate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSalePriceEffectiveDate()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSalePriceEffectiveDate()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, availability_); } for (int i = 0; i < customAttributes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, customAttributes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, customAttributes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -515,41 +586,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.shopping.merchant.inventories.v1beta.RegionalInventory)) { return super.equals(obj); } - com.google.shopping.merchant.inventories.v1beta.RegionalInventory other = (com.google.shopping.merchant.inventories.v1beta.RegionalInventory) obj; + com.google.shopping.merchant.inventories.v1beta.RegionalInventory other = + (com.google.shopping.merchant.inventories.v1beta.RegionalInventory) obj; - if (!getName() - .equals(other.getName())) return false; - if (getAccount() - != other.getAccount()) return false; - if (!getRegion() - .equals(other.getRegion())) return false; + if (!getName().equals(other.getName())) return false; + if (getAccount() != other.getAccount()) return false; + if (!getRegion().equals(other.getRegion())) return false; if (hasPrice() != other.hasPrice()) return false; if (hasPrice()) { - if (!getPrice() - .equals(other.getPrice())) return false; + if (!getPrice().equals(other.getPrice())) return false; } if (hasSalePrice() != other.hasSalePrice()) return false; if (hasSalePrice()) { - if (!getSalePrice() - .equals(other.getSalePrice())) return false; + if (!getSalePrice().equals(other.getSalePrice())) return false; } if (hasSalePriceEffectiveDate() != other.hasSalePriceEffectiveDate()) return false; if (hasSalePriceEffectiveDate()) { - if (!getSalePriceEffectiveDate() - .equals(other.getSalePriceEffectiveDate())) return false; + if (!getSalePriceEffectiveDate().equals(other.getSalePriceEffectiveDate())) return false; } if (hasAvailability() != other.hasAvailability()) return false; if (hasAvailability()) { - if (!getAvailability() - .equals(other.getAvailability())) return false; + if (!getAvailability().equals(other.getAvailability())) return false; } - if (!getCustomAttributesList() - .equals(other.getCustomAttributesList())) return false; + if (!getCustomAttributesList().equals(other.getCustomAttributesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -564,8 +628,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAccount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAccount()); hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); if (hasPrice()) { @@ -594,98 +657,105 @@ public int hashCode() { } public static com.google.shopping.merchant.inventories.v1beta.RegionalInventory parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.shopping.merchant.inventories.v1beta.RegionalInventory parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.shopping.merchant.inventories.v1beta.RegionalInventory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.shopping.merchant.inventories.v1beta.RegionalInventory 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.shopping.merchant.inventories.v1beta.RegionalInventory parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.shopping.merchant.inventories.v1beta.RegionalInventory parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.shopping.merchant.inventories.v1beta.RegionalInventory parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.RegionalInventory parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.shopping.merchant.inventories.v1beta.RegionalInventory parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.shopping.merchant.inventories.v1beta.RegionalInventory parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.shopping.merchant.inventories.v1beta.RegionalInventory parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.shopping.merchant.inventories.v1beta.RegionalInventory + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.shopping.merchant.inventories.v1beta.RegionalInventory 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.shopping.merchant.inventories.v1beta.RegionalInventory + 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.shopping.merchant.inventories.v1beta.RegionalInventory parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.shopping.merchant.inventories.v1beta.RegionalInventory parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.shopping.merchant.inventories.v1beta.RegionalInventory prototype) { + + public static Builder newBuilder( + com.google.shopping.merchant.inventories.v1beta.RegionalInventory prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * ** Regional inventory information for the product. Represents specific * information like price and availability for a given product in a specific @@ -697,33 +767,33 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.shopping.merchant.inventories.v1beta.RegionalInventory} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.inventories.v1beta.RegionalInventory) com.google.shopping.merchant.inventories.v1beta.RegionalInventoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_RegionalInventory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_RegionalInventory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_RegionalInventory_fieldAccessorTable + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_RegionalInventory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.merchant.inventories.v1beta.RegionalInventory.class, com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder.class); + com.google.shopping.merchant.inventories.v1beta.RegionalInventory.class, + com.google.shopping.merchant.inventories.v1beta.RegionalInventory.Builder.class); } - // Construct using com.google.shopping.merchant.inventories.v1beta.RegionalInventory.newBuilder() - private Builder() { + // Construct using + // com.google.shopping.merchant.inventories.v1beta.RegionalInventory.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -758,13 +828,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto.internal_static_google_shopping_merchant_inventories_v1beta_RegionalInventory_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.inventories.v1beta.RegionalInventoryProto + .internal_static_google_shopping_merchant_inventories_v1beta_RegionalInventory_descriptor; } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.RegionalInventory getDefaultInstanceForType() { + public com.google.shopping.merchant.inventories.v1beta.RegionalInventory + getDefaultInstanceForType() { return com.google.shopping.merchant.inventories.v1beta.RegionalInventory.getDefaultInstance(); } @@ -779,14 +850,18 @@ public com.google.shopping.merchant.inventories.v1beta.RegionalInventory build() @java.lang.Override public com.google.shopping.merchant.inventories.v1beta.RegionalInventory buildPartial() { - com.google.shopping.merchant.inventories.v1beta.RegionalInventory result = new com.google.shopping.merchant.inventories.v1beta.RegionalInventory(this); + com.google.shopping.merchant.inventories.v1beta.RegionalInventory result = + new com.google.shopping.merchant.inventories.v1beta.RegionalInventory(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.shopping.merchant.inventories.v1beta.RegionalInventory result) { + private void buildPartialRepeatedFields( + com.google.shopping.merchant.inventories.v1beta.RegionalInventory result) { if (customAttributesBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { customAttributes_ = java.util.Collections.unmodifiableList(customAttributes_); @@ -798,7 +873,8 @@ private void buildPartialRepeatedFields(com.google.shopping.merchant.inventories } } - private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.RegionalInventory result) { + private void buildPartial0( + com.google.shopping.merchant.inventories.v1beta.RegionalInventory result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -810,19 +886,16 @@ private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.Regio result.region_ = region_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.price_ = priceBuilder_ == null - ? price_ - : priceBuilder_.build(); + result.price_ = priceBuilder_ == null ? price_ : priceBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.salePrice_ = salePriceBuilder_ == null - ? salePrice_ - : salePriceBuilder_.build(); + result.salePrice_ = salePriceBuilder_ == null ? salePrice_ : salePriceBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.salePriceEffectiveDate_ = salePriceEffectiveDateBuilder_ == null - ? salePriceEffectiveDate_ - : salePriceEffectiveDateBuilder_.build(); + result.salePriceEffectiveDate_ = + salePriceEffectiveDateBuilder_ == null + ? salePriceEffectiveDate_ + : salePriceEffectiveDateBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000040) != 0)) { @@ -836,46 +909,50 @@ private void buildPartial0(com.google.shopping.merchant.inventories.v1beta.Regio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.shopping.merchant.inventories.v1beta.RegionalInventory) { - return mergeFrom((com.google.shopping.merchant.inventories.v1beta.RegionalInventory)other); + return mergeFrom((com.google.shopping.merchant.inventories.v1beta.RegionalInventory) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.shopping.merchant.inventories.v1beta.RegionalInventory other) { - if (other == com.google.shopping.merchant.inventories.v1beta.RegionalInventory.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.shopping.merchant.inventories.v1beta.RegionalInventory other) { + if (other + == com.google.shopping.merchant.inventories.v1beta.RegionalInventory.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -921,9 +998,10 @@ public Builder mergeFrom(com.google.shopping.merchant.inventories.v1beta.Regiona customAttributesBuilder_ = null; customAttributes_ = other.customAttributes_; bitField0_ = (bitField0_ & ~0x00000080); - customAttributesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCustomAttributesFieldBuilder() : null; + customAttributesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomAttributesFieldBuilder() + : null; } else { customAttributesBuilder_.addAllMessages(other.customAttributes_); } @@ -955,66 +1033,69 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - account_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - region_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getPriceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getSalePriceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getSalePriceEffectiveDateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - availability_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - com.google.shopping.type.CustomAttribute m = - input.readMessage( - com.google.shopping.type.CustomAttribute.parser(), - extensionRegistry); - if (customAttributesBuilder_ == null) { - ensureCustomAttributesIsMutable(); - customAttributes_.add(m); - } else { - customAttributesBuilder_.addMessage(m); - } - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + account_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getPriceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getSalePriceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + getSalePriceEffectiveDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + availability_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.shopping.type.CustomAttribute m = + input.readMessage( + com.google.shopping.type.CustomAttribute.parser(), extensionRegistry); + if (customAttributesBuilder_ == null) { + ensureCustomAttributesIsMutable(); + customAttributes_.add(m); + } else { + customAttributesBuilder_.addMessage(m); + } + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1024,10 +1105,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * * * Output only. The name of the `RegionalInventory` resource. * Format: @@ -1035,13 +1119,13 @@ public Builder mergeFrom( ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1050,6 +1134,8 @@ public java.lang.String getName() { } } /** + * + * ** Output only. The name of the `RegionalInventory` resource. * Format: @@ -1057,15 +1143,14 @@ public java.lang.String getName() { ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1073,6 +1158,8 @@ public java.lang.String getName() { } } /** + * + * ** Output only. The name of the `RegionalInventory` resource. * Format: @@ -1080,18 +1167,22 @@ public java.lang.String getName() { ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Output only. The name of the `RegionalInventory` resource. * Format: @@ -1099,6 +1190,7 @@ public Builder setName( ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return This builder for chaining. */ public Builder clearName() { @@ -1108,6 +1200,8 @@ public Builder clearName() { return this; } /** + * + * ** Output only. The name of the `RegionalInventory` resource. * Format: @@ -1115,12 +1209,14 @@ public Builder clearName() { ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1128,14 +1224,17 @@ public Builder setNameBytes( return this; } - private long account_ ; + private long account_; /** + * + * ** Output only. The account that owns the product. This field will be ignored * if set by the client. ** *int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The account. */ @java.lang.Override @@ -1143,12 +1242,15 @@ public long getAccount() { return account_; } /** + * + * ** Output only. The account that owns the product. This field will be ignored * if set by the client. ** *int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The account to set. * @return This builder for chaining. */ @@ -1160,12 +1262,15 @@ public Builder setAccount(long value) { return this; } /** + * + * ** Output only. The account that owns the product. This field will be ignored * if set by the client. ** *int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return This builder for chaining. */ public Builder clearAccount() { @@ -1177,6 +1282,8 @@ public Builder clearAccount() { private java.lang.Object region_ = ""; /** + * + * ** Required. ID of the region for this * `RegionalInventory` resource. See the [Regional availability and @@ -1185,13 +1292,13 @@ public Builder clearAccount() { ** *string region = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -1200,6 +1307,8 @@ public java.lang.String getRegion() { } } /** + * + * ** Required. ID of the region for this * `RegionalInventory` resource. See the [Regional availability and @@ -1208,15 +1317,14 @@ public java.lang.String getRegion() { ** *string region = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -1224,6 +1332,8 @@ public java.lang.String getRegion() { } } /** + * + * ** Required. ID of the region for this * `RegionalInventory` resource. See the [Regional availability and @@ -1232,18 +1342,22 @@ public java.lang.String getRegion() { ** *string region = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } region_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * ** Required. ID of the region for this * `RegionalInventory` resource. See the [Regional availability and @@ -1252,6 +1366,7 @@ public Builder setRegion( ** *string region = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @return This builder for chaining. */ public Builder clearRegion() { @@ -1261,6 +1376,8 @@ public Builder clearRegion() { return this; } /** + * + * ** Required. ID of the region for this * `RegionalInventory` resource. See the [Regional availability and @@ -1269,12 +1386,14 @@ public Builder clearRegion() { ** *string region = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); region_ = value; bitField0_ |= 0x00000004; @@ -1284,24 +1403,33 @@ public Builder setRegionBytes( private com.google.shopping.type.Price price_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.type.Price, com.google.shopping.type.Price.Builder, com.google.shopping.type.PriceOrBuilder> priceBuilder_; + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + priceBuilder_; /** + * + * ** Price of the product in this region. ** *.google.shopping.type.Price price = 4;
+ * * @return Whether the price field is set. */ public boolean hasPrice() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * ** Price of the product in this region. ** *.google.shopping.type.Price price = 4;
+ * * @return The price. */ public com.google.shopping.type.Price getPrice() { @@ -1312,6 +1440,8 @@ public com.google.shopping.type.Price getPrice() { } } /** + * + * ** Price of the product in this region. *@@ -1332,14 +1462,15 @@ public Builder setPrice(com.google.shopping.type.Price value) { return this; } /** + * + * ** Price of the product in this region. ** *.google.shopping.type.Price price = 4;
*/ - public Builder setPrice( - com.google.shopping.type.Price.Builder builderForValue) { + public Builder setPrice(com.google.shopping.type.Price.Builder builderForValue) { if (priceBuilder_ == null) { price_ = builderForValue.build(); } else { @@ -1350,6 +1481,8 @@ public Builder setPrice( return this; } /** + * + * ** Price of the product in this region. *@@ -1358,9 +1491,9 @@ public Builder setPrice( */ public Builder mergePrice(com.google.shopping.type.Price value) { if (priceBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - price_ != null && - price_ != com.google.shopping.type.Price.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && price_ != null + && price_ != com.google.shopping.type.Price.getDefaultInstance()) { getPriceBuilder().mergeFrom(value); } else { price_ = value; @@ -1373,6 +1506,8 @@ public Builder mergePrice(com.google.shopping.type.Price value) { return this; } /** + * + * ** Price of the product in this region. *@@ -1390,6 +1525,8 @@ public Builder clearPrice() { return this; } /** + * + * ** Price of the product in this region. *@@ -1402,6 +1539,8 @@ public com.google.shopping.type.Price.Builder getPriceBuilder() { return getPriceFieldBuilder().getBuilder(); } /** + * + * ** Price of the product in this region. *@@ -1412,11 +1551,12 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { if (priceBuilder_ != null) { return priceBuilder_.getMessageOrBuilder(); } else { - return price_ == null ? - com.google.shopping.type.Price.getDefaultInstance() : price_; + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; } } /** + * + * ** Price of the product in this region. *@@ -1424,14 +1564,17 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { *.google.shopping.type.Price price = 4;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.type.Price, com.google.shopping.type.Price.Builder, com.google.shopping.type.PriceOrBuilder> + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> getPriceFieldBuilder() { if (priceBuilder_ == null) { - priceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.type.Price, com.google.shopping.type.Price.Builder, com.google.shopping.type.PriceOrBuilder>( - getPrice(), - getParentForChildren(), - isClean()); + priceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getPrice(), getParentForChildren(), isClean()); price_ = null; } return priceBuilder_; @@ -1439,8 +1582,13 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { private com.google.shopping.type.Price salePrice_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.type.Price, com.google.shopping.type.Price.Builder, com.google.shopping.type.PriceOrBuilder> salePriceBuilder_; + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + salePriceBuilder_; /** + * + * ** Sale price of the product in this region. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date] @@ -1448,12 +1596,15 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { ** *.google.shopping.type.Price sale_price = 5;
+ * * @return Whether the salePrice field is set. */ public boolean hasSalePrice() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * ** Sale price of the product in this region. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date] @@ -1461,16 +1612,21 @@ public boolean hasSalePrice() { ** *.google.shopping.type.Price sale_price = 5;
+ * * @return The salePrice. */ public com.google.shopping.type.Price getSalePrice() { if (salePriceBuilder_ == null) { - return salePrice_ == null ? com.google.shopping.type.Price.getDefaultInstance() : salePrice_; + return salePrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : salePrice_; } else { return salePriceBuilder_.getMessage(); } } /** + * + * ** Sale price of the product in this region. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date] @@ -1493,6 +1649,8 @@ public Builder setSalePrice(com.google.shopping.type.Price value) { return this; } /** + * + * ** Sale price of the product in this region. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date] @@ -1501,8 +1659,7 @@ public Builder setSalePrice(com.google.shopping.type.Price value) { * *.google.shopping.type.Price sale_price = 5;
*/ - public Builder setSalePrice( - com.google.shopping.type.Price.Builder builderForValue) { + public Builder setSalePrice(com.google.shopping.type.Price.Builder builderForValue) { if (salePriceBuilder_ == null) { salePrice_ = builderForValue.build(); } else { @@ -1513,6 +1670,8 @@ public Builder setSalePrice( return this; } /** + * + * ** Sale price of the product in this region. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date] @@ -1523,9 +1682,9 @@ public Builder setSalePrice( */ public Builder mergeSalePrice(com.google.shopping.type.Price value) { if (salePriceBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - salePrice_ != null && - salePrice_ != com.google.shopping.type.Price.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && salePrice_ != null + && salePrice_ != com.google.shopping.type.Price.getDefaultInstance()) { getSalePriceBuilder().mergeFrom(value); } else { salePrice_ = value; @@ -1538,6 +1697,8 @@ public Builder mergeSalePrice(com.google.shopping.type.Price value) { return this; } /** + * + * ** Sale price of the product in this region. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date] @@ -1557,6 +1718,8 @@ public Builder clearSalePrice() { return this; } /** + * + * ** Sale price of the product in this region. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date] @@ -1571,6 +1734,8 @@ public com.google.shopping.type.Price.Builder getSalePriceBuilder() { return getSalePriceFieldBuilder().getBuilder(); } /** + * + * ** Sale price of the product in this region. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date] @@ -1583,11 +1748,14 @@ public com.google.shopping.type.PriceOrBuilder getSalePriceOrBuilder() { if (salePriceBuilder_ != null) { return salePriceBuilder_.getMessageOrBuilder(); } else { - return salePrice_ == null ? - com.google.shopping.type.Price.getDefaultInstance() : salePrice_; + return salePrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : salePrice_; } } /** + * + * ** Sale price of the product in this region. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date] @@ -1597,14 +1765,17 @@ public com.google.shopping.type.PriceOrBuilder getSalePriceOrBuilder() { *.google.shopping.type.Price sale_price = 5;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.type.Price, com.google.shopping.type.Price.Builder, com.google.shopping.type.PriceOrBuilder> + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> getSalePriceFieldBuilder() { if (salePriceBuilder_ == null) { - salePriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.type.Price, com.google.shopping.type.Price.Builder, com.google.shopping.type.PriceOrBuilder>( - getSalePrice(), - getParentForChildren(), - isClean()); + salePriceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getSalePrice(), getParentForChildren(), isClean()); salePrice_ = null; } return salePriceBuilder_; @@ -1612,36 +1783,49 @@ public com.google.shopping.type.PriceOrBuilder getSalePriceOrBuilder() { private com.google.type.Interval salePriceEffectiveDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder> salePriceEffectiveDateBuilder_; + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + salePriceEffectiveDateBuilder_; /** + * + * ** The `TimePeriod` of the * sale price in this region. ** *.google.type.Interval sale_price_effective_date = 6;
+ * * @return Whether the salePriceEffectiveDate field is set. */ public boolean hasSalePriceEffectiveDate() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * ** The `TimePeriod` of the * sale price in this region. ** *.google.type.Interval sale_price_effective_date = 6;
+ * * @return The salePriceEffectiveDate. */ public com.google.type.Interval getSalePriceEffectiveDate() { if (salePriceEffectiveDateBuilder_ == null) { - return salePriceEffectiveDate_ == null ? com.google.type.Interval.getDefaultInstance() : salePriceEffectiveDate_; + return salePriceEffectiveDate_ == null + ? com.google.type.Interval.getDefaultInstance() + : salePriceEffectiveDate_; } else { return salePriceEffectiveDateBuilder_.getMessage(); } } /** + * + * ** The `TimePeriod` of the * sale price in this region. @@ -1663,6 +1847,8 @@ public Builder setSalePriceEffectiveDate(com.google.type.Interval value) { return this; } /** + * + * ** The `TimePeriod` of the * sale price in this region. @@ -1670,8 +1856,7 @@ public Builder setSalePriceEffectiveDate(com.google.type.Interval value) { * *.google.type.Interval sale_price_effective_date = 6;
*/ - public Builder setSalePriceEffectiveDate( - com.google.type.Interval.Builder builderForValue) { + public Builder setSalePriceEffectiveDate(com.google.type.Interval.Builder builderForValue) { if (salePriceEffectiveDateBuilder_ == null) { salePriceEffectiveDate_ = builderForValue.build(); } else { @@ -1682,6 +1867,8 @@ public Builder setSalePriceEffectiveDate( return this; } /** + * + * ** The `TimePeriod` of the * sale price in this region. @@ -1691,9 +1878,9 @@ public Builder setSalePriceEffectiveDate( */ public Builder mergeSalePriceEffectiveDate(com.google.type.Interval value) { if (salePriceEffectiveDateBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - salePriceEffectiveDate_ != null && - salePriceEffectiveDate_ != com.google.type.Interval.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && salePriceEffectiveDate_ != null + && salePriceEffectiveDate_ != com.google.type.Interval.getDefaultInstance()) { getSalePriceEffectiveDateBuilder().mergeFrom(value); } else { salePriceEffectiveDate_ = value; @@ -1706,6 +1893,8 @@ public Builder mergeSalePriceEffectiveDate(com.google.type.Interval value) { return this; } /** + * + * ** The `TimePeriod` of the * sale price in this region. @@ -1724,6 +1913,8 @@ public Builder clearSalePriceEffectiveDate() { return this; } /** + * + * ** The `TimePeriod` of the * sale price in this region. @@ -1737,6 +1928,8 @@ public com.google.type.Interval.Builder getSalePriceEffectiveDateBuilder() { return getSalePriceEffectiveDateFieldBuilder().getBuilder(); } /** + * + * ** The `TimePeriod` of the * sale price in this region. @@ -1748,11 +1941,14 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { if (salePriceEffectiveDateBuilder_ != null) { return salePriceEffectiveDateBuilder_.getMessageOrBuilder(); } else { - return salePriceEffectiveDate_ == null ? - com.google.type.Interval.getDefaultInstance() : salePriceEffectiveDate_; + return salePriceEffectiveDate_ == null + ? com.google.type.Interval.getDefaultInstance() + : salePriceEffectiveDate_; } } /** + * + * ** The `TimePeriod` of the * sale price in this region. @@ -1761,14 +1957,17 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { *.google.type.Interval sale_price_effective_date = 6;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder> + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> getSalePriceEffectiveDateFieldBuilder() { if (salePriceEffectiveDateBuilder_ == null) { - salePriceEffectiveDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Interval, com.google.type.Interval.Builder, com.google.type.IntervalOrBuilder>( - getSalePriceEffectiveDate(), - getParentForChildren(), - isClean()); + salePriceEffectiveDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder>( + getSalePriceEffectiveDate(), getParentForChildren(), isClean()); salePriceEffectiveDate_ = null; } return salePriceEffectiveDateBuilder_; @@ -1776,6 +1975,8 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { private java.lang.Object availability_ = ""; /** + * + * ** Availability of the product in this region. * For accepted attribute values, see the [regional product inventory feed @@ -1783,12 +1984,15 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { ** *optional string availability = 7;
+ * * @return Whether the availability field is set. */ public boolean hasAvailability() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * ** Availability of the product in this region. * For accepted attribute values, see the [regional product inventory feed @@ -1796,13 +2000,13 @@ public boolean hasAvailability() { ** *optional string availability = 7;
+ * * @return The availability. */ public java.lang.String getAvailability() { java.lang.Object ref = availability_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); availability_ = s; return s; @@ -1811,6 +2015,8 @@ public java.lang.String getAvailability() { } } /** + * + * ** Availability of the product in this region. * For accepted attribute values, see the [regional product inventory feed @@ -1818,15 +2024,14 @@ public java.lang.String getAvailability() { ** *optional string availability = 7;
+ * * @return The bytes for availability. */ - public com.google.protobuf.ByteString - getAvailabilityBytes() { + public com.google.protobuf.ByteString getAvailabilityBytes() { java.lang.Object ref = availability_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); availability_ = b; return b; } else { @@ -1834,6 +2039,8 @@ public java.lang.String getAvailability() { } } /** + * + * ** Availability of the product in this region. * For accepted attribute values, see the [regional product inventory feed @@ -1841,18 +2048,22 @@ public java.lang.String getAvailability() { ** *optional string availability = 7;
+ * * @param value The availability to set. * @return This builder for chaining. */ - public Builder setAvailability( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAvailability(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } availability_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * ** Availability of the product in this region. * For accepted attribute values, see the [regional product inventory feed @@ -1860,6 +2071,7 @@ public Builder setAvailability( ** *optional string availability = 7;
+ * * @return This builder for chaining. */ public Builder clearAvailability() { @@ -1869,6 +2081,8 @@ public Builder clearAvailability() { return this; } /** + * + * ** Availability of the product in this region. * For accepted attribute values, see the [regional product inventory feed @@ -1876,12 +2090,14 @@ public Builder clearAvailability() { ** *optional string availability = 7;
+ * * @param value The bytes for availability to set. * @return This builder for chaining. */ - public Builder setAvailabilityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAvailabilityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); availability_ = value; bitField0_ |= 0x00000040; @@ -1890,18 +2106,25 @@ public Builder setAvailabilityBytes( } private java.util.ListcustomAttributes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCustomAttributesIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - customAttributes_ = new java.util.ArrayList (customAttributes_); + customAttributes_ = + new java.util.ArrayList (customAttributes_); bitField0_ |= 0x00000080; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.shopping.type.CustomAttribute, com.google.shopping.type.CustomAttribute.Builder, com.google.shopping.type.CustomAttributeOrBuilder> customAttributesBuilder_; + com.google.shopping.type.CustomAttribute, + com.google.shopping.type.CustomAttribute.Builder, + com.google.shopping.type.CustomAttributeOrBuilder> + customAttributesBuilder_; /** + * + * * * A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -1918,6 +2141,8 @@ public java.util.ListgetCustomAttribu } } /** + * + * * * A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -1934,6 +2159,8 @@ public int getCustomAttributesCount() { } } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -1950,6 +2177,8 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { } } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -1958,8 +2187,7 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { * *repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
*/ - public Builder setCustomAttributes( - int index, com.google.shopping.type.CustomAttribute value) { + public Builder setCustomAttributes(int index, com.google.shopping.type.CustomAttribute value) { if (customAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1973,6 +2201,8 @@ public Builder setCustomAttributes( return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -1993,6 +2223,8 @@ public Builder setCustomAttributes( return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2015,6 +2247,8 @@ public Builder addCustomAttributes(com.google.shopping.type.CustomAttribute valu return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2023,8 +2257,7 @@ public Builder addCustomAttributes(com.google.shopping.type.CustomAttribute valu * *repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
*/ - public Builder addCustomAttributes( - int index, com.google.shopping.type.CustomAttribute value) { + public Builder addCustomAttributes(int index, com.google.shopping.type.CustomAttribute value) { if (customAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2038,6 +2271,8 @@ public Builder addCustomAttributes( return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2058,6 +2293,8 @@ public Builder addCustomAttributes( return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2078,6 +2315,8 @@ public Builder addCustomAttributes( return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2090,8 +2329,7 @@ public Builder addAllCustomAttributes( java.lang.Iterable extends com.google.shopping.type.CustomAttribute> values) { if (customAttributesBuilder_ == null) { ensureCustomAttributesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, customAttributes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customAttributes_); onChanged(); } else { customAttributesBuilder_.addAllMessages(values); @@ -2099,6 +2337,8 @@ public Builder addAllCustomAttributes( return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2118,6 +2358,8 @@ public Builder clearCustomAttributes() { return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2137,6 +2379,8 @@ public Builder removeCustomAttributes(int index) { return this; } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2145,11 +2389,12 @@ public Builder removeCustomAttributes(int index) { * *repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
*/ - public com.google.shopping.type.CustomAttribute.Builder getCustomAttributesBuilder( - int index) { + public com.google.shopping.type.CustomAttribute.Builder getCustomAttributesBuilder(int index) { return getCustomAttributesFieldBuilder().getBuilder(index); } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2161,11 +2406,14 @@ public com.google.shopping.type.CustomAttribute.Builder getCustomAttributesBuild public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBuilder( int index) { if (customAttributesBuilder_ == null) { - return customAttributes_.get(index); } else { + return customAttributes_.get(index); + } else { return customAttributesBuilder_.getMessageOrBuilder(index); } } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2174,8 +2422,8 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu * *repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
*/ - public java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> - getCustomAttributesOrBuilderList() { + public java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> + getCustomAttributesOrBuilderList() { if (customAttributesBuilder_ != null) { return customAttributesBuilder_.getMessageOrBuilderList(); } else { @@ -2183,6 +2431,8 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu } } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2192,10 +2442,12 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu *repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
*/ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuilder() { - return getCustomAttributesFieldBuilder().addBuilder( - com.google.shopping.type.CustomAttribute.getDefaultInstance()); + return getCustomAttributesFieldBuilder() + .addBuilder(com.google.shopping.type.CustomAttribute.getDefaultInstance()); } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2204,12 +2456,13 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild * *repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
*/ - public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuilder( - int index) { - return getCustomAttributesFieldBuilder().addBuilder( - index, com.google.shopping.type.CustomAttribute.getDefaultInstance()); + public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuilder(int index) { + return getCustomAttributesFieldBuilder() + .addBuilder(index, com.google.shopping.type.CustomAttribute.getDefaultInstance()); } /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -2218,16 +2471,22 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild * *repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
*/ - public java.util.List- getCustomAttributesBuilderList() { + public java.util.List + getCustomAttributesBuilderList() { return getCustomAttributesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.shopping.type.CustomAttribute, com.google.shopping.type.CustomAttribute.Builder, com.google.shopping.type.CustomAttributeOrBuilder> + com.google.shopping.type.CustomAttribute, + com.google.shopping.type.CustomAttribute.Builder, + com.google.shopping.type.CustomAttributeOrBuilder> getCustomAttributesFieldBuilder() { if (customAttributesBuilder_ == null) { - customAttributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.shopping.type.CustomAttribute, com.google.shopping.type.CustomAttribute.Builder, com.google.shopping.type.CustomAttributeOrBuilder>( + customAttributesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.type.CustomAttribute, + com.google.shopping.type.CustomAttribute.Builder, + com.google.shopping.type.CustomAttributeOrBuilder>( customAttributes_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), @@ -2236,9 +2495,9 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild } return customAttributesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2248,41 +2507,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.shopping.merchant.inventories.v1beta.RegionalInventory) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.inventories.v1beta.RegionalInventory) - private static final com.google.shopping.merchant.inventories.v1beta.RegionalInventory DEFAULT_INSTANCE; + private static final com.google.shopping.merchant.inventories.v1beta.RegionalInventory + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.shopping.merchant.inventories.v1beta.RegionalInventory(); } - public static com.google.shopping.merchant.inventories.v1beta.RegionalInventory getDefaultInstance() { + public static com.google.shopping.merchant.inventories.v1beta.RegionalInventory + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public RegionalInventory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public RegionalInventory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2294,9 +2555,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.shopping.merchant.inventories.v1beta.RegionalInventory getDefaultInstanceForType() { + public com.google.shopping.merchant.inventories.v1beta.RegionalInventory + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryName.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryName.java similarity index 100% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryName.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryName.java diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryOrBuilder.java similarity index 85% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryOrBuilder.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryOrBuilder.java index 82b4823c9512..77e1d8c854d3 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/regionalinventory.proto package com.google.shopping.merchant.inventories.v1beta; -public interface RegionalInventoryOrBuilder extends +public interface RegionalInventoryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.shopping.merchant.inventories.v1beta.RegionalInventory) com.google.protobuf.MessageOrBuilder { /** + * + * * * Output only. The name of the `RegionalInventory` resource. * Format: @@ -15,10 +33,13 @@ public interface RegionalInventoryOrBuilder extends ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The name. */ java.lang.String getName(); /** + * + * ** Output only. The name of the `RegionalInventory` resource. * Format: @@ -26,23 +47,28 @@ public interface RegionalInventoryOrBuilder extends ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * ** Output only. The account that owns the product. This field will be ignored * if set by the client. ** *int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The account. */ long getAccount(); /** + * + * ** Required. ID of the region for this * `RegionalInventory` resource. See the [Regional availability and @@ -51,10 +77,13 @@ public interface RegionalInventoryOrBuilder extends ** *string region = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The region. */ java.lang.String getRegion(); /** + * + * ** Required. ID of the region for this * `RegionalInventory` resource. See the [Regional availability and @@ -63,30 +92,38 @@ public interface RegionalInventoryOrBuilder extends ** *string region = 3 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); /** + * + * ** Price of the product in this region. ** *.google.shopping.type.Price price = 4;
+ * * @return Whether the price field is set. */ boolean hasPrice(); /** + * + * ** Price of the product in this region. ** *.google.shopping.type.Price price = 4;
+ * * @return The price. */ com.google.shopping.type.Price getPrice(); /** + * + * ** Price of the product in this region. *@@ -96,6 +133,8 @@ public interface RegionalInventoryOrBuilder extends com.google.shopping.type.PriceOrBuilder getPriceOrBuilder(); /** + * + * ** Sale price of the product in this region. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date] @@ -103,10 +142,13 @@ public interface RegionalInventoryOrBuilder extends ** *.google.shopping.type.Price sale_price = 5;
+ * * @return Whether the salePrice field is set. */ boolean hasSalePrice(); /** + * + * ** Sale price of the product in this region. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date] @@ -114,10 +156,13 @@ public interface RegionalInventoryOrBuilder extends ** *.google.shopping.type.Price sale_price = 5;
+ * * @return The salePrice. */ com.google.shopping.type.Price getSalePrice(); /** + * + * ** Sale price of the product in this region. Mandatory if * [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date] @@ -129,26 +174,34 @@ public interface RegionalInventoryOrBuilder extends com.google.shopping.type.PriceOrBuilder getSalePriceOrBuilder(); /** + * + * ** The `TimePeriod` of the * sale price in this region. ** *.google.type.Interval sale_price_effective_date = 6;
+ * * @return Whether the salePriceEffectiveDate field is set. */ boolean hasSalePriceEffectiveDate(); /** + * + * ** The `TimePeriod` of the * sale price in this region. ** *.google.type.Interval sale_price_effective_date = 6;
+ * * @return The salePriceEffectiveDate. */ com.google.type.Interval getSalePriceEffectiveDate(); /** + * + * ** The `TimePeriod` of the * sale price in this region. @@ -159,6 +212,8 @@ public interface RegionalInventoryOrBuilder extends com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder(); /** + * + * ** Availability of the product in this region. * For accepted attribute values, see the [regional product inventory feed @@ -166,10 +221,13 @@ public interface RegionalInventoryOrBuilder extends ** *optional string availability = 7;
+ * * @return Whether the availability field is set. */ boolean hasAvailability(); /** + * + * ** Availability of the product in this region. * For accepted attribute values, see the [regional product inventory feed @@ -177,10 +235,13 @@ public interface RegionalInventoryOrBuilder extends ** *optional string availability = 7;
+ * * @return The availability. */ java.lang.String getAvailability(); /** + * + * ** Availability of the product in this region. * For accepted attribute values, see the [regional product inventory feed @@ -188,12 +249,14 @@ public interface RegionalInventoryOrBuilder extends ** *optional string availability = 7;
+ * * @return The bytes for availability. */ - com.google.protobuf.ByteString - getAvailabilityBytes(); + com.google.protobuf.ByteString getAvailabilityBytes(); /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -202,9 +265,10 @@ public interface RegionalInventoryOrBuilder extends * *repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
*/ - java.util.List- getCustomAttributesList(); + java.util.List getCustomAttributesList(); /** + * + * * * A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -215,6 +279,8 @@ public interface RegionalInventoryOrBuilder extends */ com.google.shopping.type.CustomAttribute getCustomAttributes(int index); /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -225,6 +291,8 @@ public interface RegionalInventoryOrBuilder extends */ int getCustomAttributesCount(); /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -233,9 +301,11 @@ public interface RegionalInventoryOrBuilder extends * *repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
*/ - java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> + java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> getCustomAttributesOrBuilderList(); /** + * + * ** A list of custom (merchant-provided) attributes. You can also use * `CustomAttribute` to submit any attribute of the feed specification in its @@ -244,6 +314,5 @@ public interface RegionalInventoryOrBuilder extends * *repeated .google.shopping.type.CustomAttribute custom_attributes = 8;
*/ - com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBuilder( - int index); + com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index); } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryProto.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryProto.java new file mode 100644 index 000000000000..7d3f693efe27 --- /dev/null +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryProto.java @@ -0,0 +1,200 @@ +/* + * Copyright 2023 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/shopping/merchant/inventories/v1beta/regionalinventory.proto + +package com.google.shopping.merchant.inventories.v1beta; + +public final class RegionalInventoryProto { + private RegionalInventoryProto() {} + + 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_shopping_merchant_inventories_v1beta_RegionalInventory_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_inventories_v1beta_RegionalInventory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_inventories_v1beta_InsertRegionalInventoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_inventories_v1beta_InsertRegionalInventoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_inventories_v1beta_DeleteRegionalInventoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_inventories_v1beta_DeleteRegionalInventoryRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nCgoogle/shopping/merchant/inventories/v" + + "1beta/regionalinventory.proto\022+google.sh" + + "opping.merchant.inventories.v1beta\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\032\033google/pr" + + "otobuf/empty.proto\032 google/shopping/type" + + "/types.proto\032\032google/type/interval.proto" + + "\"\320\003\n\021RegionalInventory\022\022\n\004name\030\001 \001(\tB\004\342A" + + "\001\003\022\025\n\007account\030\002 \001(\003B\004\342A\001\003\022\024\n\006region\030\003 \001(" + + "\tB\004\342A\001\002\022*\n\005price\030\004 \001(\0132\033.google.shopping" + + ".type.Price\022/\n\nsale_price\030\005 \001(\0132\033.google" + + ".shopping.type.Price\0228\n\031sale_price_effec" + + "tive_date\030\006 \001(\0132\025.google.type.Interval\022\031" + + "\n\014availability\030\007 \001(\tH\000\210\001\001\022@\n\021custom_attr" + + "ibutes\030\010 \003(\0132%.google.shopping.type.Cust" + + "omAttribute:u\352Ar\n,merchantapi.googleapis" + + ".com/RegionalInventory\022Baccounts/{accoun" + + "t}/products/{product}/regionalInventorie" + + "s/{region}B\017\n\r_availability\"]\n\036ListRegio" + + "nalInventoriesRequest\022\024\n\006parent\030\001 \001(\tB\004\342" + + "A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"\230\001\n\037ListRegionalInventoriesResponse\022\\" + + "\n\024regional_inventories\030\001 \003(\0132>.google.sh" + + "opping.merchant.inventories.v1beta.Regio" + + "nalInventory\022\027\n\017next_page_token\030\002 \001(\t\"\230\001" + + "\n\036InsertRegionalInventoryRequest\022\024\n\006pare" + + "nt\030\001 \001(\tB\004\342A\001\002\022`\n\022regional_inventory\030\002 \001" + + "(\0132>.google.shopping.merchant.inventorie" + + "s.v1beta.RegionalInventoryB\004\342A\001\002\"e\n\036Dele" + + "teRegionalInventoryRequest\022C\n\004name\030\001 \001(\t" + + "B5\342A\001\002\372A.\n,merchantapi.googleapis.com/Re" + + "gionalInventory2\337\006\n\030RegionalInventorySer" + + "vice\022\215\002\n\027ListRegionalInventories\022K.googl" + + "e.shopping.merchant.inventories.v1beta.L" + + "istRegionalInventoriesRequest\032L.google.s" + + "hopping.merchant.inventories.v1beta.List" + + "RegionalInventoriesResponse\"W\332A\006parent\202\323" + + "\344\223\002H\022F/inventories/v1beta/{parent=accoun" + + "ts/*/products/*}/regionalInventories\022\221\002\n" + + "\027InsertRegionalInventory\022K.google.shoppi" + + "ng.merchant.inventories.v1beta.InsertReg" + + "ionalInventoryRequest\032>.google.shopping." + + "merchant.inventories.v1beta.RegionalInve" + + "ntory\"i\202\323\344\223\002c\"M/inventories/v1beta/{pare" + + "nt=accounts/*/products/*}/regionalInvent" + + "ories:insert:\022regional_inventory\022\325\001\n\027Del" + + "eteRegionalInventory\022K.google.shopping.m" + + "erchant.inventories.v1beta.DeleteRegiona" + + "lInventoryRequest\032\026.google.protobuf.Empt" + + "y\"U\332A\004name\202\323\344\223\002H*F/inventories/v1beta/{n" + + "ame=accounts/*/products/*/regionalInvent" + + "ories/*}\032G\312A\032merchantapi.googleapis.com\322" + + "A\'https://www.googleapis.com/auth/conten" + + "tB\244\001\n/com.google.shopping.merchant.inven" + + "tories.v1betaB\026RegionalInventoryProtoP\001Z" + + "Wcloud.google.com/go/shopping/merchant/i" + + "nventories/apiv1beta/inventoriespb;inven" + + "toriespbb\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.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.shopping.type.TypesProto.getDescriptor(), + com.google.type.IntervalProto.getDescriptor(), + }); + internal_static_google_shopping_merchant_inventories_v1beta_RegionalInventory_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_shopping_merchant_inventories_v1beta_RegionalInventory_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_inventories_v1beta_RegionalInventory_descriptor, + new java.lang.String[] { + "Name", + "Account", + "Region", + "Price", + "SalePrice", + "SalePriceEffectiveDate", + "Availability", + "CustomAttributes", + "Availability", + }); + internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_inventories_v1beta_ListRegionalInventoriesResponse_descriptor, + new java.lang.String[] { + "RegionalInventories", "NextPageToken", + }); + internal_static_google_shopping_merchant_inventories_v1beta_InsertRegionalInventoryRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_shopping_merchant_inventories_v1beta_InsertRegionalInventoryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_inventories_v1beta_InsertRegionalInventoryRequest_descriptor, + new java.lang.String[] { + "Parent", "RegionalInventory", + }); + internal_static_google_shopping_merchant_inventories_v1beta_DeleteRegionalInventoryRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_shopping_merchant_inventories_v1beta_DeleteRegionalInventoryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_inventories_v1beta_DeleteRegionalInventoryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + 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.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.shopping.type.TypesProto.getDescriptor(); + com.google.type.IntervalProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Channel.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Channel.java similarity index 65% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Channel.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Channel.java index 0ef5ca13b1ee..5ee421705cc4 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Channel.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Channel.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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/shopping/type/types.proto package com.google.shopping.type; /** + * + * ** [Channel](https://support.google.com/merchants/answer/7361332) of a product. * @@ -12,48 +29,51 @@ * * Protobuf type {@code google.shopping.type.Channel} */ -public final class Channel extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Channel extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.shopping.type.Channel) ChannelOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Channel.newBuilder() to construct. private Channel(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } - private Channel() { - } + + private Channel() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Channel(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.type.TypesProto.internal_static_google_shopping_type_Channel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Channel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.type.TypesProto.internal_static_google_shopping_type_Channel_fieldAccessorTable + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Channel_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.type.Channel.class, com.google.shopping.type.Channel.Builder.class); } /** + * + * ** Channel values. ** * Protobuf enum {@code google.shopping.type.Channel.ChannelEnum} */ - public enum ChannelEnum - implements com.google.protobuf.ProtocolMessageEnum { + public enum ChannelEnum implements com.google.protobuf.ProtocolMessageEnum { /** + * + * ** Not specified. *@@ -62,6 +82,8 @@ public enum ChannelEnum */ CHANNEL_ENUM_UNSPECIFIED(0), /** + * + * ** Online product. *@@ -70,6 +92,8 @@ public enum ChannelEnum */ ONLINE(1), /** + * + * ** Local product. *@@ -81,6 +105,8 @@ public enum ChannelEnum ; /** + * + * ** Not specified. *@@ -89,6 +115,8 @@ public enum ChannelEnum */ public static final int CHANNEL_ENUM_UNSPECIFIED_VALUE = 0; /** + * + * ** Online product. *@@ -97,6 +125,8 @@ public enum ChannelEnum */ public static final int ONLINE_VALUE = 1; /** + * + * ** Local product. *@@ -105,7 +135,6 @@ public enum ChannelEnum */ public static final int LOCAL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -130,49 +159,49 @@ public static ChannelEnum valueOf(int value) { */ public static ChannelEnum forNumber(int value) { switch (value) { - case 0: return CHANNEL_ENUM_UNSPECIFIED; - case 1: return ONLINE; - case 2: return LOCAL; - default: return null; + case 0: + return CHANNEL_ENUM_UNSPECIFIED; + case 1: + return ONLINE; + case 2: + return LOCAL; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap- internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ChannelEnum> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap () { - public ChannelEnum findValueByNumber(int number) { - return ChannelEnum.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap () { + public ChannelEnum findValueByNumber(int number) { + return ChannelEnum.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.shopping.type.Channel.getDescriptor().getEnumTypes().get(0); } private static final ChannelEnum[] VALUES = values(); - public static ChannelEnum valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ChannelEnum valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -190,6 +219,7 @@ private ChannelEnum(int value) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -220,7 +249,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.shopping.type.Channel)) { return super.equals(obj); @@ -243,99 +272,103 @@ public int hashCode() { return hash; } - public static com.google.shopping.type.Channel parseFrom( - java.nio.ByteBuffer data) + public static com.google.shopping.type.Channel parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.shopping.type.Channel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.type.Channel parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.shopping.type.Channel parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.shopping.type.Channel 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.shopping.type.Channel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.shopping.type.Channel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.shopping.type.Channel parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.shopping.type.Channel parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.shopping.type.Channel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.shopping.type.Channel parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.shopping.type.Channel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.shopping.type.Channel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.shopping.type.Channel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * * * [Channel](https://support.google.com/merchants/answer/7361332) of a product. * @@ -344,33 +377,32 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.shopping.type.Channel} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.shopping.type.Channel) com.google.shopping.type.ChannelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.type.TypesProto.internal_static_google_shopping_type_Channel_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Channel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.type.TypesProto.internal_static_google_shopping_type_Channel_fieldAccessorTable + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Channel_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.type.Channel.class, com.google.shopping.type.Channel.Builder.class); + com.google.shopping.type.Channel.class, + com.google.shopping.type.Channel.Builder.class); } // Construct using com.google.shopping.type.Channel.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.shopping.type.TypesProto.internal_static_google_shopping_type_Channel_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Channel_descriptor; } @java.lang.Override @@ -408,38 +440,39 @@ public com.google.shopping.type.Channel buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.shopping.type.Channel) { - return mergeFrom((com.google.shopping.type.Channel)other); + return mergeFrom((com.google.shopping.type.Channel) other); } else { super.mergeFrom(other); return this; @@ -474,12 +507,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -489,9 +523,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -501,12 +535,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.shopping.type.Channel) } // @@protoc_insertion_point(class_scope:google.shopping.type.Channel) private static final com.google.shopping.type.Channel DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.shopping.type.Channel(); } @@ -515,27 +549,27 @@ public static com.google.shopping.type.Channel getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public Channel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public Channel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -550,6 +584,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.shopping.type.Channel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/ChannelOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/ChannelOrBuilder.java new file mode 100644 index 000000000000..06aee0067e60 --- /dev/null +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/ChannelOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 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/shopping/type/types.proto + +package com.google.shopping.type; + +public interface ChannelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.type.Channel) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/CustomAttribute.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/CustomAttribute.java similarity index 74% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/CustomAttribute.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/CustomAttribute.java index 8d31fd4e03be..bd71ca66a62b 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/CustomAttribute.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/CustomAttribute.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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/shopping/type/types.proto package com.google.shopping.type; /** + * + * * * A message that represents custom attributes. Exactly one of `value` or * `group_values` must not be empty. @@ -11,15 +28,16 @@ * * Protobuf type {@code google.shopping.type.CustomAttribute} */ -public final class CustomAttribute extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CustomAttribute extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.shopping.type.CustomAttribute) CustomAttributeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomAttribute.newBuilder() to construct. private CustomAttribute(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private CustomAttribute() { name_ = ""; value_ = ""; @@ -28,34 +46,39 @@ private CustomAttribute() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CustomAttribute(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.type.TypesProto.internal_static_google_shopping_type_CustomAttribute_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_CustomAttribute_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.type.TypesProto.internal_static_google_shopping_type_CustomAttribute_fieldAccessorTable + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_CustomAttribute_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.type.CustomAttribute.class, com.google.shopping.type.CustomAttribute.Builder.class); + com.google.shopping.type.CustomAttribute.class, + com.google.shopping.type.CustomAttribute.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * ** The name of the attribute. ** *optional string name = 1;
+ * * @return Whether the name field is set. */ @java.lang.Override @@ -63,11 +86,14 @@ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * ** The name of the attribute. ** *optional string name = 1;
+ * * @return The name. */ @java.lang.Override @@ -76,29 +102,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * ** The name of the attribute. ** *optional string name = 1;
+ * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -107,15 +133,19 @@ public java.lang.String getName() { } public static final int VALUE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** + * + * ** The value of the attribute. If `value` is not empty, `group_values` must be * empty. ** *optional string value = 2;
+ * * @return Whether the value field is set. */ @java.lang.Override @@ -123,12 +153,15 @@ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * ** The value of the attribute. If `value` is not empty, `group_values` must be * empty. ** *optional string value = 2;
+ * * @return The value. */ @java.lang.Override @@ -137,30 +170,30 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * ** The value of the attribute. If `value` is not empty, `group_values` must be * empty. ** *optional string value = 2;
+ * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -169,9 +202,12 @@ public java.lang.String getValue() { } public static final int GROUP_VALUES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.ListgroupValues_; /** + * + * * * Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -184,6 +220,8 @@ public java.util.ListgetGroupValuesLi return groupValues_; } /** + * + * * * Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -192,11 +230,13 @@ public java.util.ListgetGroupValuesLi * repeated .google.shopping.type.CustomAttribute group_values = 3;
*/ @java.lang.Override - public java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> + public java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> getGroupValuesOrBuilderList() { return groupValues_; } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -209,6 +249,8 @@ public int getGroupValuesCount() { return groupValues_.size(); } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -221,6 +263,8 @@ public com.google.shopping.type.CustomAttribute getGroupValues(int index) { return groupValues_.get(index); } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -229,12 +273,12 @@ public com.google.shopping.type.CustomAttribute getGroupValues(int index) { *repeated .google.shopping.type.CustomAttribute group_values = 3;
*/ @java.lang.Override - public com.google.shopping.type.CustomAttributeOrBuilder getGroupValuesOrBuilder( - int index) { + public com.google.shopping.type.CustomAttributeOrBuilder getGroupValuesOrBuilder(int index) { return groupValues_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,8 +290,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -273,8 +316,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } for (int i = 0; i < groupValues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, groupValues_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, groupValues_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -284,7 +326,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.shopping.type.CustomAttribute)) { return super.equals(obj); @@ -293,16 +335,13 @@ public boolean equals(final java.lang.Object obj) { if (hasName() != other.hasName()) return false; if (hasName()) { - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; } - if (!getGroupValuesList() - .equals(other.getGroupValuesList())) return false; + if (!getGroupValuesList().equals(other.getGroupValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -331,99 +370,104 @@ public int hashCode() { return hash; } - public static com.google.shopping.type.CustomAttribute parseFrom( - java.nio.ByteBuffer data) + public static com.google.shopping.type.CustomAttribute parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.shopping.type.CustomAttribute parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.shopping.type.CustomAttribute parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.shopping.type.CustomAttribute 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.shopping.type.CustomAttribute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.shopping.type.CustomAttribute parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.shopping.type.CustomAttribute parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.shopping.type.CustomAttribute parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.shopping.type.CustomAttribute parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.shopping.type.CustomAttribute parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.shopping.type.CustomAttribute parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.shopping.type.CustomAttribute parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.shopping.type.CustomAttribute parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.shopping.type.CustomAttribute prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * ** A message that represents custom attributes. Exactly one of `value` or * `group_values` must not be empty. @@ -431,33 +475,32 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.shopping.type.CustomAttribute} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.shopping.type.CustomAttribute) com.google.shopping.type.CustomAttributeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.type.TypesProto.internal_static_google_shopping_type_CustomAttribute_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_CustomAttribute_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.type.TypesProto.internal_static_google_shopping_type_CustomAttribute_fieldAccessorTable + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_CustomAttribute_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.type.CustomAttribute.class, com.google.shopping.type.CustomAttribute.Builder.class); + com.google.shopping.type.CustomAttribute.class, + com.google.shopping.type.CustomAttribute.Builder.class); } // Construct using com.google.shopping.type.CustomAttribute.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.shopping.type.TypesProto.internal_static_google_shopping_type_CustomAttribute_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_CustomAttribute_descriptor; } @java.lang.Override @@ -496,9 +539,12 @@ public com.google.shopping.type.CustomAttribute build() { @java.lang.Override public com.google.shopping.type.CustomAttribute buildPartial() { - com.google.shopping.type.CustomAttribute result = new com.google.shopping.type.CustomAttribute(this); + com.google.shopping.type.CustomAttribute result = + new com.google.shopping.type.CustomAttribute(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -533,38 +579,39 @@ private void buildPartial0(com.google.shopping.type.CustomAttribute result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.shopping.type.CustomAttribute) { - return mergeFrom((com.google.shopping.type.CustomAttribute)other); + return mergeFrom((com.google.shopping.type.CustomAttribute) other); } else { super.mergeFrom(other); return this; @@ -601,9 +648,10 @@ public Builder mergeFrom(com.google.shopping.type.CustomAttribute other) { groupValuesBuilder_ = null; groupValues_ = other.groupValues_; bitField0_ = (bitField0_ & ~0x00000004); - groupValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGroupValuesFieldBuilder() : null; + groupValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroupValuesFieldBuilder() + : null; } else { groupValuesBuilder_.addAllMessages(other.groupValues_); } @@ -635,35 +683,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.shopping.type.CustomAttribute m = - input.readMessage( - com.google.shopping.type.CustomAttribute.parser(), - extensionRegistry); - if (groupValuesBuilder_ == null) { - ensureGroupValuesIsMutable(); - groupValues_.add(m); - } else { - groupValuesBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.shopping.type.CustomAttribute m = + input.readMessage( + com.google.shopping.type.CustomAttribute.parser(), extensionRegistry); + if (groupValuesBuilder_ == null) { + ensureGroupValuesIsMutable(); + groupValues_.add(m); + } else { + groupValuesBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -673,33 +724,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * * * The name of the attribute. ** *optional string name = 1;
+ * * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * ** The name of the attribute. ** *optional 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -708,20 +765,21 @@ public java.lang.String getName() { } } /** + * + * ** The name of the attribute. ** *optional string name = 1;
+ * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -729,28 +787,35 @@ public java.lang.String getName() { } } /** + * + * ** The name of the attribute. ** *optional 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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** The name of the attribute. ** *optional string name = 1;
+ * * @return This builder for chaining. */ public Builder clearName() { @@ -760,17 +825,21 @@ public Builder clearName() { return this; } /** + * + * ** The name of the attribute. ** *optional 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -780,31 +849,36 @@ public Builder setNameBytes( private java.lang.Object value_ = ""; /** + * + * ** The value of the attribute. If `value` is not empty, `group_values` must be * empty. ** *optional string value = 2;
+ * * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * ** The value of the attribute. If `value` is not empty, `group_values` must be * empty. ** *optional string value = 2;
+ * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -813,21 +887,22 @@ public java.lang.String getValue() { } } /** + * + * ** The value of the attribute. If `value` is not empty, `group_values` must be * empty. ** *optional string value = 2;
+ * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -835,30 +910,37 @@ public java.lang.String getValue() { } } /** + * + * ** The value of the attribute. If `value` is not empty, `group_values` must be * empty. ** *optional string value = 2;
+ * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * ** The value of the attribute. If `value` is not empty, `group_values` must be * empty. ** *optional string value = 2;
+ * * @return This builder for chaining. */ public Builder clearValue() { @@ -868,18 +950,22 @@ public Builder clearValue() { return this; } /** + * + * ** The value of the attribute. If `value` is not empty, `group_values` must be * empty. ** *optional string value = 2;
+ * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000002; @@ -888,18 +974,25 @@ public Builder setValueBytes( } private java.util.ListgroupValues_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGroupValuesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - groupValues_ = new java.util.ArrayList (groupValues_); + groupValues_ = + new java.util.ArrayList (groupValues_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.shopping.type.CustomAttribute, com.google.shopping.type.CustomAttribute.Builder, com.google.shopping.type.CustomAttributeOrBuilder> groupValuesBuilder_; + com.google.shopping.type.CustomAttribute, + com.google.shopping.type.CustomAttribute.Builder, + com.google.shopping.type.CustomAttributeOrBuilder> + groupValuesBuilder_; /** + * + * * * Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -915,6 +1008,8 @@ public java.util.ListgetGroupValuesLi } } /** + * + * * * Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -930,6 +1025,8 @@ public int getGroupValuesCount() { } } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -945,6 +1042,8 @@ public com.google.shopping.type.CustomAttribute getGroupValues(int index) { } } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -952,8 +1051,7 @@ public com.google.shopping.type.CustomAttribute getGroupValues(int index) { * *repeated .google.shopping.type.CustomAttribute group_values = 3;
*/ - public Builder setGroupValues( - int index, com.google.shopping.type.CustomAttribute value) { + public Builder setGroupValues(int index, com.google.shopping.type.CustomAttribute value) { if (groupValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -967,6 +1065,8 @@ public Builder setGroupValues( return this; } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -986,6 +1086,8 @@ public Builder setGroupValues( return this; } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -1007,6 +1109,8 @@ public Builder addGroupValues(com.google.shopping.type.CustomAttribute value) { return this; } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -1014,8 +1118,7 @@ public Builder addGroupValues(com.google.shopping.type.CustomAttribute value) { * *repeated .google.shopping.type.CustomAttribute group_values = 3;
*/ - public Builder addGroupValues( - int index, com.google.shopping.type.CustomAttribute value) { + public Builder addGroupValues(int index, com.google.shopping.type.CustomAttribute value) { if (groupValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1029,6 +1132,8 @@ public Builder addGroupValues( return this; } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -1048,6 +1153,8 @@ public Builder addGroupValues( return this; } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -1067,6 +1174,8 @@ public Builder addGroupValues( return this; } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -1078,8 +1187,7 @@ public Builder addAllGroupValues( java.lang.Iterable extends com.google.shopping.type.CustomAttribute> values) { if (groupValuesBuilder_ == null) { ensureGroupValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, groupValues_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupValues_); onChanged(); } else { groupValuesBuilder_.addAllMessages(values); @@ -1087,6 +1195,8 @@ public Builder addAllGroupValues( return this; } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -1105,6 +1215,8 @@ public Builder clearGroupValues() { return this; } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -1123,6 +1235,8 @@ public Builder removeGroupValues(int index) { return this; } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -1130,11 +1244,12 @@ public Builder removeGroupValues(int index) { * *repeated .google.shopping.type.CustomAttribute group_values = 3;
*/ - public com.google.shopping.type.CustomAttribute.Builder getGroupValuesBuilder( - int index) { + public com.google.shopping.type.CustomAttribute.Builder getGroupValuesBuilder(int index) { return getGroupValuesFieldBuilder().getBuilder(index); } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -1142,14 +1257,16 @@ public com.google.shopping.type.CustomAttribute.Builder getGroupValuesBuilder( * *repeated .google.shopping.type.CustomAttribute group_values = 3;
*/ - public com.google.shopping.type.CustomAttributeOrBuilder getGroupValuesOrBuilder( - int index) { + public com.google.shopping.type.CustomAttributeOrBuilder getGroupValuesOrBuilder(int index) { if (groupValuesBuilder_ == null) { - return groupValues_.get(index); } else { + return groupValues_.get(index); + } else { return groupValuesBuilder_.getMessageOrBuilder(index); } } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -1157,8 +1274,8 @@ public com.google.shopping.type.CustomAttributeOrBuilder getGroupValuesOrBuilder * *repeated .google.shopping.type.CustomAttribute group_values = 3;
*/ - public java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> - getGroupValuesOrBuilderList() { + public java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> + getGroupValuesOrBuilderList() { if (groupValuesBuilder_ != null) { return groupValuesBuilder_.getMessageOrBuilderList(); } else { @@ -1166,6 +1283,8 @@ public com.google.shopping.type.CustomAttributeOrBuilder getGroupValuesOrBuilder } } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -1174,10 +1293,12 @@ public com.google.shopping.type.CustomAttributeOrBuilder getGroupValuesOrBuilder *repeated .google.shopping.type.CustomAttribute group_values = 3;
*/ public com.google.shopping.type.CustomAttribute.Builder addGroupValuesBuilder() { - return getGroupValuesFieldBuilder().addBuilder( - com.google.shopping.type.CustomAttribute.getDefaultInstance()); + return getGroupValuesFieldBuilder() + .addBuilder(com.google.shopping.type.CustomAttribute.getDefaultInstance()); } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -1185,12 +1306,13 @@ public com.google.shopping.type.CustomAttribute.Builder addGroupValuesBuilder() * *repeated .google.shopping.type.CustomAttribute group_values = 3;
*/ - public com.google.shopping.type.CustomAttribute.Builder addGroupValuesBuilder( - int index) { - return getGroupValuesFieldBuilder().addBuilder( - index, com.google.shopping.type.CustomAttribute.getDefaultInstance()); + public com.google.shopping.type.CustomAttribute.Builder addGroupValuesBuilder(int index) { + return getGroupValuesFieldBuilder() + .addBuilder(index, com.google.shopping.type.CustomAttribute.getDefaultInstance()); } /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -1198,27 +1320,30 @@ public com.google.shopping.type.CustomAttribute.Builder addGroupValuesBuilder( * *repeated .google.shopping.type.CustomAttribute group_values = 3;
*/ - public java.util.List- getGroupValuesBuilderList() { + public java.util.List + getGroupValuesBuilderList() { return getGroupValuesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.shopping.type.CustomAttribute, com.google.shopping.type.CustomAttribute.Builder, com.google.shopping.type.CustomAttributeOrBuilder> + com.google.shopping.type.CustomAttribute, + com.google.shopping.type.CustomAttribute.Builder, + com.google.shopping.type.CustomAttributeOrBuilder> getGroupValuesFieldBuilder() { if (groupValuesBuilder_ == null) { - groupValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.shopping.type.CustomAttribute, com.google.shopping.type.CustomAttribute.Builder, com.google.shopping.type.CustomAttributeOrBuilder>( - groupValues_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + groupValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.type.CustomAttribute, + com.google.shopping.type.CustomAttribute.Builder, + com.google.shopping.type.CustomAttributeOrBuilder>( + groupValues_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); groupValues_ = null; } return groupValuesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1228,12 +1353,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.shopping.type.CustomAttribute) } // @@protoc_insertion_point(class_scope:google.shopping.type.CustomAttribute) private static final com.google.shopping.type.CustomAttribute DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.shopping.type.CustomAttribute(); } @@ -1242,27 +1367,27 @@ public static com.google.shopping.type.CustomAttribute getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public CustomAttribute parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public CustomAttribute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1402,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.shopping.type.CustomAttribute getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/CustomAttributeOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/CustomAttributeOrBuilder.java similarity index 74% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/CustomAttributeOrBuilder.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/CustomAttributeOrBuilder.java index b0cd57501197..6e2f027973f6 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/CustomAttributeOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/CustomAttributeOrBuilder.java @@ -1,74 +1,108 @@ +/* + * Copyright 2023 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/shopping/type/types.proto package com.google.shopping.type; -public interface CustomAttributeOrBuilder extends +public interface CustomAttributeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.shopping.type.CustomAttribute) com.google.protobuf.MessageOrBuilder { /** + * + * * * The name of the attribute. ** *optional string name = 1;
+ * * @return Whether the name field is set. */ boolean hasName(); /** + * + * ** The name of the attribute. ** *optional string name = 1;
+ * * @return The name. */ java.lang.String getName(); /** + * + * ** The name of the attribute. ** *optional string name = 1;
+ * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * ** The value of the attribute. If `value` is not empty, `group_values` must be * empty. ** *optional string value = 2;
+ * * @return Whether the value field is set. */ boolean hasValue(); /** + * + * ** The value of the attribute. If `value` is not empty, `group_values` must be * empty. ** *optional string value = 2;
+ * * @return The value. */ java.lang.String getValue(); /** + * + * ** The value of the attribute. If `value` is not empty, `group_values` must be * empty. ** *optional string value = 2;
+ * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -76,9 +110,10 @@ public interface CustomAttributeOrBuilder extends * *repeated .google.shopping.type.CustomAttribute group_values = 3;
*/ - java.util.List- getGroupValuesList(); + java.util.List getGroupValuesList(); /** + * + * * * Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -88,6 +123,8 @@ public interface CustomAttributeOrBuilder extends */ com.google.shopping.type.CustomAttribute getGroupValues(int index); /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -97,6 +134,8 @@ public interface CustomAttributeOrBuilder extends */ int getGroupValuesCount(); /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -104,9 +143,11 @@ public interface CustomAttributeOrBuilder extends * *repeated .google.shopping.type.CustomAttribute group_values = 3;
*/ - java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> + java.util.List extends com.google.shopping.type.CustomAttributeOrBuilder> getGroupValuesOrBuilderList(); /** + * + * ** Subattributes within this attribute group. If * `group_values` is not empty, `value` must be empty. @@ -114,6 +155,5 @@ public interface CustomAttributeOrBuilder extends * *repeated .google.shopping.type.CustomAttribute group_values = 3;
*/ - com.google.shopping.type.CustomAttributeOrBuilder getGroupValuesOrBuilder( - int index); + com.google.shopping.type.CustomAttributeOrBuilder getGroupValuesOrBuilder(int index); } diff --git a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Destination.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Destination.java similarity index 67% rename from owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Destination.java rename to java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Destination.java index e1cf44343d9b..ba5b3940a70a 100644 --- a/owl-bot-staging/java-shopping-merchant-inventories/v1beta/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Destination.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Destination.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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/shopping/type/types.proto package com.google.shopping.type; /** + * + * ** Destinations available for a product. * @@ -13,48 +30,52 @@ * * Protobuf type {@code google.shopping.type.Destination} */ -public final class Destination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Destination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.shopping.type.Destination) DestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Destination.newBuilder() to construct. private Destination(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } - private Destination() { - } + + private Destination() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Destination(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.type.TypesProto.internal_static_google_shopping_type_Destination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Destination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.type.TypesProto.internal_static_google_shopping_type_Destination_fieldAccessorTable + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Destination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.type.Destination.class, com.google.shopping.type.Destination.Builder.class); + com.google.shopping.type.Destination.class, + com.google.shopping.type.Destination.Builder.class); } /** + * + * ** Destination values. ** * Protobuf enum {@code google.shopping.type.Destination.DestinationEnum} */ - public enum DestinationEnum - implements com.google.protobuf.ProtocolMessageEnum { + public enum DestinationEnum implements com.google.protobuf.ProtocolMessageEnum { /** + * + * ** Not specified. *@@ -63,6 +84,8 @@ public enum DestinationEnum */ DESTINATION_ENUM_UNSPECIFIED(0), /** + * + * ** [Shopping ads](https://support.google.com/google-ads/answer/2454022). *@@ -71,6 +94,8 @@ public enum DestinationEnum */ SHOPPING_ADS(1), /** + * + * ** [Display ads](https://support.google.com/merchants/answer/6069387). *@@ -79,6 +104,8 @@ public enum DestinationEnum */ DISPLAY_ADS(2), /** + * + * ** [Local inventory * ads](https://support.google.com/merchants/answer/3057972). @@ -88,6 +115,8 @@ public enum DestinationEnum */ LOCAL_INVENTORY_ADS(3), /** + * + * ** [Free listings](https://support.google.com/merchants/answer/9199328). *@@ -96,6 +125,8 @@ public enum DestinationEnum */ FREE_LISTINGS(4), /** + * + * ** [Free local product * listings](https://support.google.com/merchants/answer/9825611). @@ -105,6 +136,8 @@ public enum DestinationEnum */ FREE_LOCAL_LISTINGS(5), /** + * + * ** [YouTube Shopping](https://support.google.com/merchants/answer/12362804). *@@ -116,6 +149,8 @@ public enum DestinationEnum ; /** + * + * ** Not specified. *@@ -124,6 +159,8 @@ public enum DestinationEnum */ public static final int DESTINATION_ENUM_UNSPECIFIED_VALUE = 0; /** + * + * ** [Shopping ads](https://support.google.com/google-ads/answer/2454022). *@@ -132,6 +169,8 @@ public enum DestinationEnum */ public static final int SHOPPING_ADS_VALUE = 1; /** + * + * ** [Display ads](https://support.google.com/merchants/answer/6069387). *@@ -140,6 +179,8 @@ public enum DestinationEnum */ public static final int DISPLAY_ADS_VALUE = 2; /** + * + * ** [Local inventory * ads](https://support.google.com/merchants/answer/3057972). @@ -149,6 +190,8 @@ public enum DestinationEnum */ public static final int LOCAL_INVENTORY_ADS_VALUE = 3; /** + * + * ** [Free listings](https://support.google.com/merchants/answer/9199328). *@@ -157,6 +200,8 @@ public enum DestinationEnum */ public static final int FREE_LISTINGS_VALUE = 4; /** + * + * ** [Free local product * listings](https://support.google.com/merchants/answer/9825611). @@ -166,6 +211,8 @@ public enum DestinationEnum */ public static final int FREE_LOCAL_LISTINGS_VALUE = 5; /** + * + * ** [YouTube Shopping](https://support.google.com/merchants/answer/12362804). *@@ -174,7 +221,6 @@ public enum DestinationEnum */ public static final int YOUTUBE_SHOPPING_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -199,43 +245,50 @@ public static DestinationEnum valueOf(int value) { */ public static DestinationEnum forNumber(int value) { switch (value) { - case 0: return DESTINATION_ENUM_UNSPECIFIED; - case 1: return SHOPPING_ADS; - case 2: return DISPLAY_ADS; - case 3: return LOCAL_INVENTORY_ADS; - case 4: return FREE_LISTINGS; - case 5: return FREE_LOCAL_LISTINGS; - case 6: return YOUTUBE_SHOPPING; - default: return null; + case 0: + return DESTINATION_ENUM_UNSPECIFIED; + case 1: + return SHOPPING_ADS; + case 2: + return DISPLAY_ADS; + case 3: + return LOCAL_INVENTORY_ADS; + case 4: + return FREE_LISTINGS; + case 5: + return FREE_LOCAL_LISTINGS; + case 6: + return YOUTUBE_SHOPPING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap- internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DestinationEnum> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap () { - public DestinationEnum findValueByNumber(int number) { - return DestinationEnum.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap () { + public DestinationEnum findValueByNumber(int number) { + return DestinationEnum.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.shopping.type.Destination.getDescriptor().getEnumTypes().get(0); } @@ -244,8 +297,7 @@ public DestinationEnum findValueByNumber(int number) { public static DestinationEnum valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -263,6 +315,7 @@ private DestinationEnum(int value) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +327,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -293,7 +345,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.shopping.type.Destination)) { return super.equals(obj); @@ -316,99 +368,103 @@ public int hashCode() { return hash; } - public static com.google.shopping.type.Destination parseFrom( - java.nio.ByteBuffer data) + public static com.google.shopping.type.Destination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.shopping.type.Destination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.shopping.type.Destination parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.shopping.type.Destination parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.shopping.type.Destination 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.shopping.type.Destination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.shopping.type.Destination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.shopping.type.Destination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.shopping.type.Destination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.shopping.type.Destination parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.shopping.type.Destination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.shopping.type.Destination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.shopping.type.Destination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.shopping.type.Destination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * * * Destinations available for a product. * @@ -418,33 +474,32 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.shopping.type.Destination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.shopping.type.Destination) com.google.shopping.type.DestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.shopping.type.TypesProto.internal_static_google_shopping_type_Destination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Destination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.shopping.type.TypesProto.internal_static_google_shopping_type_Destination_fieldAccessorTable + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Destination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.shopping.type.Destination.class, com.google.shopping.type.Destination.Builder.class); + com.google.shopping.type.Destination.class, + com.google.shopping.type.Destination.Builder.class); } // Construct using com.google.shopping.type.Destination.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -452,9 +507,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.shopping.type.TypesProto.internal_static_google_shopping_type_Destination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Destination_descriptor; } @java.lang.Override @@ -482,38 +537,39 @@ public com.google.shopping.type.Destination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.shopping.type.Destination) { - return mergeFrom((com.google.shopping.type.Destination)other); + return mergeFrom((com.google.shopping.type.Destination) other); } else { super.mergeFrom(other); return this; @@ -548,12 +604,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -563,9 +620,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -575,12 +632,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.shopping.type.Destination) } // @@protoc_insertion_point(class_scope:google.shopping.type.Destination) private static final com.google.shopping.type.Destination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.shopping.type.Destination(); } @@ -589,27 +646,27 @@ public static com.google.shopping.type.Destination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser