diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClient.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClient.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClient.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClient.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceSettings.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceSettings.java similarity index 99% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceSettings.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceSettings.java index 4c4abcaa2fa3..136b0243a5b5 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceSettings.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.cloud.commerce.consumer.procurement.v1.stub.ConsumerProcurementServiceStubSettings; diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/gapic_metadata.json b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/gapic_metadata.json rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/package-info.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/package-info.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/package-info.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStub.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStub.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStub.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStub.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStubSettings.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStubSettings.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStubSettings.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/GrpcConsumerProcurementServiceCallableFactory.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/GrpcConsumerProcurementServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/GrpcConsumerProcurementServiceCallableFactory.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/GrpcConsumerProcurementServiceCallableFactory.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/GrpcConsumerProcurementServiceStub.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/GrpcConsumerProcurementServiceStub.java similarity index 99% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/GrpcConsumerProcurementServiceStub.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/GrpcConsumerProcurementServiceStub.java index 910007d701f4..4dbf03e81bf7 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/GrpcConsumerProcurementServiceStub.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/GrpcConsumerProcurementServiceStub.java @@ -37,7 +37,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-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/HttpJsonConsumerProcurementServiceCallableFactory.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/HttpJsonConsumerProcurementServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/HttpJsonConsumerProcurementServiceCallableFactory.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/HttpJsonConsumerProcurementServiceCallableFactory.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/HttpJsonConsumerProcurementServiceStub.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/HttpJsonConsumerProcurementServiceStub.java similarity index 99% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/HttpJsonConsumerProcurementServiceStub.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/HttpJsonConsumerProcurementServiceStub.java index fc3e08151b0b..132d46ab2202 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/HttpJsonConsumerProcurementServiceStub.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/HttpJsonConsumerProcurementServiceStub.java @@ -31,7 +31,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClient.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClient.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClient.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClient.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java similarity index 99% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java index 975d2816f73e..25a3e256ecee 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.cloud.commerce.consumer.procurement.v1alpha1.stub.ConsumerProcurementServiceStubSettings; diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/gapic_metadata.json b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/gapic_metadata.json rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/gapic_metadata.json diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/package-info.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/package-info.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/package-info.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/package-info.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStub.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStub.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStub.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStub.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceCallableFactory.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceCallableFactory.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceCallableFactory.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceStub.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceStub.java similarity index 99% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceStub.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceStub.java index 9879c00a1d80..079d63fa0a48 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceStub.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceStub.java @@ -38,7 +38,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-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceCallableFactory.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceCallableFactory.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceCallableFactory.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceStub.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceStub.java similarity index 99% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceStub.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceStub.java index b13aaba95d0a..6a49f391afd2 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceStub.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceStub.java @@ -31,7 +31,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1/reflect-config.json b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1/reflect-config.json rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1/reflect-config.json diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1alpha1/reflect-config.json b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1alpha1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1alpha1/reflect-config.json rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1alpha1/reflect-config.json diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClientHttpJsonTest.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClientHttpJsonTest.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClientTest.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClientTest.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClientTest.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/MockConsumerProcurementService.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/MockConsumerProcurementService.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/MockConsumerProcurementService.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/MockConsumerProcurementService.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/MockConsumerProcurementServiceImpl.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/MockConsumerProcurementServiceImpl.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/MockConsumerProcurementServiceImpl.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/MockConsumerProcurementServiceImpl.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientHttpJsonTest.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientHttpJsonTest.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientTest.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientTest.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientTest.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementService.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementService.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementService.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementService.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementServiceImpl.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementServiceImpl.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementServiceImpl.java rename to java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementServiceImpl.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceGrpc.java b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceGrpc.java similarity index 58% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceGrpc.java rename to java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceGrpc.java index dbc3baf29ac1..790715262c64 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceGrpc.java +++ b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceGrpc.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.cloud.commerce.consumer.procurement.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
* ConsumerProcurementService allows customers to make purchases of products * served by the Cloud Commerce platform. @@ -21,147 +38,194 @@ public final class ConsumerProcurementServiceGrpc { private ConsumerProcurementServiceGrpc() {} - public static final String SERVICE_NAME = "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService"; + public static final String SERVICE_NAME = + "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptorgetPlaceOrderMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest, + com.google.longrunning.Operation> + getPlaceOrderMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "PlaceOrder", requestType = com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPlaceOrderMethod() { - io.grpc.MethodDescriptor getPlaceOrderMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest, + com.google.longrunning.Operation> + getPlaceOrderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest, + com.google.longrunning.Operation> + getPlaceOrderMethod; if ((getPlaceOrderMethod = ConsumerProcurementServiceGrpc.getPlaceOrderMethod) == null) { synchronized (ConsumerProcurementServiceGrpc.class) { if ((getPlaceOrderMethod = ConsumerProcurementServiceGrpc.getPlaceOrderMethod) == null) { - ConsumerProcurementServiceGrpc.getPlaceOrderMethod = getPlaceOrderMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PlaceOrder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ConsumerProcurementServiceMethodDescriptorSupplier("PlaceOrder")) - .build(); + ConsumerProcurementServiceGrpc.getPlaceOrderMethod = + getPlaceOrderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PlaceOrder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ConsumerProcurementServiceMethodDescriptorSupplier("PlaceOrder")) + .build(); } } } return getPlaceOrderMethod; } - private static volatile io.grpc.MethodDescriptor getGetOrderMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest, + com.google.cloud.commerce.consumer.procurement.v1.Order> + getGetOrderMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetOrder", requestType = com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.class, responseType = com.google.cloud.commerce.consumer.procurement.v1.Order.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetOrderMethod() { - io.grpc.MethodDescriptor getGetOrderMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest, + com.google.cloud.commerce.consumer.procurement.v1.Order> + getGetOrderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest, + com.google.cloud.commerce.consumer.procurement.v1.Order> + getGetOrderMethod; if ((getGetOrderMethod = ConsumerProcurementServiceGrpc.getGetOrderMethod) == null) { synchronized (ConsumerProcurementServiceGrpc.class) { if ((getGetOrderMethod = ConsumerProcurementServiceGrpc.getGetOrderMethod) == null) { - ConsumerProcurementServiceGrpc.getGetOrderMethod = getGetOrderMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.commerce.consumer.procurement.v1.Order.getDefaultInstance())) - .setSchemaDescriptor(new ConsumerProcurementServiceMethodDescriptorSupplier("GetOrder")) - .build(); + ConsumerProcurementServiceGrpc.getGetOrderMethod = + getGetOrderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.commerce.consumer.procurement.v1.Order + .getDefaultInstance())) + .setSchemaDescriptor( + new ConsumerProcurementServiceMethodDescriptorSupplier("GetOrder")) + .build(); } } } return getGetOrderMethod; } - private static volatile io.grpc.MethodDescriptor getListOrdersMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest, + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse> + getListOrdersMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListOrders", requestType = com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest.class, responseType = com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListOrdersMethod() { - io.grpc.MethodDescriptor getListOrdersMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest, + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse> + getListOrdersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest, + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse> + getListOrdersMethod; if ((getListOrdersMethod = ConsumerProcurementServiceGrpc.getListOrdersMethod) == null) { synchronized (ConsumerProcurementServiceGrpc.class) { if ((getListOrdersMethod = ConsumerProcurementServiceGrpc.getListOrdersMethod) == null) { - ConsumerProcurementServiceGrpc.getListOrdersMethod = getListOrdersMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOrders")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConsumerProcurementServiceMethodDescriptorSupplier("ListOrders")) - .build(); + ConsumerProcurementServiceGrpc.getListOrdersMethod = + getListOrdersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOrders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ConsumerProcurementServiceMethodDescriptorSupplier("ListOrders")) + .build(); } } } return getListOrdersMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static ConsumerProcurementServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public ConsumerProcurementServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConsumerProcurementServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public ConsumerProcurementServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConsumerProcurementServiceStub(channel, callOptions); + } + }; return ConsumerProcurementServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static ConsumerProcurementServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static ConsumerProcurementServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public ConsumerProcurementServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConsumerProcurementServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public ConsumerProcurementServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConsumerProcurementServiceBlockingStub(channel, callOptions); + } + }; return ConsumerProcurementServiceBlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ConsumerProcurementServiceFutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ConsumerProcurementServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public ConsumerProcurementServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConsumerProcurementServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public ConsumerProcurementServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConsumerProcurementServiceFutureStub(channel, callOptions); + } + }; return ConsumerProcurementServiceFutureStub.newStub(factory, channel); } /** + * + * * * ConsumerProcurementService allows customers to make purchases of products * served by the Cloud Commerce platform. @@ -175,6 +239,8 @@ public ConsumerProcurementServiceFutureStub newStub(io.grpc.Channel channel, io. public interface AsyncService { /** + * + * ** Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.Order]. * This API only supports GCP spend-based committed use @@ -186,37 +252,48 @@ public interface AsyncService { * In case of failure, the order resource will be removed. **/ - default void placeOrder(com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest request, + default void placeOrder( + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest request, io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPlaceOrderMethod(), responseObserver); } /** + * + * * * Returns the requested * [Order][google.cloud.commerce.consumer.procurement.v1.Order] resource. **/ - default void getOrder(com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + default void getOrder( + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrderMethod(), responseObserver); } /** + * + * * * Lists [Order][google.cloud.commerce.consumer.procurement.v1.Order] * resources that the user has access to, within the scope of the parent * resource. **/ - default void listOrders(com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + default void listOrders( + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse> + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOrdersMethod(), responseObserver); } } /** * Base class for the server implementation of the service ConsumerProcurementService. + * * * ConsumerProcurementService allows customers to make purchases of products * served by the Cloud Commerce platform. @@ -227,16 +304,18 @@ default void listOrders(com.google.cloud.commerce.consumer.procurement.v1.ListOr * for charging for the procured item. **/ - public static abstract class ConsumerProcurementServiceImplBase + public abstract static class ConsumerProcurementServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return ConsumerProcurementServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service ConsumerProcurementService. + * ** ConsumerProcurementService allows customers to make purchases of products * served by the Cloud Commerce platform. @@ -261,6 +340,8 @@ protected ConsumerProcurementServiceStub build( } /** + * + * ** Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.Order]. * This API only supports GCP spend-based committed use @@ -272,33 +353,43 @@ protected ConsumerProcurementServiceStub build( * In case of failure, the order resource will be removed. **/ - public void placeOrder(com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest request, + public void placeOrder( + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest request, io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPlaceOrderMethod(), getCallOptions()), request, responseObserver); } /** + * + * * * Returns the requested * [Order][google.cloud.commerce.consumer.procurement.v1.Order] resource. **/ - public void getOrder(com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + public void getOrder( + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetOrderMethod(), getCallOptions()), request, responseObserver); } /** + * + * * * Lists [Order][google.cloud.commerce.consumer.procurement.v1.Order] * resources that the user has access to, within the scope of the parent * resource. **/ - public void listOrders(com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + public void listOrders( + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListOrdersMethod(), getCallOptions()), request, responseObserver); } @@ -306,6 +397,7 @@ public void listOrders(com.google.cloud.commerce.consumer.procurement.v1.ListOrd /** * A stub to allow clients to do synchronous rpc calls to service ConsumerProcurementService. + * * * ConsumerProcurementService allows customers to make purchases of products * served by the Cloud Commerce platform. @@ -330,6 +422,8 @@ protected ConsumerProcurementServiceBlockingStub build( } /** + * + * ** Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.Order]. * This API only supports GCP spend-based committed use @@ -341,37 +435,46 @@ protected ConsumerProcurementServiceBlockingStub build( * In case of failure, the order resource will be removed. **/ - public com.google.longrunning.Operation placeOrder(com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest request) { + public com.google.longrunning.Operation placeOrder( + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPlaceOrderMethod(), getCallOptions(), request); } /** + * + * ** Returns the requested * [Order][google.cloud.commerce.consumer.procurement.v1.Order] resource. **/ - public com.google.cloud.commerce.consumer.procurement.v1.Order getOrder(com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest request) { + public com.google.cloud.commerce.consumer.procurement.v1.Order getOrder( + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetOrderMethod(), getCallOptions(), request); } /** + * + * ** Lists [Order][google.cloud.commerce.consumer.procurement.v1.Order] * resources that the user has access to, within the scope of the parent * resource. **/ - public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse listOrders(com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest request) { + public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse listOrders( + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListOrdersMethod(), getCallOptions(), request); } } /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service ConsumerProcurementService. + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * ConsumerProcurementService. + * ** ConsumerProcurementService allows customers to make purchases of products * served by the Cloud Commerce platform. @@ -396,6 +499,8 @@ protected ConsumerProcurementServiceFutureStub build( } /** + * + * ** Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.Order]. * This API only supports GCP spend-based committed use @@ -407,33 +512,39 @@ protected ConsumerProcurementServiceFutureStub build( * In case of failure, the order resource will be removed. **/ - public com.google.common.util.concurrent.ListenableFutureplaceOrder( - com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest request) { + public com.google.common.util.concurrent.ListenableFuture + placeOrder(com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPlaceOrderMethod(), getCallOptions()), request); } /** + * + * * * Returns the requested * [Order][google.cloud.commerce.consumer.procurement.v1.Order] resource. **/ - public com.google.common.util.concurrent.ListenableFuturegetOrder( - com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.commerce.consumer.procurement.v1.Order> + getOrder(com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetOrderMethod(), getCallOptions()), request); } /** + * + * * * Lists [Order][google.cloud.commerce.consumer.procurement.v1.Order] * resources that the user has access to, within the scope of the parent * resource. **/ - public com.google.common.util.concurrent.ListenableFuturelistOrders( - com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse> + listOrders(com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListOrdersMethod(), getCallOptions()), request); } @@ -443,11 +554,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; @@ -461,16 +572,22 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_PLACE_ORDER: - serviceImpl.placeOrder((com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest) request, + serviceImpl.placeOrder( + (com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest) request, (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_GET_ORDER: - serviceImpl.getOrder((com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.getOrder( + (com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); break; case METHODID_LIST_ORDERS: - serviceImpl.listOrders((com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.listOrders( + (com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse>) + responseObserver); break; default: throw new AssertionError(); @@ -491,31 +608,31 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getPlaceOrderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest, - com.google.longrunning.Operation>( - service, METHODID_PLACE_ORDER))) + getPlaceOrderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest, + com.google.longrunning.Operation>(service, METHODID_PLACE_ORDER))) .addMethod( - getGetOrderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest, - com.google.cloud.commerce.consumer.procurement.v1.Order>( - service, METHODID_GET_ORDER))) + getGetOrderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest, + com.google.cloud.commerce.consumer.procurement.v1.Order>( + service, METHODID_GET_ORDER))) .addMethod( - getListOrdersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest, - com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse>( - service, METHODID_LIST_ORDERS))) + getListOrdersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest, + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse>( + service, METHODID_LIST_ORDERS))) .build(); } - private static abstract class ConsumerProcurementServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class ConsumerProcurementServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { ConsumerProcurementServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -557,12 +674,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ConsumerProcurementServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConsumerProcurementServiceFileDescriptorSupplier()) - .addMethod(getPlaceOrderMethod()) - .addMethod(getGetOrderMethod()) - .addMethod(getListOrdersMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConsumerProcurementServiceFileDescriptorSupplier()) + .addMethod(getPlaceOrderMethod()) + .addMethod(getGetOrderMethod()) + .addMethod(getListOrdersMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.java b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.java similarity index 57% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.java rename to java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.java index a180022d0255..8954381dc3f2 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.java +++ b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.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.cloud.commerce.consumer.procurement.v1alpha1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * * * ConsumerProcurementService allows customers to make purchases of products * served by the Cloud Commerce platform. @@ -15,153 +32,203 @@ */ @javax.annotation.Generated( value = "by gRPC proto compiler", - comments = "Source: google/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.proto") + comments = + "Source: google/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConsumerProcurementServiceGrpc { private ConsumerProcurementServiceGrpc() {} - public static final String SERVICE_NAME = "google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService"; + public static final String SERVICE_NAME = + "google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptorgetPlaceOrderMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest, + com.google.longrunning.Operation> + getPlaceOrderMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "PlaceOrder", requestType = com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPlaceOrderMethod() { - io.grpc.MethodDescriptor getPlaceOrderMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest, + com.google.longrunning.Operation> + getPlaceOrderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest, + com.google.longrunning.Operation> + getPlaceOrderMethod; if ((getPlaceOrderMethod = ConsumerProcurementServiceGrpc.getPlaceOrderMethod) == null) { synchronized (ConsumerProcurementServiceGrpc.class) { if ((getPlaceOrderMethod = ConsumerProcurementServiceGrpc.getPlaceOrderMethod) == null) { - ConsumerProcurementServiceGrpc.getPlaceOrderMethod = getPlaceOrderMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PlaceOrder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ConsumerProcurementServiceMethodDescriptorSupplier("PlaceOrder")) - .build(); + ConsumerProcurementServiceGrpc.getPlaceOrderMethod = + getPlaceOrderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PlaceOrder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.commerce.consumer.procurement.v1alpha1 + .PlaceOrderRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ConsumerProcurementServiceMethodDescriptorSupplier("PlaceOrder")) + .build(); } } } return getPlaceOrderMethod; } - private static volatile io.grpc.MethodDescriptor getGetOrderMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order> + getGetOrderMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetOrder", requestType = com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest.class, responseType = com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetOrderMethod() { - io.grpc.MethodDescriptor getGetOrderMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order> + getGetOrderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order> + getGetOrderMethod; if ((getGetOrderMethod = ConsumerProcurementServiceGrpc.getGetOrderMethod) == null) { synchronized (ConsumerProcurementServiceGrpc.class) { if ((getGetOrderMethod = ConsumerProcurementServiceGrpc.getGetOrderMethod) == null) { - ConsumerProcurementServiceGrpc.getGetOrderMethod = getGetOrderMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.getDefaultInstance())) - .setSchemaDescriptor(new ConsumerProcurementServiceMethodDescriptorSupplier("GetOrder")) - .build(); + ConsumerProcurementServiceGrpc.getGetOrderMethod = + getGetOrderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.commerce.consumer.procurement.v1alpha1 + .GetOrderRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order + .getDefaultInstance())) + .setSchemaDescriptor( + new ConsumerProcurementServiceMethodDescriptorSupplier("GetOrder")) + .build(); } } } return getGetOrderMethod; } - private static volatile io.grpc.MethodDescriptor getListOrdersMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest, + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse> + getListOrdersMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListOrders", requestType = com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest.class, - responseType = com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse.class, + responseType = + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListOrdersMethod() { - io.grpc.MethodDescriptor getListOrdersMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest, + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse> + getListOrdersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest, + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse> + getListOrdersMethod; if ((getListOrdersMethod = ConsumerProcurementServiceGrpc.getListOrdersMethod) == null) { synchronized (ConsumerProcurementServiceGrpc.class) { if ((getListOrdersMethod = ConsumerProcurementServiceGrpc.getListOrdersMethod) == null) { - ConsumerProcurementServiceGrpc.getListOrdersMethod = getListOrdersMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOrders")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConsumerProcurementServiceMethodDescriptorSupplier("ListOrders")) - .build(); + ConsumerProcurementServiceGrpc.getListOrdersMethod = + getListOrdersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOrders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.commerce.consumer.procurement.v1alpha1 + .ListOrdersRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.commerce.consumer.procurement.v1alpha1 + .ListOrdersResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ConsumerProcurementServiceMethodDescriptorSupplier("ListOrders")) + .build(); } } } return getListOrdersMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static ConsumerProcurementServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public ConsumerProcurementServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConsumerProcurementServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public ConsumerProcurementServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConsumerProcurementServiceStub(channel, callOptions); + } + }; return ConsumerProcurementServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static ConsumerProcurementServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static ConsumerProcurementServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public ConsumerProcurementServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConsumerProcurementServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public ConsumerProcurementServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConsumerProcurementServiceBlockingStub(channel, callOptions); + } + }; return ConsumerProcurementServiceBlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ConsumerProcurementServiceFutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ConsumerProcurementServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public ConsumerProcurementServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConsumerProcurementServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public ConsumerProcurementServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConsumerProcurementServiceFutureStub(channel, callOptions); + } + }; return ConsumerProcurementServiceFutureStub.newStub(factory, channel); } /** + * + * * * ConsumerProcurementService allows customers to make purchases of products * served by the Cloud Commerce platform. @@ -175,6 +242,8 @@ public ConsumerProcurementServiceFutureStub newStub(io.grpc.Channel channel, io. public interface AsyncService { /** + * + * ** Creates a new * [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order]. @@ -187,38 +256,49 @@ public interface AsyncService { * In case of failure, the order resource will be removed. **/ - default void placeOrder(com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest request, + default void placeOrder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest request, io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPlaceOrderMethod(), responseObserver); } /** + * + * * * Returns the requested * [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] * resource. **/ - default void getOrder(com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + default void getOrder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrderMethod(), responseObserver); } /** + * + * * * Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] * resources that the user has access to, within the scope of the parent * resource. **/ - default void listOrders(com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + default void listOrders( + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse> + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOrdersMethod(), responseObserver); } } /** * Base class for the server implementation of the service ConsumerProcurementService. + * * * ConsumerProcurementService allows customers to make purchases of products * served by the Cloud Commerce platform. @@ -229,16 +309,18 @@ default void listOrders(com.google.cloud.commerce.consumer.procurement.v1alpha1. * for charging for the procured item. **/ - public static abstract class ConsumerProcurementServiceImplBase + public abstract static class ConsumerProcurementServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return ConsumerProcurementServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service ConsumerProcurementService. + * ** ConsumerProcurementService allows customers to make purchases of products * served by the Cloud Commerce platform. @@ -263,6 +345,8 @@ protected ConsumerProcurementServiceStub build( } /** + * + * ** Creates a new * [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order]. @@ -275,34 +359,44 @@ protected ConsumerProcurementServiceStub build( * In case of failure, the order resource will be removed. **/ - public void placeOrder(com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest request, + public void placeOrder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest request, io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPlaceOrderMethod(), getCallOptions()), request, responseObserver); } /** + * + * * * Returns the requested * [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] * resource. **/ - public void getOrder(com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + public void getOrder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetOrderMethod(), getCallOptions()), request, responseObserver); } /** + * + * * * Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] * resources that the user has access to, within the scope of the parent * resource. **/ - public void listOrders(com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest request, - io.grpc.stub.StreamObserverresponseObserver) { + public void listOrders( + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListOrdersMethod(), getCallOptions()), request, responseObserver); } @@ -310,6 +404,7 @@ public void listOrders(com.google.cloud.commerce.consumer.procurement.v1alpha1.L /** * A stub to allow clients to do synchronous rpc calls to service ConsumerProcurementService. + * * * ConsumerProcurementService allows customers to make purchases of products * served by the Cloud Commerce platform. @@ -334,6 +429,8 @@ protected ConsumerProcurementServiceBlockingStub build( } /** + * + * ** Creates a new * [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order]. @@ -346,38 +443,47 @@ protected ConsumerProcurementServiceBlockingStub build( * In case of failure, the order resource will be removed. **/ - public com.google.longrunning.Operation placeOrder(com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest request) { + public com.google.longrunning.Operation placeOrder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPlaceOrderMethod(), getCallOptions(), request); } /** + * + * ** Returns the requested * [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] * resource. **/ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order getOrder(com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest request) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order getOrder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetOrderMethod(), getCallOptions(), request); } /** + * + * ** Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] * resources that the user has access to, within the scope of the parent * resource. **/ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse listOrders(com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest request) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse listOrders( + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListOrdersMethod(), getCallOptions(), request); } } /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service ConsumerProcurementService. + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * ConsumerProcurementService. + * ** ConsumerProcurementService allows customers to make purchases of products * served by the Cloud Commerce platform. @@ -402,6 +508,8 @@ protected ConsumerProcurementServiceFutureStub build( } /** + * + * ** Creates a new * [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order]. @@ -414,34 +522,42 @@ protected ConsumerProcurementServiceFutureStub build( * In case of failure, the order resource will be removed. **/ - public com.google.common.util.concurrent.ListenableFutureplaceOrder( - com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest request) { + public com.google.common.util.concurrent.ListenableFuture + placeOrder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPlaceOrderMethod(), getCallOptions()), request); } /** + * + * * * Returns the requested * [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] * resource. **/ - public com.google.common.util.concurrent.ListenableFuturegetOrder( - com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order> + getOrder(com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetOrderMethod(), getCallOptions()), request); } /** + * + * * * Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] * resources that the user has access to, within the scope of the parent * resource. **/ - public com.google.common.util.concurrent.ListenableFuturelistOrders( - com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse> + listOrders( + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListOrdersMethod(), getCallOptions()), request); } @@ -451,11 +567,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; @@ -469,16 +585,23 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_PLACE_ORDER: - serviceImpl.placeOrder((com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest) request, + serviceImpl.placeOrder( + (com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest) request, (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_GET_ORDER: - serviceImpl.getOrder((com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.getOrder( + (com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order>) + responseObserver); break; case METHODID_LIST_ORDERS: - serviceImpl.listOrders((com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest) request, - (io.grpc.stub.StreamObserver ) responseObserver); + serviceImpl.listOrders( + (com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse>) + responseObserver); break; default: throw new AssertionError(); @@ -499,36 +622,37 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getPlaceOrderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest, - com.google.longrunning.Operation>( - service, METHODID_PLACE_ORDER))) + getPlaceOrderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest, + com.google.longrunning.Operation>(service, METHODID_PLACE_ORDER))) .addMethod( - getGetOrderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest, - com.google.cloud.commerce.consumer.procurement.v1alpha1.Order>( - service, METHODID_GET_ORDER))) + getGetOrderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order>( + service, METHODID_GET_ORDER))) .addMethod( - getListOrdersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest, - com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse>( - service, METHODID_LIST_ORDERS))) + getListOrdersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest, + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse>( + service, METHODID_LIST_ORDERS))) .build(); } - private static abstract class ConsumerProcurementServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class ConsumerProcurementServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { ConsumerProcurementServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.getDescriptor(); + return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService + .getDescriptor(); } @java.lang.Override @@ -565,12 +689,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ConsumerProcurementServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConsumerProcurementServiceFileDescriptorSupplier()) - .addMethod(getPlaceOrderMethod()) - .addMethod(getGetOrderMethod()) - .addMethod(getListOrdersMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConsumerProcurementServiceFileDescriptorSupplier()) + .addMethod(getPlaceOrderMethod()) + .addMethod(getGetOrderMethod()) + .addMethod(getListOrdersMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/BillingAccountName.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/BillingAccountName.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/BillingAccountName.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/BillingAccountName.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequest.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequest.java similarity index 63% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequest.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequest.java index ddfa74181f8d..938fa8ca58cf 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequest.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequest.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/cloud/commerce/consumer/procurement/v1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1; /** + * + * * * Request message for * [ConsumerProcurementService.GetOrder][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.GetOrder] @@ -11,48 +28,54 @@ * * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.GetOrderRequest} */ -public final class GetOrderRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetOrderRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.GetOrderRequest) GetOrderRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetOrderRequest.newBuilder() to construct. private GetOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private GetOrderRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetOrderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.class, com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.class, + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * ** Required. The name of the order to retrieve. ** *string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The name. */ @java.lang.Override @@ -61,29 +84,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; } } /** + * + * ** Required. The name of the order to retrieve. ** *string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @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 { @@ -92,6 +115,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +127,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_); } @@ -128,15 +151,15 @@ 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.cloud.commerce.consumer.procurement.v1.GetOrderRequest)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest other = (com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest) obj; + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest other = + (com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,98 +179,105 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest 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.cloud.commerce.consumer.procurement.v1.GetOrderRequest 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.cloud.commerce.consumer.procurement.v1.GetOrderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest 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.cloud.commerce.consumer.procurement.v1.GetOrderRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest 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.cloud.commerce.consumer.procurement.v1.GetOrderRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest 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.cloud.commerce.consumer.procurement.v1.GetOrderRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest 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.cloud.commerce.consumer.procurement.v1.GetOrderRequest + 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.cloud.commerce.consumer.procurement.v1.GetOrderRequest 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.cloud.commerce.consumer.procurement.v1.GetOrderRequest 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.cloud.commerce.consumer.procurement.v1.GetOrderRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest 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 * [ConsumerProcurementService.GetOrder][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.GetOrder] @@ -255,33 +285,33 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.GetOrderRequest} */ - 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.cloud.commerce.consumer.procurement.v1.GetOrderRequest) com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.class, com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.class, + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.Builder.class); } - // Construct using com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.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(); @@ -291,13 +321,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_descriptor; } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest + getDefaultInstanceForType() { return com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.getDefaultInstance(); } @@ -312,13 +343,17 @@ public com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest build() @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest result = new com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest result = + new com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest result) { + private void buildPartial0( + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -329,46 +364,50 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Get 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.cloud.commerce.consumer.procurement.v1.GetOrderRequest) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest)other); + return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest other) { + if (other + == com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +439,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) { @@ -420,22 +461,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * * * Required. The name of the order to retrieve. ** *string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -444,20 +488,21 @@ public java.lang.String getName() { } } /** + * + * ** Required. The name of the order to retrieve. ** *string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @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 { @@ -465,28 +510,35 @@ public java.lang.String getName() { } } /** + * + * ** Required. The name of the order to retrieve. ** *string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + 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 order to retrieve. ** *string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return This builder for chaining. */ public Builder clearName() { @@ -496,26 +548,30 @@ public Builder clearName() { return this; } /** + * + * ** Required. The name of the order to retrieve. ** *string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + 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); } @@ -525,41 +581,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1.GetOrderRequest) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1.GetOrderRequest) - private static final com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest(); } - public static com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public GetOrderRequest 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 GetOrderRequest 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; @@ -571,9 +629,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequestOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequestOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequestOrBuilder.java index 9502c3bace5c..b43b16a8a689 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequestOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequestOrBuilder.java @@ -1,29 +1,50 @@ +/* + * 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/cloud/commerce/consumer/procurement/v1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1; -public interface GetOrderRequestOrBuilder extends +public interface GetOrderRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1.GetOrderRequest) com.google.protobuf.MessageOrBuilder { /** + * + * * * Required. The name of the order to retrieve. ** *string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The name. */ java.lang.String getName(); /** + * + * ** Required. The name of the order to retrieve. ** *string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItem.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItem.java similarity index 63% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItem.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItem.java index f3986649e3e3..2000651a4407 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItem.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItem.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/cloud/commerce/consumer/procurement/v1/order.proto package com.google.cloud.commerce.consumer.procurement.v1; /** + * + * ** A single item within an order. ** * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.LineItem} */ -public final class LineItem extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LineItem extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.LineItem) LineItemOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LineItem.newBuilder() to construct. private LineItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private LineItem() { lineItemId_ = ""; changeHistory_ = java.util.Collections.emptyList(); @@ -26,33 +44,38 @@ private LineItem() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LineItem(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_LineItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_LineItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_LineItem_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_LineItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.LineItem.class, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.LineItem.class, + com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder.class); } public static final int LINE_ITEM_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object lineItemId_ = ""; /** + * + * ** Output only. Line item ID. ** *string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The lineItemId. */ @java.lang.Override @@ -61,29 +84,29 @@ public java.lang.String getLineItemId() { 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(); lineItemId_ = s; return s; } } /** + * + * ** Output only. Line item ID. ** *string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for lineItemId. */ @java.lang.Override - public com.google.protobuf.ByteString - getLineItemIdBytes() { + public com.google.protobuf.ByteString getLineItemIdBytes() { java.lang.Object ref = lineItemId_; 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); lineItemId_ = b; return b; } else { @@ -94,12 +117,17 @@ public java.lang.String getLineItemId() { public static final int LINE_ITEM_INFO_FIELD_NUMBER = 2; private com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo lineItemInfo_; /** + * + * ** Output only. Current state and information of this item. It tells what, * e.g. which offer, is currently effective. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the lineItemInfo field is set. */ @java.lang.Override @@ -107,41 +135,60 @@ public boolean hasLineItemInfo() { return lineItemInfo_ != null; } /** + * + * ** Output only. Current state and information of this item. It tells what, * e.g. which offer, is currently effective. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The lineItemInfo. */ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getLineItemInfo() { - return lineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() : lineItemInfo_; + return lineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() + : lineItemInfo_; } /** + * + * ** Output only. Current state and information of this item. It tells what, * e.g. which offer, is currently effective. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder getLineItemInfoOrBuilder() { - return lineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() : lineItemInfo_; + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder + getLineItemInfoOrBuilder() { + return lineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() + : lineItemInfo_; } public static final int PENDING_CHANGE_FIELD_NUMBER = 3; private com.google.cloud.commerce.consumer.procurement.v1.LineItemChange pendingChange_; /** + * + * ** Output only. A change made on the item which is pending and not yet * effective. Absence of this field indicates the line item is not undergoing * a change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the pendingChange field is set. */ @java.lang.Override @@ -149,37 +196,55 @@ public boolean hasPendingChange() { return pendingChange_ != null; } /** + * + * ** Output only. A change made on the item which is pending and not yet * effective. Absence of this field indicates the line item is not undergoing * a change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The pendingChange. */ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange getPendingChange() { - return pendingChange_ == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.getDefaultInstance() : pendingChange_; + return pendingChange_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.getDefaultInstance() + : pendingChange_; } /** + * + * ** Output only. A change made on the item which is pending and not yet * effective. Absence of this field indicates the line item is not undergoing * a change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder getPendingChangeOrBuilder() { - return pendingChange_ == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.getDefaultInstance() : pendingChange_; + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder + getPendingChangeOrBuilder() { + return pendingChange_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.getDefaultInstance() + : pendingChange_; } public static final int CHANGE_HISTORY_FIELD_NUMBER = 4; + @SuppressWarnings("serial") - private java.util.ListchangeHistory_; + private java.util.List + changeHistory_; /** + * + * * * Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -187,13 +252,18 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override - public java.util.ListgetChangeHistoryList() { + public java.util.List + getChangeHistoryList() { return changeHistory_; } /** + * + * * * Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -201,14 +271,19 @@ public java.util.List* - * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override - public java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder> + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder> getChangeHistoryOrBuilderList() { return changeHistory_; } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -216,13 +291,17 @@ public java.util.List* - * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override public int getChangeHistoryCount() { return changeHistory_.size(); } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -230,13 +309,18 @@ public int getChangeHistoryCount() { * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange getChangeHistory(int index) { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange getChangeHistory( + int index) { return changeHistory_.get(index); } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -244,15 +328,18 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange getChang * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder getChangeHistoryOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder + getChangeHistoryOrBuilder(int index) { return changeHistory_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,8 +351,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(lineItemId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lineItemId_); } @@ -291,16 +377,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lineItemId_); } if (lineItemInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLineItemInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLineItemInfo()); } if (pendingChange_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPendingChange()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPendingChange()); } for (int i = 0; i < changeHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, changeHistory_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, changeHistory_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -310,27 +393,24 @@ 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.cloud.commerce.consumer.procurement.v1.LineItem)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1.LineItem other = (com.google.cloud.commerce.consumer.procurement.v1.LineItem) obj; + com.google.cloud.commerce.consumer.procurement.v1.LineItem other = + (com.google.cloud.commerce.consumer.procurement.v1.LineItem) obj; - if (!getLineItemId() - .equals(other.getLineItemId())) return false; + if (!getLineItemId().equals(other.getLineItemId())) return false; if (hasLineItemInfo() != other.hasLineItemInfo()) return false; if (hasLineItemInfo()) { - if (!getLineItemInfo() - .equals(other.getLineItemInfo())) return false; + if (!getLineItemInfo().equals(other.getLineItemInfo())) return false; } if (hasPendingChange() != other.hasPendingChange()) return false; if (hasPendingChange()) { - if (!getPendingChange() - .equals(other.getPendingChange())) return false; + if (!getPendingChange().equals(other.getPendingChange())) return false; } - if (!getChangeHistoryList() - .equals(other.getChangeHistoryList())) return false; + if (!getChangeHistoryList().equals(other.getChangeHistoryList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -362,131 +442,136 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1.LineItem 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.cloud.commerce.consumer.procurement.v1.LineItem 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.cloud.commerce.consumer.procurement.v1.LineItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.LineItem 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.cloud.commerce.consumer.procurement.v1.LineItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.LineItem 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.cloud.commerce.consumer.procurement.v1.LineItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.commerce.consumer.procurement.v1.LineItem parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.commerce.consumer.procurement.v1.LineItem 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.cloud.commerce.consumer.procurement.v1.LineItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.commerce.consumer.procurement.v1.LineItem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.commerce.consumer.procurement.v1.LineItem 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.cloud.commerce.consumer.procurement.v1.LineItem 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.cloud.commerce.consumer.procurement.v1.LineItem 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.cloud.commerce.consumer.procurement.v1.LineItem prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1.LineItem 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 single item within an order. ** * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.LineItem} */ - 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.cloud.commerce.consumer.procurement.v1.LineItem) com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_LineItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_LineItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_LineItem_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_LineItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.LineItem.class, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.LineItem.class, + com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder.class); } // Construct using com.google.cloud.commerce.consumer.procurement.v1.LineItem.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(); @@ -513,9 +598,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_LineItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_LineItem_descriptor; } @java.lang.Override @@ -534,14 +619,18 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItem build() { @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.LineItem buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1.LineItem result = new com.google.cloud.commerce.consumer.procurement.v1.LineItem(this); + com.google.cloud.commerce.consumer.procurement.v1.LineItem result = + new com.google.cloud.commerce.consumer.procurement.v1.LineItem(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.commerce.consumer.procurement.v1.LineItem result) { + private void buildPartialRepeatedFields( + com.google.cloud.commerce.consumer.procurement.v1.LineItem result) { if (changeHistoryBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { changeHistory_ = java.util.Collections.unmodifiableList(changeHistory_); @@ -559,14 +648,12 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Lin result.lineItemId_ = lineItemId_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.lineItemInfo_ = lineItemInfoBuilder_ == null - ? lineItemInfo_ - : lineItemInfoBuilder_.build(); + result.lineItemInfo_ = + lineItemInfoBuilder_ == null ? lineItemInfo_ : lineItemInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.pendingChange_ = pendingChangeBuilder_ == null - ? pendingChange_ - : pendingChangeBuilder_.build(); + result.pendingChange_ = + pendingChangeBuilder_ == null ? pendingChange_ : pendingChangeBuilder_.build(); } } @@ -574,38 +661,39 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Lin 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.cloud.commerce.consumer.procurement.v1.LineItem) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.LineItem)other); + return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.LineItem) other); } else { super.mergeFrom(other); return this; @@ -613,7 +701,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.LineItem other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1.LineItem.getDefaultInstance()) return this; + if (other == com.google.cloud.commerce.consumer.procurement.v1.LineItem.getDefaultInstance()) + return this; if (!other.getLineItemId().isEmpty()) { lineItemId_ = other.lineItemId_; bitField0_ |= 0x00000001; @@ -643,9 +732,10 @@ public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.LineI changeHistoryBuilder_ = null; changeHistory_ = other.changeHistory_; bitField0_ = (bitField0_ & ~0x00000008); - changeHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChangeHistoryFieldBuilder() : null; + changeHistoryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChangeHistoryFieldBuilder() + : null; } else { changeHistoryBuilder_.addAllMessages(other.changeHistory_); } @@ -677,44 +767,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - lineItemId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getLineItemInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getPendingChangeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - com.google.cloud.commerce.consumer.procurement.v1.LineItemChange m = - input.readMessage( - com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.parser(), - extensionRegistry); - if (changeHistoryBuilder_ == null) { - ensureChangeHistoryIsMutable(); - changeHistory_.add(m); - } else { - changeHistoryBuilder_.addMessage(m); - } - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + lineItemId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getLineItemInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getPendingChangeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange m = + input.readMessage( + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.parser(), + extensionRegistry); + if (changeHistoryBuilder_ == null) { + ensureChangeHistoryIsMutable(); + changeHistory_.add(m); + } else { + changeHistoryBuilder_.addMessage(m); + } + break; + } // case 34 + 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) { @@ -724,22 +815,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object lineItemId_ = ""; /** + * + * * * Output only. Line item ID. ** *string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The lineItemId. */ public java.lang.String getLineItemId() { java.lang.Object ref = lineItemId_; 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(); lineItemId_ = s; return s; @@ -748,20 +842,21 @@ public java.lang.String getLineItemId() { } } /** + * + * ** Output only. Line item ID. ** *string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for lineItemId. */ - public com.google.protobuf.ByteString - getLineItemIdBytes() { + public com.google.protobuf.ByteString getLineItemIdBytes() { java.lang.Object ref = lineItemId_; 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); lineItemId_ = b; return b; } else { @@ -769,28 +864,35 @@ public java.lang.String getLineItemId() { } } /** + * + * ** Output only. Line item ID. ** *string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The lineItemId to set. * @return This builder for chaining. */ - public Builder setLineItemId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLineItemId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } lineItemId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Output only. Line item ID. ** *string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return This builder for chaining. */ public Builder clearLineItemId() { @@ -800,17 +902,21 @@ public Builder clearLineItemId() { return this; } /** + * + * ** Output only. Line item ID. ** *string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The bytes for lineItemId to set. * @return This builder for chaining. */ - public Builder setLineItemIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLineItemIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); lineItemId_ = value; bitField0_ |= 0x00000001; @@ -820,44 +926,64 @@ public Builder setLineItemIdBytes( private com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo lineItemInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder> lineItemInfoBuilder_; + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder> + lineItemInfoBuilder_; /** + * + * ** Output only. Current state and information of this item. It tells what, * e.g. which offer, is currently effective. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the lineItemInfo field is set. */ public boolean hasLineItemInfo() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * ** Output only. Current state and information of this item. It tells what, * e.g. which offer, is currently effective. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The lineItemInfo. */ public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getLineItemInfo() { if (lineItemInfoBuilder_ == null) { - return lineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() : lineItemInfo_; + return lineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() + : lineItemInfo_; } else { return lineItemInfoBuilder_.getMessage(); } } /** + * + * ** Output only. Current state and information of this item. It tells what, * e.g. which offer, is currently effective. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public Builder setLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { + public Builder setLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { if (lineItemInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -871,12 +997,16 @@ public Builder setLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1 return this; } /** + * + * ** Output only. Current state and information of this item. It tells what, * e.g. which offer, is currently effective. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder setLineItemInfo( com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder builderForValue) { @@ -890,18 +1020,25 @@ public Builder setLineItemInfo( return this; } /** + * + * ** Output only. Current state and information of this item. It tells what, * e.g. which offer, is currently effective. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public Builder mergeLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { + public Builder mergeLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { if (lineItemInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - lineItemInfo_ != null && - lineItemInfo_ != com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && lineItemInfo_ != null + && lineItemInfo_ + != com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo + .getDefaultInstance()) { getLineItemInfoBuilder().mergeFrom(value); } else { lineItemInfo_ = value; @@ -914,12 +1051,16 @@ public Builder mergeLineItemInfo(com.google.cloud.commerce.consumer.procurement. return this; } /** + * + * ** Output only. Current state and information of this item. It tells what, * e.g. which offer, is currently effective. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder clearLineItemInfo() { bitField0_ = (bitField0_ & ~0x00000002); @@ -932,51 +1073,69 @@ public Builder clearLineItemInfo() { return this; } /** + * + * ** Output only. Current state and information of this item. It tells what, * e.g. which offer, is currently effective. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder getLineItemInfoBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder + getLineItemInfoBuilder() { bitField0_ |= 0x00000002; onChanged(); return getLineItemInfoFieldBuilder().getBuilder(); } /** + * + * ** Output only. Current state and information of this item. It tells what, * e.g. which offer, is currently effective. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder getLineItemInfoOrBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder + getLineItemInfoOrBuilder() { if (lineItemInfoBuilder_ != null) { return lineItemInfoBuilder_.getMessageOrBuilder(); } else { - return lineItemInfo_ == null ? - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() : lineItemInfo_; + return lineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() + : lineItemInfo_; } } /** + * + * ** Output only. Current state and information of this item. It tells what, * e.g. which offer, is currently effective. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder> getLineItemInfoFieldBuilder() { if (lineItemInfoBuilder_ == null) { - lineItemInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder>( - getLineItemInfo(), - getParentForChildren(), - isClean()); + lineItemInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder>( + getLineItemInfo(), getParentForChildren(), isClean()); lineItemInfo_ = null; } return lineItemInfoBuilder_; @@ -984,47 +1143,67 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder g private com.google.cloud.commerce.consumer.procurement.v1.LineItemChange pendingChange_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItemChange, com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder> pendingChangeBuilder_; + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder> + pendingChangeBuilder_; /** + * + * ** Output only. A change made on the item which is pending and not yet * effective. Absence of this field indicates the line item is not undergoing * a change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the pendingChange field is set. */ public boolean hasPendingChange() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * ** Output only. A change made on the item which is pending and not yet * effective. Absence of this field indicates the line item is not undergoing * a change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The pendingChange. */ public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange getPendingChange() { if (pendingChangeBuilder_ == null) { - return pendingChange_ == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.getDefaultInstance() : pendingChange_; + return pendingChange_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.getDefaultInstance() + : pendingChange_; } else { return pendingChangeBuilder_.getMessage(); } } /** + * + * ** Output only. A change made on the item which is pending and not yet * effective. Absence of this field indicates the line item is not undergoing * a change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public Builder setPendingChange(com.google.cloud.commerce.consumer.procurement.v1.LineItemChange value) { + public Builder setPendingChange( + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange value) { if (pendingChangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1038,13 +1217,17 @@ public Builder setPendingChange(com.google.cloud.commerce.consumer.procurement.v return this; } /** + * + * ** Output only. A change made on the item which is pending and not yet * effective. Absence of this field indicates the line item is not undergoing * a change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder setPendingChange( com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder builderForValue) { @@ -1058,19 +1241,26 @@ public Builder setPendingChange( return this; } /** + * + * ** Output only. A change made on the item which is pending and not yet * effective. Absence of this field indicates the line item is not undergoing * a change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public Builder mergePendingChange(com.google.cloud.commerce.consumer.procurement.v1.LineItemChange value) { + public Builder mergePendingChange( + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange value) { if (pendingChangeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - pendingChange_ != null && - pendingChange_ != com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && pendingChange_ != null + && pendingChange_ + != com.google.cloud.commerce.consumer.procurement.v1.LineItemChange + .getDefaultInstance()) { getPendingChangeBuilder().mergeFrom(value); } else { pendingChange_ = value; @@ -1083,13 +1273,17 @@ public Builder mergePendingChange(com.google.cloud.commerce.consumer.procurement return this; } /** + * + * ** Output only. A change made on the item which is pending and not yet * effective. Absence of this field indicates the line item is not undergoing * a change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder clearPendingChange() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1102,72 +1296,98 @@ public Builder clearPendingChange() { return this; } /** + * + * ** Output only. A change made on the item which is pending and not yet * effective. Absence of this field indicates the line item is not undergoing * a change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder getPendingChangeBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder + getPendingChangeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPendingChangeFieldBuilder().getBuilder(); } /** + * + * ** Output only. A change made on the item which is pending and not yet * effective. Absence of this field indicates the line item is not undergoing * a change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder getPendingChangeOrBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder + getPendingChangeOrBuilder() { if (pendingChangeBuilder_ != null) { return pendingChangeBuilder_.getMessageOrBuilder(); } else { - return pendingChange_ == null ? - com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.getDefaultInstance() : pendingChange_; + return pendingChange_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.getDefaultInstance() + : pendingChange_; } } /** + * + * ** Output only. A change made on the item which is pending and not yet * effective. Absence of this field indicates the line item is not undergoing * a change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItemChange, com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder> getPendingChangeFieldBuilder() { if (pendingChangeBuilder_ == null) { - pendingChangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItemChange, com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder>( - getPendingChange(), - getParentForChildren(), - isClean()); + pendingChangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder>( + getPendingChange(), getParentForChildren(), isClean()); pendingChange_ = null; } return pendingChangeBuilder_; } - private java.util.ListchangeHistory_ = - java.util.Collections.emptyList(); + private java.util.List + changeHistory_ = java.util.Collections.emptyList(); + private void ensureChangeHistoryIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - changeHistory_ = new java.util.ArrayList (changeHistory_); + changeHistory_ = + new java.util.ArrayList< + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange>(changeHistory_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItemChange, com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder> changeHistoryBuilder_; + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder> + changeHistoryBuilder_; /** + * + * * * Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1175,9 +1395,12 @@ private void ensureChangeHistoryIsMutable() { * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public java.util.ListgetChangeHistoryList() { + public java.util.List + getChangeHistoryList() { if (changeHistoryBuilder_ == null) { return java.util.Collections.unmodifiableList(changeHistory_); } else { @@ -1185,6 +1408,8 @@ public java.util.List * Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1192,7 +1417,9 @@ public java.util.List * - * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public int getChangeHistoryCount() { if (changeHistoryBuilder_ == null) { @@ -1202,6 +1429,8 @@ public int getChangeHistoryCount() { } } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1209,9 +1438,12 @@ public int getChangeHistoryCount() { * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange getChangeHistory(int index) { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange getChangeHistory( + int index) { if (changeHistoryBuilder_ == null) { return changeHistory_.get(index); } else { @@ -1219,6 +1451,8 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange getChang } } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1226,7 +1460,9 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange getChang * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder setChangeHistory( int index, com.google.cloud.commerce.consumer.procurement.v1.LineItemChange value) { @@ -1243,6 +1479,8 @@ public Builder setChangeHistory( return this; } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1250,10 +1488,13 @@ public Builder setChangeHistory( * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder setChangeHistory( - int index, com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder builderForValue) { if (changeHistoryBuilder_ == null) { ensureChangeHistoryIsMutable(); changeHistory_.set(index, builderForValue.build()); @@ -1264,6 +1505,8 @@ public Builder setChangeHistory( return this; } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1271,9 +1514,12 @@ public Builder setChangeHistory( * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public Builder addChangeHistory(com.google.cloud.commerce.consumer.procurement.v1.LineItemChange value) { + public Builder addChangeHistory( + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange value) { if (changeHistoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1287,6 +1533,8 @@ public Builder addChangeHistory(com.google.cloud.commerce.consumer.procurement.v return this; } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1294,7 +1542,9 @@ public Builder addChangeHistory(com.google.cloud.commerce.consumer.procurement.v * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder addChangeHistory( int index, com.google.cloud.commerce.consumer.procurement.v1.LineItemChange value) { @@ -1311,6 +1561,8 @@ public Builder addChangeHistory( return this; } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1318,7 +1570,9 @@ public Builder addChangeHistory( * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder addChangeHistory( com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder builderForValue) { @@ -1332,6 +1586,8 @@ public Builder addChangeHistory( return this; } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1339,10 +1595,13 @@ public Builder addChangeHistory( * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder addChangeHistory( - int index, com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder builderForValue) { if (changeHistoryBuilder_ == null) { ensureChangeHistoryIsMutable(); changeHistory_.add(index, builderForValue.build()); @@ -1353,6 +1612,8 @@ public Builder addChangeHistory( return this; } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1360,14 +1621,17 @@ public Builder addChangeHistory( * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder addAllChangeHistory( - java.lang.Iterable extends com.google.cloud.commerce.consumer.procurement.v1.LineItemChange> values) { + java.lang.Iterable< + ? extends com.google.cloud.commerce.consumer.procurement.v1.LineItemChange> + values) { if (changeHistoryBuilder_ == null) { ensureChangeHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, changeHistory_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, changeHistory_); onChanged(); } else { changeHistoryBuilder_.addAllMessages(values); @@ -1375,6 +1639,8 @@ public Builder addAllChangeHistory( return this; } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1382,7 +1648,9 @@ public Builder addAllChangeHistory( * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder clearChangeHistory() { if (changeHistoryBuilder_ == null) { @@ -1395,6 +1663,8 @@ public Builder clearChangeHistory() { return this; } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1402,7 +1672,9 @@ public Builder clearChangeHistory() { * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder removeChangeHistory(int index) { if (changeHistoryBuilder_ == null) { @@ -1415,6 +1687,8 @@ public Builder removeChangeHistory(int index) { return this; } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1422,13 +1696,17 @@ public Builder removeChangeHistory(int index) { * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder getChangeHistoryBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder + getChangeHistoryBuilder(int index) { return getChangeHistoryFieldBuilder().getBuilder(index); } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1436,16 +1714,21 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder getChangeHistoryOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder + getChangeHistoryOrBuilder(int index) { if (changeHistoryBuilder_ == null) { - return changeHistory_.get(index); } else { + return changeHistory_.get(index); + } else { return changeHistoryBuilder_.getMessageOrBuilder(index); } } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1453,10 +1736,13 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder> - getChangeHistoryOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder> + getChangeHistoryOrBuilderList() { if (changeHistoryBuilder_ != null) { return changeHistoryBuilder_.getMessageOrBuilderList(); } else { @@ -1464,6 +1750,8 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder } } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1471,13 +1759,20 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder addChangeHistoryBuilder() { - return getChangeHistoryFieldBuilder().addBuilder( - com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder + addChangeHistoryBuilder() { + return getChangeHistoryFieldBuilder() + .addBuilder( + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange + .getDefaultInstance()); } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1485,14 +1780,21 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder addChangeHistoryBuilder( - int index) { - return getChangeHistoryFieldBuilder().addBuilder( - index, com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder + addChangeHistoryBuilder(int index) { + return getChangeHistoryFieldBuilder() + .addBuilder( + index, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange + .getDefaultInstance()); } /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -1500,18 +1802,26 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public java.util.List- getChangeHistoryBuilderList() { + public java.util.List + getChangeHistoryBuilderList() { return getChangeHistoryFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItemChange, com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder> getChangeHistoryFieldBuilder() { if (changeHistoryBuilder_ == null) { - changeHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItemChange, com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder>( + changeHistoryBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder>( changeHistory_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -1520,9 +1830,9 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder } return changeHistoryBuilder_; } + @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); } @@ -1532,12 +1842,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1.LineItem) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1.LineItem) private static final com.google.cloud.commerce.consumer.procurement.v1.LineItem DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.LineItem(); } @@ -1546,27 +1856,27 @@ public static com.google.cloud.commerce.consumer.procurement.v1.LineItem getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public LineItem 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 LineItem 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; @@ -1581,6 +1891,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.commerce.consumer.procurement.v1.LineItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChange.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChange.java similarity index 61% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChange.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChange.java index a82a59312141..1645ba7d0f02 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChange.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChange.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/cloud/commerce/consumer/procurement/v1/order.proto package com.google.cloud.commerce.consumer.procurement.v1; /** + * + * * * A change made on a line item. ** * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.LineItemChange} */ -public final class LineItemChange extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LineItemChange extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.LineItemChange) LineItemChangeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LineItemChange.newBuilder() to construct. private LineItemChange(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private LineItemChange() { changeId_ = ""; changeType_ = 0; @@ -29,34 +47,39 @@ private LineItemChange() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LineItemChange(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemChange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemChange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemChange_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemChange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.class, com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.class, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder.class); } public static final int CHANGE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object changeId_ = ""; /** + * + * ** Output only. Change ID. * All changes made within one order update operation have the same change_id. ** *string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The changeId. */ @java.lang.Override @@ -65,30 +88,30 @@ public java.lang.String getChangeId() { 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(); changeId_ = s; return s; } } /** + * + * ** Output only. Change ID. * All changes made within one order update operation have the same change_id. ** *string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for changeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getChangeIdBytes() { + public com.google.protobuf.ByteString getChangeIdBytes() { java.lang.Object ref = changeId_; 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); changeId_ = b; return b; } else { @@ -99,37 +122,57 @@ public java.lang.String getChangeId() { public static final int CHANGE_TYPE_FIELD_NUMBER = 2; private int changeType_ = 0; /** + * + * ** Required. Type of the change to make. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return The enum numeric value on the wire for changeType. */ - @java.lang.Override public int getChangeTypeValue() { + @java.lang.Override + public int getChangeTypeValue() { return changeType_; } /** + * + * ** Required. Type of the change to make. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return The changeType. */ - @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType getChangeType() { - com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType result = com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType.forNumber(changeType_); - return result == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType getChangeType() { + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType result = + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType.forNumber(changeType_); + return result == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType.UNRECOGNIZED + : result; } public static final int OLD_LINE_ITEM_INFO_FIELD_NUMBER = 3; private com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo oldLineItemInfo_; /** + * + * ** Output only. Line item info before the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the oldLineItemInfo field is set. */ @java.lang.Override @@ -137,37 +180,55 @@ public boolean hasOldLineItemInfo() { return oldLineItemInfo_ != null; } /** + * + * ** Output only. Line item info before the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The oldLineItemInfo. */ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getOldLineItemInfo() { - return oldLineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() : oldLineItemInfo_; + return oldLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() + : oldLineItemInfo_; } /** + * + * ** Output only. Line item info before the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder getOldLineItemInfoOrBuilder() { - return oldLineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() : oldLineItemInfo_; + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder + getOldLineItemInfoOrBuilder() { + return oldLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() + : oldLineItemInfo_; } public static final int NEW_LINE_ITEM_INFO_FIELD_NUMBER = 4; private com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo newLineItemInfo_; /** + * + * ** Line item info after the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
+ *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + *
+ * * @return Whether the newLineItemInfo field is set. */ @java.lang.Override @@ -175,59 +236,90 @@ public boolean hasNewLineItemInfo() { return newLineItemInfo_ != null; } /** + * + * ** Line item info after the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
+ *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + *
+ * * @return The newLineItemInfo. */ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getNewLineItemInfo() { - return newLineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() : newLineItemInfo_; + return newLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() + : newLineItemInfo_; } /** + * + * ** Line item info after the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
+ *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + *
*/ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder getNewLineItemInfoOrBuilder() { - return newLineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() : newLineItemInfo_; + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder + getNewLineItemInfoOrBuilder() { + return newLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() + : newLineItemInfo_; } public static final int CHANGE_STATE_FIELD_NUMBER = 5; private int changeState_ = 0; /** + * + * ** Output only. State of the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The enum numeric value on the wire for changeState. */ - @java.lang.Override public int getChangeStateValue() { + @java.lang.Override + public int getChangeStateValue() { return changeState_; } /** + * + * ** Output only. State of the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The changeState. */ - @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState getChangeState() { - com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState result = com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState.forNumber(changeState_); - return result == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState getChangeState() { + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState result = + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState.forNumber( + changeState_); + return result == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState.UNRECOGNIZED + : result; } public static final int STATE_REASON_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object stateReason_ = ""; /** + * + * ** Output only. Provider-supplied message explaining the LineItemChange's * state. Mainly used to communicate progress and ETA for provisioning in the @@ -236,6 +328,7 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder g ** *string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The stateReason. */ @java.lang.Override @@ -244,14 +337,15 @@ public java.lang.String getStateReason() { 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(); stateReason_ = s; return s; } } /** + * + * ** Output only. Provider-supplied message explaining the LineItemChange's * state. Mainly used to communicate progress and ETA for provisioning in the @@ -260,16 +354,15 @@ public java.lang.String getStateReason() { ** *string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for stateReason. */ @java.lang.Override - public com.google.protobuf.ByteString - getStateReasonBytes() { + public com.google.protobuf.ByteString getStateReasonBytes() { java.lang.Object ref = stateReason_; 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); stateReason_ = b; return b; } else { @@ -280,6 +373,8 @@ public java.lang.String getStateReason() { public static final int CHANGE_STATE_REASON_TYPE_FIELD_NUMBER = 10; private int changeStateReasonType_ = 0; /** + * + * ** Output only. Predefined enum types for why this line item change is in * current state. For example, a line item change's state could be @@ -288,13 +383,19 @@ public java.lang.String getStateReason() { * cancellation. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The enum numeric value on the wire for changeStateReasonType. */ - @java.lang.Override public int getChangeStateReasonTypeValue() { + @java.lang.Override + public int getChangeStateReasonTypeValue() { return changeStateReasonType_; } /** + * + * ** Output only. Predefined enum types for why this line item change is in * current state. For example, a line item change's state could be @@ -303,23 +404,38 @@ public java.lang.String getStateReason() { * cancellation. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The changeStateReasonType. */ - @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType getChangeStateReasonType() { - com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType result = com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType.forNumber(changeStateReasonType_); - return result == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType + getChangeStateReasonType() { + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType result = + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType.forNumber( + changeStateReasonType_); + return result == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType + .UNRECOGNIZED + : result; } public static final int CHANGE_EFFECTIVE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp changeEffectiveTime_; /** + * + * ** Output only. A time at which the change became or will become (in case of * pending change) effective. ** - *.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the changeEffectiveTime field is set. */ @java.lang.Override @@ -327,39 +443,56 @@ public boolean hasChangeEffectiveTime() { return changeEffectiveTime_ != null; } /** + * + * ** Output only. A time at which the change became or will become (in case of * pending change) effective. ** - *.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The changeEffectiveTime. */ @java.lang.Override public com.google.protobuf.Timestamp getChangeEffectiveTime() { - return changeEffectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeEffectiveTime_; + return changeEffectiveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : changeEffectiveTime_; } /** + * + * ** Output only. A time at which the change became or will become (in case of * pending change) effective. ** - *.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getChangeEffectiveTimeOrBuilder() { - return changeEffectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeEffectiveTime_; + return changeEffectiveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : changeEffectiveTime_; } public static final int CREATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp createTime_; /** + * + * ** Output only. The time when change was initiated. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the createTime field is set. */ @java.lang.Override @@ -367,11 +500,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * ** Output only. The time when change was initiated. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The createTime. */ @java.lang.Override @@ -379,11 +516,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * ** Output only. The time when change was initiated. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -393,12 +533,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp updateTime_; /** + * + * ** Output only. The time when change was updated, e.g. approved/rejected by * partners or cancelled by the user. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -406,12 +550,16 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * ** Output only. The time when change was updated, e.g. approved/rejected by * partners or cancelled by the user. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The updateTime. */ @java.lang.Override @@ -419,12 +567,15 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * ** Output only. The time when change was updated, e.g. approved/rejected by * partners or cancelled by the user. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -432,6 +583,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -443,12 +595,14 @@ 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(changeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, changeId_); } - if (changeType_ != com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UNSPECIFIED.getNumber()) { + if (changeType_ + != com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType + .LINE_ITEM_CHANGE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, changeType_); } if (oldLineItemInfo_ != null) { @@ -457,7 +611,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (newLineItemInfo_ != null) { output.writeMessage(4, getNewLineItemInfo()); } - if (changeState_ != com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState.LINE_ITEM_CHANGE_STATE_UNSPECIFIED.getNumber()) { + if (changeState_ + != com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState + .LINE_ITEM_CHANGE_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, changeState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateReason_)) { @@ -472,7 +629,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(9, getUpdateTime()); } - if (changeStateReasonType_ != com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType.LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED.getNumber()) { + if (changeStateReasonType_ + != com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType + .LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(10, changeStateReasonType_); } getUnknownFields().writeTo(output); @@ -487,40 +647,41 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(changeId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, changeId_); } - if (changeType_ != com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, changeType_); + if (changeType_ + != com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType + .LINE_ITEM_CHANGE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, changeType_); } if (oldLineItemInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOldLineItemInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOldLineItemInfo()); } if (newLineItemInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getNewLineItemInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNewLineItemInfo()); } - if (changeState_ != com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState.LINE_ITEM_CHANGE_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, changeState_); + if (changeState_ + != com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState + .LINE_ITEM_CHANGE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, changeState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, stateReason_); } if (changeEffectiveTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getChangeEffectiveTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getChangeEffectiveTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); } - if (changeStateReasonType_ != com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType.LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, changeStateReasonType_); + if (changeStateReasonType_ + != com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType + .LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, changeStateReasonType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -530,44 +691,38 @@ 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.cloud.commerce.consumer.procurement.v1.LineItemChange)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1.LineItemChange other = (com.google.cloud.commerce.consumer.procurement.v1.LineItemChange) obj; + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange other = + (com.google.cloud.commerce.consumer.procurement.v1.LineItemChange) obj; - if (!getChangeId() - .equals(other.getChangeId())) return false; + if (!getChangeId().equals(other.getChangeId())) return false; if (changeType_ != other.changeType_) return false; if (hasOldLineItemInfo() != other.hasOldLineItemInfo()) return false; if (hasOldLineItemInfo()) { - if (!getOldLineItemInfo() - .equals(other.getOldLineItemInfo())) return false; + if (!getOldLineItemInfo().equals(other.getOldLineItemInfo())) return false; } if (hasNewLineItemInfo() != other.hasNewLineItemInfo()) return false; if (hasNewLineItemInfo()) { - if (!getNewLineItemInfo() - .equals(other.getNewLineItemInfo())) return false; + if (!getNewLineItemInfo().equals(other.getNewLineItemInfo())) return false; } if (changeState_ != other.changeState_) return false; - if (!getStateReason() - .equals(other.getStateReason())) return false; + if (!getStateReason().equals(other.getStateReason())) return false; if (changeStateReasonType_ != other.changeStateReasonType_) return false; if (hasChangeEffectiveTime() != other.hasChangeEffectiveTime()) return false; if (hasChangeEffectiveTime()) { - if (!getChangeEffectiveTime() - .equals(other.getChangeEffectiveTime())) return false; + if (!getChangeEffectiveTime().equals(other.getChangeEffectiveTime())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -616,131 +771,136 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1.LineItemChange 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.cloud.commerce.consumer.procurement.v1.LineItemChange 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.cloud.commerce.consumer.procurement.v1.LineItemChange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemChange 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.cloud.commerce.consumer.procurement.v1.LineItemChange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemChange parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemChange 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.cloud.commerce.consumer.procurement.v1.LineItemChange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemChange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemChange 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.cloud.commerce.consumer.procurement.v1.LineItemChange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemChange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.commerce.consumer.procurement.v1.LineItemChange 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.cloud.commerce.consumer.procurement.v1.LineItemChange 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.cloud.commerce.consumer.procurement.v1.LineItemChange 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.cloud.commerce.consumer.procurement.v1.LineItemChange prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange 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 change made on a line item. ** * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.LineItemChange} */ - 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.cloud.commerce.consumer.procurement.v1.LineItemChange) com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemChange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemChange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemChange_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemChange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.class, com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.class, + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder.class); } // Construct using com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.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(); @@ -779,13 +939,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemChange_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemChange_descriptor; } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange + getDefaultInstanceForType() { return com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.getDefaultInstance(); } @@ -800,13 +961,17 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange build() @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1.LineItemChange result = new com.google.cloud.commerce.consumer.procurement.v1.LineItemChange(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange result = + new com.google.cloud.commerce.consumer.procurement.v1.LineItemChange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.LineItemChange result) { + private void buildPartial0( + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.changeId_ = changeId_; @@ -815,14 +980,12 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Lin result.changeType_ = changeType_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.oldLineItemInfo_ = oldLineItemInfoBuilder_ == null - ? oldLineItemInfo_ - : oldLineItemInfoBuilder_.build(); + result.oldLineItemInfo_ = + oldLineItemInfoBuilder_ == null ? oldLineItemInfo_ : oldLineItemInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.newLineItemInfo_ = newLineItemInfoBuilder_ == null - ? newLineItemInfo_ - : newLineItemInfoBuilder_.build(); + result.newLineItemInfo_ = + newLineItemInfoBuilder_ == null ? newLineItemInfo_ : newLineItemInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.changeState_ = changeState_; @@ -834,19 +997,16 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Lin result.changeStateReasonType_ = changeStateReasonType_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.changeEffectiveTime_ = changeEffectiveTimeBuilder_ == null - ? changeEffectiveTime_ - : changeEffectiveTimeBuilder_.build(); + result.changeEffectiveTime_ = + changeEffectiveTimeBuilder_ == null + ? changeEffectiveTime_ + : changeEffectiveTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } } @@ -854,46 +1014,50 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Lin 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.cloud.commerce.consumer.procurement.v1.LineItemChange) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.LineItemChange)other); + return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.LineItemChange) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.LineItemChange other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange other) { + if (other + == com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.getDefaultInstance()) + return this; if (!other.getChangeId().isEmpty()) { changeId_ = other.changeId_; bitField0_ |= 0x00000001; @@ -954,72 +1118,74 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - changeId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - changeType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getOldLineItemInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getNewLineItemInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - changeState_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: { - stateReason_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getChangeEffectiveTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 74: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 74 - case 80: { - changeStateReasonType_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 80 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + changeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + changeType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getOldLineItemInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getNewLineItemInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + changeState_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + stateReason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + getChangeEffectiveTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 80: + { + changeStateReasonType_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 80 + 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) { @@ -1029,23 +1195,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object changeId_ = ""; /** + * + * * * Output only. Change ID. * All changes made within one order update operation have the same change_id. ** *string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The changeId. */ public java.lang.String getChangeId() { java.lang.Object ref = changeId_; 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(); changeId_ = s; return s; @@ -1054,21 +1223,22 @@ public java.lang.String getChangeId() { } } /** + * + * ** Output only. Change ID. * All changes made within one order update operation have the same change_id. ** *string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for changeId. */ - public com.google.protobuf.ByteString - getChangeIdBytes() { + public com.google.protobuf.ByteString getChangeIdBytes() { java.lang.Object ref = changeId_; 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); changeId_ = b; return b; } else { @@ -1076,30 +1246,37 @@ public java.lang.String getChangeId() { } } /** + * + * ** Output only. Change ID. * All changes made within one order update operation have the same change_id. ** *string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The changeId to set. * @return This builder for chaining. */ - public Builder setChangeId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setChangeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } changeId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Output only. Change ID. * All changes made within one order update operation have the same change_id. ** *string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return This builder for chaining. */ public Builder clearChangeId() { @@ -1109,18 +1286,22 @@ public Builder clearChangeId() { return this; } /** + * + * ** Output only. Change ID. * All changes made within one order update operation have the same change_id. ** *string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The bytes for changeId to set. * @return This builder for chaining. */ - public Builder setChangeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setChangeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); changeId_ = value; bitField0_ |= 0x00000001; @@ -1130,22 +1311,33 @@ public Builder setChangeIdBytes( private int changeType_ = 0; /** + * + * ** Required. Type of the change to make. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return The enum numeric value on the wire for changeType. */ - @java.lang.Override public int getChangeTypeValue() { + @java.lang.Override + public int getChangeTypeValue() { return changeType_; } /** + * + * ** Required. Type of the change to make. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @param value The enum numeric value on the wire for changeType to set. * @return This builder for chaining. */ @@ -1156,28 +1348,43 @@ public Builder setChangeTypeValue(int value) { return this; } /** + * + * ** Required. Type of the change to make. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return The changeType. */ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType getChangeType() { - com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType result = com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType.forNumber(changeType_); - return result == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType.UNRECOGNIZED : result; + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType result = + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType.forNumber( + changeType_); + return result == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType.UNRECOGNIZED + : result; } /** + * + * ** Required. Type of the change to make. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @param value The changeType to set. * @return This builder for chaining. */ - public Builder setChangeType(com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType value) { + public Builder setChangeType( + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType value) { if (value == null) { throw new NullPointerException(); } @@ -1187,11 +1394,16 @@ public Builder setChangeType(com.google.cloud.commerce.consumer.procurement.v1.L return this; } /** + * + * ** Required. Type of the change to make. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return This builder for chaining. */ public Builder clearChangeType() { @@ -1203,41 +1415,61 @@ public Builder clearChangeType() { private com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo oldLineItemInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder> oldLineItemInfoBuilder_; + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder> + oldLineItemInfoBuilder_; /** + * + * ** Output only. Line item info before the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the oldLineItemInfo field is set. */ public boolean hasOldLineItemInfo() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * ** Output only. Line item info before the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The oldLineItemInfo. */ public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getOldLineItemInfo() { if (oldLineItemInfoBuilder_ == null) { - return oldLineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() : oldLineItemInfo_; + return oldLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() + : oldLineItemInfo_; } else { return oldLineItemInfoBuilder_.getMessage(); } } /** + * + * ** Output only. Line item info before the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public Builder setOldLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { + public Builder setOldLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { if (oldLineItemInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1251,11 +1483,15 @@ public Builder setOldLineItemInfo(com.google.cloud.commerce.consumer.procurement return this; } /** + * + * ** Output only. Line item info before the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder setOldLineItemInfo( com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder builderForValue) { @@ -1269,17 +1505,24 @@ public Builder setOldLineItemInfo( return this; } /** + * + * ** Output only. Line item info before the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public Builder mergeOldLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { + public Builder mergeOldLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { if (oldLineItemInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - oldLineItemInfo_ != null && - oldLineItemInfo_ != com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && oldLineItemInfo_ != null + && oldLineItemInfo_ + != com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo + .getDefaultInstance()) { getOldLineItemInfoBuilder().mergeFrom(value); } else { oldLineItemInfo_ = value; @@ -1292,11 +1535,15 @@ public Builder mergeOldLineItemInfo(com.google.cloud.commerce.consumer.procureme return this; } /** + * + * ** Output only. Line item info before the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder clearOldLineItemInfo() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1309,48 +1556,66 @@ public Builder clearOldLineItemInfo() { return this; } /** + * + * ** Output only. Line item info before the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder getOldLineItemInfoBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder + getOldLineItemInfoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getOldLineItemInfoFieldBuilder().getBuilder(); } /** + * + * ** Output only. Line item info before the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder getOldLineItemInfoOrBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder + getOldLineItemInfoOrBuilder() { if (oldLineItemInfoBuilder_ != null) { return oldLineItemInfoBuilder_.getMessageOrBuilder(); } else { - return oldLineItemInfo_ == null ? - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() : oldLineItemInfo_; + return oldLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() + : oldLineItemInfo_; } } /** + * + * ** Output only. Line item info before the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder> getOldLineItemInfoFieldBuilder() { if (oldLineItemInfoBuilder_ == null) { - oldLineItemInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder>( - getOldLineItemInfo(), - getParentForChildren(), - isClean()); + oldLineItemInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder>( + getOldLineItemInfo(), getParentForChildren(), isClean()); oldLineItemInfo_ = null; } return oldLineItemInfoBuilder_; @@ -1358,41 +1623,58 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder g private com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo newLineItemInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder> newLineItemInfoBuilder_; + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder> + newLineItemInfoBuilder_; /** + * + * ** Line item info after the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
+ *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + *
+ * * @return Whether the newLineItemInfo field is set. */ public boolean hasNewLineItemInfo() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * ** Line item info after the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
+ *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + *
+ * * @return The newLineItemInfo. */ public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getNewLineItemInfo() { if (newLineItemInfoBuilder_ == null) { - return newLineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() : newLineItemInfo_; + return newLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() + : newLineItemInfo_; } else { return newLineItemInfoBuilder_.getMessage(); } } /** + * + * ** Line item info after the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
+ *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + *
*/ - public Builder setNewLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { + public Builder setNewLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { if (newLineItemInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1406,11 +1688,14 @@ public Builder setNewLineItemInfo(com.google.cloud.commerce.consumer.procurement return this; } /** + * + * ** Line item info after the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
+ *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + *
*/ public Builder setNewLineItemInfo( com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder builderForValue) { @@ -1424,17 +1709,23 @@ public Builder setNewLineItemInfo( return this; } /** + * + * ** Line item info after the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
+ *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + *
*/ - public Builder mergeNewLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { + public Builder mergeNewLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { if (newLineItemInfoBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - newLineItemInfo_ != null && - newLineItemInfo_ != com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && newLineItemInfo_ != null + && newLineItemInfo_ + != com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo + .getDefaultInstance()) { getNewLineItemInfoBuilder().mergeFrom(value); } else { newLineItemInfo_ = value; @@ -1447,11 +1738,14 @@ public Builder mergeNewLineItemInfo(com.google.cloud.commerce.consumer.procureme return this; } /** + * + * ** Line item info after the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
+ *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + *
*/ public Builder clearNewLineItemInfo() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1464,48 +1758,63 @@ public Builder clearNewLineItemInfo() { return this; } /** + * + * ** Line item info after the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
+ *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder getNewLineItemInfoBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder + getNewLineItemInfoBuilder() { bitField0_ |= 0x00000008; onChanged(); return getNewLineItemInfoFieldBuilder().getBuilder(); } /** + * + * ** Line item info after the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
+ *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder getNewLineItemInfoOrBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder + getNewLineItemInfoOrBuilder() { if (newLineItemInfoBuilder_ != null) { return newLineItemInfoBuilder_.getMessageOrBuilder(); } else { - return newLineItemInfo_ == null ? - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() : newLineItemInfo_; + return newLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance() + : newLineItemInfo_; } } /** + * + * ** Line item info after the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
+ *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + *
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder> getNewLineItemInfoFieldBuilder() { if (newLineItemInfoBuilder_ == null) { - newLineItemInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder>( - getNewLineItemInfo(), - getParentForChildren(), - isClean()); + newLineItemInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder>( + getNewLineItemInfo(), getParentForChildren(), isClean()); newLineItemInfo_ = null; } return newLineItemInfoBuilder_; @@ -1513,22 +1822,33 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder g private int changeState_ = 0; /** + * + * ** Output only. State of the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The enum numeric value on the wire for changeState. */ - @java.lang.Override public int getChangeStateValue() { + @java.lang.Override + public int getChangeStateValue() { return changeState_; } /** + * + * ** Output only. State of the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @param value The enum numeric value on the wire for changeState to set. * @return This builder for chaining. */ @@ -1539,28 +1859,43 @@ public Builder setChangeStateValue(int value) { return this; } /** + * + * ** Output only. State of the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The changeState. */ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState getChangeState() { - com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState result = com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState.forNumber(changeState_); - return result == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState.UNRECOGNIZED : result; + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState result = + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState.forNumber( + changeState_); + return result == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState.UNRECOGNIZED + : result; } /** + * + * ** Output only. State of the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @param value The changeState to set. * @return This builder for chaining. */ - public Builder setChangeState(com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState value) { + public Builder setChangeState( + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState value) { if (value == null) { throw new NullPointerException(); } @@ -1570,11 +1905,16 @@ public Builder setChangeState(com.google.cloud.commerce.consumer.procurement.v1. return this; } /** + * + * ** Output only. State of the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return This builder for chaining. */ public Builder clearChangeState() { @@ -1586,6 +1926,8 @@ public Builder clearChangeState() { private java.lang.Object stateReason_ = ""; /** + * + * ** Output only. Provider-supplied message explaining the LineItemChange's * state. Mainly used to communicate progress and ETA for provisioning in the @@ -1594,13 +1936,13 @@ public Builder clearChangeState() { ** *string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The stateReason. */ public java.lang.String getStateReason() { java.lang.Object ref = stateReason_; 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(); stateReason_ = s; return s; @@ -1609,6 +1951,8 @@ public java.lang.String getStateReason() { } } /** + * + * ** Output only. Provider-supplied message explaining the LineItemChange's * state. Mainly used to communicate progress and ETA for provisioning in the @@ -1617,15 +1961,14 @@ public java.lang.String getStateReason() { ** *string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for stateReason. */ - public com.google.protobuf.ByteString - getStateReasonBytes() { + public com.google.protobuf.ByteString getStateReasonBytes() { java.lang.Object ref = stateReason_; 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); stateReason_ = b; return b; } else { @@ -1633,6 +1976,8 @@ public java.lang.String getStateReason() { } } /** + * + * ** Output only. Provider-supplied message explaining the LineItemChange's * state. Mainly used to communicate progress and ETA for provisioning in the @@ -1641,18 +1986,22 @@ public java.lang.String getStateReason() { ** *string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The stateReason to set. * @return This builder for chaining. */ - public Builder setStateReason( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStateReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } stateReason_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * ** Output only. Provider-supplied message explaining the LineItemChange's * state. Mainly used to communicate progress and ETA for provisioning in the @@ -1661,6 +2010,7 @@ public Builder setStateReason( ** *string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return This builder for chaining. */ public Builder clearStateReason() { @@ -1670,6 +2020,8 @@ public Builder clearStateReason() { return this; } /** + * + * ** Output only. Provider-supplied message explaining the LineItemChange's * state. Mainly used to communicate progress and ETA for provisioning in the @@ -1678,12 +2030,14 @@ public Builder clearStateReason() { ** *string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The bytes for stateReason to set. * @return This builder for chaining. */ - public Builder setStateReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStateReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); stateReason_ = value; bitField0_ |= 0x00000020; @@ -1693,6 +2047,8 @@ public Builder setStateReasonBytes( private int changeStateReasonType_ = 0; /** + * + * ** Output only. Predefined enum types for why this line item change is in * current state. For example, a line item change's state could be @@ -1701,13 +2057,19 @@ public Builder setStateReasonBytes( * cancellation. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The enum numeric value on the wire for changeStateReasonType. */ - @java.lang.Override public int getChangeStateReasonTypeValue() { + @java.lang.Override + public int getChangeStateReasonTypeValue() { return changeStateReasonType_; } /** + * + * ** Output only. Predefined enum types for why this line item change is in * current state. For example, a line item change's state could be @@ -1716,7 +2078,10 @@ public Builder setStateReasonBytes( * cancellation. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @param value The enum numeric value on the wire for changeStateReasonType to set. * @return This builder for chaining. */ @@ -1727,6 +2092,8 @@ public Builder setChangeStateReasonTypeValue(int value) { return this; } /** + * + * ** Output only. Predefined enum types for why this line item change is in * current state. For example, a line item change's state could be @@ -1735,15 +2102,26 @@ public Builder setChangeStateReasonTypeValue(int value) { * cancellation. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The changeStateReasonType. */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType getChangeStateReasonType() { - com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType result = com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType.forNumber(changeStateReasonType_); - return result == null ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType.UNRECOGNIZED : result; + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType + getChangeStateReasonType() { + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType result = + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType.forNumber( + changeStateReasonType_); + return result == null + ? com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType + .UNRECOGNIZED + : result; } /** + * + * ** Output only. Predefined enum types for why this line item change is in * current state. For example, a line item change's state could be @@ -1752,11 +2130,15 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReas * cancellation. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @param value The changeStateReasonType to set. * @return This builder for chaining. */ - public Builder setChangeStateReasonType(com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType value) { + public Builder setChangeStateReasonType( + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType value) { if (value == null) { throw new NullPointerException(); } @@ -1766,6 +2148,8 @@ public Builder setChangeStateReasonType(com.google.cloud.commerce.consumer.procu return this; } /** + * + * ** Output only. Predefined enum types for why this line item change is in * current state. For example, a line item change's state could be @@ -1774,7 +2158,10 @@ public Builder setChangeStateReasonType(com.google.cloud.commerce.consumer.procu * cancellation. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return This builder for chaining. */ public Builder clearChangeStateReasonType() { @@ -1786,42 +2173,61 @@ public Builder clearChangeStateReasonType() { private com.google.protobuf.Timestamp changeEffectiveTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> changeEffectiveTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + changeEffectiveTimeBuilder_; /** + * + * ** Output only. A time at which the change became or will become (in case of * pending change) effective. ** - *.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the changeEffectiveTime field is set. */ public boolean hasChangeEffectiveTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * ** Output only. A time at which the change became or will become (in case of * pending change) effective. ** - *.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The changeEffectiveTime. */ public com.google.protobuf.Timestamp getChangeEffectiveTime() { if (changeEffectiveTimeBuilder_ == null) { - return changeEffectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeEffectiveTime_; + return changeEffectiveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : changeEffectiveTime_; } else { return changeEffectiveTimeBuilder_.getMessage(); } } /** + * + * ** Output only. A time at which the change became or will become (in case of * pending change) effective. ** - *.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder setChangeEffectiveTime(com.google.protobuf.Timestamp value) { if (changeEffectiveTimeBuilder_ == null) { @@ -1837,15 +2243,18 @@ public Builder setChangeEffectiveTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * ** Output only. A time at which the change became or will become (in case of * pending change) effective. ** - *.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public Builder setChangeEffectiveTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setChangeEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (changeEffectiveTimeBuilder_ == null) { changeEffectiveTime_ = builderForValue.build(); } else { @@ -1856,18 +2265,22 @@ public Builder setChangeEffectiveTime( return this; } /** + * + * ** Output only. A time at which the change became or will become (in case of * pending change) effective. ** - *.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder mergeChangeEffectiveTime(com.google.protobuf.Timestamp value) { if (changeEffectiveTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - changeEffectiveTime_ != null && - changeEffectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && changeEffectiveTime_ != null + && changeEffectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getChangeEffectiveTimeBuilder().mergeFrom(value); } else { changeEffectiveTime_ = value; @@ -1880,12 +2293,16 @@ public Builder mergeChangeEffectiveTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * ** Output only. A time at which the change became or will become (in case of * pending change) effective. ** - *.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder clearChangeEffectiveTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -1898,12 +2315,16 @@ public Builder clearChangeEffectiveTime() { return this; } /** + * + * ** Output only. A time at which the change became or will become (in case of * pending change) effective. ** - *.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public com.google.protobuf.Timestamp.Builder getChangeEffectiveTimeBuilder() { bitField0_ |= 0x00000080; @@ -1911,38 +2332,50 @@ public com.google.protobuf.Timestamp.Builder getChangeEffectiveTimeBuilder() { return getChangeEffectiveTimeFieldBuilder().getBuilder(); } /** + * + * ** Output only. A time at which the change became or will become (in case of * pending change) effective. ** - *.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public com.google.protobuf.TimestampOrBuilder getChangeEffectiveTimeOrBuilder() { if (changeEffectiveTimeBuilder_ != null) { return changeEffectiveTimeBuilder_.getMessageOrBuilder(); } else { - return changeEffectiveTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : changeEffectiveTime_; + return changeEffectiveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : changeEffectiveTime_; } } /** + * + * ** Output only. A time at which the change became or will become (in case of * pending change) effective. ** - *.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getChangeEffectiveTimeFieldBuilder() { if (changeEffectiveTimeBuilder_ == null) { - changeEffectiveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getChangeEffectiveTime(), - getParentForChildren(), - isClean()); + changeEffectiveTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getChangeEffectiveTime(), getParentForChildren(), isClean()); changeEffectiveTime_ = null; } return changeEffectiveTimeBuilder_; @@ -1950,39 +2383,58 @@ public com.google.protobuf.TimestampOrBuilder getChangeEffectiveTimeOrBuilder() private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * ** Output only. The time when change was initiated. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * ** Output only. The time when change was initiated. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * ** Output only. The time when change was initiated. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1998,14 +2450,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * ** Output only. The time when change was initiated. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2016,17 +2471,21 @@ public Builder setCreateTime( return this; } /** + * + * ** Output only. The time when change was initiated. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2039,11 +2498,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * ** Output only. The time when change was initiated. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2056,11 +2519,15 @@ public Builder clearCreateTime() { return this; } /** + * + * ** Output only. The time when change was initiated. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000100; @@ -2068,36 +2535,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * ** Output only. The time when change was initiated. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * ** Output only. The time when change was initiated. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2105,42 +2584,61 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * ** Output only. The time when change was updated, e.g. approved/rejected by * partners or cancelled by the user. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * ** Output only. The time when change was updated, e.g. approved/rejected by * partners or cancelled by the user. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * ** Output only. The time when change was updated, e.g. approved/rejected by * partners or cancelled by the user. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2156,15 +2654,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * ** Output only. The time when change was updated, e.g. approved/rejected by * partners or cancelled by the user. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2175,18 +2676,22 @@ public Builder setUpdateTime( return this; } /** + * + * ** Output only. The time when change was updated, e.g. approved/rejected by * partners or cancelled by the user. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2199,12 +2704,16 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * ** Output only. The time when change was updated, e.g. approved/rejected by * partners or cancelled by the user. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -2217,12 +2726,16 @@ public Builder clearUpdateTime() { return this; } /** + * + * ** Output only. The time when change was updated, e.g. approved/rejected by * partners or cancelled by the user. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000200; @@ -2230,45 +2743,57 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * ** Output only. The time when change was updated, e.g. approved/rejected by * partners or cancelled by the user. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * ** Output only. The time when change was updated, e.g. approved/rejected by * partners or cancelled by the user. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @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); } @@ -2278,41 +2803,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1.LineItemChange) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1.LineItemChange) - private static final com.google.cloud.commerce.consumer.procurement.v1.LineItemChange DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1.LineItemChange + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.LineItemChange(); } - public static com.google.cloud.commerce.consumer.procurement.v1.LineItemChange getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemChange + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public LineItemChange 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 LineItemChange 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; @@ -2324,9 +2851,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeOrBuilder.java similarity index 66% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeOrBuilder.java index a31e86b00e7a..25bf5bd83dcf 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeOrBuilder.java @@ -1,127 +1,197 @@ +/* + * 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/cloud/commerce/consumer/procurement/v1/order.proto package com.google.cloud.commerce.consumer.procurement.v1; -public interface LineItemChangeOrBuilder extends +public interface LineItemChangeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1.LineItemChange) com.google.protobuf.MessageOrBuilder { /** + * + * * * Output only. Change ID. * All changes made within one order update operation have the same change_id. ** *string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The changeId. */ java.lang.String getChangeId(); /** + * + * ** Output only. Change ID. * All changes made within one order update operation have the same change_id. ** *string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for changeId. */ - com.google.protobuf.ByteString - getChangeIdBytes(); + com.google.protobuf.ByteString getChangeIdBytes(); /** + * + * ** Required. Type of the change to make. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return The enum numeric value on the wire for changeType. */ int getChangeTypeValue(); /** + * + * ** Required. Type of the change to make. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + *
+ * * @return The changeType. */ com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType getChangeType(); /** + * + * ** Output only. Line item info before the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the oldLineItemInfo field is set. */ boolean hasOldLineItemInfo(); /** + * + * ** Output only. Line item info before the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The oldLineItemInfo. */ com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getOldLineItemInfo(); /** + * + * ** Output only. Line item info before the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder getOldLineItemInfoOrBuilder(); + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder + getOldLineItemInfoOrBuilder(); /** + * + * ** Line item info after the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
+ *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + *
+ * * @return Whether the newLineItemInfo field is set. */ boolean hasNewLineItemInfo(); /** + * + * ** Line item info after the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
+ *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + *
+ * * @return The newLineItemInfo. */ com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getNewLineItemInfo(); /** + * + * ** Line item info after the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
+ *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + *
*/ - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder getNewLineItemInfoOrBuilder(); + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder + getNewLineItemInfoOrBuilder(); /** + * + * ** Output only. State of the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The enum numeric value on the wire for changeState. */ int getChangeStateValue(); /** + * + * ** Output only. State of the change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The changeState. */ com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState getChangeState(); /** + * + * ** Output only. Provider-supplied message explaining the LineItemChange's * state. Mainly used to communicate progress and ETA for provisioning in the @@ -130,10 +200,13 @@ public interface LineItemChangeOrBuilder extends ** *string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The stateReason. */ java.lang.String getStateReason(); /** + * + * ** Output only. Provider-supplied message explaining the LineItemChange's * state. Mainly used to communicate progress and ETA for provisioning in the @@ -142,12 +215,14 @@ public interface LineItemChangeOrBuilder extends ** *string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for stateReason. */ - com.google.protobuf.ByteString - getStateReasonBytes(); + com.google.protobuf.ByteString getStateReasonBytes(); /** + * + * ** Output only. Predefined enum types for why this line item change is in * current state. For example, a line item change's state could be @@ -156,11 +231,16 @@ public interface LineItemChangeOrBuilder extends * cancellation. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The enum numeric value on the wire for changeStateReasonType. */ int getChangeStateReasonTypeValue(); /** + * + * ** Output only. Predefined enum types for why this line item change is in * current state. For example, a line item change's state could be @@ -169,95 +249,135 @@ public interface LineItemChangeOrBuilder extends * cancellation. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The changeStateReasonType. */ - com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType getChangeStateReasonType(); + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType + getChangeStateReasonType(); /** + * + * ** Output only. A time at which the change became or will become (in case of * pending change) effective. ** - *.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the changeEffectiveTime field is set. */ boolean hasChangeEffectiveTime(); /** + * + * ** Output only. A time at which the change became or will become (in case of * pending change) effective. ** - *.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The changeEffectiveTime. */ com.google.protobuf.Timestamp getChangeEffectiveTime(); /** + * + * ** Output only. A time at which the change became or will become (in case of * pending change) effective. ** - *.google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ com.google.protobuf.TimestampOrBuilder getChangeEffectiveTimeOrBuilder(); /** + * + * ** Output only. The time when change was initiated. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * ** Output only. The time when change was initiated. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * ** Output only. The time when change was initiated. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * ** Output only. The time when change was updated, e.g. approved/rejected by * partners or cancelled by the user. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * ** Output only. The time when change was updated, e.g. approved/rejected by * partners or cancelled by the user. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * ** Output only. The time when change was updated, e.g. approved/rejected by * partners or cancelled by the user. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeState.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeState.java similarity index 76% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeState.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeState.java index c923a1b3b7f9..10b394be87ba 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeState.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeState.java @@ -1,18 +1,36 @@ +/* + * 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/cloud/commerce/consumer/procurement/v1/order.proto package com.google.cloud.commerce.consumer.procurement.v1; /** + * + * ** State of a change. ** * Protobuf enum {@code google.cloud.commerce.consumer.procurement.v1.LineItemChangeState} */ -public enum LineItemChangeState - implements com.google.protobuf.ProtocolMessageEnum { +public enum LineItemChangeState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * ** Sentinel value. Do not use. *@@ -21,6 +39,8 @@ public enum LineItemChangeState */ LINE_ITEM_CHANGE_STATE_UNSPECIFIED(0), /** + * + * ** Change is in this state when a change is initiated and waiting for * partner approval. @@ -30,6 +50,8 @@ public enum LineItemChangeState */ LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL(1), /** + * + * ** Change is in this state after it's approved by the partner or auto-approved * but before it takes effect. The change can be overwritten @@ -42,6 +64,8 @@ public enum LineItemChangeState */ LINE_ITEM_CHANGE_STATE_APPROVED(2), /** + * + * ** Change is in this state after it's been activated. *@@ -50,6 +74,8 @@ public enum LineItemChangeState */ LINE_ITEM_CHANGE_STATE_COMPLETED(3), /** + * + * ** Change is in this state if it was rejected by the partner. *@@ -58,6 +84,8 @@ public enum LineItemChangeState */ LINE_ITEM_CHANGE_STATE_REJECTED(4), /** + * + * ** Change is in this state if it was abandoned by the user. *@@ -66,6 +94,8 @@ public enum LineItemChangeState */ LINE_ITEM_CHANGE_STATE_ABANDONED(5), /** + * + * ** Change is in this state if it's currently being provisioned downstream. The * change can't be overwritten or cancelled when it's in this state. @@ -78,6 +108,8 @@ public enum LineItemChangeState ; /** + * + * ** Sentinel value. Do not use. *@@ -86,6 +118,8 @@ public enum LineItemChangeState */ public static final int LINE_ITEM_CHANGE_STATE_UNSPECIFIED_VALUE = 0; /** + * + * ** Change is in this state when a change is initiated and waiting for * partner approval. @@ -95,6 +129,8 @@ public enum LineItemChangeState */ public static final int LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL_VALUE = 1; /** + * + * ** Change is in this state after it's approved by the partner or auto-approved * but before it takes effect. The change can be overwritten @@ -107,6 +143,8 @@ public enum LineItemChangeState */ public static final int LINE_ITEM_CHANGE_STATE_APPROVED_VALUE = 2; /** + * + * ** Change is in this state after it's been activated. *@@ -115,6 +153,8 @@ public enum LineItemChangeState */ public static final int LINE_ITEM_CHANGE_STATE_COMPLETED_VALUE = 3; /** + * + * ** Change is in this state if it was rejected by the partner. *@@ -123,6 +163,8 @@ public enum LineItemChangeState */ public static final int LINE_ITEM_CHANGE_STATE_REJECTED_VALUE = 4; /** + * + * ** Change is in this state if it was abandoned by the user. *@@ -131,6 +173,8 @@ public enum LineItemChangeState */ public static final int LINE_ITEM_CHANGE_STATE_ABANDONED_VALUE = 5; /** + * + * ** Change is in this state if it's currently being provisioned downstream. The * change can't be overwritten or cancelled when it's in this state. @@ -140,7 +184,6 @@ public enum LineItemChangeState */ public static final int LINE_ITEM_CHANGE_STATE_ACTIVATING_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -165,14 +208,22 @@ public static LineItemChangeState valueOf(int value) { */ public static LineItemChangeState forNumber(int value) { switch (value) { - case 0: return LINE_ITEM_CHANGE_STATE_UNSPECIFIED; - case 1: return LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL; - case 2: return LINE_ITEM_CHANGE_STATE_APPROVED; - case 3: return LINE_ITEM_CHANGE_STATE_COMPLETED; - case 4: return LINE_ITEM_CHANGE_STATE_REJECTED; - case 5: return LINE_ITEM_CHANGE_STATE_ABANDONED; - case 6: return LINE_ITEM_CHANGE_STATE_ACTIVATING; - default: return null; + case 0: + return LINE_ITEM_CHANGE_STATE_UNSPECIFIED; + case 1: + return LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL; + case 2: + return LINE_ITEM_CHANGE_STATE_APPROVED; + case 3: + return LINE_ITEM_CHANGE_STATE_COMPLETED; + case 4: + return LINE_ITEM_CHANGE_STATE_REJECTED; + case 5: + return LINE_ITEM_CHANGE_STATE_ABANDONED; + case 6: + return LINE_ITEM_CHANGE_STATE_ACTIVATING; + default: + return null; } } @@ -180,29 +231,31 @@ public static LineItemChangeState forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - LineItemChangeState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LineItemChangeState findValueByNumber(int number) { - return LineItemChangeState.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 LineItemChangeState findValueByNumber(int number) { + return LineItemChangeState.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() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.getDescriptor() + .getEnumTypes() + .get(1); } private static final LineItemChangeState[] VALUES = values(); @@ -210,8 +263,7 @@ public LineItemChangeState findValueByNumber(int number) { public static LineItemChangeState 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; @@ -227,4 +279,3 @@ private LineItemChangeState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.commerce.consumer.procurement.v1.LineItemChangeState) } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeStateReasonType.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeStateReasonType.java similarity index 71% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeStateReasonType.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeStateReasonType.java index 76d3086b0435..967c63110965 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeStateReasonType.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeStateReasonType.java @@ -1,18 +1,36 @@ +/* + * 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/cloud/commerce/consumer/procurement/v1/order.proto package com.google.cloud.commerce.consumer.procurement.v1; /** + * + * * * Predefined types for line item change state reason. ** * Protobuf enum {@code google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType} */ -public enum LineItemChangeStateReasonType - implements com.google.protobuf.ProtocolMessageEnum { +public enum LineItemChangeStateReasonType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * ** Default value, indicating there's no predefined type for change state * reason. @@ -22,6 +40,8 @@ public enum LineItemChangeStateReasonType */ LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED(0), /** + * + * ** Change is in current state due to term expiration. *@@ -30,6 +50,8 @@ public enum LineItemChangeStateReasonType */ LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED(1), /** + * + * ** Change is in current state due to user-initiated cancellation. *@@ -38,6 +60,8 @@ public enum LineItemChangeStateReasonType */ LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED(2), /** + * + * ** Change is in current state due to system-initiated cancellation. *@@ -49,6 +73,8 @@ public enum LineItemChangeStateReasonType ; /** + * + * ** Default value, indicating there's no predefined type for change state * reason. @@ -58,6 +84,8 @@ public enum LineItemChangeStateReasonType */ public static final int LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * ** - ** Change is in current state due to term expiration. *@@ -66,6 +94,8 @@ public enum LineItemChangeStateReasonType */ public static final int LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED_VALUE = 1; /** + * + * ** Change is in current state due to user-initiated cancellation. *@@ -74,6 +104,8 @@ public enum LineItemChangeStateReasonType */ public static final int LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED_VALUE = 2; /** + * + * ** Change is in current state due to system-initiated cancellation. *@@ -82,7 +114,6 @@ public enum LineItemChangeStateReasonType */ public static final int LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -107,11 +138,16 @@ public static LineItemChangeStateReasonType valueOf(int value) { */ public static LineItemChangeStateReasonType forNumber(int value) { switch (value) { - case 0: return LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED; - case 1: return LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED; - case 2: return LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED; - case 3: return LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED; - default: return null; + case 0: + return LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED; + case 1: + return LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED; + case 2: + return LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED; + case 3: + return LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED; + default: + return null; } } @@ -119,29 +155,31 @@ public static LineItemChangeStateReasonType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - LineItemChangeStateReasonType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LineItemChangeStateReasonType findValueByNumber(int number) { - return LineItemChangeStateReasonType.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 LineItemChangeStateReasonType findValueByNumber(int number) { + return LineItemChangeStateReasonType.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() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.getDescriptor().getEnumTypes().get(2); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.getDescriptor() + .getEnumTypes() + .get(2); } private static final LineItemChangeStateReasonType[] VALUES = values(); @@ -149,8 +187,7 @@ public LineItemChangeStateReasonType findValueByNumber(int number) { public static LineItemChangeStateReasonType 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; @@ -166,4 +203,3 @@ private LineItemChangeStateReasonType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType) } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeType.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeType.java similarity index 70% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeType.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeType.java index d25089203c53..f3acaed100e3 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeType.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeType.java @@ -1,18 +1,36 @@ +/* + * 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/cloud/commerce/consumer/procurement/v1/order.proto package com.google.cloud.commerce.consumer.procurement.v1; /** + * + * * * Type of a line item change. ** * Protobuf enum {@code google.cloud.commerce.consumer.procurement.v1.LineItemChangeType} */ -public enum LineItemChangeType - implements com.google.protobuf.ProtocolMessageEnum { +public enum LineItemChangeType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * ** Sentinel value. Do not use. *@@ -21,6 +39,8 @@ public enum LineItemChangeType */ LINE_ITEM_CHANGE_TYPE_UNSPECIFIED(0), /** + * + * ** The change is to create a new line item. *@@ -29,6 +49,8 @@ public enum LineItemChangeType */ LINE_ITEM_CHANGE_TYPE_CREATE(1), /** + * + * ** The change is to update an existing line item. *@@ -37,6 +59,8 @@ public enum LineItemChangeType */ LINE_ITEM_CHANGE_TYPE_UPDATE(2), /** + * + * ** The change is to cancel an existing line item. *@@ -45,6 +69,8 @@ public enum LineItemChangeType */ LINE_ITEM_CHANGE_TYPE_CANCEL(3), /** + * + * ** The change is to revert a cancellation. *@@ -56,6 +82,8 @@ public enum LineItemChangeType ; /** + * + * ** Sentinel value. Do not use. *@@ -64,6 +92,8 @@ public enum LineItemChangeType */ public static final int LINE_ITEM_CHANGE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * ** The change is to create a new line item. *@@ -72,6 +102,8 @@ public enum LineItemChangeType */ public static final int LINE_ITEM_CHANGE_TYPE_CREATE_VALUE = 1; /** + * + * ** The change is to update an existing line item. *@@ -80,6 +112,8 @@ public enum LineItemChangeType */ public static final int LINE_ITEM_CHANGE_TYPE_UPDATE_VALUE = 2; /** + * + * ** The change is to cancel an existing line item. *@@ -88,6 +122,8 @@ public enum LineItemChangeType */ public static final int LINE_ITEM_CHANGE_TYPE_CANCEL_VALUE = 3; /** + * + * ** The change is to revert a cancellation. *@@ -96,7 +132,6 @@ public enum LineItemChangeType */ public static final int LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -121,42 +156,49 @@ public static LineItemChangeType valueOf(int value) { */ public static LineItemChangeType forNumber(int value) { switch (value) { - case 0: return LINE_ITEM_CHANGE_TYPE_UNSPECIFIED; - case 1: return LINE_ITEM_CHANGE_TYPE_CREATE; - case 2: return LINE_ITEM_CHANGE_TYPE_UPDATE; - case 3: return LINE_ITEM_CHANGE_TYPE_CANCEL; - case 4: return LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION; - default: return null; + case 0: + return LINE_ITEM_CHANGE_TYPE_UNSPECIFIED; + case 1: + return LINE_ITEM_CHANGE_TYPE_CREATE; + case 2: + return LINE_ITEM_CHANGE_TYPE_UPDATE; + case 3: + return LINE_ITEM_CHANGE_TYPE_CANCEL; + case 4: + return LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION; + 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< - LineItemChangeType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap () { - public LineItemChangeType findValueByNumber(int number) { - return LineItemChangeType.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 LineItemChangeType findValueByNumber(int number) { + return LineItemChangeType.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() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.getDescriptor() + .getEnumTypes() + .get(0); } private static final LineItemChangeType[] VALUES = values(); @@ -164,8 +206,7 @@ public LineItemChangeType findValueByNumber(int number) { public static LineItemChangeType 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; @@ -181,4 +222,3 @@ private LineItemChangeType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.commerce.consumer.procurement.v1.LineItemChangeType) } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemInfo.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemInfo.java similarity index 58% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemInfo.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemInfo.java index 34b5bc07aa8b..481782697320 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemInfo.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemInfo.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/cloud/commerce/consumer/procurement/v1/order.proto package com.google.cloud.commerce.consumer.procurement.v1; /** + * + * * * Line item information. ** * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.LineItemInfo} */ -public final class LineItemInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LineItemInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.LineItemInfo) LineItemInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LineItemInfo.newBuilder() to construct. private LineItemInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private LineItemInfo() { offer_ = ""; parameters_ = java.util.Collections.emptyList(); @@ -26,35 +44,42 @@ private LineItemInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LineItemInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemInfo_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.class, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.class, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder.class); } public static final int OFFER_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private volatile java.lang.Object offer_ = ""; /** + * + * ** Optional. The name of the offer can have either of these formats: * 'billingAccounts/{billing_account}/offers/{offer}', * or 'services/{service}/standardOffers/{offer}'. ** - *string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *+ * string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * * @return The offer. */ @java.lang.Override @@ -63,31 +88,33 @@ public java.lang.String getOffer() { 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(); offer_ = s; return s; } } /** + * + * ** Optional. The name of the offer can have either of these formats: * 'billingAccounts/{billing_account}/offers/{offer}', * or 'services/{service}/standardOffers/{offer}'. ** - *string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *+ * string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * * @return The bytes for offer. */ @java.lang.Override - public com.google.protobuf.ByteString - getOfferBytes() { + public com.google.protobuf.ByteString getOfferBytes() { java.lang.Object ref = offer_; 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); offer_ = b; return b; } else { @@ -96,74 +123,102 @@ public java.lang.String getOffer() { } public static final int PARAMETERS_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private java.util.Listparameters_; /** + * + * * * Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ @java.lang.Override - public java.util.ListgetParametersList() { + public java.util.List + getParametersList() { return parameters_; } /** + * + * * * Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ @java.lang.Override - public java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder> + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder> getParametersOrBuilderList() { return parameters_; } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ @java.lang.Override public int getParametersCount() { return parameters_.size(); } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.Parameter getParameters(int index) { return parameters_.get(index); } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder getParametersOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder + getParametersOrBuilder(int index) { return parameters_.get(index); } public static final int SUBSCRIPTION_FIELD_NUMBER = 10; private com.google.cloud.commerce.consumer.procurement.v1.Subscription subscription_; /** + * + * ** Output only. Information about the subscription created, if applicable. ** - *.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the subscription field is set. */ @java.lang.Override @@ -171,30 +226,45 @@ public boolean hasSubscription() { return subscription_ != null; } /** + * + * ** Output only. Information about the subscription created, if applicable. ** - *.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The subscription. */ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.Subscription getSubscription() { - return subscription_ == null ? com.google.cloud.commerce.consumer.procurement.v1.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.Subscription.getDefaultInstance() + : subscription_; } /** + * + * ** Output only. Information about the subscription created, if applicable. ** - *.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { - return subscription_ == null ? com.google.cloud.commerce.consumer.procurement.v1.Subscription.getDefaultInstance() : subscription_; + public com.google.cloud.commerce.consumer.procurement.v1.SubscriptionOrBuilder + getSubscriptionOrBuilder() { + return subscription_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.Subscription.getDefaultInstance() + : subscription_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +276,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 < parameters_.size(); i++) { output.writeMessage(9, parameters_.get(i)); } @@ -227,12 +296,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < parameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, parameters_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, parameters_.get(i)); } if (subscription_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getSubscription()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSubscription()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(offer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, offer_); @@ -245,21 +312,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.cloud.commerce.consumer.procurement.v1.LineItemInfo)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo other = (com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo) obj; + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo other = + (com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo) obj; - if (!getOffer() - .equals(other.getOffer())) return false; - if (!getParametersList() - .equals(other.getParametersList())) return false; + if (!getOffer().equals(other.getOffer())) return false; + if (!getParametersList().equals(other.getParametersList())) return false; if (hasSubscription() != other.hasSubscription()) return false; if (hasSubscription()) { - if (!getSubscription() - .equals(other.getSubscription())) return false; + if (!getSubscription().equals(other.getSubscription())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -288,131 +353,136 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo 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.cloud.commerce.consumer.procurement.v1.LineItemInfo 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.cloud.commerce.consumer.procurement.v1.LineItemInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo 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.cloud.commerce.consumer.procurement.v1.LineItemInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo 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.cloud.commerce.consumer.procurement.v1.LineItemInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo 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.cloud.commerce.consumer.procurement.v1.LineItemInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo 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.cloud.commerce.consumer.procurement.v1.LineItemInfo 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.cloud.commerce.consumer.procurement.v1.LineItemInfo 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.cloud.commerce.consumer.procurement.v1.LineItemInfo prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo 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; } /** + * + * ** Line item information. ** * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.LineItemInfo} */ - 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.cloud.commerce.consumer.procurement.v1.LineItemInfo) com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemInfo_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.class, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.class, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder.class); } // Construct using com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.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(); @@ -434,13 +504,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemInfo_descriptor; } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo + getDefaultInstanceForType() { return com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance(); } @@ -455,14 +526,18 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo build() { @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo result = new com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo(this); + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo result = + new com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo result) { + private void buildPartialRepeatedFields( + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo result) { if (parametersBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); @@ -474,15 +549,15 @@ private void buildPartialRepeatedFields(com.google.cloud.commerce.consumer.procu } } - private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo result) { + private void buildPartial0( + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.offer_ = offer_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.subscription_ = subscriptionBuilder_ == null - ? subscription_ - : subscriptionBuilder_.build(); + result.subscription_ = + subscriptionBuilder_ == null ? subscription_ : subscriptionBuilder_.build(); } } @@ -490,38 +565,39 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Lin 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.cloud.commerce.consumer.procurement.v1.LineItemInfo) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo)other); + return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo) other); } else { super.mergeFrom(other); return this; @@ -529,7 +605,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance()) return this; + if (other + == com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance()) + return this; if (!other.getOffer().isEmpty()) { offer_ = other.offer_; bitField0_ |= 0x00000001; @@ -553,9 +631,10 @@ public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.LineI parametersBuilder_ = null; parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00000002); - parametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getParametersFieldBuilder() : null; + parametersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getParametersFieldBuilder() + : null; } else { parametersBuilder_.addAllMessages(other.parameters_); } @@ -590,37 +669,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 74: { - com.google.cloud.commerce.consumer.procurement.v1.Parameter m = - input.readMessage( - com.google.cloud.commerce.consumer.procurement.v1.Parameter.parser(), - extensionRegistry); - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(m); - } else { - parametersBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: { - input.readMessage( - getSubscriptionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 82 - case 106: { - offer_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 106 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 74: + { + com.google.cloud.commerce.consumer.procurement.v1.Parameter m = + input.readMessage( + com.google.cloud.commerce.consumer.procurement.v1.Parameter.parser(), + extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + input.readMessage(getSubscriptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 82 + case 106: + { + offer_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 106 + 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) { @@ -630,24 +711,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object offer_ = ""; /** + * + * * * Optional. The name of the offer can have either of these formats: * 'billingAccounts/{billing_account}/offers/{offer}', * or 'services/{service}/standardOffers/{offer}'. ** - *string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *+ * string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * * @return The offer. */ public java.lang.String getOffer() { java.lang.Object ref = offer_; 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(); offer_ = s; return s; @@ -656,22 +742,25 @@ public java.lang.String getOffer() { } } /** + * + * ** Optional. The name of the offer can have either of these formats: * 'billingAccounts/{billing_account}/offers/{offer}', * or 'services/{service}/standardOffers/{offer}'. ** - *string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *+ * string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * * @return The bytes for offer. */ - public com.google.protobuf.ByteString - getOfferBytes() { + public com.google.protobuf.ByteString getOfferBytes() { java.lang.Object ref = offer_; 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); offer_ = b; return b; } else { @@ -679,32 +768,43 @@ public java.lang.String getOffer() { } } /** + * + * ** Optional. The name of the offer can have either of these formats: * 'billingAccounts/{billing_account}/offers/{offer}', * or 'services/{service}/standardOffers/{offer}'. ** - *string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *+ * string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * * @param value The offer to set. * @return This builder for chaining. */ - public Builder setOffer( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOffer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } offer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Optional. The name of the offer can have either of these formats: * 'billingAccounts/{billing_account}/offers/{offer}', * or 'services/{service}/standardOffers/{offer}'. ** - *string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *+ * string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * * @return This builder for chaining. */ public Builder clearOffer() { @@ -714,19 +814,25 @@ public Builder clearOffer() { return this; } /** + * + * ** Optional. The name of the offer can have either of these formats: * 'billingAccounts/{billing_account}/offers/{offer}', * or 'services/{service}/standardOffers/{offer}'. ** - *string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *+ * string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * * @param value The bytes for offer to set. * @return This builder for chaining. */ - public Builder setOfferBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOfferBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); offer_ = value; bitField0_ |= 0x00000001; @@ -734,26 +840,37 @@ public Builder setOfferBytes( return this; } - private java.util.Listparameters_ = - java.util.Collections.emptyList(); + private java.util.List + parameters_ = java.util.Collections.emptyList(); + private void ensureParametersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - parameters_ = new java.util.ArrayList (parameters_); + parameters_ = + new java.util.ArrayList ( + parameters_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.Parameter, com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder, com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder> parametersBuilder_; + com.google.cloud.commerce.consumer.procurement.v1.Parameter, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder, + com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder> + parametersBuilder_; /** + * + * * * Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ - public java.util.ListgetParametersList() { + public java.util.List + getParametersList() { if (parametersBuilder_ == null) { return java.util.Collections.unmodifiableList(parameters_); } else { @@ -761,11 +878,15 @@ public java.util.List * Optional. User-provided parameters. * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public int getParametersCount() { if (parametersBuilder_ == null) { @@ -775,11 +896,15 @@ public int getParametersCount() { } } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public com.google.cloud.commerce.consumer.procurement.v1.Parameter getParameters(int index) { if (parametersBuilder_ == null) { @@ -789,11 +914,15 @@ public com.google.cloud.commerce.consumer.procurement.v1.Parameter getParameters } } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public Builder setParameters( int index, com.google.cloud.commerce.consumer.procurement.v1.Parameter value) { @@ -810,14 +939,19 @@ public Builder setParameters( return this; } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public Builder setParameters( - int index, com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.set(index, builderForValue.build()); @@ -828,13 +962,18 @@ public Builder setParameters( return this; } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ - public Builder addParameters(com.google.cloud.commerce.consumer.procurement.v1.Parameter value) { + public Builder addParameters( + com.google.cloud.commerce.consumer.procurement.v1.Parameter value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -848,11 +987,15 @@ public Builder addParameters(com.google.cloud.commerce.consumer.procurement.v1.P return this; } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public Builder addParameters( int index, com.google.cloud.commerce.consumer.procurement.v1.Parameter value) { @@ -869,11 +1012,15 @@ public Builder addParameters( return this; } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public Builder addParameters( com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder builderForValue) { @@ -887,14 +1034,19 @@ public Builder addParameters( return this; } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public Builder addParameters( - int index, com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.add(index, builderForValue.build()); @@ -905,18 +1057,22 @@ public Builder addParameters( return this; } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public Builder addAllParameters( - java.lang.Iterable extends com.google.cloud.commerce.consumer.procurement.v1.Parameter> values) { + java.lang.Iterable extends com.google.cloud.commerce.consumer.procurement.v1.Parameter> + values) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, parameters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); onChanged(); } else { parametersBuilder_.addAllMessages(values); @@ -924,11 +1080,15 @@ public Builder addAllParameters( return this; } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public Builder clearParameters() { if (parametersBuilder_ == null) { @@ -941,11 +1101,15 @@ public Builder clearParameters() { return this; } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public Builder removeParameters(int index) { if (parametersBuilder_ == null) { @@ -958,39 +1122,53 @@ public Builder removeParameters(int index) { return this; } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder getParametersBuilder( int index) { return getParametersFieldBuilder().getBuilder(index); } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder getParametersOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder + getParametersOrBuilder(int index) { if (parametersBuilder_ == null) { - return parameters_.get(index); } else { + return parameters_.get(index); + } else { return parametersBuilder_.getMessageOrBuilder(index); } } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ - public java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder> - getParametersOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder> + getParametersOrBuilderList() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilderList(); } else { @@ -998,49 +1176,68 @@ public com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder getP } } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder addParametersBuilder() { - return getParametersFieldBuilder().addBuilder( - com.google.cloud.commerce.consumer.procurement.v1.Parameter.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder + addParametersBuilder() { + return getParametersFieldBuilder() + .addBuilder( + com.google.cloud.commerce.consumer.procurement.v1.Parameter.getDefaultInstance()); } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder addParametersBuilder( int index) { - return getParametersFieldBuilder().addBuilder( - index, com.google.cloud.commerce.consumer.procurement.v1.Parameter.getDefaultInstance()); + return getParametersFieldBuilder() + .addBuilder( + index, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.getDefaultInstance()); } /** + * + * ** Optional. User-provided parameters. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ - public java.util.List- getParametersBuilderList() { + public java.util.List + getParametersBuilderList() { return getParametersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.Parameter, com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder, com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1.Parameter, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder, + com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { - parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.Parameter, com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder, com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder>( - parameters_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + parametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1.Parameter, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder, + com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder>( + parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; @@ -1048,41 +1245,61 @@ public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder addPa private com.google.cloud.commerce.consumer.procurement.v1.Subscription subscription_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.Subscription, com.google.cloud.commerce.consumer.procurement.v1.Subscription.Builder, com.google.cloud.commerce.consumer.procurement.v1.SubscriptionOrBuilder> subscriptionBuilder_; + com.google.cloud.commerce.consumer.procurement.v1.Subscription, + com.google.cloud.commerce.consumer.procurement.v1.Subscription.Builder, + com.google.cloud.commerce.consumer.procurement.v1.SubscriptionOrBuilder> + subscriptionBuilder_; /** + * + * * * Output only. Information about the subscription created, if applicable. ** - *.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the subscription field is set. */ public boolean hasSubscription() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * ** Output only. Information about the subscription created, if applicable. ** - *.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The subscription. */ public com.google.cloud.commerce.consumer.procurement.v1.Subscription getSubscription() { if (subscriptionBuilder_ == null) { - return subscription_ == null ? com.google.cloud.commerce.consumer.procurement.v1.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.Subscription.getDefaultInstance() + : subscription_; } else { return subscriptionBuilder_.getMessage(); } } /** + * + * ** Output only. Information about the subscription created, if applicable. ** - *.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public Builder setSubscription(com.google.cloud.commerce.consumer.procurement.v1.Subscription value) { + public Builder setSubscription( + com.google.cloud.commerce.consumer.procurement.v1.Subscription value) { if (subscriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1096,11 +1313,15 @@ public Builder setSubscription(com.google.cloud.commerce.consumer.procurement.v1 return this; } /** + * + * ** Output only. Information about the subscription created, if applicable. ** - *.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder setSubscription( com.google.cloud.commerce.consumer.procurement.v1.Subscription.Builder builderForValue) { @@ -1114,17 +1335,24 @@ public Builder setSubscription( return this; } /** + * + * ** Output only. Information about the subscription created, if applicable. ** - *.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public Builder mergeSubscription(com.google.cloud.commerce.consumer.procurement.v1.Subscription value) { + public Builder mergeSubscription( + com.google.cloud.commerce.consumer.procurement.v1.Subscription value) { if (subscriptionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - subscription_ != null && - subscription_ != com.google.cloud.commerce.consumer.procurement.v1.Subscription.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && subscription_ != null + && subscription_ + != com.google.cloud.commerce.consumer.procurement.v1.Subscription + .getDefaultInstance()) { getSubscriptionBuilder().mergeFrom(value); } else { subscription_ = value; @@ -1137,11 +1365,15 @@ public Builder mergeSubscription(com.google.cloud.commerce.consumer.procurement. return this; } /** + * + * ** Output only. Information about the subscription created, if applicable. ** - *.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder clearSubscription() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1154,55 +1386,73 @@ public Builder clearSubscription() { return this; } /** + * + * ** Output only. Information about the subscription created, if applicable. ** - *.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.Subscription.Builder getSubscriptionBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1.Subscription.Builder + getSubscriptionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSubscriptionFieldBuilder().getBuilder(); } /** + * + * ** Output only. Information about the subscription created, if applicable. ** - *.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1.SubscriptionOrBuilder + getSubscriptionOrBuilder() { if (subscriptionBuilder_ != null) { return subscriptionBuilder_.getMessageOrBuilder(); } else { - return subscription_ == null ? - com.google.cloud.commerce.consumer.procurement.v1.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.Subscription.getDefaultInstance() + : subscription_; } } /** + * + * ** Output only. Information about the subscription created, if applicable. ** - *.google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.Subscription, com.google.cloud.commerce.consumer.procurement.v1.Subscription.Builder, com.google.cloud.commerce.consumer.procurement.v1.SubscriptionOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1.Subscription, + com.google.cloud.commerce.consumer.procurement.v1.Subscription.Builder, + com.google.cloud.commerce.consumer.procurement.v1.SubscriptionOrBuilder> getSubscriptionFieldBuilder() { if (subscriptionBuilder_ == null) { - subscriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.Subscription, com.google.cloud.commerce.consumer.procurement.v1.Subscription.Builder, com.google.cloud.commerce.consumer.procurement.v1.SubscriptionOrBuilder>( - getSubscription(), - getParentForChildren(), - isClean()); + subscriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1.Subscription, + com.google.cloud.commerce.consumer.procurement.v1.Subscription.Builder, + com.google.cloud.commerce.consumer.procurement.v1.SubscriptionOrBuilder>( + getSubscription(), getParentForChildren(), isClean()); subscription_ = null; } return subscriptionBuilder_; } + @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); } @@ -1212,41 +1462,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1.LineItemInfo) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1.LineItemInfo) - private static final com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo(); } - public static com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public LineItemInfo 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 LineItemInfo 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; @@ -1258,9 +1510,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemInfoOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemInfoOrBuilder.java new file mode 100644 index 000000000000..02a42b02185b --- /dev/null +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemInfoOrBuilder.java @@ -0,0 +1,163 @@ +/* + * 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/cloud/commerce/consumer/procurement/v1/order.proto + +package com.google.cloud.commerce.consumer.procurement.v1; + +public interface LineItemInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1.LineItemInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Optional. The name of the offer can have either of these formats: + * 'billingAccounts/{billing_account}/offers/{offer}', + * or 'services/{service}/standardOffers/{offer}'. + *+ * + *+ * string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return The offer. + */ + java.lang.String getOffer(); + /** + * + * + *+ * Optional. The name of the offer can have either of these formats: + * 'billingAccounts/{billing_account}/offers/{offer}', + * or 'services/{service}/standardOffers/{offer}'. + *+ * + *+ * string offer = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + *
+ * + * @return The bytes for offer. + */ + com.google.protobuf.ByteString getOfferBytes(); + + /** + * + * + *+ * Optional. User-provided parameters. + *+ * + *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + java.util.ListgetParametersList(); + /** + * + * + * + * Optional. User-provided parameters. + *+ * + *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + com.google.cloud.commerce.consumer.procurement.v1.Parameter getParameters(int index); + /** + * + * + *+ * Optional. User-provided parameters. + *+ * + *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + int getParametersCount(); + /** + * + * + *+ * Optional. User-provided parameters. + *+ * + *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder> + getParametersOrBuilderList(); + /** + * + * + *+ * Optional. User-provided parameters. + *+ * + *+ * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + *
+ */ + com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder getParametersOrBuilder( + int index); + + /** + * + * + *+ * Output only. Information about the subscription created, if applicable. + *+ * + *+ * .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return Whether the subscription field is set. + */ + boolean hasSubscription(); + /** + * + * + *+ * Output only. Information about the subscription created, if applicable. + *+ * + *+ * .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The subscription. + */ + com.google.cloud.commerce.consumer.procurement.v1.Subscription getSubscription(); + /** + * + * + *+ * Output only. Information about the subscription created, if applicable. + *+ * + *+ * .google.cloud.commerce.consumer.procurement.v1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + com.google.cloud.commerce.consumer.procurement.v1.SubscriptionOrBuilder + getSubscriptionOrBuilder(); +} diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemOrBuilder.java similarity index 59% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemOrBuilder.java index a9bb4175fe34..fc4c16cef0ee 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemOrBuilder.java @@ -1,96 +1,149 @@ +/* + * 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/cloud/commerce/consumer/procurement/v1/order.proto package com.google.cloud.commerce.consumer.procurement.v1; -public interface LineItemOrBuilder extends +public interface LineItemOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1.LineItem) com.google.protobuf.MessageOrBuilder { /** + * + * ** Output only. Line item ID. ** *string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The lineItemId. */ java.lang.String getLineItemId(); /** + * + * ** Output only. Line item ID. ** *string line_item_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for lineItemId. */ - com.google.protobuf.ByteString - getLineItemIdBytes(); + com.google.protobuf.ByteString getLineItemIdBytes(); /** + * + * ** Output only. Current state and information of this item. It tells what, * e.g. which offer, is currently effective. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the lineItemInfo field is set. */ boolean hasLineItemInfo(); /** + * + * ** Output only. Current state and information of this item. It tells what, * e.g. which offer, is currently effective. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The lineItemInfo. */ com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getLineItemInfo(); /** + * + * ** Output only. Current state and information of this item. It tells what, * e.g. which offer, is currently effective. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder getLineItemInfoOrBuilder(); + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder + getLineItemInfoOrBuilder(); /** + * + * ** Output only. A change made on the item which is pending and not yet * effective. Absence of this field indicates the line item is not undergoing * a change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the pendingChange field is set. */ boolean hasPendingChange(); /** + * + * ** Output only. A change made on the item which is pending and not yet * effective. Absence of this field indicates the line item is not undergoing * a change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The pendingChange. */ com.google.cloud.commerce.consumer.procurement.v1.LineItemChange getPendingChange(); /** + * + * ** Output only. A change made on the item which is pending and not yet * effective. Absence of this field indicates the line item is not undergoing * a change. ** - *.google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.commerce.consumer.procurement.v1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder getPendingChangeOrBuilder(); + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder + getPendingChangeOrBuilder(); /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -98,11 +151,15 @@ public interface LineItemOrBuilder extends * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - java.util.List+ java.util.List getChangeHistoryList(); /** + * + * * * Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -110,10 +167,14 @@ public interface LineItemOrBuilder extends * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ com.google.cloud.commerce.consumer.procurement.v1.LineItemChange getChangeHistory(int index); /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -121,10 +182,14 @@ public interface LineItemOrBuilder extends * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ int getChangeHistoryCount(); /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -132,11 +197,16 @@ public interface LineItemOrBuilder extends * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder> + java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder> getChangeHistoryOrBuilderList(); /** + * + * ** Output only. Changes made on the item that are not pending anymore which * might be because they already took effect, were reverted by the customer, @@ -144,8 +214,10 @@ public interface LineItemOrBuilder extends * changes. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder getChangeHistoryOrBuilder( - int index); + com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeOrBuilder + getChangeHistoryOrBuilder(int index); } diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequest.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequest.java similarity index 72% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequest.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequest.java index 934a12ff8477..e51dcffb0c05 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequest.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequest.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/cloud/commerce/consumer/procurement/v1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1; /** + * + * ** Request message for * [ConsumerProcurementService.ListOrders][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.ListOrders]. @@ -11,15 +28,16 @@ * * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest} */ -public final class ListOrdersRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListOrdersRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest) ListOrdersRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListOrdersRequest.newBuilder() to construct. private ListOrdersRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private ListOrdersRequest() { parent_ = ""; pageToken_ = ""; @@ -28,34 +46,39 @@ private ListOrdersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListOrdersRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest.class, com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest.class, + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * ** Required. The parent resource to query for orders. * This field has the form `billingAccounts/{billing-account-id}`. ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The parent. */ @java.lang.Override @@ -64,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 parent resource to query for orders. * This field has the form `billingAccounts/{billing-account-id}`. ** *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,12 +121,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * ** The maximum number of entries requested. * The default page size is 25 and the maximum page size is 200. ** *int32 page_size = 2;
+ * * @return The pageSize. */ @java.lang.Override @@ -112,14 +138,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * ** The token for fetching the next page. ** *string page_token = 3;
+ * * @return The pageToken. */ @java.lang.Override @@ -128,29 +158,29 @@ 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; } } /** + * + * ** The token for fetching the next page. ** *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 { @@ -159,9 +189,12 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * ** Filter that you can use to limit the list request. * @@ -182,6 +215,7 @@ public java.lang.String getPageToken() { ** *string filter = 4;
+ * * @return The filter. */ @java.lang.Override @@ -190,14 +224,15 @@ public java.lang.String getFilter() { 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(); filter_ = s; return s; } } /** + * + * ** Filter that you can use to limit the list request. * @@ -218,16 +253,15 @@ public java.lang.String getFilter() { ** *string filter = 4;
+ * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -236,6 +270,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,8 +282,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_); } @@ -274,8 +308,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_); @@ -291,21 +324,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.cloud.commerce.consumer.procurement.v1.ListOrdersRequest)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest other = (com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest other = + (com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -331,98 +361,105 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest 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.cloud.commerce.consumer.procurement.v1.ListOrdersRequest 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.cloud.commerce.consumer.procurement.v1.ListOrdersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest 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.cloud.commerce.consumer.procurement.v1.ListOrdersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest 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.cloud.commerce.consumer.procurement.v1.ListOrdersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest 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.cloud.commerce.consumer.procurement.v1.ListOrdersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest 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.cloud.commerce.consumer.procurement.v1.ListOrdersRequest + 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.cloud.commerce.consumer.procurement.v1.ListOrdersRequest 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.cloud.commerce.consumer.procurement.v1.ListOrdersRequest 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.cloud.commerce.consumer.procurement.v1.ListOrdersRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest 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 * [ConsumerProcurementService.ListOrders][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.ListOrders]. @@ -430,33 +467,33 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest} */ - 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.cloud.commerce.consumer.procurement.v1.ListOrdersRequest) com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest.class, com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest.class, + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest.Builder.class); } - // Construct using com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest.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(); @@ -469,14 +506,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_descriptor; } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest getDefaultInstanceForType() { - return com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest.getDefaultInstance(); + public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest + getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest + .getDefaultInstance(); } @java.lang.Override @@ -490,13 +529,17 @@ public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest build @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest result = new com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest result = + new com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest result) { + private void buildPartial0( + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -516,46 +559,51 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Lis 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.cloud.commerce.consumer.procurement.v1.ListOrdersRequest) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest)other); + return mergeFrom( + (com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest other) { + if (other + == com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -600,32 +648,37 @@ 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 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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) { @@ -635,23 +688,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * * * Required. The parent resource to query for orders. * This field has the form `billingAccounts/{billing-account-id}`. ** *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; @@ -660,21 +716,22 @@ public java.lang.String getParent() { } } /** + * + * ** Required. The parent resource to query for orders. * This field has the form `billingAccounts/{billing-account-id}`. ** *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 { @@ -682,30 +739,37 @@ public java.lang.String getParent() { } } /** + * + * ** Required. The parent resource to query for orders. * This field has the form `billingAccounts/{billing-account-id}`. ** *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 parent resource to query for orders. * This field has the form `billingAccounts/{billing-account-id}`. ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return This builder for chaining. */ public Builder clearParent() { @@ -715,18 +779,22 @@ public Builder clearParent() { return this; } /** + * + * ** Required. The parent resource to query for orders. * This field has the form `billingAccounts/{billing-account-id}`. ** *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; @@ -734,14 +802,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * ** The maximum number of entries requested. * The default page size is 25 and the maximum page size is 200. ** *int32 page_size = 2;
+ * * @return The pageSize. */ @java.lang.Override @@ -749,12 +820,15 @@ public int getPageSize() { return pageSize_; } /** + * + * ** The maximum number of entries requested. * The default page size is 25 and the maximum page size is 200. ** *int32 page_size = 2;
+ * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -766,12 +840,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * ** The maximum number of entries requested. * The default page size is 25 and the maximum page size is 200. ** *int32 page_size = 2;
+ * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -783,18 +860,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * ** The token for fetching the next page. ** *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; @@ -803,20 +882,21 @@ public java.lang.String getPageToken() { } } /** + * + * ** The token for fetching the next page. ** *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 { @@ -824,28 +904,35 @@ public java.lang.String getPageToken() { } } /** + * + * ** The token for fetching the next page. ** *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; } /** + * + * ** The token for fetching the next page. ** *string page_token = 3;
+ * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -855,17 +942,21 @@ public Builder clearPageToken() { return this; } /** + * + * ** The token for fetching the next page. ** *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; @@ -875,6 +966,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * ** Filter that you can use to limit the list request. * @@ -895,13 +988,13 @@ public Builder setPageTokenBytes( ** *string filter = 4;
+ * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; @@ -910,6 +1003,8 @@ public java.lang.String getFilter() { } } /** + * + * ** Filter that you can use to limit the list request. * @@ -930,15 +1025,14 @@ public java.lang.String getFilter() { ** *string filter = 4;
+ * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -946,6 +1040,8 @@ public java.lang.String getFilter() { } } /** + * + * ** Filter that you can use to limit the list request. * @@ -966,18 +1062,22 @@ public java.lang.String getFilter() { ** *string filter = 4;
+ * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * ** Filter that you can use to limit the list request. * @@ -998,6 +1098,7 @@ public Builder setFilter( ** *string filter = 4;
+ * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1007,6 +1108,8 @@ public Builder clearFilter() { return this; } /** + * + * ** Filter that you can use to limit the list request. * @@ -1027,21 +1130,23 @@ public Builder clearFilter() { ** *string filter = 4;
+ * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; 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); } @@ -1051,41 +1156,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest) - private static final com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest(); } - public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public ListOrdersRequest 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 ListOrdersRequest 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; @@ -1097,9 +1204,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequestOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequestOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequestOrBuilder.java index e5f0ee52cbdc..5128f65f58e3 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequestOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequestOrBuilder.java @@ -1,66 +1,97 @@ +/* + * 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/cloud/commerce/consumer/procurement/v1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1; -public interface ListOrdersRequestOrBuilder extends +public interface ListOrdersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest) com.google.protobuf.MessageOrBuilder { /** + * + * * * Required. The parent resource to query for orders. * This field has the form `billingAccounts/{billing-account-id}`. ** *string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The parent. */ java.lang.String getParent(); /** + * + * ** Required. The parent resource to query for orders. * This field has the form `billingAccounts/{billing-account-id}`. ** *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 entries requested. * The default page size is 25 and the maximum page size is 200. ** *int32 page_size = 2;
+ * * @return The pageSize. */ int getPageSize(); /** + * + * ** The token for fetching the next page. ** *string page_token = 3;
+ * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * ** The token for fetching the next page. ** *string page_token = 3;
+ * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * ** Filter that you can use to limit the list request. * @@ -81,10 +112,13 @@ public interface ListOrdersRequestOrBuilder extends ** *string filter = 4;
+ * * @return The filter. */ java.lang.String getFilter(); /** + * + * ** Filter that you can use to limit the list request. * @@ -105,8 +139,8 @@ public interface ListOrdersRequestOrBuilder extends ** *string filter = 4;
+ * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponse.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponse.java similarity index 69% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponse.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponse.java index dddfebd33aef..1f96063c2019 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponse.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponse.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/cloud/commerce/consumer/procurement/v1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1; /** + * + * ** Response message for * [ConsumerProcurementService.ListOrders][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.ListOrders]. @@ -11,15 +28,16 @@ * * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse} */ -public final class ListOrdersResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListOrdersResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse) ListOrdersResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListOrdersResponse.newBuilder() to construct. private ListOrdersResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private ListOrdersResponse() { orders_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListOrdersResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListOrdersResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse.class, com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse.class, + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse.Builder.class); } public static final int ORDERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.Listorders_; /** + * + * * * The list of orders in this response. *@@ -60,6 +82,8 @@ public java.util.Listg return orders_; } /** + * + * * * The list of orders in this response. *@@ -67,11 +91,13 @@ public java.util.Listg * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;
*/ @java.lang.Override - public java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder> + public java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder> getOrdersOrBuilderList() { return orders_; } /** + * + * ** The list of orders in this response. *@@ -83,6 +109,8 @@ public int getOrdersCount() { return orders_.size(); } /** + * + * ** The list of orders in this response. *@@ -94,6 +122,8 @@ public com.google.cloud.commerce.consumer.procurement.v1.Order getOrders(int ind return orders_.get(index); } /** + * + * ** The list of orders in this response. *@@ -107,14 +137,18 @@ public com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder getOrder } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * ** The token for fetching the next page. ** *string next_page_token = 2;
+ * * @return The nextPageToken. */ @java.lang.Override @@ -123,29 +157,29 @@ 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; } } /** + * + * ** The token for fetching the next page. ** *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 { @@ -154,6 +188,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,8 +200,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 < orders_.size(); i++) { output.writeMessage(1, orders_.get(i)); } @@ -183,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < orders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, orders_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, orders_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -197,17 +230,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.cloud.commerce.consumer.procurement.v1.ListOrdersResponse)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse other = (com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse) obj; + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse other = + (com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse) obj; - if (!getOrdersList() - .equals(other.getOrdersList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getOrdersList().equals(other.getOrdersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -231,98 +263,105 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse 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.cloud.commerce.consumer.procurement.v1.ListOrdersResponse 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.cloud.commerce.consumer.procurement.v1.ListOrdersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse 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.cloud.commerce.consumer.procurement.v1.ListOrdersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse 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.cloud.commerce.consumer.procurement.v1.ListOrdersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse 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.cloud.commerce.consumer.procurement.v1.ListOrdersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse 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.cloud.commerce.consumer.procurement.v1.ListOrdersResponse + 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.cloud.commerce.consumer.procurement.v1.ListOrdersResponse 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.cloud.commerce.consumer.procurement.v1.ListOrdersResponse 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.cloud.commerce.consumer.procurement.v1.ListOrdersResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse 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 * [ConsumerProcurementService.ListOrders][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.ListOrders]. @@ -330,33 +369,33 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse} */ - 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.cloud.commerce.consumer.procurement.v1.ListOrdersResponse) com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse.class, com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse.class, + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse.Builder.class); } - // Construct using com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse.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(); @@ -373,14 +412,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_descriptor; } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse getDefaultInstanceForType() { - return com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse.getDefaultInstance(); + public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse + getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse + .getDefaultInstance(); } @java.lang.Override @@ -394,14 +435,18 @@ public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse buil @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse result = new com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse(this); + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse result = + new com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse result) { if (ordersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { orders_ = java.util.Collections.unmodifiableList(orders_); @@ -413,7 +458,8 @@ private void buildPartialRepeatedFields(com.google.cloud.commerce.consumer.procu } } - private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse result) { + private void buildPartial0( + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,46 +470,51 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Lis 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.cloud.commerce.consumer.procurement.v1.ListOrdersResponse) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse)other); + return mergeFrom( + (com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse other) { + if (other + == com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse + .getDefaultInstance()) return this; if (ordersBuilder_ == null) { if (!other.orders_.isEmpty()) { if (orders_.isEmpty()) { @@ -482,9 +533,10 @@ public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.ListO ordersBuilder_ = null; orders_ = other.orders_; bitField0_ = (bitField0_ & ~0x00000001); - ordersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOrdersFieldBuilder() : null; + ordersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOrdersFieldBuilder() + : null; } else { ordersBuilder_.addAllMessages(other.orders_); } @@ -521,30 +573,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.commerce.consumer.procurement.v1.Order m = - input.readMessage( - com.google.cloud.commerce.consumer.procurement.v1.Order.parser(), - extensionRegistry); - if (ordersBuilder_ == null) { - ensureOrdersIsMutable(); - orders_.add(m); - } else { - ordersBuilder_.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.cloud.commerce.consumer.procurement.v1.Order m = + input.readMessage( + com.google.cloud.commerce.consumer.procurement.v1.Order.parser(), + extensionRegistry); + if (ordersBuilder_ == null) { + ensureOrdersIsMutable(); + orders_.add(m); + } else { + ordersBuilder_.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) { @@ -554,21 +609,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List orders_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureOrdersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - orders_ = new java.util.ArrayList (orders_); + orders_ = + new java.util.ArrayList ( + orders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.Order, com.google.cloud.commerce.consumer.procurement.v1.Order.Builder, com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder> ordersBuilder_; + com.google.cloud.commerce.consumer.procurement.v1.Order, + com.google.cloud.commerce.consumer.procurement.v1.Order.Builder, + com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder> + ordersBuilder_; /** + * + * * * The list of orders in this response. *@@ -583,6 +647,8 @@ public java.util.Listg } } /** + * + * * * The list of orders in this response. *@@ -597,6 +663,8 @@ public int getOrdersCount() { } } /** + * + * ** The list of orders in this response. *@@ -611,6 +679,8 @@ public com.google.cloud.commerce.consumer.procurement.v1.Order getOrders(int ind } } /** + * + * ** The list of orders in this response. *@@ -632,6 +702,8 @@ public Builder setOrders( return this; } /** + * + * ** The list of orders in this response. *@@ -639,7 +711,8 @@ public Builder setOrders( *repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;
*/ public Builder setOrders( - int index, com.google.cloud.commerce.consumer.procurement.v1.Order.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1.Order.Builder builderForValue) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.set(index, builderForValue.build()); @@ -650,6 +723,8 @@ public Builder setOrders( return this; } /** + * + * ** The list of orders in this response. *@@ -670,6 +745,8 @@ public Builder addOrders(com.google.cloud.commerce.consumer.procurement.v1.Order return this; } /** + * + * ** The list of orders in this response. *@@ -691,6 +768,8 @@ public Builder addOrders( return this; } /** + * + * ** The list of orders in this response. *@@ -709,6 +788,8 @@ public Builder addOrders( return this; } /** + * + * ** The list of orders in this response. *@@ -716,7 +797,8 @@ public Builder addOrders( *repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;
*/ public Builder addOrders( - int index, com.google.cloud.commerce.consumer.procurement.v1.Order.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1.Order.Builder builderForValue) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.add(index, builderForValue.build()); @@ -727,6 +809,8 @@ public Builder addOrders( return this; } /** + * + * ** The list of orders in this response. *@@ -734,11 +818,11 @@ public Builder addOrders( *repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;
*/ public Builder addAllOrders( - java.lang.Iterable extends com.google.cloud.commerce.consumer.procurement.v1.Order> values) { + java.lang.Iterable extends com.google.cloud.commerce.consumer.procurement.v1.Order> + values) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, orders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orders_); onChanged(); } else { ordersBuilder_.addAllMessages(values); @@ -746,6 +830,8 @@ public Builder addAllOrders( return this; } /** + * + * ** The list of orders in this response. *@@ -763,6 +849,8 @@ public Builder clearOrders() { return this; } /** + * + * ** The list of orders in this response. *@@ -780,6 +868,8 @@ public Builder removeOrders(int index) { return this; } /** + * + * ** The list of orders in this response. *@@ -791,6 +881,8 @@ public com.google.cloud.commerce.consumer.procurement.v1.Order.Builder getOrders return getOrdersFieldBuilder().getBuilder(index); } /** + * + * ** The list of orders in this response. *@@ -800,19 +892,23 @@ public com.google.cloud.commerce.consumer.procurement.v1.Order.Builder getOrders public com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder getOrdersOrBuilder( int index) { if (ordersBuilder_ == null) { - return orders_.get(index); } else { + return orders_.get(index); + } else { return ordersBuilder_.getMessageOrBuilder(index); } } /** + * + * ** The list of orders in this response. ** *repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;
*/ - public java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder> - getOrdersOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder> + getOrdersOrBuilderList() { if (ordersBuilder_ != null) { return ordersBuilder_.getMessageOrBuilderList(); } else { @@ -820,6 +916,8 @@ public com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder getOrder } } /** + * + * ** The list of orders in this response. *@@ -827,10 +925,12 @@ public com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder getOrder *repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;
*/ public com.google.cloud.commerce.consumer.procurement.v1.Order.Builder addOrdersBuilder() { - return getOrdersFieldBuilder().addBuilder( - com.google.cloud.commerce.consumer.procurement.v1.Order.getDefaultInstance()); + return getOrdersFieldBuilder() + .addBuilder(com.google.cloud.commerce.consumer.procurement.v1.Order.getDefaultInstance()); } /** + * + * ** The list of orders in this response. *@@ -839,30 +939,36 @@ public com.google.cloud.commerce.consumer.procurement.v1.Order.Builder addOrders */ public com.google.cloud.commerce.consumer.procurement.v1.Order.Builder addOrdersBuilder( int index) { - return getOrdersFieldBuilder().addBuilder( - index, com.google.cloud.commerce.consumer.procurement.v1.Order.getDefaultInstance()); + return getOrdersFieldBuilder() + .addBuilder( + index, com.google.cloud.commerce.consumer.procurement.v1.Order.getDefaultInstance()); } /** + * + * ** The list of orders in this response. ** *repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;
*/ - public java.util.List- getOrdersBuilderList() { + public java.util.List + getOrdersBuilderList() { return getOrdersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.Order, com.google.cloud.commerce.consumer.procurement.v1.Order.Builder, com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1.Order, + com.google.cloud.commerce.consumer.procurement.v1.Order.Builder, + com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder> getOrdersFieldBuilder() { if (ordersBuilder_ == null) { - ordersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.Order, com.google.cloud.commerce.consumer.procurement.v1.Order.Builder, com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder>( - orders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + ordersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1.Order, + com.google.cloud.commerce.consumer.procurement.v1.Order.Builder, + com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder>( + orders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); orders_ = null; } return ordersBuilder_; @@ -870,18 +976,20 @@ public com.google.cloud.commerce.consumer.procurement.v1.Order.Builder addOrders private java.lang.Object nextPageToken_ = ""; /** + * + * * * The token for fetching the next page. ** *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; @@ -890,20 +998,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * ** The token for fetching the next page. ** *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 { @@ -911,28 +1020,35 @@ public java.lang.String getNextPageToken() { } } /** + * + * ** The token for fetching the next page. ** *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; } /** + * + * ** The token for fetching the next page. ** *string next_page_token = 2;
+ * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -942,26 +1058,30 @@ public Builder clearNextPageToken() { return this; } /** + * + * ** The token for fetching the next page. ** *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); } @@ -971,41 +1091,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse) - private static final com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse(); } - public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public ListOrdersResponse 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 ListOrdersResponse 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; @@ -1017,9 +1139,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponseOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponseOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponseOrBuilder.java index 3c47b83b4adc..ff349b0cce81 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponseOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/cloud/commerce/consumer/procurement/v1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1; -public interface ListOrdersResponseOrBuilder extends +public interface ListOrdersResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse) com.google.protobuf.MessageOrBuilder { /** + * + * * * The list of orders in this response. ** *repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;
*/ - java.util.List- getOrdersList(); + java.util.List getOrdersList(); /** + * + * * * The list of orders in this response. *@@ -25,6 +44,8 @@ public interface ListOrdersResponseOrBuilder extends */ com.google.cloud.commerce.consumer.procurement.v1.Order getOrders(int index); /** + * + * ** The list of orders in this response. *@@ -33,41 +54,49 @@ public interface ListOrdersResponseOrBuilder extends */ int getOrdersCount(); /** + * + * ** The list of orders in this response. ** *repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;
*/ - java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder> + java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder> getOrdersOrBuilderList(); /** + * + * ** The list of orders in this response. ** *repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1;
*/ - com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder getOrdersOrBuilder( - int index); + com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder getOrdersOrBuilder(int index); /** + * + * ** The token for fetching the next page. ** *string next_page_token = 2;
+ * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * ** The token for fetching the next page. ** *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-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Order.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Order.java similarity index 63% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Order.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Order.java index 63c6d52f1778..8893f894232b 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Order.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Order.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/cloud/commerce/consumer/procurement/v1/order.proto package com.google.cloud.commerce.consumer.procurement.v1; /** + * + * ** Represents a purchase made by a customer on Cloud Marketplace. * Creating an order makes sure that both the Google backend systems @@ -19,15 +36,16 @@ * * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.Order} */ -public final class Order extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Order extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.Order) OrderOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Order.newBuilder() to construct. private Order(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private Order() { name_ = ""; displayName_ = ""; @@ -38,28 +56,32 @@ private Order() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Order(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_Order_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Order_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_Order_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Order_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.Order.class, com.google.cloud.commerce.consumer.procurement.v1.Order.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.Order.class, + com.google.cloud.commerce.consumer.procurement.v1.Order.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * ** - ** Output only. The resource name of the order. * Has the form @@ -67,6 +89,7 @@ protected java.lang.Object newInstance( ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The name. */ @java.lang.Override @@ -75,14 +98,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 resource name of the order. * Has the form @@ -90,16 +114,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,14 +131,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * ** Required. The user-specified name of the order. ** *string display_name = 10 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The displayName. */ @java.lang.Override @@ -124,29 +151,29 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** + * + * ** Required. The user-specified name of the order. ** *string display_name = 10 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -155,59 +182,82 @@ public java.lang.String getDisplayName() { } public static final int LINE_ITEMS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private java.util.ListlineItems_; /** + * + * * * Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override - public java.util.ListgetLineItemsList() { + public java.util.List + getLineItemsList() { return lineItems_; } /** + * + * * * Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override - public java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> getLineItemsOrBuilderList() { return lineItems_; } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override public int getLineItemsCount() { return lineItems_.size(); } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.LineItem getLineItems(int index) { return lineItems_.get(index); } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder getLineItemsOrBuilder( @@ -216,74 +266,103 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder getLi } public static final int CANCELLED_LINE_ITEMS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") - private java.util.ListcancelledLineItems_; + private java.util.List + cancelledLineItems_; /** + * + * * * Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override - public java.util.ListgetCancelledLineItemsList() { + public java.util.List + getCancelledLineItemsList() { return cancelledLineItems_; } /** + * + * * * Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override - public java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> getCancelledLineItemsOrBuilderList() { return cancelledLineItems_; } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override public int getCancelledLineItemsCount() { return cancelledLineItems_.size(); } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.LineItem getCancelledLineItems(int index) { + public com.google.cloud.commerce.consumer.procurement.v1.LineItem getCancelledLineItems( + int index) { return cancelledLineItems_.get(index); } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder getCancelledLineItemsOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder + getCancelledLineItemsOrBuilder(int index) { return cancelledLineItems_.get(index); } public static final int CREATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp createTime_; /** + * + * ** Output only. The creation timestamp. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the createTime field is set. */ @java.lang.Override @@ -291,11 +370,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * ** Output only. The creation timestamp. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The createTime. */ @java.lang.Override @@ -303,11 +386,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * ** Output only. The creation timestamp. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -317,11 +403,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp updateTime_; /** + * + * ** Output only. The last update timestamp. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -329,11 +419,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * ** Output only. The last update timestamp. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The updateTime. */ @java.lang.Override @@ -341,11 +435,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * ** Output only. The last update timestamp. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -353,14 +450,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * ** The weak etag of the order. ** *string etag = 11;
+ * * @return The etag. */ @java.lang.Override @@ -369,29 +470,29 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * ** The weak etag of the order. ** *string etag = 11;
+ * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -400,6 +501,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -411,8 +513,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_); } @@ -447,20 +548,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < lineItems_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, lineItems_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, lineItems_.get(i)); } for (int i = 0; i < cancelledLineItems_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, cancelledLineItems_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, cancelledLineItems_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, displayName_); @@ -476,33 +574,27 @@ 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.cloud.commerce.consumer.procurement.v1.Order)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1.Order other = (com.google.cloud.commerce.consumer.procurement.v1.Order) obj; + com.google.cloud.commerce.consumer.procurement.v1.Order other = + (com.google.cloud.commerce.consumer.procurement.v1.Order) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getLineItemsList() - .equals(other.getLineItemsList())) return false; - if (!getCancelledLineItemsList() - .equals(other.getCancelledLineItemsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getLineItemsList().equals(other.getLineItemsList())) return false; + if (!getCancelledLineItemsList().equals(other.getCancelledLineItemsList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -542,98 +634,104 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1.Order 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.cloud.commerce.consumer.procurement.v1.Order 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.cloud.commerce.consumer.procurement.v1.Order parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.Order 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.cloud.commerce.consumer.procurement.v1.Order parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.Order 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.cloud.commerce.consumer.procurement.v1.Order parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.commerce.consumer.procurement.v1.Order parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.commerce.consumer.procurement.v1.Order 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.cloud.commerce.consumer.procurement.v1.Order parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.commerce.consumer.procurement.v1.Order parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.commerce.consumer.procurement.v1.Order 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.cloud.commerce.consumer.procurement.v1.Order 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.cloud.commerce.consumer.procurement.v1.Order 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.cloud.commerce.consumer.procurement.v1.Order prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1.Order 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; } /** + * + * ** Represents a purchase made by a customer on Cloud Marketplace. * Creating an order makes sure that both the Google backend systems @@ -649,33 +747,32 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.Order} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder* - *implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.commerce.consumer.procurement.v1.Order) com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_Order_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Order_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_Order_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Order_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.Order.class, com.google.cloud.commerce.consumer.procurement.v1.Order.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.Order.class, + com.google.cloud.commerce.consumer.procurement.v1.Order.Builder.class); } // Construct using com.google.cloud.commerce.consumer.procurement.v1.Order.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(); @@ -711,9 +808,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_Order_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Order_descriptor; } @java.lang.Override @@ -732,14 +829,18 @@ public com.google.cloud.commerce.consumer.procurement.v1.Order build() { @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.Order buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1.Order result = new com.google.cloud.commerce.consumer.procurement.v1.Order(this); + com.google.cloud.commerce.consumer.procurement.v1.Order result = + new com.google.cloud.commerce.consumer.procurement.v1.Order(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.commerce.consumer.procurement.v1.Order result) { + private void buildPartialRepeatedFields( + com.google.cloud.commerce.consumer.procurement.v1.Order result) { if (lineItemsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { lineItems_ = java.util.Collections.unmodifiableList(lineItems_); @@ -769,14 +870,10 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Ord result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.etag_ = etag_; @@ -787,38 +884,39 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Ord 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.cloud.commerce.consumer.procurement.v1.Order) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.Order)other); + return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.Order) other); } else { super.mergeFrom(other); return this; @@ -826,7 +924,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.Order other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1.Order.getDefaultInstance()) return this; + if (other == com.google.cloud.commerce.consumer.procurement.v1.Order.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -855,9 +954,10 @@ public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.Order lineItemsBuilder_ = null; lineItems_ = other.lineItems_; bitField0_ = (bitField0_ & ~0x00000004); - lineItemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLineItemsFieldBuilder() : null; + lineItemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLineItemsFieldBuilder() + : null; } else { lineItemsBuilder_.addAllMessages(other.lineItems_); } @@ -881,9 +981,10 @@ public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.Order cancelledLineItemsBuilder_ = null; cancelledLineItems_ = other.cancelledLineItems_; bitField0_ = (bitField0_ & ~0x00000008); - cancelledLineItemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCancelledLineItemsFieldBuilder() : null; + cancelledLineItemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCancelledLineItemsFieldBuilder() + : null; } else { cancelledLineItemsBuilder_.addAllMessages(other.cancelledLineItems_); } @@ -926,67 +1027,71 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 50: { - com.google.cloud.commerce.consumer.procurement.v1.LineItem m = - input.readMessage( - com.google.cloud.commerce.consumer.procurement.v1.LineItem.parser(), - extensionRegistry); - if (lineItemsBuilder_ == null) { - ensureLineItemsIsMutable(); - lineItems_.add(m); - } else { - lineItemsBuilder_.addMessage(m); - } - break; - } // case 50 - case 58: { - com.google.cloud.commerce.consumer.procurement.v1.LineItem m = - input.readMessage( - com.google.cloud.commerce.consumer.procurement.v1.LineItem.parser(), - extensionRegistry); - if (cancelledLineItemsBuilder_ == null) { - ensureCancelledLineItemsIsMutable(); - cancelledLineItems_.add(m); - } else { - cancelledLineItemsBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 74: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 74 - case 82: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 82 - case 90: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 90 - 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 50: + { + com.google.cloud.commerce.consumer.procurement.v1.LineItem m = + input.readMessage( + com.google.cloud.commerce.consumer.procurement.v1.LineItem.parser(), + extensionRegistry); + if (lineItemsBuilder_ == null) { + ensureLineItemsIsMutable(); + lineItems_.add(m); + } else { + lineItemsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + com.google.cloud.commerce.consumer.procurement.v1.LineItem m = + input.readMessage( + com.google.cloud.commerce.consumer.procurement.v1.LineItem.parser(), + extensionRegistry); + if (cancelledLineItemsBuilder_ == null) { + ensureCancelledLineItemsIsMutable(); + cancelledLineItems_.add(m); + } else { + cancelledLineItemsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 74: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 74 + case 82: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 82 + case 90: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 90 + 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) { @@ -996,10 +1101,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * * * Output only. The resource name of the order. * Has the form @@ -1007,13 +1115,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; @@ -1022,6 +1130,8 @@ public java.lang.String getName() { } } /** + * + * ** Output only. The resource name of the order. * Has the form @@ -1029,15 +1139,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 { @@ -1045,6 +1154,8 @@ public java.lang.String getName() { } } /** + * + * ** Output only. The resource name of the order. * Has the form @@ -1052,18 +1163,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 resource name of the order. * Has the form @@ -1071,6 +1186,7 @@ public Builder setName( ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return This builder for chaining. */ public Builder clearName() { @@ -1080,6 +1196,8 @@ public Builder clearName() { return this; } /** + * + * ** Output only. The resource name of the order. * Has the form @@ -1087,12 +1205,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; @@ -1102,18 +1222,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * ** Required. The user-specified name of the order. ** *string display_name = 10 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -1122,20 +1244,21 @@ public java.lang.String getDisplayName() { } } /** + * + * ** Required. The user-specified name of the order. ** *string display_name = 10 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -1143,28 +1266,35 @@ public java.lang.String getDisplayName() { } } /** + * + * ** Required. The user-specified name of the order. ** *string display_name = 10 [(.google.api.field_behavior) = REQUIRED];
+ * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * ** Required. The user-specified name of the order. ** *string display_name = 10 [(.google.api.field_behavior) = REQUIRED];
+ * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1174,17 +1304,21 @@ public Builder clearDisplayName() { return this; } /** + * + * ** Required. The user-specified name of the order. ** *string display_name = 10 [(.google.api.field_behavior) = REQUIRED];
+ * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1193,25 +1327,36 @@ public Builder setDisplayNameBytes( } private java.util.ListlineItems_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLineItemsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - lineItems_ = new java.util.ArrayList (lineItems_); + lineItems_ = + new java.util.ArrayList ( + lineItems_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItem, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> lineItemsBuilder_; + com.google.cloud.commerce.consumer.procurement.v1.LineItem, + com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> + lineItemsBuilder_; /** + * + * * * Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public java.util.ListgetLineItemsList() { + public java.util.List + getLineItemsList() { if (lineItemsBuilder_ == null) { return java.util.Collections.unmodifiableList(lineItems_); } else { @@ -1219,11 +1364,15 @@ public java.util.List * Output only. The items being purchased. * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public int getLineItemsCount() { if (lineItemsBuilder_ == null) { @@ -1233,11 +1382,15 @@ public int getLineItemsCount() { } } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public com.google.cloud.commerce.consumer.procurement.v1.LineItem getLineItems(int index) { if (lineItemsBuilder_ == null) { @@ -1247,11 +1400,15 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItem getLineItems(i } } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder setLineItems( int index, com.google.cloud.commerce.consumer.procurement.v1.LineItem value) { @@ -1268,14 +1425,19 @@ public Builder setLineItems( return this; } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder setLineItems( - int index, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { if (lineItemsBuilder_ == null) { ensureLineItemsIsMutable(); lineItems_.set(index, builderForValue.build()); @@ -1286,11 +1448,15 @@ public Builder setLineItems( return this; } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder addLineItems(com.google.cloud.commerce.consumer.procurement.v1.LineItem value) { if (lineItemsBuilder_ == null) { @@ -1306,11 +1472,15 @@ public Builder addLineItems(com.google.cloud.commerce.consumer.procurement.v1.Li return this; } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder addLineItems( int index, com.google.cloud.commerce.consumer.procurement.v1.LineItem value) { @@ -1327,11 +1497,15 @@ public Builder addLineItems( return this; } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder addLineItems( com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { @@ -1345,14 +1519,19 @@ public Builder addLineItems( return this; } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder addLineItems( - int index, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { if (lineItemsBuilder_ == null) { ensureLineItemsIsMutable(); lineItems_.add(index, builderForValue.build()); @@ -1363,18 +1542,22 @@ public Builder addLineItems( return this; } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder addAllLineItems( - java.lang.Iterable extends com.google.cloud.commerce.consumer.procurement.v1.LineItem> values) { + java.lang.Iterable extends com.google.cloud.commerce.consumer.procurement.v1.LineItem> + values) { if (lineItemsBuilder_ == null) { ensureLineItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, lineItems_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, lineItems_); onChanged(); } else { lineItemsBuilder_.addAllMessages(values); @@ -1382,11 +1565,15 @@ public Builder addAllLineItems( return this; } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder clearLineItems() { if (lineItemsBuilder_ == null) { @@ -1399,11 +1586,15 @@ public Builder clearLineItems() { return this; } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder removeLineItems(int index) { if (lineItemsBuilder_ == null) { @@ -1416,39 +1607,53 @@ public Builder removeLineItems(int index) { return this; } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder getLineItemsBuilder( int index) { return getLineItemsFieldBuilder().getBuilder(index); } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder getLineItemsOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder + getLineItemsOrBuilder(int index) { if (lineItemsBuilder_ == null) { - return lineItems_.get(index); } else { + return lineItems_.get(index); + } else { return lineItemsBuilder_.getMessageOrBuilder(index); } } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> - getLineItemsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> + getLineItemsOrBuilderList() { if (lineItemsBuilder_ != null) { return lineItemsBuilder_.getMessageOrBuilderList(); } else { @@ -1456,74 +1661,104 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder getLi } } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder addLineItemsBuilder() { - return getLineItemsFieldBuilder().addBuilder( - com.google.cloud.commerce.consumer.procurement.v1.LineItem.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder + addLineItemsBuilder() { + return getLineItemsFieldBuilder() + .addBuilder( + com.google.cloud.commerce.consumer.procurement.v1.LineItem.getDefaultInstance()); } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder addLineItemsBuilder( int index) { - return getLineItemsFieldBuilder().addBuilder( - index, com.google.cloud.commerce.consumer.procurement.v1.LineItem.getDefaultInstance()); + return getLineItemsFieldBuilder() + .addBuilder( + index, + com.google.cloud.commerce.consumer.procurement.v1.LineItem.getDefaultInstance()); } /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public java.util.List- getLineItemsBuilderList() { + public java.util.List + getLineItemsBuilderList() { return getLineItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItem, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1.LineItem, + com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> getLineItemsFieldBuilder() { if (lineItemsBuilder_ == null) { - lineItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItem, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder>( - lineItems_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + lineItemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1.LineItem, + com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder>( + lineItems_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); lineItems_ = null; } return lineItemsBuilder_; } - private java.util.List cancelledLineItems_ = - java.util.Collections.emptyList(); + private java.util.List + cancelledLineItems_ = java.util.Collections.emptyList(); + private void ensureCancelledLineItemsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - cancelledLineItems_ = new java.util.ArrayList (cancelledLineItems_); + cancelledLineItems_ = + new java.util.ArrayList ( + cancelledLineItems_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItem, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> cancelledLineItemsBuilder_; + com.google.cloud.commerce.consumer.procurement.v1.LineItem, + com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> + cancelledLineItemsBuilder_; /** + * + * * * Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public java.util.ListgetCancelledLineItemsList() { + public java.util.List + getCancelledLineItemsList() { if (cancelledLineItemsBuilder_ == null) { return java.util.Collections.unmodifiableList(cancelledLineItems_); } else { @@ -1531,11 +1766,15 @@ public java.util.List * Output only. Line items that were cancelled. * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public int getCancelledLineItemsCount() { if (cancelledLineItemsBuilder_ == null) { @@ -1545,13 +1784,18 @@ public int getCancelledLineItemsCount() { } } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItem getCancelledLineItems(int index) { + public com.google.cloud.commerce.consumer.procurement.v1.LineItem getCancelledLineItems( + int index) { if (cancelledLineItemsBuilder_ == null) { return cancelledLineItems_.get(index); } else { @@ -1559,11 +1803,15 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItem getCancelledLi } } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder setCancelledLineItems( int index, com.google.cloud.commerce.consumer.procurement.v1.LineItem value) { @@ -1580,14 +1828,19 @@ public Builder setCancelledLineItems( return this; } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder setCancelledLineItems( - int index, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { if (cancelledLineItemsBuilder_ == null) { ensureCancelledLineItemsIsMutable(); cancelledLineItems_.set(index, builderForValue.build()); @@ -1598,13 +1851,18 @@ public Builder setCancelledLineItems( return this; } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public Builder addCancelledLineItems(com.google.cloud.commerce.consumer.procurement.v1.LineItem value) { + public Builder addCancelledLineItems( + com.google.cloud.commerce.consumer.procurement.v1.LineItem value) { if (cancelledLineItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1618,11 +1876,15 @@ public Builder addCancelledLineItems(com.google.cloud.commerce.consumer.procurem return this; } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder addCancelledLineItems( int index, com.google.cloud.commerce.consumer.procurement.v1.LineItem value) { @@ -1639,11 +1901,15 @@ public Builder addCancelledLineItems( return this; } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder addCancelledLineItems( com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { @@ -1657,14 +1923,19 @@ public Builder addCancelledLineItems( return this; } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder addCancelledLineItems( - int index, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { if (cancelledLineItemsBuilder_ == null) { ensureCancelledLineItemsIsMutable(); cancelledLineItems_.add(index, builderForValue.build()); @@ -1675,18 +1946,22 @@ public Builder addCancelledLineItems( return this; } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder addAllCancelledLineItems( - java.lang.Iterable extends com.google.cloud.commerce.consumer.procurement.v1.LineItem> values) { + java.lang.Iterable extends com.google.cloud.commerce.consumer.procurement.v1.LineItem> + values) { if (cancelledLineItemsBuilder_ == null) { ensureCancelledLineItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cancelledLineItems_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cancelledLineItems_); onChanged(); } else { cancelledLineItemsBuilder_.addAllMessages(values); @@ -1694,11 +1969,15 @@ public Builder addAllCancelledLineItems( return this; } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder clearCancelledLineItems() { if (cancelledLineItemsBuilder_ == null) { @@ -1711,11 +1990,15 @@ public Builder clearCancelledLineItems() { return this; } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder removeCancelledLineItems(int index) { if (cancelledLineItemsBuilder_ == null) { @@ -1728,39 +2011,53 @@ public Builder removeCancelledLineItems(int index) { return this; } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder getCancelledLineItemsBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder + getCancelledLineItemsBuilder(int index) { return getCancelledLineItemsFieldBuilder().getBuilder(index); } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder getCancelledLineItemsOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder + getCancelledLineItemsOrBuilder(int index) { if (cancelledLineItemsBuilder_ == null) { - return cancelledLineItems_.get(index); } else { + return cancelledLineItems_.get(index); + } else { return cancelledLineItemsBuilder_.getMessageOrBuilder(index); } } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> - getCancelledLineItemsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> + getCancelledLineItemsOrBuilderList() { if (cancelledLineItemsBuilder_ != null) { return cancelledLineItemsBuilder_.getMessageOrBuilderList(); } else { @@ -1768,45 +2065,67 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder getCa } } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder addCancelledLineItemsBuilder() { - return getCancelledLineItemsFieldBuilder().addBuilder( - com.google.cloud.commerce.consumer.procurement.v1.LineItem.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder + addCancelledLineItemsBuilder() { + return getCancelledLineItemsFieldBuilder() + .addBuilder( + com.google.cloud.commerce.consumer.procurement.v1.LineItem.getDefaultInstance()); } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder addCancelledLineItemsBuilder( - int index) { - return getCancelledLineItemsFieldBuilder().addBuilder( - index, com.google.cloud.commerce.consumer.procurement.v1.LineItem.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder + addCancelledLineItemsBuilder(int index) { + return getCancelledLineItemsFieldBuilder() + .addBuilder( + index, + com.google.cloud.commerce.consumer.procurement.v1.LineItem.getDefaultInstance()); } /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public java.util.List- getCancelledLineItemsBuilderList() { + public java.util.List + getCancelledLineItemsBuilderList() { return getCancelledLineItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItem, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1.LineItem, + com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> getCancelledLineItemsFieldBuilder() { if (cancelledLineItemsBuilder_ == null) { - cancelledLineItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.LineItem, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder, com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder>( + cancelledLineItemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1.LineItem, + com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder, + com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder>( cancelledLineItems_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -1818,39 +2137,58 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder addCan private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * * * Output only. The creation timestamp. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * ** Output only. The creation timestamp. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * ** Output only. The creation timestamp. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1866,14 +2204,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * ** Output only. The creation timestamp. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1884,17 +2225,21 @@ public Builder setCreateTime( return this; } /** + * + * ** Output only. The creation timestamp. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1907,11 +2252,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * ** Output only. The creation timestamp. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1924,11 +2273,15 @@ public Builder clearCreateTime() { return this; } /** + * + * ** Output only. The creation timestamp. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000010; @@ -1936,36 +2289,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * ** Output only. The creation timestamp. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * ** Output only. The creation timestamp. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1973,39 +2338,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * ** Output only. The last update timestamp. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * ** Output only. The last update timestamp. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * ** Output only. The last update timestamp. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2021,14 +2405,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * ** Output only. The last update timestamp. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2039,17 +2426,21 @@ public Builder setUpdateTime( return this; } /** + * + * ** Output only. The last update timestamp. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2062,11 +2453,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * ** Output only. The last update timestamp. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2079,11 +2474,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * ** Output only. The last update timestamp. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000020; @@ -2091,36 +2490,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * ** Output only. The last update timestamp. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * ** Output only. The last update timestamp. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2128,18 +2539,20 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * ** The weak etag of the order. ** *string etag = 11;
+ * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -2148,20 +2561,21 @@ public java.lang.String getEtag() { } } /** + * + * ** The weak etag of the order. ** *string etag = 11;
+ * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -2169,28 +2583,35 @@ public java.lang.String getEtag() { } } /** + * + * ** The weak etag of the order. ** *string etag = 11;
+ * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * ** The weak etag of the order. ** *string etag = 11;
+ * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2200,26 +2621,30 @@ public Builder clearEtag() { return this; } /** + * + * ** The weak etag of the order. ** *string etag = 11;
+ * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000040; 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); } @@ -2229,12 +2654,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1.Order) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1.Order) private static final com.google.cloud.commerce.consumer.procurement.v1.Order DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.Order(); } @@ -2243,27 +2668,27 @@ public static com.google.cloud.commerce.consumer.procurement.v1.Order getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public Order 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 Order 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; @@ -2278,6 +2703,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.commerce.consumer.procurement.v1.Order getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/OrderOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/OrderOrBuilder.java similarity index 59% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/OrderOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/OrderOrBuilder.java index e6d01e457598..7de3567053dc 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/OrderOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/OrderOrBuilder.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/cloud/commerce/consumer/procurement/v1/order.proto package com.google.cloud.commerce.consumer.procurement.v1; -public interface OrderOrBuilder extends +public interface OrderOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1.Order) com.google.protobuf.MessageOrBuilder { /** + * + * * * Output only. The resource name of the order. * Has the form @@ -15,10 +33,13 @@ public interface OrderOrBuilder extends ** *string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The name. */ java.lang.String getName(); /** + * + * ** Output only. The resource name of the order. * Has the form @@ -26,190 +47,261 @@ public interface OrderOrBuilder 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(); /** + * + * ** Required. The user-specified name of the order. ** *string display_name = 10 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * ** Required. The user-specified name of the order. ** *string display_name = 10 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - java.util.List- getLineItemsList(); + java.util.List getLineItemsList(); /** + * + * * * Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ com.google.cloud.commerce.consumer.procurement.v1.LineItem getLineItems(int index); /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ int getLineItemsCount(); /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> + java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> getLineItemsOrBuilderList(); /** + * + * ** Output only. The items being purchased. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder getLineItemsOrBuilder( int index); /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - java.util.List+ java.util.List getCancelledLineItemsList(); /** + * + * * * Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ com.google.cloud.commerce.consumer.procurement.v1.LineItem getCancelledLineItems(int index); /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ int getCancelledLineItemsCount(); /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> + java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder> getCancelledLineItemsOrBuilderList(); /** + * + * ** Output only. Line items that were cancelled. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ - com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder getCancelledLineItemsOrBuilder( - int index); + com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder + getCancelledLineItemsOrBuilder(int index); /** + * + * ** Output only. The creation timestamp. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * ** Output only. The creation timestamp. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * ** Output only. The creation timestamp. ** - *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * ** Output only. The last update timestamp. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * ** Output only. The last update timestamp. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * ** Output only. The last update timestamp. ** - *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * ** The weak etag of the order. ** *string etag = 11;
+ * * @return The etag. */ java.lang.String getEtag(); /** + * + * ** The weak etag of the order. ** *string etag = 11;
+ * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/OrderOuterClass.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/OrderOuterClass.java new file mode 100644 index 000000000000..43734f9b7405 --- /dev/null +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/OrderOuterClass.java @@ -0,0 +1,251 @@ +/* + * 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/cloud/commerce/consumer/procurement/v1/order.proto + +package com.google.cloud.commerce.consumer.procurement.v1; + +public final class OrderOuterClass { + private OrderOuterClass() {} + + 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_cloud_commerce_consumer_procurement_v1_Order_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1_Order_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1_LineItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1_LineItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemChange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemChange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_Value_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_Value_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1_Subscription_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1_Subscription_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/commerce/consumer/procure" + + "ment/v1/order.proto\022-google.cloud.commer" + + "ce.consumer.procurement.v1\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032\037google/protobuf/timestamp.proto\"" + + "\321\003\n\005Order\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\032\n\014display" + + "_name\030\n \001(\tB\004\342A\001\002\022Q\n\nline_items\030\006 \003(\01327." + + "google.cloud.commerce.consumer.procureme" + + "nt.v1.LineItemB\004\342A\001\003\022[\n\024cancelled_line_i" + + "tems\030\007 \003(\01327.google.cloud.commerce.consu" + + "mer.procurement.v1.LineItemB\004\342A\001\003\0225\n\013cre" + + "ate_time\030\010 \001(\0132\032.google.protobuf.Timesta" + + "mpB\004\342A\001\003\0225\n\013update_time\030\t \001(\0132\032.google.p" + + "rotobuf.TimestampB\004\342A\001\003\022\014\n\004etag\030\013 \001(\t:l\352" + + "Ai\n5cloudcommerceconsumerprocurement.goo" + + "gleapis.com/Order\0220billingAccounts/{bill" + + "ing_account}/orders/{order}\"\273\002\n\010LineItem" + + "\022\032\n\014line_item_id\030\001 \001(\tB\004\342A\001\003\022Y\n\016line_ite" + + "m_info\030\002 \001(\0132;.google.cloud.commerce.con" + + "sumer.procurement.v1.LineItemInfoB\004\342A\001\003\022" + + "[\n\016pending_change\030\003 \001(\0132=.google.cloud.c" + + "ommerce.consumer.procurement.v1.LineItem" + + "ChangeB\004\342A\001\003\022[\n\016change_history\030\004 \003(\0132=.g" + + "oogle.cloud.commerce.consumer.procuremen" + + "t.v1.LineItemChangeB\004\342A\001\003\"\340\005\n\016LineItemCh" + + "ange\022\027\n\tchange_id\030\001 \001(\tB\004\342A\001\003\022\\\n\013change_" + + "type\030\002 \001(\0162A.google.cloud.commerce.consu" + + "mer.procurement.v1.LineItemChangeTypeB\004\342" + + "A\001\002\022]\n\022old_line_item_info\030\003 \001(\0132;.google" + + ".cloud.commerce.consumer.procurement.v1." + + "LineItemInfoB\004\342A\001\003\022W\n\022new_line_item_info" + + "\030\004 \001(\0132;.google.cloud.commerce.consumer." + + "procurement.v1.LineItemInfo\022^\n\014change_st" + + "ate\030\005 \001(\0162B.google.cloud.commerce.consum" + + "er.procurement.v1.LineItemChangeStateB\004\342" + + "A\001\003\022\032\n\014state_reason\030\006 \001(\tB\004\342A\001\003\022t\n\030chang" + + "e_state_reason_type\030\n \001(\0162L.google.cloud" + + ".commerce.consumer.procurement.v1.LineIt" + + "emChangeStateReasonTypeB\004\342A\001\003\022?\n\025change_" + + "effective_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestampB\004\342A\001\003\0225\n\013create_time\030\010 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\004\342A\001\003\0225\n\013update_" + + "time\030\t \001(\0132\032.google.protobuf.TimestampB\004" + + "\342A\001\003\"\376\001\n\014LineItemInfo\022A\n\005offer\030\r \001(\tB2\342A" + + "\001\001\372A+\n)commerceoffercatalog.googleapis.c" + + "om/Offer\022R\n\nparameters\030\t \003(\01328.google.cl" + + "oud.commerce.consumer.procurement.v1.Par" + + "ameterB\004\342A\001\001\022W\n\014subscription\030\n \001(\0132;.goo" + + "gle.cloud.commerce.consumer.procurement." + + "v1.SubscriptionB\004\342A\001\003\"\300\001\n\tParameter\022\014\n\004n" + + "ame\030\001 \001(\t\022M\n\005value\030\002 \001(\0132>.google.cloud." + + "commerce.consumer.procurement.v1.Paramet" + + "er.Value\032V\n\005Value\022\025\n\013int64_value\030\003 \001(\003H\000" + + "\022\026\n\014string_value\030\004 \001(\tH\000\022\026\n\014double_value" + + "\030\005 \001(\001H\000B\006\n\004kind\"\212\001\n\014Subscription\022.\n\nsta" + + "rt_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "p\022,\n\010end_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\034\n\024auto_renewal_enabled\030\002 \001(\010*\320\001" + + "\n\022LineItemChangeType\022%\n!LINE_ITEM_CHANGE" + + "_TYPE_UNSPECIFIED\020\000\022 \n\034LINE_ITEM_CHANGE_" + + "TYPE_CREATE\020\001\022 \n\034LINE_ITEM_CHANGE_TYPE_U" + + "PDATE\020\002\022 \n\034LINE_ITEM_CHANGE_TYPE_CANCEL\020" + + "\003\022-\n)LINE_ITEM_CHANGE_TYPE_REVERT_CANCEL" + + "LATION\020\004*\247\002\n\023LineItemChangeState\022&\n\"LINE" + + "_ITEM_CHANGE_STATE_UNSPECIFIED\020\000\022+\n\'LINE" + + "_ITEM_CHANGE_STATE_PENDING_APPROVAL\020\001\022#\n" + + "\037LINE_ITEM_CHANGE_STATE_APPROVED\020\002\022$\n LI" + + "NE_ITEM_CHANGE_STATE_COMPLETED\020\003\022#\n\037LINE" + + "_ITEM_CHANGE_STATE_REJECTED\020\004\022$\n LINE_IT" + + "EM_CHANGE_STATE_ABANDONED\020\005\022%\n!LINE_ITEM" + + "_CHANGE_STATE_ACTIVATING\020\006*\363\001\n\035LineItemC" + + "hangeStateReasonType\0222\n.LINE_ITEM_CHANGE" + + "_STATE_REASON_TYPE_UNSPECIFIED\020\000\022.\n*LINE" + + "_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED\020\001" + + "\0225\n1LINE_ITEM_CHANGE_STATE_REASON_TYPE_U" + + "SER_CANCELLED\020\002\0227\n3LINE_ITEM_CHANGE_STAT" + + "E_REASON_TYPE_SYSTEM_CANCELLED\020\003B\264\003\n1com" + + ".google.cloud.commerce.consumer.procurem" + + "ent.v1P\001ZScloud.google.com/go/commerce/c" + + "onsumer/procurement/apiv1/procurementpb;" + + "procurementpb\252\002-Google.Cloud.Commerce.Co" + + "nsumer.Procurement.V1\312\002-Google\\Cloud\\Com" + + "merce\\Consumer\\Procurement\\V1\352\0022Google::" + + "Cloud::Commerce::Consumer::Procurement::" + + "V1\352A\221\001\n)commerceoffercatalog.googleapis." + + "com/Offer\022)services/{service}/standardOf" + + "fers/{offer}\0229billingAccounts/{consumer_" + + "billing_account}/offers/{offer}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_commerce_consumer_procurement_v1_Order_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_commerce_consumer_procurement_v1_Order_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1_Order_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "LineItems", + "CancelledLineItems", + "CreateTime", + "UpdateTime", + "Etag", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1_LineItem_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_commerce_consumer_procurement_v1_LineItem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1_LineItem_descriptor, + new java.lang.String[] { + "LineItemId", "LineItemInfo", "PendingChange", "ChangeHistory", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemChange_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemChange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemChange_descriptor, + new java.lang.String[] { + "ChangeId", + "ChangeType", + "OldLineItemInfo", + "NewLineItemInfo", + "ChangeState", + "StateReason", + "ChangeStateReasonType", + "ChangeEffectiveTime", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemInfo_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1_LineItemInfo_descriptor, + new java.lang.String[] { + "Offer", "Parameters", "Subscription", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_descriptor, + new java.lang.String[] { + "Name", "Value", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_Value_descriptor = + internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_Value_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_Value_descriptor, + new java.lang.String[] { + "Int64Value", "StringValue", "DoubleValue", "Kind", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1_Subscription_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_commerce_consumer_procurement_v1_Subscription_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1_Subscription_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", "AutoRenewalEnabled", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Parameter.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Parameter.java similarity index 67% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Parameter.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Parameter.java index 349a7fbb55c2..0b851f3973f0 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Parameter.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Parameter.java @@ -1,167 +1,210 @@ +/* + * 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/cloud/commerce/consumer/procurement/v1/order.proto package com.google.cloud.commerce.consumer.procurement.v1; /** + * + * ** User-provided Parameters. ** * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.Parameter} */ -public final class Parameter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Parameter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.Parameter) ParameterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Parameter.newBuilder() to construct. private Parameter(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private Parameter() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Parameter(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.Parameter.class, com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.Parameter.class, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder.class); } - public interface ValueOrBuilder extends + public interface ValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1.Parameter.Value) com.google.protobuf.MessageOrBuilder { /** + * + * ** Represents an int64 value. ** *int64 int64_value = 3;
+ * * @return Whether the int64Value field is set. */ boolean hasInt64Value(); /** + * + * ** Represents an int64 value. ** *int64 int64_value = 3;
+ * * @return The int64Value. */ long getInt64Value(); /** + * + * ** Represents a string value. ** *string string_value = 4;
+ * * @return Whether the stringValue field is set. */ boolean hasStringValue(); /** + * + * ** Represents a string value. ** *string string_value = 4;
+ * * @return The stringValue. */ java.lang.String getStringValue(); /** + * + * ** Represents a string value. ** *string string_value = 4;
+ * * @return The bytes for stringValue. */ - com.google.protobuf.ByteString - getStringValueBytes(); + com.google.protobuf.ByteString getStringValueBytes(); /** + * + * ** Represents a double value. ** *double double_value = 5;
+ * * @return Whether the doubleValue field is set. */ boolean hasDoubleValue(); /** + * + * ** Represents a double value. ** *double double_value = 5;
+ * * @return The doubleValue. */ double getDoubleValue(); com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.KindCase getKindCase(); } - /** - * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.Parameter.Value} - */ - public static final class Value extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.Parameter.Value} */ + public static final class Value extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.Parameter.Value) ValueOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Value.newBuilder() to construct. private Value(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } - private Value() { - } + + private Value() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Value(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_Value_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_Value_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_Value_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.class, com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.class, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.Builder.class); } private int kindCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object kind_; + public enum KindCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INT64_VALUE(3), STRING_VALUE(4), DOUBLE_VALUE(5), KIND_NOT_SET(0); private final int value; + private KindCase(int value) { this.value = value; } @@ -177,31 +220,38 @@ public static KindCase valueOf(int value) { public static KindCase forNumber(int value) { switch (value) { - case 3: return INT64_VALUE; - case 4: return STRING_VALUE; - case 5: return DOUBLE_VALUE; - case 0: return KIND_NOT_SET; - default: return null; + case 3: + return INT64_VALUE; + case 4: + return STRING_VALUE; + case 5: + return DOUBLE_VALUE; + case 0: + return KIND_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); + public KindCase getKindCase() { + return KindCase.forNumber(kindCase_); } public static final int INT64_VALUE_FIELD_NUMBER = 3; /** + * + * ** Represents an int64 value. ** *int64 int64_value = 3;
+ * * @return Whether the int64Value field is set. */ @java.lang.Override @@ -209,11 +259,14 @@ public boolean hasInt64Value() { return kindCase_ == 3; } /** + * + * ** Represents an int64 value. ** *int64 int64_value = 3;
+ * * @return The int64Value. */ @java.lang.Override @@ -226,22 +279,28 @@ public long getInt64Value() { public static final int STRING_VALUE_FIELD_NUMBER = 4; /** + * + * ** Represents a string value. ** *string string_value = 4;
+ * * @return Whether the stringValue field is set. */ public boolean hasStringValue() { return kindCase_ == 4; } /** + * + * ** Represents a string value. ** *string string_value = 4;
+ * * @return The stringValue. */ public java.lang.String getStringValue() { @@ -252,8 +311,7 @@ public java.lang.String getStringValue() { 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(); if (kindCase_ == 4) { kind_ = s; @@ -262,23 +320,24 @@ public java.lang.String getStringValue() { } } /** + * + * ** Represents a string value. ** *string string_value = 4;
+ * * @return The bytes for stringValue. */ - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (kindCase_ == 4) { ref = kind_; } 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); if (kindCase_ == 4) { kind_ = b; } @@ -290,11 +349,14 @@ public java.lang.String getStringValue() { public static final int DOUBLE_VALUE_FIELD_NUMBER = 5; /** + * + * ** Represents a double value. ** *double double_value = 5;
+ * * @return Whether the doubleValue field is set. */ @java.lang.Override @@ -302,11 +364,14 @@ public boolean hasDoubleValue() { return kindCase_ == 5; } /** + * + * ** Represents a double value. ** *double double_value = 5;
+ * * @return The doubleValue. */ @java.lang.Override @@ -318,6 +383,7 @@ public double getDoubleValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -329,18 +395,15 @@ 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 (kindCase_ == 3) { - output.writeInt64( - 3, (long)((java.lang.Long) kind_)); + output.writeInt64(3, (long) ((java.lang.Long) kind_)); } if (kindCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kind_); } if (kindCase_ == 5) { - output.writeDouble( - 5, (double)((java.lang.Double) kind_)); + output.writeDouble(5, (double) ((java.lang.Double) kind_)); } getUnknownFields().writeTo(output); } @@ -352,17 +415,17 @@ public int getSerializedSize() { size = 0; if (kindCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 3, (long)((java.lang.Long) kind_)); + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 3, (long) ((java.lang.Long) kind_)); } if (kindCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, kind_); } if (kindCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 5, (double)((java.lang.Double) kind_)); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 5, (double) ((java.lang.Double) kind_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -372,27 +435,25 @@ 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.cloud.commerce.consumer.procurement.v1.Parameter.Value)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value other = (com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value) obj; + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value other = + (com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value) obj; if (!getKindCase().equals(other.getKindCase())) return false; switch (kindCase_) { case 3: - if (getInt64Value() - != other.getInt64Value()) return false; + if (getInt64Value() != other.getInt64Value()) return false; break; case 4: - if (!getStringValue() - .equals(other.getStringValue())) return false; + if (!getStringValue().equals(other.getStringValue())) return false; break; case 5: if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits( - other.getDoubleValue())) return false; + != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; break; case 0: default: @@ -411,8 +472,7 @@ public int hashCode() { switch (kindCase_) { case 3: hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInt64Value()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value()); break; case 4: hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; @@ -420,8 +480,10 @@ public int hashCode() { break; case 5: hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); break; case 0: default: @@ -432,89 +494,95 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value 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.cloud.commerce.consumer.procurement.v1.Parameter.Value 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.cloud.commerce.consumer.procurement.v1.Parameter.Value parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value 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.cloud.commerce.consumer.procurement.v1.Parameter.Value parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value 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.cloud.commerce.consumer.procurement.v1.Parameter.Value parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value 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.cloud.commerce.consumer.procurement.v1.Parameter.Value parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value 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.cloud.commerce.consumer.procurement.v1.Parameter.Value + 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.cloud.commerce.consumer.procurement.v1.Parameter.Value 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.cloud.commerce.consumer.procurement.v1.Parameter.Value 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.cloud.commerce.consumer.procurement.v1.Parameter.Value prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value 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 @@ -523,36 +591,35 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.Parameter.Value} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + /** Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.Parameter.Value} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.commerce.consumer.procurement.v1.Parameter.Value) com.google.cloud.commerce.consumer.procurement.v1.Parameter.ValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_Value_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_Value_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_Value_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.class, com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.class, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.Builder.class); } - // Construct using com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.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(); @@ -563,14 +630,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_Value_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_Value_descriptor; } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value getDefaultInstanceForType() { - return com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.getDefaultInstance(); + public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value + getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value + .getDefaultInstance(); } @java.lang.Override @@ -584,18 +653,23 @@ public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value build() @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value result = new com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value result = + new com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value result) { + private void buildPartial0( + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value result) { + private void buildPartialOneofs( + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value result) { result.kindCase_ = kindCase_; result.kind_ = this.kind_; } @@ -604,64 +678,75 @@ private void buildPartialOneofs(com.google.cloud.commerce.consumer.procurement.v 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) { + 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.cloud.commerce.consumer.procurement.v1.Parameter.Value) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value)other); + return mergeFrom( + (com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value other) { + if (other + == com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value + .getDefaultInstance()) return this; switch (other.getKindCase()) { - case INT64_VALUE: { - setInt64Value(other.getInt64Value()); - break; - } - case STRING_VALUE: { - kindCase_ = 4; - kind_ = other.kind_; - onChanged(); - break; - } - case DOUBLE_VALUE: { - setDoubleValue(other.getDoubleValue()); - break; - } - case KIND_NOT_SET: { - break; - } + case INT64_VALUE: + { + setInt64Value(other.getInt64Value()); + break; + } + case STRING_VALUE: + { + kindCase_ = 4; + kind_ = other.kind_; + onChanged(); + break; + } + case DOUBLE_VALUE: + { + setDoubleValue(other.getDoubleValue()); + break; + } + case KIND_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -689,28 +774,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: { - kind_ = input.readInt64(); - kindCase_ = 3; - break; - } // case 24 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - kindCase_ = 4; - kind_ = s; - break; - } // case 34 - case 41: { - kind_ = input.readDouble(); - kindCase_ = 5; - break; - } // case 41 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: + { + kind_ = input.readInt64(); + kindCase_ = 3; + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + kindCase_ = 4; + kind_ = s; + break; + } // case 34 + case 41: + { + kind_ = input.readDouble(); + kindCase_ = 5; + break; + } // case 41 + 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) { @@ -720,12 +809,12 @@ public Builder mergeFrom( } // finally return this; } + private int kindCase_ = 0; private java.lang.Object kind_; - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); + + public KindCase getKindCase() { + return KindCase.forNumber(kindCase_); } public Builder clearKind() { @@ -738,22 +827,28 @@ public Builder clearKind() { private int bitField0_; /** + * + * * * Represents an int64 value. ** *int64 int64_value = 3;
+ * * @return Whether the int64Value field is set. */ public boolean hasInt64Value() { return kindCase_ == 3; } /** + * + * ** Represents an int64 value. ** *int64 int64_value = 3;
+ * * @return The int64Value. */ public long getInt64Value() { @@ -763,11 +858,14 @@ public long getInt64Value() { return 0L; } /** + * + * ** Represents an int64 value. ** *int64 int64_value = 3;
+ * * @param value The int64Value to set. * @return This builder for chaining. */ @@ -779,11 +877,14 @@ public Builder setInt64Value(long value) { return this; } /** + * + * ** Represents an int64 value. ** *int64 int64_value = 3;
+ * * @return This builder for chaining. */ public Builder clearInt64Value() { @@ -796,11 +897,14 @@ public Builder clearInt64Value() { } /** + * + * ** Represents a string value. ** *string string_value = 4;
+ * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -808,11 +912,14 @@ public boolean hasStringValue() { return kindCase_ == 4; } /** + * + * ** Represents a string value. ** *string string_value = 4;
+ * * @return The stringValue. */ @java.lang.Override @@ -822,8 +929,7 @@ public java.lang.String getStringValue() { ref = kind_; } 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(); if (kindCase_ == 4) { kind_ = s; @@ -834,24 +940,25 @@ public java.lang.String getStringValue() { } } /** + * + * ** Represents a string value. ** *string string_value = 4;
+ * * @return The bytes for stringValue. */ @java.lang.Override - public com.google.protobuf.ByteString - getStringValueBytes() { + public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = ""; if (kindCase_ == 4) { ref = kind_; } 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); if (kindCase_ == 4) { kind_ = b; } @@ -861,28 +968,35 @@ public java.lang.String getStringValue() { } } /** + * + * ** Represents a string value. ** *string string_value = 4;
+ * * @param value The stringValue to set. * @return This builder for chaining. */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kindCase_ = 4; kind_ = value; onChanged(); return this; } /** + * + * ** Represents a string value. ** *string string_value = 4;
+ * * @return This builder for chaining. */ public Builder clearStringValue() { @@ -894,17 +1008,21 @@ public Builder clearStringValue() { return this; } /** + * + * ** Represents a string value. ** *string string_value = 4;
+ * * @param value The bytes for stringValue to set. * @return This builder for chaining. */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kindCase_ = 4; kind_ = value; @@ -913,22 +1031,28 @@ public Builder setStringValueBytes( } /** + * + * ** Represents a double value. ** *double double_value = 5;
+ * * @return Whether the doubleValue field is set. */ public boolean hasDoubleValue() { return kindCase_ == 5; } /** + * + * ** Represents a double value. ** *double double_value = 5;
+ * * @return The doubleValue. */ public double getDoubleValue() { @@ -938,11 +1062,14 @@ public double getDoubleValue() { return 0D; } /** + * + * ** Represents a double value. ** *double double_value = 5;
+ * * @param value The doubleValue to set. * @return This builder for chaining. */ @@ -954,11 +1081,14 @@ public Builder setDoubleValue(double value) { return this; } /** + * + * ** Represents a double value. ** *double double_value = 5;
+ * * @return This builder for chaining. */ public Builder clearDoubleValue() { @@ -969,6 +1099,7 @@ public Builder clearDoubleValue() { } return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -981,41 +1112,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1.Parameter.Value) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1.Parameter.Value) - private static final com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value(); } - public static com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public Value 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 Value 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; @@ -1027,21 +1161,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * * * Name of the parameter. ** *string name = 1;
+ * * @return The name. */ @java.lang.Override @@ -1050,29 +1188,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; } } /** + * + * ** Name of the parameter. ** *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 { @@ -1083,11 +1221,14 @@ public java.lang.String getName() { public static final int VALUE_FIELD_NUMBER = 2; private com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value_; /** + * + * ** Value of parameter. ** *.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2;
+ * * @return Whether the value field is set. */ @java.lang.Override @@ -1095,18 +1236,25 @@ public boolean hasValue() { return value_ != null; } /** + * + * ** Value of parameter. ** *.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2;
+ * * @return The value. */ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value getValue() { - return value_ == null ? com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.getDefaultInstance() : value_; + return value_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.getDefaultInstance() + : value_; } /** + * + * ** Value of parameter. *@@ -1114,11 +1262,15 @@ public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value getValu *.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2;
*/ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.Parameter.ValueOrBuilder getValueOrBuilder() { - return value_ == null ? com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.getDefaultInstance() : value_; + public com.google.cloud.commerce.consumer.procurement.v1.Parameter.ValueOrBuilder + getValueOrBuilder() { + return value_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.getDefaultInstance() + : value_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1130,8 +1282,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_); } @@ -1151,8 +1302,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValue()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1162,19 +1312,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.cloud.commerce.consumer.procurement.v1.Parameter)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1.Parameter other = (com.google.cloud.commerce.consumer.procurement.v1.Parameter) obj; + com.google.cloud.commerce.consumer.procurement.v1.Parameter other = + (com.google.cloud.commerce.consumer.procurement.v1.Parameter) obj; - 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1199,131 +1348,136 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1.Parameter 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.cloud.commerce.consumer.procurement.v1.Parameter 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.cloud.commerce.consumer.procurement.v1.Parameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.Parameter 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.cloud.commerce.consumer.procurement.v1.Parameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.Parameter 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.cloud.commerce.consumer.procurement.v1.Parameter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.commerce.consumer.procurement.v1.Parameter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.commerce.consumer.procurement.v1.Parameter 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.cloud.commerce.consumer.procurement.v1.Parameter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.commerce.consumer.procurement.v1.Parameter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.commerce.consumer.procurement.v1.Parameter 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.cloud.commerce.consumer.procurement.v1.Parameter 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.cloud.commerce.consumer.procurement.v1.Parameter 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.cloud.commerce.consumer.procurement.v1.Parameter prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1.Parameter 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; } /** + * + * ** User-provided Parameters. ** * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.Parameter} */ - 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.cloud.commerce.consumer.procurement.v1.Parameter) com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.Parameter.class, com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.Parameter.class, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder.class); } // Construct using com.google.cloud.commerce.consumer.procurement.v1.Parameter.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(); @@ -1338,9 +1492,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Parameter_descriptor; } @java.lang.Override @@ -1359,8 +1513,11 @@ public com.google.cloud.commerce.consumer.procurement.v1.Parameter build() { @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.Parameter buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1.Parameter result = new com.google.cloud.commerce.consumer.procurement.v1.Parameter(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.commerce.consumer.procurement.v1.Parameter result = + new com.google.cloud.commerce.consumer.procurement.v1.Parameter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1371,9 +1528,7 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Par result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = valueBuilder_ == null - ? value_ - : valueBuilder_.build(); + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); } } @@ -1381,38 +1536,39 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Par 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.cloud.commerce.consumer.procurement.v1.Parameter) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.Parameter)other); + return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.Parameter) other); } else { super.mergeFrom(other); return this; @@ -1420,7 +1576,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.Parameter other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1.Parameter.getDefaultInstance()) return this; + if (other == com.google.cloud.commerce.consumer.procurement.v1.Parameter.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1455,24 +1612,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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: + { + input.readMessage(getValueFieldBuilder().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) { @@ -1482,22 +1640,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * * * Name of the parameter. ** *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; @@ -1506,20 +1667,21 @@ public java.lang.String getName() { } } /** + * + * ** Name of the parameter. ** *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 { @@ -1527,28 +1689,35 @@ public java.lang.String getName() { } } /** + * + * ** Name of the parameter. ** *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; } /** + * + * ** Name of the parameter. ** *string name = 1;
+ * * @return This builder for chaining. */ public Builder clearName() { @@ -1558,17 +1727,21 @@ public Builder clearName() { return this; } /** + * + * ** Name of the parameter. ** *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; @@ -1578,41 +1751,55 @@ public Builder setNameBytes( private com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value, com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.Builder, com.google.cloud.commerce.consumer.procurement.v1.Parameter.ValueOrBuilder> valueBuilder_; + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.Builder, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.ValueOrBuilder> + valueBuilder_; /** + * + * ** Value of parameter. ** *.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2;
+ * * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * ** Value of parameter. ** *.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2;
+ * * @return The value. */ public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value getValue() { if (valueBuilder_ == null) { - return value_ == null ? com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.getDefaultInstance() : value_; + return value_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.getDefaultInstance() + : value_; } else { return valueBuilder_.getMessage(); } } /** + * + * ** Value of parameter. ** *.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2;
*/ - public Builder setValue(com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value) { + public Builder setValue( + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1626,6 +1813,8 @@ public Builder setValue(com.google.cloud.commerce.consumer.procurement.v1.Parame return this; } /** + * + * ** Value of parameter. *@@ -1644,17 +1833,22 @@ public Builder setValue( return this; } /** + * + * ** Value of parameter. ** *.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2;
*/ - public Builder mergeValue(com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value) { + public Builder mergeValue( + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value) { if (valueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - value_ != null && - value_ != com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ + != com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value + .getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; @@ -1667,6 +1861,8 @@ public Builder mergeValue(com.google.cloud.commerce.consumer.procurement.v1.Para return this; } /** + * + * ** Value of parameter. *@@ -1684,33 +1880,42 @@ public Builder clearValue() { return this; } /** + * + * ** Value of parameter. ** *.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2;
*/ - public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.Builder getValueBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.Builder + getValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } /** + * + * ** Value of parameter. ** *.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2;
*/ - public com.google.cloud.commerce.consumer.procurement.v1.Parameter.ValueOrBuilder getValueOrBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1.Parameter.ValueOrBuilder + getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { - return value_ == null ? - com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.getDefaultInstance() : value_; + return value_ == null + ? com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.getDefaultInstance() + : value_; } } /** + * + * ** Value of parameter. *@@ -1718,21 +1923,24 @@ public com.google.cloud.commerce.consumer.procurement.v1.Parameter.ValueOrBuilde *.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2;
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value, com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.Builder, com.google.cloud.commerce.consumer.procurement.v1.Parameter.ValueOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.Builder, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value, com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.Builder, com.google.cloud.commerce.consumer.procurement.v1.Parameter.ValueOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.Builder, + com.google.cloud.commerce.consumer.procurement.v1.Parameter.ValueOrBuilder>( + getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } + @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); } @@ -1742,12 +1950,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1.Parameter) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1.Parameter) private static final com.google.cloud.commerce.consumer.procurement.v1.Parameter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.Parameter(); } @@ -1756,27 +1964,27 @@ public static com.google.cloud.commerce.consumer.procurement.v1.Parameter getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public Parameter 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 Parameter 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; @@ -1791,6 +1999,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.commerce.consumer.procurement.v1.Parameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ParameterOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ParameterOrBuilder.java similarity index 64% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ParameterOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ParameterOrBuilder.java index 7c87ef04a8a0..4d10b6c1f6ce 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ParameterOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ParameterOrBuilder.java @@ -1,51 +1,80 @@ +/* + * 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/cloud/commerce/consumer/procurement/v1/order.proto package com.google.cloud.commerce.consumer.procurement.v1; -public interface ParameterOrBuilder extends +public interface ParameterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1.Parameter) com.google.protobuf.MessageOrBuilder { /** + * + * * * Name of the parameter. ** *string name = 1;
+ * * @return The name. */ java.lang.String getName(); /** + * + * ** Name of the parameter. ** *string name = 1;
+ * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * ** Value of parameter. ** *.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2;
+ * * @return Whether the value field is set. */ boolean hasValue(); /** + * + * ** Value of parameter. ** *.google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2;
+ * * @return The value. */ com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value getValue(); /** + * + * ** Value of parameter. *diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderMetadata.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderMetadata.java similarity index 59% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderMetadata.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderMetadata.java index 55cf6bbadfb6..363bf4f6f514 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderMetadata.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderMetadata.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/cloud/commerce/consumer/procurement/v1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1; /** + * + * ** Message stored in the metadata field of the Operation returned by * [ConsumerProcurementService.PlaceOrder][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.PlaceOrder]. @@ -11,39 +28,41 @@ * * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata} */ -public final class PlaceOrderMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PlaceOrderMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata) PlaceOrderMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PlaceOrderMetadata.newBuilder() to construct. private PlaceOrderMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } - private PlaceOrderMetadata() { - } + + private PlaceOrderMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PlaceOrderMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata.class, com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata.class, + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -55,8 +74,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); } @@ -74,12 +92,13 @@ 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.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata other = (com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata) obj; + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata other = + (com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -98,98 +117,105 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata 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.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata 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.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata 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.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata 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.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata 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.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata 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.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata + 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.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata 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.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata 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.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata 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; } /** + * + * ** Message stored in the metadata field of the Operation returned by * [ConsumerProcurementService.PlaceOrder][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.PlaceOrder]. @@ -197,33 +223,33 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata} */ - 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.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata) com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata.class, com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata.class, + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata.Builder.class); } - // Construct using com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata.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(); @@ -231,14 +257,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_descriptor; } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata getDefaultInstanceForType() { - return com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata.getDefaultInstance(); + public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata + getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata + .getDefaultInstance(); } @java.lang.Override @@ -252,7 +280,8 @@ public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata buil @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata result = new com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata(this); + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata result = + new com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata(this); onBuilt(); return result; } @@ -261,46 +290,51 @@ public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata buil 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.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata)other); + return mergeFrom( + (com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata other) { + if (other + == com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata + .getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -327,12 +361,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) { @@ -342,9 +377,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); } @@ -354,41 +389,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata) - private static final com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata(); } - public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public PlaceOrderMetadata 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 PlaceOrderMetadata 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; @@ -400,9 +437,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderMetadataOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderMetadataOrBuilder.java new file mode 100644 index 000000000000..6eccedab3e1c --- /dev/null +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderMetadataOrBuilder.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/cloud/commerce/consumer/procurement/v1/procurement_service.proto + +package com.google.cloud.commerce.consumer.procurement.v1; + +public interface PlaceOrderMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderRequest.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderRequest.java similarity index 64% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderRequest.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderRequest.java index cb4684163bae..0431ad990860 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderRequest.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderRequest.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/cloud/commerce/consumer/procurement/v1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1; /** + * + * * * Request message for * [ConsumerProcurementService.PlaceOrder][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.PlaceOrder]. @@ -11,15 +28,16 @@ * * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest} */ -public final class PlaceOrderRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PlaceOrderRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest) PlaceOrderRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PlaceOrderRequest.newBuilder() to construct. private PlaceOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private PlaceOrderRequest() { parent_ = ""; displayName_ = ""; @@ -29,34 +47,41 @@ private PlaceOrderRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PlaceOrderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderRequest_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.ProcurementService + .internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest.class, com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest.class, + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * ** Required. The resource name of the parent resource. * This field has the form `billingAccounts/{billing-account-id}`. ** - *string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * * @return The parent. */ @java.lang.Override @@ -65,30 +90,32 @@ 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 resource name of the parent resource. * This field has the form `billingAccounts/{billing-account-id}`. ** - *string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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 { @@ -97,14 +124,18 @@ public java.lang.String getParent() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * ** Required. The user-specified name of the order being placed. ** *string display_name = 6 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The displayName. */ @java.lang.Override @@ -113,29 +144,29 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** + * + * ** Required. The user-specified name of the order being placed. ** *string display_name = 6 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -144,75 +175,102 @@ public java.lang.String getDisplayName() { } public static final int LINE_ITEM_INFO_FIELD_NUMBER = 10; + @SuppressWarnings("serial") - private java.util.ListlineItemInfo_; + private java.util.List + lineItemInfo_; /** + * + * * * Optional. Places order for offer. Required when an offer-based order is * being placed. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ @java.lang.Override - public java.util.ListgetLineItemInfoList() { + public java.util.List + getLineItemInfoList() { return lineItemInfo_; } /** + * + * * * Optional. Places order for offer. Required when an offer-based order is * being placed. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ @java.lang.Override - public java.util.List extends com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder> + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder> getLineItemInfoOrBuilderList() { return lineItemInfo_; } /** + * + * ** Optional. Places order for offer. Required when an offer-based order is * being placed. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ @java.lang.Override public int getLineItemInfoCount() { return lineItemInfo_.size(); } /** + * + * ** Optional. Places order for offer. Required when an offer-based order is * being placed. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getLineItemInfo(int index) { return lineItemInfo_.get(index); } /** + * + * ** Optional. Places order for offer. Required when an offer-based order is * being placed. ** - *repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *+ * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + *
*/ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder getLineItemInfoOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder + getLineItemInfoOrBuilder(int index) { return lineItemInfo_.get(index); } public static final int REQUEST_ID_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * ** Optional. A unique identifier for this request. * The server will ignore subsequent requests that provide a duplicate request @@ -223,6 +281,7 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder g ** *string request_id = 7 [(.google.api.field_behavior) = OPTIONAL];
+ * * @return The requestId. */ @java.lang.Override @@ -231,14 +290,15 @@ public java.lang.String getRequestId() { 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(); requestId_ = s; return s; } } /** + * + * ** Optional. A unique identifier for this request. * The server will ignore subsequent requests that provide a duplicate request @@ -249,16 +309,15 @@ public java.lang.String getRequestId() { ** *string request_id = 7 [(.google.api.field_behavior) = OPTIONAL];
+ * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -267,6 +326,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +338,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_); } @@ -311,8 +370,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, requestId_); } for (int i = 0; i < lineItemInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, lineItemInfo_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, lineItemInfo_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -322,21 +380,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.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest other = (com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest) obj; + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest other = + (com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getLineItemInfoList() - .equals(other.getLineItemInfoList())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getLineItemInfoList().equals(other.getLineItemInfoList())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -364,98 +419,105 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest 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.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest 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.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest 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.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest 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.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest 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.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest 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.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest + 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.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest 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.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest 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.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest 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 * [ConsumerProcurementService.PlaceOrder][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.PlaceOrder]. @@ -463,33 +525,33 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder