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.MethodDescriptor getPlaceOrderMethod;
+  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.StreamObserver responseObserver) { 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.StreamObserver responseObserver) { + 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.StreamObserver responseObserver) { + 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.StreamObserver responseObserver) { 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.StreamObserver responseObserver) { + 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.StreamObserver responseObserver) { + 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.ListenableFuture placeOrder( - 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.ListenableFuture getOrder( - 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.ListenableFuture listOrders( - 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.MethodDescriptor getPlaceOrderMethod;
+  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.StreamObserver responseObserver) { 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.StreamObserver responseObserver) { + 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.StreamObserver responseObserver) { + 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.StreamObserver responseObserver) { 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.StreamObserver responseObserver) { + 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.StreamObserver responseObserver) { + 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.ListenableFuture placeOrder( - 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.ListenableFuture getOrder( - 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.ListenableFuture listOrders( - 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.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.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.List changeHistory_; + 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.List getChangeHistoryList() { + 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 
+  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.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.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.List changeHistory_ = - 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.List getChangeHistoryList() { + 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 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 - 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.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.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.List 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 getParametersList() { + 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 + 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.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.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.List parameters_ = - 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.List getParametersList() { + 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 values) { + java.lang.Iterable + 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 - 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.List getParametersList(); + /** + * + * + *
+   * 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 + 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 + 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.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.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.List orders_;
   /**
+   *
+   *
    * 
    * The list of orders in this response.
    * 
@@ -60,6 +82,8 @@ public java.util.List g return orders_; } /** + * + * *
    * The list of orders in this response.
    * 
@@ -67,11 +91,13 @@ public java.util.List g * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; */ @java.lang.Override - public java.util.List + public java.util.List 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.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.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.List g } } /** + * + * *
      * 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 values) { + java.lang.Iterable + 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 - 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 + java.util.List 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.List 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 getLineItemsList() { + 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 + 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.List cancelledLineItems_; + 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.List getCancelledLineItemsList() { + 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 + 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.List lineItems_ = - 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.List getLineItemsList() { + 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 values) { + java.lang.Iterable + 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 - 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.List getCancelledLineItemsList() { + 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 values) { + java.lang.Iterable + 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 - 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 + java.util.List 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 + java.util.List 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.Builder implements + /** 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.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.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.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.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.List lineItemInfo_; + 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.List getLineItemInfoList() { + 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 + 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.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.PlaceOrderRequest)
       com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequestOrBuilder {
-    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);
     }
 
-    // Construct using com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest.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();
@@ -508,14 +570,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_PlaceOrderRequest_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_PlaceOrderRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest getDefaultInstanceForType() {
-      return com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest.getDefaultInstance();
+    public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -529,14 +593,18 @@ public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest build
 
     @java.lang.Override
     public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest buildPartial() {
-      com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest result = new com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest(this);
+      com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest result =
+          new com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest(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.PlaceOrderRequest result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest result) {
       if (lineItemInfoBuilder_ == null) {
         if (((bitField0_ & 0x00000004) != 0)) {
           lineItemInfo_ = java.util.Collections.unmodifiableList(lineItemInfo_);
@@ -548,7 +616,8 @@ private void buildPartialRepeatedFields(com.google.cloud.commerce.consumer.procu
       }
     }
 
-    private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest result) {
+    private void buildPartial0(
+        com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
@@ -565,46 +634,51 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Pla
     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.PlaceOrderRequest) {
-        return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest)other);
+        return mergeFrom(
+            (com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest other) {
-      if (other == com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest other) {
+      if (other
+          == com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -633,9 +707,10 @@ public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.Place
             lineItemInfoBuilder_ = null;
             lineItemInfo_ = other.lineItemInfo_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            lineItemInfoBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLineItemInfoFieldBuilder() : null;
+            lineItemInfoBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLineItemInfoFieldBuilder()
+                    : null;
           } else {
             lineItemInfoBuilder_.addAllMessages(other.lineItemInfo_);
           }
@@ -672,40 +747,45 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 50: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 50
-            case 58: {
-              requestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 58
-            case 82: {
-              com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo m =
-                  input.readMessage(
-                      com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.parser(),
-                      extensionRegistry);
-              if (lineItemInfoBuilder_ == null) {
-                ensureLineItemInfoIsMutable();
-                lineItemInfo_.add(m);
-              } else {
-                lineItemInfoBuilder_.addMessage(m);
-              }
-              break;
-            } // case 82
-            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 50:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 50
+            case 58:
+              {
+                requestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 58
+            case 82:
+              {
+                com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo m =
+                    input.readMessage(
+                        com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.parser(),
+                        extensionRegistry);
+                if (lineItemInfoBuilder_ == null) {
+                  ensureLineItemInfoIsMutable();
+                  lineItemInfo_.add(m);
+                } else {
+                  lineItemInfoBuilder_.addMessage(m);
+                }
+                break;
+              } // case 82
+            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) {
@@ -715,23 +795,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private 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. */ 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; @@ -740,21 +825,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * 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. */ - 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 { @@ -762,30 +850,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * 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) = { ... } + * + * * @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 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 This builder for chaining. */ public Builder clearParent() { @@ -795,18 +894,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * 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) = { ... } + * + * * @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; @@ -816,18 +921,20 @@ public Builder setParentBytes( private 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. */ 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; @@ -836,20 +943,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The user-specified name of the order being placed.
      * 
* * string display_name = 6 [(.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 { @@ -857,28 +965,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The user-specified name of the order being placed.
      * 
* * string display_name = 6 [(.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 being placed.
      * 
* * string display_name = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -888,17 +1003,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Required. The user-specified name of the order being placed.
      * 
* * string display_name = 6 [(.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; @@ -906,27 +1025,38 @@ public Builder setDisplayNameBytes( return this; } - private java.util.List lineItemInfo_ = - java.util.Collections.emptyList(); + private java.util.List + lineItemInfo_ = java.util.Collections.emptyList(); + private void ensureLineItemInfoIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - lineItemInfo_ = new java.util.ArrayList(lineItemInfo_); + lineItemInfo_ = + new java.util.ArrayList( + lineItemInfo_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - 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_; /** + * + * *
      * 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]; + * */ - public java.util.List getLineItemInfoList() { + public java.util.List + getLineItemInfoList() { if (lineItemInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(lineItemInfo_); } else { @@ -934,12 +1064,16 @@ public java.util.List * 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]; + * */ public int getLineItemInfoCount() { if (lineItemInfoBuilder_ == null) { @@ -949,14 +1083,19 @@ public int getLineItemInfoCount() { } } /** + * + * *
      * 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]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getLineItemInfo(int index) { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getLineItemInfo( + int index) { if (lineItemInfoBuilder_ == null) { return lineItemInfo_.get(index); } else { @@ -964,12 +1103,16 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getLineIte } } /** + * + * *
      * 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]; + * */ public Builder setLineItemInfo( int index, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { @@ -986,15 +1129,20 @@ public Builder setLineItemInfo( return this; } /** + * + * *
      * 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]; + * */ public Builder setLineItemInfo( - int index, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder builderForValue) { if (lineItemInfoBuilder_ == null) { ensureLineItemInfoIsMutable(); lineItemInfo_.set(index, builderForValue.build()); @@ -1005,14 +1153,19 @@ public Builder setLineItemInfo( return this; } /** + * + * *
      * 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]; + * */ - public Builder addLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { + public Builder addLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { if (lineItemInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1026,12 +1179,16 @@ public Builder addLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1 return this; } /** + * + * *
      * 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]; + * */ public Builder addLineItemInfo( int index, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { @@ -1048,12 +1205,16 @@ public Builder addLineItemInfo( return this; } /** + * + * *
      * 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]; + * */ public Builder addLineItemInfo( com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder builderForValue) { @@ -1067,15 +1228,20 @@ public Builder addLineItemInfo( return this; } /** + * + * *
      * 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]; + * */ public Builder addLineItemInfo( - int index, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder builderForValue) { if (lineItemInfoBuilder_ == null) { ensureLineItemInfoIsMutable(); lineItemInfo_.add(index, builderForValue.build()); @@ -1086,19 +1252,23 @@ public Builder addLineItemInfo( return this; } /** + * + * *
      * 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]; + * */ public Builder addAllLineItemInfo( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (lineItemInfoBuilder_ == null) { ensureLineItemInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, lineItemInfo_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, lineItemInfo_); onChanged(); } else { lineItemInfoBuilder_.addAllMessages(values); @@ -1106,12 +1276,16 @@ public Builder addAllLineItemInfo( return this; } /** + * + * *
      * 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]; + * */ public Builder clearLineItemInfo() { if (lineItemInfoBuilder_ == null) { @@ -1124,12 +1298,16 @@ public Builder clearLineItemInfo() { return this; } /** + * + * *
      * 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]; + * */ public Builder removeLineItemInfo(int index) { if (lineItemInfoBuilder_ == null) { @@ -1142,42 +1320,56 @@ public Builder removeLineItemInfo(int index) { return this; } /** + * + * *
      * 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]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder getLineItemInfoBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder + getLineItemInfoBuilder(int index) { return getLineItemInfoFieldBuilder().getBuilder(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]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder getLineItemInfoOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder + getLineItemInfoOrBuilder(int index) { if (lineItemInfoBuilder_ == null) { - return lineItemInfo_.get(index); } else { + return lineItemInfo_.get(index); + } else { return lineItemInfoBuilder_.getMessageOrBuilder(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]; + * */ - public java.util.List - getLineItemInfoOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder> + getLineItemInfoOrBuilderList() { if (lineItemInfoBuilder_ != null) { return lineItemInfoBuilder_.getMessageOrBuilderList(); } else { @@ -1185,52 +1377,71 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder g } } /** + * + * *
      * 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]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder addLineItemInfoBuilder() { - return getLineItemInfoFieldBuilder().addBuilder( - com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder + addLineItemInfoBuilder() { + return getLineItemInfoFieldBuilder() + .addBuilder( + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance()); } /** + * + * *
      * 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]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder addLineItemInfoBuilder( - int index) { - return getLineItemInfoFieldBuilder().addBuilder( - index, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder + addLineItemInfoBuilder(int index) { + return getLineItemInfoFieldBuilder() + .addBuilder( + index, + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance()); } /** + * + * *
      * 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]; + * */ - public java.util.List - getLineItemInfoBuilderList() { + public java.util.List + getLineItemInfoBuilderList() { return getLineItemInfoFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - 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.RepeatedFieldBuilderV3< - 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>( - lineItemInfo_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + lineItemInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + 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>( + lineItemInfo_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); lineItemInfo_ = null; } return lineItemInfoBuilder_; @@ -1238,6 +1449,8 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder ad private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique identifier for this request.
      * The server will ignore subsequent requests that provide a duplicate request
@@ -1248,13 +1461,13 @@ public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder ad
      * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -1263,6 +1476,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique identifier for this request.
      * The server will ignore subsequent requests that provide a duplicate request
@@ -1273,15 +1488,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -1289,6 +1503,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique identifier for this request.
      * The server will ignore subsequent requests that provide a duplicate request
@@ -1299,18 +1515,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A unique identifier for this request.
      * The server will ignore subsequent requests that provide a duplicate request
@@ -1321,6 +1541,7 @@ public Builder setRequestId(
      * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1330,6 +1551,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique identifier for this request.
      * The server will ignore subsequent requests that provide a duplicate request
@@ -1340,21 +1563,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = 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); } @@ -1364,41 +1589,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest) - private static final com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest(); } - public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PlaceOrderRequest 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 PlaceOrderRequest 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; @@ -1410,9 +1637,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest + 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/PlaceOrderRequestOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderRequestOrBuilder.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/PlaceOrderRequestOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderRequestOrBuilder.java index d960ad12a20e..c299044d6480 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderRequestOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderRequestOrBuilder.java @@ -1,104 +1,156 @@ +/* + * 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 PlaceOrderRequestOrBuilder extends +public interface PlaceOrderRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * 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.String getParent(); /** + * + * *
    * 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. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The user-specified name of the order being placed.
    * 
* * string display_name = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. The user-specified name of the order being placed.
    * 
* * string display_name = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * 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.util.List + java.util.List getLineItemInfoList(); /** + * + * *
    * 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]; + * */ com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getLineItemInfo(int 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]; + * */ int getLineItemInfoCount(); /** + * + * *
    * 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.util.List + java.util.List getLineItemInfoOrBuilderList(); /** + * + * *
    * 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]; + * */ com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder getLineItemInfoOrBuilder( int index); /** + * + * *
    * Optional. A unique identifier for this request.
    * The server will ignore subsequent requests that provide a duplicate request
@@ -109,10 +161,13 @@ com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder getLineI
    * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique identifier for this request.
    * The server will ignore subsequent requests that provide a duplicate request
@@ -123,8 +178,8 @@ com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder getLineI
    * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ProcurementService.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ProcurementService.java new file mode 100644 index 000000000000..ed43b4f0ade2 --- /dev/null +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ProcurementService.java @@ -0,0 +1,176 @@ +/* + * 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 final class ProcurementService { + private ProcurementService() {} + + 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_PlaceOrderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nGgoogle/cloud/commerce/consumer/procure" + + "ment/v1/procurement_service.proto\022-googl" + + "e.cloud.commerce.consumer.procurement.v1" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\0329goo" + + "gle/cloud/commerce/consumer/procurement/" + + "v1/order.proto\032#google/longrunning/opera" + + "tions.proto\"\351\001\n\021PlaceOrderRequest\022C\n\006par" + + "ent\030\001 \001(\tB3\342A\001\002\372A,\n*cloudbilling.googlea" + + "pis.com/BillingAccount\022\032\n\014display_name\030\006" + + " \001(\tB\004\342A\001\002\022Y\n\016line_item_info\030\n \003(\0132;.goo" + + "gle.cloud.commerce.consumer.procurement." + + "v1.LineItemInfoB\004\342A\001\001\022\030\n\nrequest_id\030\007 \001(" + + "\tB\004\342A\001\001\"\024\n\022PlaceOrderMetadata\"%\n\017GetOrde" + + "rRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"`\n\021ListOrde" + + "rsRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_" + + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter" + + "\030\004 \001(\t\"s\n\022ListOrdersResponse\022D\n\006orders\030\001" + + " \003(\01324.google.cloud.commerce.consumer.pr" + + "ocurement.v1.Order\022\027\n\017next_page_token\030\002 " + + "\001(\t2\314\005\n\032ConsumerProcurementService\022\303\001\n\nP" + + "laceOrder\022@.google.cloud.commerce.consum" + + "er.procurement.v1.PlaceOrderRequest\032\035.go" + + "ogle.longrunning.Operation\"T\312A\033\n\005Order\022\022" + + "PlaceOrderMetadata\202\323\344\223\0020\"+/v1/{parent=bi" + + "llingAccounts/*}/orders:place:\001*\022\266\001\n\010Get" + + "Order\022>.google.cloud.commerce.consumer.p" + + "rocurement.v1.GetOrderRequest\0324.google.c" + + "loud.commerce.consumer.procurement.v1.Or" + + "der\"4\332A\004name\202\323\344\223\002\'\022%/v1/{name=billingAcc" + + "ounts/*/orders/*}\022\311\001\n\nListOrders\022@.googl" + + "e.cloud.commerce.consumer.procurement.v1" + + ".ListOrdersRequest\032A.google.cloud.commer" + + "ce.consumer.procurement.v1.ListOrdersRes" + + "ponse\"6\332A\006parent\202\323\344\223\002\'\022%/v1/{parent=bill" + + "ingAccounts/*}/orders\032c\312A/cloudcommercec" + + "onsumerprocurement.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\237\002\n1com.google.cloud.commerce.consume" + + "r.procurement.v1P\001ZScloud.google.com/go/" + + "commerce/consumer/procurement/apiv1/proc" + + "urementpb;procurementpb\252\002-Google.Cloud.C" + + "ommerce.Consumer.Procurement.V1\312\002-Google" + + "\\Cloud\\Commerce\\Consumer\\Procurement\\V1\352" + + "\0022Google::Cloud::Commerce::Consumer::Pro" + + "curement::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderRequest_descriptor, + new java.lang.String[] { + "Parent", "DisplayName", "LineItemInfo", "RequestId", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_descriptor, + new java.lang.String[] { + "Orders", "NextPageToken", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.getDescriptor(); + com.google.longrunning.OperationsProto.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/Subscription.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Subscription.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/Subscription.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Subscription.java index 144fb718126b..e42b8953c60b 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Subscription.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Subscription.java @@ -1,55 +1,76 @@ +/* + * 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; /** + * + * *
  * Subscription information.
  * 
* * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.Subscription} */ -public final class Subscription extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Subscription extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.Subscription) SubscriptionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Subscription.newBuilder() to construct. private Subscription(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Subscription() { - } + + private Subscription() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Subscription(); } - 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_Subscription_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_Subscription_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_Subscription_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.Subscription.class, com.google.cloud.commerce.consumer.procurement.v1.Subscription.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.Subscription.class, + com.google.cloud.commerce.consumer.procurement.v1.Subscription.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * The timestamp when the subscription begins, if applicable.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -57,11 +78,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * The timestamp when the subscription begins, if applicable.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ @java.lang.Override @@ -69,6 +93,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The timestamp when the subscription begins, if applicable.
    * 
@@ -83,11 +109,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The timestamp when the subscription ends, if applicable.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -95,11 +124,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The timestamp when the subscription ends, if applicable.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return The endTime. */ @java.lang.Override @@ -107,6 +139,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The timestamp when the subscription ends, if applicable.
    * 
@@ -121,6 +155,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int AUTO_RENEWAL_ENABLED_FIELD_NUMBER = 2; private boolean autoRenewalEnabled_ = false; /** + * + * *
    * Whether auto renewal is enabled by user choice on current subscription.
    * This field indicates order/subscription status after pending plan change is
@@ -128,6 +164,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * bool auto_renewal_enabled = 2; + * * @return The autoRenewalEnabled. */ @java.lang.Override @@ -136,6 +173,7 @@ public boolean getAutoRenewalEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +185,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 (endTime_ != null) { output.writeMessage(1, getEndTime()); } @@ -168,16 +205,13 @@ public int getSerializedSize() { size = 0; if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEndTime()); } if (autoRenewalEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, autoRenewalEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, autoRenewalEnabled_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -187,25 +221,23 @@ 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.Subscription)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1.Subscription other = (com.google.cloud.commerce.consumer.procurement.v1.Subscription) obj; + com.google.cloud.commerce.consumer.procurement.v1.Subscription other = + (com.google.cloud.commerce.consumer.procurement.v1.Subscription) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } - if (getAutoRenewalEnabled() - != other.getAutoRenewalEnabled()) return false; + if (getAutoRenewalEnabled() != other.getAutoRenewalEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -226,139 +258,143 @@ public int hashCode() { hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + AUTO_RENEWAL_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAutoRenewalEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoRenewalEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.commerce.consumer.procurement.v1.Subscription 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.Subscription 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.Subscription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.Subscription 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.Subscription parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1.Subscription parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1.Subscription 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.Subscription 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.Subscription 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.Subscription 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.Subscription 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.Subscription 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.Subscription 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.Subscription 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.Subscription 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.Subscription prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1.Subscription 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; } /** + * + * *
    * Subscription information.
    * 
* * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.Subscription} */ - 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.Subscription) com.google.cloud.commerce.consumer.procurement.v1.SubscriptionOrBuilder { - 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_Subscription_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_Subscription_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_Subscription_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1.Subscription.class, com.google.cloud.commerce.consumer.procurement.v1.Subscription.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1.Subscription.class, + com.google.cloud.commerce.consumer.procurement.v1.Subscription.Builder.class); } // Construct using com.google.cloud.commerce.consumer.procurement.v1.Subscription.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -378,13 +414,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_Subscription_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_Subscription_descriptor; } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.Subscription getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1.Subscription + getDefaultInstanceForType() { return com.google.cloud.commerce.consumer.procurement.v1.Subscription.getDefaultInstance(); } @@ -399,23 +436,23 @@ public com.google.cloud.commerce.consumer.procurement.v1.Subscription build() { @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1.Subscription buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1.Subscription result = new com.google.cloud.commerce.consumer.procurement.v1.Subscription(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.commerce.consumer.procurement.v1.Subscription result = + new com.google.cloud.commerce.consumer.procurement.v1.Subscription(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Subscription result) { + private void buildPartial0( + com.google.cloud.commerce.consumer.procurement.v1.Subscription result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.autoRenewalEnabled_ = autoRenewalEnabled_; @@ -426,38 +463,39 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Sub 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.Subscription) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.Subscription)other); + return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1.Subscription) other); } else { super.mergeFrom(other); return this; @@ -465,7 +503,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1.Subscription other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1.Subscription.getDefaultInstance()) return this; + if (other + == com.google.cloud.commerce.consumer.procurement.v1.Subscription.getDefaultInstance()) + return this; if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } @@ -501,31 +541,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 16: { - autoRenewalEnabled_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 26: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 16: + { + autoRenewalEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -535,28 +575,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -567,6 +617,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -587,14 +639,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
* * .google.protobuf.Timestamp start_time = 3; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -605,6 +658,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -613,9 +668,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -628,6 +683,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -645,6 +702,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -657,6 +716,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -667,11 +728,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -679,14 +741,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 3; */ 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> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -694,24 +759,33 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -722,6 +796,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -742,14 +818,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
* * .google.protobuf.Timestamp end_time = 1; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -760,6 +837,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -768,9 +847,9 @@ public Builder setEndTime( */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -783,6 +862,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -800,6 +881,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -812,6 +895,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -822,11 +907,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -834,21 +920,26 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 1; */ 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> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; } - private boolean autoRenewalEnabled_ ; + private boolean autoRenewalEnabled_; /** + * + * *
      * Whether auto renewal is enabled by user choice on current subscription.
      * This field indicates order/subscription status after pending plan change is
@@ -856,6 +947,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * 
* * bool auto_renewal_enabled = 2; + * * @return The autoRenewalEnabled. */ @java.lang.Override @@ -863,6 +955,8 @@ public boolean getAutoRenewalEnabled() { return autoRenewalEnabled_; } /** + * + * *
      * Whether auto renewal is enabled by user choice on current subscription.
      * This field indicates order/subscription status after pending plan change is
@@ -870,6 +964,7 @@ public boolean getAutoRenewalEnabled() {
      * 
* * bool auto_renewal_enabled = 2; + * * @param value The autoRenewalEnabled to set. * @return This builder for chaining. */ @@ -881,6 +976,8 @@ public Builder setAutoRenewalEnabled(boolean value) { return this; } /** + * + * *
      * Whether auto renewal is enabled by user choice on current subscription.
      * This field indicates order/subscription status after pending plan change is
@@ -888,6 +985,7 @@ public Builder setAutoRenewalEnabled(boolean value) {
      * 
* * bool auto_renewal_enabled = 2; + * * @return This builder for chaining. */ public Builder clearAutoRenewalEnabled() { @@ -896,9 +994,9 @@ public Builder clearAutoRenewalEnabled() { 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); } @@ -908,41 +1006,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1.Subscription) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1.Subscription) - private static final com.google.cloud.commerce.consumer.procurement.v1.Subscription DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1.Subscription + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.Subscription(); } - public static com.google.cloud.commerce.consumer.procurement.v1.Subscription getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1.Subscription + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Subscription 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 Subscription 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; @@ -954,9 +1054,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1.Subscription getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1.Subscription + 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/SubscriptionOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/SubscriptionOrBuilder.java similarity index 73% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/SubscriptionOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/SubscriptionOrBuilder.java index 714efee40edc..57c7ee1f948d 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/SubscriptionOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/SubscriptionOrBuilder.java @@ -1,31 +1,55 @@ +/* + * 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 SubscriptionOrBuilder extends +public interface SubscriptionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1.Subscription) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The timestamp when the subscription begins, if applicable.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * The timestamp when the subscription begins, if applicable.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * The timestamp when the subscription begins, if applicable.
    * 
@@ -35,24 +59,32 @@ public interface SubscriptionOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * The timestamp when the subscription ends, if applicable.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The timestamp when the subscription ends, if applicable.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The timestamp when the subscription ends, if applicable.
    * 
@@ -62,6 +94,8 @@ public interface SubscriptionOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Whether auto renewal is enabled by user choice on current subscription.
    * This field indicates order/subscription status after pending plan change is
@@ -69,6 +103,7 @@ public interface SubscriptionOrBuilder extends
    * 
* * bool auto_renewal_enabled = 2; + * * @return The autoRenewalEnabled. */ boolean getAutoRenewalEnabled(); diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/proto/google/cloud/commerce/consumer/procurement/v1/order.proto b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/proto/google/cloud/commerce/consumer/procurement/v1/order.proto similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/proto/google/cloud/commerce/consumer/procurement/v1/order.proto rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/proto/google/cloud/commerce/consumer/procurement/v1/order.proto diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/proto/google/cloud/commerce/consumer/procurement/v1/procurement_service.proto b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/proto/google/cloud/commerce/consumer/procurement/v1/procurement_service.proto similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/proto/google/cloud/commerce/consumer/procurement/v1/procurement_service.proto rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/proto/google/cloud/commerce/consumer/procurement/v1/procurement_service.proto diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/BillingAccountName.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/BillingAccountName.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/BillingAccountName.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/BillingAccountName.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequest.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequest.java similarity index 61% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequest.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequest.java index 49cf369e690d..5cb055fb5e4b 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequest.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; /** + * + * *
  * Request message for
  * [ConsumerProcurementService.GetOrder][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.GetOrder]
@@ -11,48 +28,54 @@
  *
  * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+        .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_fieldAccessorTable
+    return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+        .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest.Builder.class);
+            com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest.class,
+            com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.GetOrderRequest)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest other = (com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest) obj; + com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest other = + (com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.GetOrderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.GetOrderRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.GetOrderRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.ConsumerProcurementService.GetOrder]
@@ -255,33 +285,34 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest}
    */
-  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.v1alpha1.GetOrderRequest)
       com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_fieldAccessorTable
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest.Builder.class);
+              com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest.class,
+              com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.commerce.consumer.procurement.v1alpha1.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,19 +322,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest getDefaultInstanceForType() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest.getDefaultInstance();
+    public com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest build() {
-      com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest result = buildPartial();
+      com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -312,13 +346,17 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest b
 
     @java.lang.Override
     public com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest buildPartial() {
-      com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest result = new com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest result =
+          new com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest result) {
+    private void buildPartial0(
+        com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -329,46 +367,52 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alph
     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.v1alpha1.GetOrderRequest) {
-        return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest)other);
+      if (other
+          instanceof com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest) {
+        return mergeFrom(
+            (com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest other) {
-      if (other == com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest other) {
+      if (other
+          == com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -400,17 +444,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 +466,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 +493,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 +515,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 +553,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 +586,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest) - private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest(); } - public static com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +635,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequestOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequestOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequestOrBuilder.java index 519fb146a82d..d779465ac661 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequestOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; -public interface GetOrderRequestOrBuilder extends +public interface GetOrderRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1alpha1.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/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItem.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItem.java similarity index 60% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItem.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItem.java index 6be7e50ee899..843999cf02e3 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItem.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/order.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; /** + * + * *
  * A single item within an order.
  * 
* * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.class, + com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lineItemInfo. */ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getLineItemInfo() { - return lineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() : lineItemInfo_; + return lineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder getLineItemInfoOrBuilder() { - return lineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() : lineItemInfo_; + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder + getLineItemInfoOrBuilder() { + return lineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() + : lineItemInfo_; } public static final int PENDING_CHANGE_FIELD_NUMBER = 3; private com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the pendingChange field is set. */ @java.lang.Override @@ -149,37 +196,57 @@ 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.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The pendingChange. */ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange getPendingChange() { - return pendingChange_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.getDefaultInstance() : pendingChange_; + return pendingChange_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder getPendingChangeOrBuilder() { - return pendingChange_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.getDefaultInstance() : pendingChange_; + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder + getPendingChangeOrBuilder() { + return pendingChange_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange + .getDefaultInstance() + : pendingChange_; } public static final int CHANGE_HISTORY_FIELD_NUMBER = 4; + @SuppressWarnings("serial") - private java.util.List changeHistory_; + 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 +254,18 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrB
    * changes.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getChangeHistoryList() { + 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 +273,19 @@ public java.util.List
    *
-   * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
+   * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +293,17 @@ public java.util.List
    *
-   * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
+   * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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 +311,18 @@ public int getChangeHistoryCount() {
    * changes.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange getChangeHistory(int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +330,18 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange ge
    * changes.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder getChangeHistoryOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder + getChangeHistoryOrBuilder(int index) { return changeHistory_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,8 +353,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 +379,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 +395,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.v1alpha1.LineItem)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem other = (com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem) obj; + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem other = + (com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +444,136 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.LineItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.LineItem prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItem} */ - 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.v1alpha1.LineItem) com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.class, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder.class); } // Construct using com.google.cloud.commerce.consumer.procurement.v1alpha1.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,13 +600,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_descriptor; } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem + getDefaultInstanceForType() { return com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.getDefaultInstance(); } @@ -534,14 +622,18 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem build() @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem result = new com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem(this); + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem result = + new com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItem result) { + private void buildPartialRepeatedFields( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem result) { if (changeHistoryBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { changeHistory_ = java.util.Collections.unmodifiableList(changeHistory_); @@ -553,20 +645,19 @@ private void buildPartialRepeatedFields(com.google.cloud.commerce.consumer.procu } } - private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem result) { + private void buildPartial0( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { 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,46 +665,50 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alph 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.v1alpha1.LineItem) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem)other); + return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem other) { + if (other + == com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.getDefaultInstance()) + return this; if (!other.getLineItemId().isEmpty()) { lineItemId_ = other.lineItemId_; bitField0_ |= 0x00000001; @@ -643,9 +738,10 @@ public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1 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 +773,46 @@ 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.v1alpha1.LineItemChange m = - input.readMessage( - com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChange m = + input.readMessage( + com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +822,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 +849,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 +871,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 +909,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 +933,65 @@ public Builder setLineItemIdBytes( private com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo lineItemInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> lineItemInfoBuilder_; + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lineItemInfo. */ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getLineItemInfo() { if (lineItemInfoBuilder_ == null) { - return lineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() : lineItemInfo_; + return lineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { + public Builder setLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { if (lineItemInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -871,15 +1005,20 @@ 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.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLineItemInfo( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder builderForValue) { + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder + builderForValue) { if (lineItemInfoBuilder_ == null) { lineItemInfo_ = builderForValue.build(); } else { @@ -890,18 +1029,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.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { + public Builder mergeLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { if (lineItemInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - lineItemInfo_ != null && - lineItemInfo_ != com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && lineItemInfo_ != null + && lineItemInfo_ + != com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + .getDefaultInstance()) { getLineItemInfoBuilder().mergeFrom(value); } else { lineItemInfo_ = value; @@ -914,12 +1060,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.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearLineItemInfo() { bitField0_ = (bitField0_ & ~0x00000002); @@ -932,51 +1082,70 @@ 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.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder getLineItemInfoBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder getLineItemInfoOrBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder + getLineItemInfoOrBuilder() { if (lineItemInfoBuilder_ != null) { return lineItemInfoBuilder_.getMessageOrBuilder(); } else { - return lineItemInfo_ == null ? - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() : lineItemInfo_; + return lineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> getLineItemInfoFieldBuilder() { if (lineItemInfoBuilder_ == null) { - lineItemInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder>( - getLineItemInfo(), - getParentForChildren(), - isClean()); + lineItemInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder>( + getLineItemInfo(), getParentForChildren(), isClean()); lineItemInfo_ = null; } return lineItemInfoBuilder_; @@ -984,47 +1153,69 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBui private com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange pendingChange_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder> pendingChangeBuilder_; + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The pendingChange. */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange getPendingChange() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange + getPendingChange() { if (pendingChangeBuilder_ == null) { - return pendingChange_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.getDefaultInstance() : pendingChange_; + return pendingChange_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setPendingChange(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange value) { + public Builder setPendingChange( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange value) { if (pendingChangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1038,16 +1229,21 @@ 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.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setPendingChange( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder builderForValue) { + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder + builderForValue) { if (pendingChangeBuilder_ == null) { pendingChange_ = builderForValue.build(); } else { @@ -1058,19 +1254,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.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergePendingChange(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange value) { + public Builder mergePendingChange( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange value) { if (pendingChangeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - pendingChange_ != null && - pendingChange_ != com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && pendingChange_ != null + && pendingChange_ + != com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange + .getDefaultInstance()) { getPendingChangeBuilder().mergeFrom(value); } else { pendingChange_ = value; @@ -1083,13 +1286,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.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearPendingChange() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1102,72 +1309,100 @@ 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.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder getPendingChangeBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder getPendingChangeOrBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder + getPendingChangeOrBuilder() { if (pendingChangeBuilder_ != null) { return pendingChangeBuilder_.getMessageOrBuilder(); } else { - return pendingChange_ == null ? - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.getDefaultInstance() : pendingChange_; + return pendingChange_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder> getPendingChangeFieldBuilder() { if (pendingChangeBuilder_ == null) { - pendingChangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder>( - getPendingChange(), - getParentForChildren(), - isClean()); + pendingChangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder>( + getPendingChange(), getParentForChildren(), isClean()); pendingChange_ = null; } return pendingChangeBuilder_; } - private java.util.List changeHistory_ = - 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.v1alpha1.LineItemChange>( + changeHistory_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder> changeHistoryBuilder_; + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1410,12 @@ private void ensureChangeHistoryIsMutable() {
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getChangeHistoryList() { + public java.util.List + getChangeHistoryList() { if (changeHistoryBuilder_ == null) { return java.util.Collections.unmodifiableList(changeHistory_); } else { @@ -1185,6 +1423,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 +1432,9 @@ public java.util.List * - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getChangeHistoryCount() { if (changeHistoryBuilder_ == null) { @@ -1202,6 +1444,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 +1453,12 @@ public int getChangeHistoryCount() {
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange getChangeHistory(int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange getChangeHistory( + int index) { if (changeHistoryBuilder_ == null) { return changeHistory_.get(index); } else { @@ -1219,6 +1466,8 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange ge } } /** + * + * *
      * 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 +1475,9 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange ge
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setChangeHistory( int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange value) { @@ -1243,6 +1494,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 +1503,14 @@ public Builder setChangeHistory(
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setChangeHistory( - int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder + builderForValue) { if (changeHistoryBuilder_ == null) { ensureChangeHistoryIsMutable(); changeHistory_.set(index, builderForValue.build()); @@ -1264,6 +1521,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 +1530,12 @@ public Builder setChangeHistory(
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addChangeHistory(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange value) { + public Builder addChangeHistory( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange value) { if (changeHistoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1287,6 +1549,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 +1558,9 @@ public Builder addChangeHistory(com.google.cloud.commerce.consumer.procurement.v
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addChangeHistory( int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange value) { @@ -1311,6 +1577,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,10 +1586,13 @@ public Builder addChangeHistory(
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addChangeHistory( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder builderForValue) { + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder + builderForValue) { if (changeHistoryBuilder_ == null) { ensureChangeHistoryIsMutable(); changeHistory_.add(builderForValue.build()); @@ -1332,6 +1603,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 +1612,14 @@ public Builder addChangeHistory(
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addChangeHistory( - int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder + builderForValue) { if (changeHistoryBuilder_ == null) { ensureChangeHistoryIsMutable(); changeHistory_.add(index, builderForValue.build()); @@ -1353,6 +1630,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 +1639,17 @@ public Builder addChangeHistory(
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllChangeHistory( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1657,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 +1666,9 @@ public Builder addAllChangeHistory(
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearChangeHistory() { if (changeHistoryBuilder_ == null) { @@ -1395,6 +1681,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 +1690,9 @@ public Builder clearChangeHistory() {
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeChangeHistory(int index) { if (changeHistoryBuilder_ == null) { @@ -1415,6 +1705,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 +1714,17 @@ public Builder removeChangeHistory(int index) {
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder getChangeHistoryBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1732,21 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Bu
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder getChangeHistoryOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1754,14 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrB
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getChangeHistoryOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder> + getChangeHistoryOrBuilderList() { if (changeHistoryBuilder_ != null) { return changeHistoryBuilder_.getMessageOrBuilderList(); } else { @@ -1464,6 +1769,8 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrB } } /** + * + * *
      * 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 +1778,20 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrB
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder addChangeHistoryBuilder() { - return getChangeHistoryFieldBuilder().addBuilder( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder + addChangeHistoryBuilder() { + return getChangeHistoryFieldBuilder() + .addBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1799,21 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Bu
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder addChangeHistoryBuilder( - int index) { - return getChangeHistoryFieldBuilder().addBuilder( - index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder + addChangeHistoryBuilder(int index) { + return getChangeHistoryFieldBuilder() + .addBuilder( + index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1821,27 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Bu
      * changes.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getChangeHistoryBuilderList() { + public java.util.List< + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder> + getChangeHistoryBuilderList() { return getChangeHistoryFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder> getChangeHistoryFieldBuilder() { if (changeHistoryBuilder_ == null) { - changeHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder>( + changeHistoryBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder>( changeHistory_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -1520,9 +1850,9 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Bu } 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,41 +1862,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1alpha1.LineItem) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1alpha1.LineItem) - private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem(); } - public static com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem + getDefaultInstance() { 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; @@ -1578,9 +1910,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChange.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChange.java similarity index 59% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChange.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChange.java index 5cabd107e5a9..13d075195cec 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChange.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/order.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; /** + * + * *
  * A change made on a line item.
  * 
* * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.class, + com.google.cloud.commerce.consumer.procurement.v1alpha1.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,59 @@ 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.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The changeType. */ - @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType getChangeType() { - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType result = com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType.forNumber(changeType_); - return result == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType + getChangeType() { + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType result = + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType.forNumber( + changeType_); + return result == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType.UNRECOGNIZED + : result; } public static final int OLD_LINE_ITEM_INFO_FIELD_NUMBER = 3; private com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo oldLineItemInfo_; /** + * + * *
    * Output only. Line item info before the change.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the oldLineItemInfo field is set. */ @java.lang.Override @@ -137,37 +182,55 @@ public boolean hasOldLineItemInfo() { return oldLineItemInfo_ != null; } /** + * + * *
    * Output only. Line item info before the change.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo getOldLineItemInfo() { - return oldLineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() : oldLineItemInfo_; + return oldLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() + : oldLineItemInfo_; } /** + * + * *
    * Output only. Line item info before the change.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder getOldLineItemInfoOrBuilder() { - return oldLineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() : oldLineItemInfo_; + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder + getOldLineItemInfoOrBuilder() { + return oldLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() + : oldLineItemInfo_; } public static final int NEW_LINE_ITEM_INFO_FIELD_NUMBER = 4; private com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo newLineItemInfo_; /** + * + * *
    * Line item info after the change.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * + * * @return Whether the newLineItemInfo field is set. */ @java.lang.Override @@ -175,59 +238,91 @@ public boolean hasNewLineItemInfo() { return newLineItemInfo_ != null; } /** + * + * *
    * Line item info after the change.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * + * * @return The newLineItemInfo. */ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getNewLineItemInfo() { - return newLineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() : newLineItemInfo_; + return newLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() + : newLineItemInfo_; } /** + * + * *
    * Line item info after the change.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder getNewLineItemInfoOrBuilder() { - return newLineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() : newLineItemInfo_; + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder + getNewLineItemInfoOrBuilder() { + return newLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The changeState. */ - @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState getChangeState() { - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState result = com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState.forNumber(changeState_); - return result == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState + getChangeState() { + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState result = + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState.forNumber( + changeState_); + return result == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +331,7 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBui
    * 
* * string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The stateReason. */ @java.lang.Override @@ -244,14 +340,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 +357,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 +376,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 +386,19 @@ public java.lang.String getStateReason() {
    * cancellation.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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 +407,38 @@ public java.lang.String getStateReason() {
    * cancellation.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeStateReasonType getChangeStateReasonType() { - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType result = com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType.forNumber(changeStateReasonType_); - return result == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType + getChangeStateReasonType() { + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType result = + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType + .forNumber(changeStateReasonType_); + return result == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +446,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 +503,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 +519,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 +536,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 +553,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 +570,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 +586,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -443,12 +598,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.v1alpha1.LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UNSPECIFIED.getNumber()) { + if (changeType_ + != com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType + .LINE_ITEM_CHANGE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, changeType_); } if (oldLineItemInfo_ != null) { @@ -457,7 +614,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (newLineItemInfo_ != null) { output.writeMessage(4, getNewLineItemInfo()); } - if (changeState_ != com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState.LINE_ITEM_CHANGE_STATE_UNSPECIFIED.getNumber()) { + if (changeState_ + != com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState + .LINE_ITEM_CHANGE_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, changeState_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateReason_)) { @@ -472,7 +632,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(9, getUpdateTime()); } - if (changeStateReasonType_ != com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType.LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED.getNumber()) { + if (changeStateReasonType_ + != com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType + .LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(10, changeStateReasonType_); } getUnknownFields().writeTo(output); @@ -487,40 +650,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.v1alpha1.LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, changeType_); + if (changeType_ + != com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeState.LINE_ITEM_CHANGE_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, changeState_); + if (changeState_ + != com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.LineItemChangeStateReasonType + .LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, changeStateReasonType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -530,44 +694,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.v1alpha1.LineItemChange)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange other = (com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange) obj; + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange other = + (com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +774,138 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.LineItemChange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.LineItemChange 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.v1alpha1.LineItemChange + 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.v1alpha1.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.v1alpha1.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.v1alpha1.LineItemChange prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChange} */ - 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.v1alpha1.LineItemChange) com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.class, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder.class); } - // Construct using com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.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(); @@ -779,19 +944,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_descriptor; } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange getDefaultInstanceForType() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.getDefaultInstance(); + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange + getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange build() { - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange result = buildPartial(); + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -800,13 +968,17 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange bu @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange result = new com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange result = + new com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange result) { + private void buildPartial0( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.changeId_ = changeId_; @@ -815,14 +987,12 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alph 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 +1004,16 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alph 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 +1021,51 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alph 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.v1alpha1.LineItemChange) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange)other); + return mergeFrom( + (com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange other) { + if (other + == com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange + .getDefaultInstance()) return this; if (!other.getChangeId().isEmpty()) { changeId_ = other.changeId_; bitField0_ |= 0x00000001; @@ -954,72 +1126,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 +1203,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 +1231,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 +1254,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 +1294,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 +1319,33 @@ public Builder setChangeIdBytes( private int changeType_ = 0; /** + * + * *
      * Required. Type of the change to make.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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 +1356,44 @@ public Builder setChangeTypeValue(int value) { return this; } /** + * + * *
      * Required. Type of the change to make.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The changeType. */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType getChangeType() { - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType result = com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType.forNumber(changeType_); - return result == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType.UNRECOGNIZED : result; + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType + getChangeType() { + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType result = + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType.forNumber( + changeType_); + return result == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Type of the change to make.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeType value) { + public Builder setChangeType( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType value) { if (value == null) { throw new NullPointerException(); } @@ -1187,11 +1403,16 @@ public Builder setChangeType(com.google.cloud.commerce.consumer.procurement.v1al return this; } /** + * + * *
      * Required. Type of the change to make.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearChangeType() { @@ -1203,41 +1424,63 @@ public Builder clearChangeType() { private com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo oldLineItemInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> oldLineItemInfoBuilder_; + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> + oldLineItemInfoBuilder_; /** + * + * *
      * Output only. Line item info before the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The oldLineItemInfo. */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getOldLineItemInfo() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + getOldLineItemInfo() { if (oldLineItemInfoBuilder_ == null) { - return oldLineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() : oldLineItemInfo_; + return oldLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + .getDefaultInstance() + : oldLineItemInfo_; } else { return oldLineItemInfoBuilder_.getMessage(); } } /** + * + * *
      * Output only. Line item info before the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setOldLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { + public Builder setOldLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { if (oldLineItemInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1251,14 +1494,19 @@ public Builder setOldLineItemInfo(com.google.cloud.commerce.consumer.procurement return this; } /** + * + * *
      * Output only. Line item info before the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setOldLineItemInfo( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder builderForValue) { + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder + builderForValue) { if (oldLineItemInfoBuilder_ == null) { oldLineItemInfo_ = builderForValue.build(); } else { @@ -1269,17 +1517,24 @@ public Builder setOldLineItemInfo( return this; } /** + * + * *
      * Output only. Line item info before the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeOldLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { + public Builder mergeOldLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { if (oldLineItemInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - oldLineItemInfo_ != null && - oldLineItemInfo_ != com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && oldLineItemInfo_ != null + && oldLineItemInfo_ + != com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + .getDefaultInstance()) { getOldLineItemInfoBuilder().mergeFrom(value); } else { oldLineItemInfo_ = value; @@ -1292,11 +1547,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.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearOldLineItemInfo() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1309,48 +1568,67 @@ public Builder clearOldLineItemInfo() { return this; } /** + * + * *
      * Output only. Line item info before the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder getOldLineItemInfoBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder + getOldLineItemInfoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getOldLineItemInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Line item info before the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder getOldLineItemInfoOrBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder + getOldLineItemInfoOrBuilder() { if (oldLineItemInfoBuilder_ != null) { return oldLineItemInfoBuilder_.getMessageOrBuilder(); } else { - return oldLineItemInfo_ == null ? - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() : oldLineItemInfo_; + return oldLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + .getDefaultInstance() + : oldLineItemInfo_; } } /** + * + * *
      * Output only. Line item info before the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> getOldLineItemInfoFieldBuilder() { if (oldLineItemInfoBuilder_ == null) { - oldLineItemInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder>( - getOldLineItemInfo(), - getParentForChildren(), - isClean()); + oldLineItemInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder>( + getOldLineItemInfo(), getParentForChildren(), isClean()); oldLineItemInfo_ = null; } return oldLineItemInfoBuilder_; @@ -1358,41 +1636,63 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBui private com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo newLineItemInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> newLineItemInfoBuilder_; + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> + newLineItemInfoBuilder_; /** + * + * *
      * Line item info after the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo new_line_item_info = 4; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * + * * @return The newLineItemInfo. */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getNewLineItemInfo() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + getNewLineItemInfo() { if (newLineItemInfoBuilder_ == null) { - return newLineItemInfo_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() : newLineItemInfo_; + return newLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + .getDefaultInstance() + : newLineItemInfo_; } else { return newLineItemInfoBuilder_.getMessage(); } } /** + * + * *
      * Line item info after the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * */ - public Builder setNewLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { + public Builder setNewLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { if (newLineItemInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1406,14 +1706,19 @@ public Builder setNewLineItemInfo(com.google.cloud.commerce.consumer.procurement return this; } /** + * + * *
      * Line item info after the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * */ public Builder setNewLineItemInfo( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder builderForValue) { + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder + builderForValue) { if (newLineItemInfoBuilder_ == null) { newLineItemInfo_ = builderForValue.build(); } else { @@ -1424,17 +1729,24 @@ public Builder setNewLineItemInfo( return this; } /** + * + * *
      * Line item info after the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * */ - public Builder mergeNewLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { + public Builder mergeNewLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { if (newLineItemInfoBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - newLineItemInfo_ != null && - newLineItemInfo_ != com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && newLineItemInfo_ != null + && newLineItemInfo_ + != com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + .getDefaultInstance()) { getNewLineItemInfoBuilder().mergeFrom(value); } else { newLineItemInfo_ = value; @@ -1447,11 +1759,15 @@ public Builder mergeNewLineItemInfo(com.google.cloud.commerce.consumer.procureme return this; } /** + * + * *
      * Line item info after the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * */ public Builder clearNewLineItemInfo() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1464,48 +1780,67 @@ public Builder clearNewLineItemInfo() { return this; } /** + * + * *
      * Line item info after the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder getNewLineItemInfoBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder + getNewLineItemInfoBuilder() { bitField0_ |= 0x00000008; onChanged(); return getNewLineItemInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Line item info after the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder getNewLineItemInfoOrBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder + getNewLineItemInfoOrBuilder() { if (newLineItemInfoBuilder_ != null) { return newLineItemInfoBuilder_.getMessageOrBuilder(); } else { - return newLineItemInfo_ == null ? - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance() : newLineItemInfo_; + return newLineItemInfo_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + .getDefaultInstance() + : newLineItemInfo_; } } /** + * + * *
      * Line item info after the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> getNewLineItemInfoFieldBuilder() { if (newLineItemInfoBuilder_ == null) { - newLineItemInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder>( - getNewLineItemInfo(), - getParentForChildren(), - isClean()); + newLineItemInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder>( + getNewLineItemInfo(), getParentForChildren(), isClean()); newLineItemInfo_ = null; } return newLineItemInfoBuilder_; @@ -1513,22 +1848,33 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBui private int changeState_ = 0; /** + * + * *
      * Output only. State of the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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 +1885,44 @@ public Builder setChangeStateValue(int value) { return this; } /** + * + * *
      * Output only. State of the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The changeState. */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState getChangeState() { - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState result = com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState.forNumber(changeState_); - return result == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState.UNRECOGNIZED : result; + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState + getChangeState() { + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState result = + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState.forNumber( + changeState_); + return result == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. State of the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeState value) { + public Builder setChangeState( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState value) { if (value == null) { throw new NullPointerException(); } @@ -1570,11 +1932,16 @@ public Builder setChangeState(com.google.cloud.commerce.consumer.procurement.v1a return this; } /** + * + * *
      * Output only. State of the change.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearChangeState() { @@ -1586,6 +1953,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 +1963,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 +1978,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 +1988,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 +2003,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 +2013,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 +2037,7 @@ public Builder setStateReason(
      * 
* * string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStateReason() { @@ -1670,6 +2047,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 +2057,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 +2074,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 +2084,19 @@ public Builder setStateReasonBytes(
      * cancellation.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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 +2105,10 @@ public Builder setStateReasonBytes(
      * cancellation.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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 +2119,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 +2129,26 @@ public Builder setChangeStateReasonTypeValue(int value) {
      * cancellation.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeStateReasonType getChangeStateReasonType() { - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType result = com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType.forNumber(changeStateReasonType_); - return result == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType.UNRECOGNIZED : result; + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType + getChangeStateReasonType() { + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType result = + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType + .forNumber(changeStateReasonType_); + return result == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +2157,16 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeSta
      * cancellation.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeStateReasonType value) { + public Builder setChangeStateReasonType( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType + value) { if (value == null) { throw new NullPointerException(); } @@ -1766,6 +2176,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 +2186,10 @@ public Builder setChangeStateReasonType(com.google.cloud.commerce.consumer.procu
      * cancellation.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearChangeStateReasonType() { @@ -1786,42 +2201,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 +2271,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 +2293,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 +2321,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 +2343,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 +2360,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 +2411,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 +2478,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 +2499,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 +2526,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 +2547,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 +2563,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 +2612,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 +2682,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 +2704,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 +2732,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 +2754,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 +2771,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 +2831,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange) - private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange(); } - public static com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +2879,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeOrBuilder.java similarity index 66% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeOrBuilder.java index 1a2f4fc54480..e5a395e28b55 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/order.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; -public interface LineItemChangeOrBuilder extends +public interface LineItemChangeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The changeType. */ com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType getChangeType(); /** + * + * *
    * Output only. Line item info before the change.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The oldLineItemInfo. */ com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getOldLineItemInfo(); /** + * + * *
    * Output only. Line item info before the change.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder getOldLineItemInfoOrBuilder(); + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder + getOldLineItemInfoOrBuilder(); /** + * + * *
    * Line item info after the change.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo new_line_item_info = 4; + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * + * * @return The newLineItemInfo. */ com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getNewLineItemInfo(); /** + * + * *
    * Line item info after the change.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4; + * */ - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder getNewLineItemInfoOrBuilder(); + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder + getNewLineItemInfoOrBuilder(); /** + * + * *
    * Output only. State of the change.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The changeState. */ com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The changeStateReasonType. */ - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType getChangeStateReasonType(); + com.google.cloud.commerce.consumer.procurement.v1alpha1.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/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeState.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeState.java similarity index 76% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeState.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeState.java index c51dde1eda98..732b3a11857a 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeState.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/order.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; /** + * + * *
  * State of a change.
  * 
* * Protobuf enum {@code google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.OrderOuterClass.getDescriptor().getEnumTypes().get(1);
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    return com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeState)
 }
-
diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeStateReasonType.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeStateReasonType.java
similarity index 70%
rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeStateReasonType.java
rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeStateReasonType.java
index 2e992a7b9da1..22577e7258f2 100644
--- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeStateReasonType.java
+++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeStateReasonType.java
@@ -1,18 +1,37 @@
+/*
+ * 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/v1alpha1/order.proto
 
 package com.google.cloud.commerce.consumer.procurement.v1alpha1;
 
 /**
+ *
+ *
  * 
  * Predefined types for line item change state reason.
  * 
* - * Protobuf enum {@code google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType} + * Protobuf enum {@code + * google.cloud.commerce.consumer.procurement.v1alpha1.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 +41,8 @@ public enum LineItemChangeStateReasonType
    */
   LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * Change is in current state due to term expiration.
    * 
@@ -30,6 +51,8 @@ public enum LineItemChangeStateReasonType */ LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED(1), /** + * + * *
    * Change is in current state due to user-initiated cancellation.
    * 
@@ -38,6 +61,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 +74,8 @@ public enum LineItemChangeStateReasonType ; /** + * + * *
    * Default value, indicating there's no predefined type for change state
    * reason.
@@ -58,6 +85,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 +95,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 +105,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 +115,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 +139,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 +156,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.v1alpha1.OrderOuterClass.getDescriptor().getEnumTypes().get(2); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.getDescriptor() + .getEnumTypes() + .get(2); } private static final LineItemChangeStateReasonType[] VALUES = values(); @@ -149,8 +188,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 +204,3 @@ private LineItemChangeStateReasonType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType) } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeType.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeType.java similarity index 70% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeType.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeType.java index 04bbfef6a2db..1f05c40da402 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeType.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/order.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; /** + * + * *
  * Type of a line item change.
  * 
* * Protobuf enum {@code google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.OrderOuterClass.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChangeType) } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfo.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfo.java similarity index 56% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfo.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfo.java index c1d4b16c6142..79d495fdab2e 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfo.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/order.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; /** + * + * *
  * Line item information.
  * 
* * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.class, + com.google.cloud.commerce.consumer.procurement.v1alpha1.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,104 @@ public java.lang.String getOffer() { } public static final int PARAMETERS_FIELD_NUMBER = 9; + @SuppressWarnings("serial") - private java.util.List parameters_; + private java.util.List + parameters_; /** + * + * *
    * Optional. User-provided parameters.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getParametersList() { + public java.util.List + getParametersList() { return parameters_; } /** + * + * *
    * Optional. User-provided parameters.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder> getParametersOrBuilderList() { return parameters_; } /** + * + * *
    * Optional. User-provided parameters.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter getParameters(int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter getParameters( + int index) { return parameters_.get(index); } /** + * + * *
    * Optional. User-provided parameters.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder getParametersOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder + getParametersOrBuilder(int index) { return parameters_.get(index); } public static final int SUBSCRIPTION_FIELD_NUMBER = 10; private com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription_; /** + * + * *
    * Output only. Information about the subscription created, if applicable.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the subscription field is set. */ @java.lang.Override @@ -171,30 +228,45 @@ public boolean hasSubscription() { return subscription_ != null; } /** + * + * *
    * Output only. Information about the subscription created, if applicable.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The subscription. */ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription getSubscription() { - return subscription_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.getDefaultInstance() + : subscription_; } /** + * + * *
    * Output only. Information about the subscription created, if applicable.
    * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.SubscriptionOrBuilder getSubscriptionOrBuilder() { - return subscription_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.getDefaultInstance() : subscription_; + public com.google.cloud.commerce.consumer.procurement.v1alpha1.SubscriptionOrBuilder + getSubscriptionOrBuilder() { + return subscription_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.getDefaultInstance() + : subscription_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +278,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 +298,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 +314,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.v1alpha1.LineItemInfo)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo other = (com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo) obj; + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo other = + (com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +355,138 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.LineItemInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.LineItemInfo 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.v1alpha1.LineItemInfo + 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.v1alpha1.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.v1alpha1.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.v1alpha1.LineItemInfo prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo} */ - 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.v1alpha1.LineItemInfo) com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.class, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder.class); } - // Construct using com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.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(); @@ -434,14 +508,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_descriptor; } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getDefaultInstanceForType() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance(); + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + .getDefaultInstance(); } @java.lang.Override @@ -455,14 +531,18 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo buil @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo result = new com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo(this); + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo result = + new com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo result) { + private void buildPartialRepeatedFields( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo result) { if (parametersBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); @@ -474,15 +554,15 @@ private void buildPartialRepeatedFields(com.google.cloud.commerce.consumer.procu } } - private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo result) { + private void buildPartial0( + com.google.cloud.commerce.consumer.procurement.v1alpha1.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,46 +570,51 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alph 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.v1alpha1.LineItemInfo) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo)other); + return mergeFrom( + (com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo other) { + if (other + == com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + .getDefaultInstance()) return this; if (!other.getOffer().isEmpty()) { offer_ = other.offer_; bitField0_ |= 0x00000001; @@ -553,9 +638,10 @@ public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1 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 +676,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 74: { - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter m = - input.readMessage( - com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Parameter m = + input.readMessage( + com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +718,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 +749,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 +775,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 +821,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 +847,37 @@ public Builder setOfferBytes( return this; } - private java.util.List parameters_ = - 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< + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter>(parameters_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder> parametersBuilder_; + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder> + parametersBuilder_; /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getParametersList() { + public java.util.List + getParametersList() { if (parametersBuilder_ == null) { return java.util.Collections.unmodifiableList(parameters_); } else { @@ -761,11 +885,15 @@ public java.util.List * Optional. User-provided parameters. *
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getParametersCount() { if (parametersBuilder_ == null) { @@ -775,13 +903,18 @@ public int getParametersCount() { } } /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter getParameters(int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter getParameters( + int index) { if (parametersBuilder_ == null) { return parameters_.get(index); } else { @@ -789,11 +922,15 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter getPara } } /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setParameters( int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter value) { @@ -810,14 +947,19 @@ public Builder setParameters( return this; } /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setParameters( - int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.set(index, builderForValue.build()); @@ -828,13 +970,18 @@ public Builder setParameters( return this; } /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addParameters(com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter value) { + public Builder addParameters( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -848,11 +995,15 @@ public Builder addParameters(com.google.cloud.commerce.consumer.procurement.v1al return this; } /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addParameters( int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter value) { @@ -869,11 +1020,15 @@ public Builder addParameters( return this; } /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addParameters( com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder builderForValue) { @@ -887,14 +1042,19 @@ public Builder addParameters( return this; } /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addParameters( - int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.add(index, builderForValue.build()); @@ -905,18 +1065,23 @@ public Builder addParameters( return this; } /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllParameters( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1089,15 @@ public Builder addAllParameters( return this; } /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearParameters() { if (parametersBuilder_ == null) { @@ -941,11 +1110,15 @@ public Builder clearParameters() { return this; } /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeParameters(int index) { if (parametersBuilder_ == null) { @@ -958,39 +1131,53 @@ public Builder removeParameters(int index) { return this; } /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder getParametersBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder + getParametersBuilder(int index) { return getParametersFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder getParametersOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getParametersOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder> + getParametersOrBuilderList() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilderList(); } else { @@ -998,49 +1185,70 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilde } } /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder addParametersBuilder() { - return getParametersFieldBuilder().addBuilder( - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder + addParametersBuilder() { + return getParametersFieldBuilder() + .addBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter + .getDefaultInstance()); } /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder addParametersBuilder( - int index) { - return getParametersFieldBuilder().addBuilder( - index, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder + addParametersBuilder(int index) { + return getParametersFieldBuilder() + .addBuilder( + index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter + .getDefaultInstance()); } /** + * + * *
      * Optional. User-provided parameters.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Parameter, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { - parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder>( - parameters_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + parametersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder>( + parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; @@ -1048,41 +1256,62 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder private com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription, com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.SubscriptionOrBuilder> subscriptionBuilder_; + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.SubscriptionOrBuilder> + subscriptionBuilder_; /** + * + * *
      * Output only. Information about the subscription created, if applicable.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The subscription. */ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription getSubscription() { if (subscriptionBuilder_ == null) { - return subscription_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription + .getDefaultInstance() + : subscription_; } else { return subscriptionBuilder_.getMessage(); } } /** + * + * *
      * Output only. Information about the subscription created, if applicable.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSubscription(com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription value) { + public Builder setSubscription( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription value) { if (subscriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1096,14 +1325,19 @@ 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.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSubscription( - com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.Builder builderForValue) { + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.Builder + builderForValue) { if (subscriptionBuilder_ == null) { subscription_ = builderForValue.build(); } else { @@ -1114,17 +1348,24 @@ public Builder setSubscription( return this; } /** + * + * *
      * Output only. Information about the subscription created, if applicable.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeSubscription(com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription value) { + public Builder mergeSubscription( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription value) { if (subscriptionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - subscription_ != null && - subscription_ != com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && subscription_ != null + && subscription_ + != com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription + .getDefaultInstance()) { getSubscriptionBuilder().mergeFrom(value); } else { subscription_ = value; @@ -1137,11 +1378,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.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSubscription() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1154,55 +1399,74 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * Output only. Information about the subscription created, if applicable.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.Builder getSubscriptionBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.Builder + getSubscriptionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSubscriptionFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Information about the subscription created, if applicable.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.SubscriptionOrBuilder getSubscriptionOrBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.SubscriptionOrBuilder + getSubscriptionOrBuilder() { if (subscriptionBuilder_ != null) { return subscriptionBuilder_.getMessageOrBuilder(); } else { - return subscription_ == null ? - com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription + .getDefaultInstance() + : subscription_; } } /** + * + * *
      * Output only. Information about the subscription created, if applicable.
      * 
* - * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription, com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.SubscriptionOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.SubscriptionOrBuilder> getSubscriptionFieldBuilder() { if (subscriptionBuilder_ == null) { - subscriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription, com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.SubscriptionOrBuilder>( - getSubscription(), - getParentForChildren(), - isClean()); + subscriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1476,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo) - private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo(); } - public static com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1524,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfoOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfoOrBuilder.java new file mode 100644 index 000000000000..1aee64e7c347 --- /dev/null +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfoOrBuilder.java @@ -0,0 +1,165 @@ +/* + * 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/v1alpha1/order.proto + +package com.google.cloud.commerce.consumer.procurement.v1alpha1; + +public interface LineItemInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getParametersList(); + /** + * + * + *
+   * Optional. User-provided parameters.
+   * 
+ * + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter getParameters(int index); + /** + * + * + *
+   * Optional. User-provided parameters.
+   * 
+ * + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getParametersCount(); + /** + * + * + *
+   * Optional. User-provided parameters.
+   * 
+ * + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder> + getParametersOrBuilderList(); + /** + * + * + *
+   * Optional. User-provided parameters.
+   * 
+ * + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder getParametersOrBuilder( + int index); + + /** + * + * + *
+   * Output only. Information about the subscription created, if applicable.
+   * 
+ * + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The subscription. + */ + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription getSubscription(); + /** + * + * + *
+   * Output only. Information about the subscription created, if applicable.
+   * 
+ * + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.commerce.consumer.procurement.v1alpha1.SubscriptionOrBuilder + getSubscriptionOrBuilder(); +} diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemOrBuilder.java similarity index 58% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemOrBuilder.java index 43759dc78893..93da6a27d46b 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/order.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; -public interface LineItemOrBuilder extends +public interface LineItemOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lineItemInfo. */ com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder getLineItemInfoOrBuilder(); + com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The pendingChange. */ com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange pending_change = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder getPendingChangeOrBuilder(); + com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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,15 @@ public interface LineItemOrBuilder extends
    * changes.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange getChangeHistory(int index); + com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +183,14 @@ public interface LineItemOrBuilder extends
    * changes.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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 +198,16 @@ public interface LineItemOrBuilder extends
    * changes.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +215,10 @@ public interface LineItemOrBuilder extends
    * changes.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder getChangeHistoryOrBuilder( - int index); + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder + getChangeHistoryOrBuilder(int index); } diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequest.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequest.java similarity index 70% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequest.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequest.java index 735a6845254e..399630a6888a 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequest.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; /** + * + * *
  * Request message for
  * [ConsumerProcurementService.ListOrders][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.ListOrders].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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,40 @@ 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.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+        .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_fieldAccessorTable
+    return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+        .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest.Builder.class);
+            com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest.class,
+            com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +88,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 +122,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 +139,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 +159,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 +190,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 +216,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -190,14 +225,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 +254,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 +271,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,8 +283,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 +309,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 +325,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.v1alpha1.ListOrdersRequest)) { + if (!(obj + instanceof com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest other = (com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.ListOrdersRequest other = + (com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +363,105 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.ListOrdersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.ListOrdersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.ListOrdersRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.ConsumerProcurementService.ListOrders].
@@ -430,33 +469,34 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest}
    */
-  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.v1alpha1.ListOrdersRequest)
       com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_fieldAccessorTable
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest.Builder.class);
+              com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest.class,
+              com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.commerce.consumer.procurement.v1alpha1.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,19 +509,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest getDefaultInstanceForType() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest.getDefaultInstance();
+    public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest build() {
-      com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest result = buildPartial();
+      com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -489,14 +532,19 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest
     }
 
     @java.lang.Override
-    public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest buildPartial() {
-      com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest result = new com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+    public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest
+        buildPartial() {
+      com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest result =
+          new com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest result) {
+    private void buildPartial0(
+        com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
@@ -516,46 +564,52 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alph
     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.v1alpha1.ListOrdersRequest) {
-        return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest)other);
+      if (other
+          instanceof com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest) {
+        return mergeFrom(
+            (com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest other) {
-      if (other == com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest other) {
+      if (other
+          == com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -600,32 +654,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 +694,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 +722,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 +745,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 +785,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 +808,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 +826,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 +846,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 +866,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 +888,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 +910,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 +948,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 +972,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter that you can use to limit the list request.
      *
@@ -895,13 +994,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 +1009,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter that you can use to limit the list request.
      *
@@ -930,15 +1031,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 +1046,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter that you can use to limit the list request.
      *
@@ -966,18 +1068,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 +1104,7 @@ public Builder setFilter(
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1007,6 +1114,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Filter that you can use to limit the list request.
      *
@@ -1027,21 +1136,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 +1162,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest) - private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest(); } - public static com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1211,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequestOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequestOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequestOrBuilder.java index f328684cbcd2..d1cad75bffdd 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequestOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; -public interface ListOrdersRequestOrBuilder extends +public interface ListOrdersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1alpha1.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/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponse.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponse.java similarity index 64% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponse.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponse.java index 6206d19b15af..ecf105ebcbe2 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponse.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; /** + * + * *
  * Response message for
  * [ConsumerProcurementService.ListOrders][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.ListOrders].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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,33 @@ 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.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+        .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_fieldAccessorTable
+    return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+        .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse.Builder.class);
+            com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse.class,
+            com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse.Builder
+                .class);
   }
 
   public static final int ORDERS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List orders_;
   /**
+   *
+   *
    * 
    * The list of orders in this response.
    * 
@@ -56,10 +79,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Order orders = 1; */ @java.lang.Override - public java.util.List getOrdersList() { + public java.util.List + getOrdersList() { return orders_; } /** + * + * *
    * The list of orders in this response.
    * 
@@ -67,11 +93,14 @@ public java.util.Listrepeated .google.cloud.commerce.consumer.procurement.v1alpha1.Order orders = 1; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder> getOrdersOrBuilderList() { return orders_; } /** + * + * *
    * The list of orders in this response.
    * 
@@ -83,6 +112,8 @@ public int getOrdersCount() { return orders_.size(); } /** + * + * *
    * The list of orders in this response.
    * 
@@ -94,6 +125,8 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order getOrders(i return orders_.get(index); } /** + * + * *
    * The list of orders in this response.
    * 
@@ -107,14 +140,18 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder ge } 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 +160,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 +191,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,8 +203,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 +220,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 +233,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse)) { + if (!(obj + instanceof com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse other = (com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse) obj; + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse other = + (com.google.cloud.commerce.consumer.procurement.v1alpha1.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; } @@ -230,99 +266,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse + parseFrom( + 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.v1alpha1.ListOrdersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.ListOrdersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse + parseFrom(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.v1alpha1.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.v1alpha1.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.v1alpha1.ListOrdersResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.ListOrdersResponse parseFrom( - 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.v1alpha1.ListOrdersResponse + parseFrom(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.v1alpha1.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); + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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); } @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.v1alpha1.ListOrdersResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.ConsumerProcurementService.ListOrders].
@@ -330,33 +378,34 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse}
    */
-  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.v1alpha1.ListOrdersResponse)
       com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_fieldAccessorTable
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse.Builder.class);
+              com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse.class,
+              com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.commerce.consumer.procurement.v1alpha1.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,19 +422,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse getDefaultInstanceForType() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse.getDefaultInstance();
+    public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse
+        getDefaultInstanceForType() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse build() {
-      com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse result = buildPartial();
+      com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -393,15 +445,20 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRespons
     }
 
     @java.lang.Override
-    public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse buildPartial() {
-      com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse result = new com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse(this);
+    public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse
+        buildPartial() {
+      com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse result =
+          new com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.ListOrdersResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse result) {
       if (ordersBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           orders_ = java.util.Collections.unmodifiableList(orders_);
@@ -413,7 +470,8 @@ private void buildPartialRepeatedFields(com.google.cloud.commerce.consumer.procu
       }
     }
 
-    private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse result) {
+    private void buildPartial0(
+        com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.nextPageToken_ = nextPageToken_;
@@ -424,46 +482,52 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alph
     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.v1alpha1.ListOrdersResponse) {
-        return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse)other);
+      if (other
+          instanceof com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse) {
+        return mergeFrom(
+            (com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse other) {
-      if (other == com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse other) {
+      if (other
+          == com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse
+              .getDefaultInstance()) return this;
       if (ordersBuilder_ == null) {
         if (!other.orders_.isEmpty()) {
           if (orders_.isEmpty()) {
@@ -482,9 +546,10 @@ public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1
             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 +586,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.commerce.consumer.procurement.v1alpha1.Order m =
-                  input.readMessage(
-                      com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Order m =
+                    input.readMessage(
+                        com.google.cloud.commerce.consumer.procurement.v1alpha1.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,28 +622,38 @@ 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.v1alpha1.Order, com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder> ordersBuilder_;
+            com.google.cloud.commerce.consumer.procurement.v1alpha1.Order,
+            com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder,
+            com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder>
+        ordersBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of orders in this response.
      * 
* * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Order orders = 1; */ - public java.util.List getOrdersList() { + public java.util.List + getOrdersList() { if (ordersBuilder_ == null) { return java.util.Collections.unmodifiableList(orders_); } else { @@ -583,6 +661,8 @@ public java.util.List * The list of orders in this response. *
@@ -597,6 +677,8 @@ public int getOrdersCount() { } } /** + * + * *
      * The list of orders in this response.
      * 
@@ -611,6 +693,8 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order getOrders(i } } /** + * + * *
      * The list of orders in this response.
      * 
@@ -632,6 +716,8 @@ public Builder setOrders( return this; } /** + * + * *
      * The list of orders in this response.
      * 
@@ -639,7 +725,8 @@ public Builder setOrders( * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Order orders = 1; */ public Builder setOrders( - int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder builderForValue) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.set(index, builderForValue.build()); @@ -650,6 +737,8 @@ public Builder setOrders( return this; } /** + * + * *
      * The list of orders in this response.
      * 
@@ -670,6 +759,8 @@ public Builder addOrders(com.google.cloud.commerce.consumer.procurement.v1alpha1 return this; } /** + * + * *
      * The list of orders in this response.
      * 
@@ -691,6 +782,8 @@ public Builder addOrders( return this; } /** + * + * *
      * The list of orders in this response.
      * 
@@ -709,6 +802,8 @@ public Builder addOrders( return this; } /** + * + * *
      * The list of orders in this response.
      * 
@@ -716,7 +811,8 @@ public Builder addOrders( * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Order orders = 1; */ public Builder addOrders( - int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder builderForValue) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.add(index, builderForValue.build()); @@ -727,6 +823,8 @@ public Builder addOrders( return this; } /** + * + * *
      * The list of orders in this response.
      * 
@@ -734,11 +832,11 @@ public Builder addOrders( * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Order orders = 1; */ public Builder addAllOrders( - java.lang.Iterable values) { + java.lang.Iterable + 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 +844,8 @@ public Builder addAllOrders( return this; } /** + * + * *
      * The list of orders in this response.
      * 
@@ -763,6 +863,8 @@ public Builder clearOrders() { return this; } /** + * + * *
      * The list of orders in this response.
      * 
@@ -780,6 +882,8 @@ public Builder removeOrders(int index) { return this; } /** + * + * *
      * The list of orders in this response.
      * 
@@ -791,28 +895,34 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder get return getOrdersFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of orders in this response.
      * 
* * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Order orders = 1; */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder getOrdersOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Order orders = 1; */ - public java.util.List - getOrdersOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder> + getOrdersOrBuilderList() { if (ordersBuilder_ != null) { return ordersBuilder_.getMessageOrBuilderList(); } else { @@ -820,17 +930,23 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder ge } } /** + * + * *
      * The list of orders in this response.
      * 
* * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Order orders = 1; */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder addOrdersBuilder() { - return getOrdersFieldBuilder().addBuilder( - com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder + addOrdersBuilder() { + return getOrdersFieldBuilder() + .addBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.getDefaultInstance()); } /** + * + * *
      * The list of orders in this response.
      * 
@@ -839,30 +955,37 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder add */ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder addOrdersBuilder( int index) { - return getOrdersFieldBuilder().addBuilder( - index, com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.getDefaultInstance()); + return getOrdersFieldBuilder() + .addBuilder( + index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.getDefaultInstance()); } /** + * + * *
      * The list of orders in this response.
      * 
* * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Order, com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder> getOrdersFieldBuilder() { if (ordersBuilder_ == null) { - ordersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.Order, com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder>( - orders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + ordersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder>( + orders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); orders_ = null; } return ordersBuilder_; @@ -870,18 +993,20 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder add 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 +1015,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 +1037,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 +1075,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 +1108,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse) - private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse(); } - public static com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1157,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponseOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponseOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponseOrBuilder.java index 0429972962d2..8b01780d46b9 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponseOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; -public interface ListOrdersResponseOrBuilder extends +public interface ListOrdersResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of orders in this response.
    * 
* * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Order getOrders(int index); /** + * + * *
    * The list of orders in this response.
    * 
@@ -33,15 +54,19 @@ public interface ListOrdersResponseOrBuilder extends */ int getOrdersCount(); /** + * + * *
    * The list of orders in this response.
    * 
* * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Order orders = 1; */ - java.util.List + java.util.List getOrdersOrBuilderList(); /** + * + * *
    * The list of orders in this response.
    * 
@@ -52,22 +77,27 @@ com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder getOrders 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/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Order.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Order.java similarity index 62% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Order.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Order.java index 426a04f0469f..af06902c2c23 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Order.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/order.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; /** + * + * *
  * 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.v1alpha1.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.v1alpha1.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.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass
+        .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_fieldAccessorTable
+    return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass
+        .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder.class);
+            com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.class,
+            com.google.cloud.commerce.consumer.procurement.v1alpha1.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,135 +182,188 @@ public java.lang.String getDisplayName() { } public static final int LINE_ITEMS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") - private java.util.List lineItems_; + private java.util.List + lineItems_; /** + * + * *
    * Output only. The items being purchased.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getLineItemsList() { + public java.util.List + getLineItemsList() { return lineItems_; } /** + * + * *
    * Output only. The items being purchased.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> getLineItemsOrBuilderList() { return lineItems_; } /** + * + * *
    * Output only. The items being purchased.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem getLineItems(int index) { return lineItems_.get(index); } /** + * + * *
    * Output only. The items being purchased.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder getLineItemsOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder + getLineItemsOrBuilder(int index) { return lineItems_.get(index); } public static final int CANCELLED_LINE_ITEMS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") - private java.util.List cancelledLineItems_; + private java.util.List + cancelledLineItems_; /** + * + * *
    * Output only. Line items that were cancelled.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getCancelledLineItemsList() { + public java.util.List + getCancelledLineItemsList() { return cancelledLineItems_; } /** + * + * *
    * Output only. Line items that were cancelled.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> getCancelledLineItemsOrBuilderList() { return cancelledLineItems_; } /** + * + * *
    * Output only. Line items that were cancelled.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem getCancelledLineItems(int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem getCancelledLineItems( + int index) { return cancelledLineItems_.get(index); } /** + * + * *
    * Output only. Line items that were cancelled.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder getCancelledLineItemsOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +371,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 +387,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 +404,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 +420,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 +436,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 +451,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 +471,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 +502,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -411,8 +514,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 +549,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 +575,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.v1alpha1.Order)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1alpha1.Order other = (com.google.cloud.commerce.consumer.procurement.v1alpha1.Order) obj; + com.google.cloud.commerce.consumer.procurement.v1alpha1.Order other = + (com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +635,104 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.Order parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Order parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.Order prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +748,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Order)
       com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_fieldAccessorTable
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder.class);
+              com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.class,
+              com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder.class);
     }
 
     // Construct using com.google.cloud.commerce.consumer.procurement.v1alpha1.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,13 +809,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order getDefaultInstanceForType() {
+    public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order
+        getDefaultInstanceForType() {
       return com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.getDefaultInstance();
     }
 
@@ -732,14 +831,18 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order build() {
 
     @java.lang.Override
     public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order buildPartial() {
-      com.google.cloud.commerce.consumer.procurement.v1alpha1.Order result = new com.google.cloud.commerce.consumer.procurement.v1alpha1.Order(this);
+      com.google.cloud.commerce.consumer.procurement.v1alpha1.Order result =
+          new com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Order result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.commerce.consumer.procurement.v1alpha1.Order result) {
       if (lineItemsBuilder_ == null) {
         if (((bitField0_ & 0x00000004) != 0)) {
           lineItems_ = java.util.Collections.unmodifiableList(lineItems_);
@@ -760,7 +863,8 @@ private void buildPartialRepeatedFields(com.google.cloud.commerce.consumer.procu
       }
     }
 
-    private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alpha1.Order result) {
+    private void buildPartial0(
+        com.google.cloud.commerce.consumer.procurement.v1alpha1.Order result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -769,14 +873,10 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alph
         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 +887,39 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alph
     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.v1alpha1.Order) {
-        return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1alpha1.Order)other);
+        return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1alpha1.Order) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -826,7 +927,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1.Order other) {
-      if (other == com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -855,9 +958,10 @@ public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1
             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 +985,10 @@ public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1
             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 +1031,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.v1alpha1.LineItem m =
-                  input.readMessage(
-                      com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItem m =
-                  input.readMessage(
-                      com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItem m =
+                    input.readMessage(
+                        com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItem m =
+                    input.readMessage(
+                        com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1105,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 +1119,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1022,6 +1134,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the order.
      * Has the form
@@ -1029,15 +1143,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1045,6 +1158,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the order.
      * Has the form
@@ -1052,18 +1167,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the order.
      * Has the form
@@ -1071,6 +1190,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1080,6 +1200,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the order.
      * Has the form
@@ -1087,12 +1209,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1102,18 +1226,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 +1248,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 +1270,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 +1308,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; @@ -1192,26 +1330,37 @@ public Builder setDisplayNameBytes( return this; } - private java.util.List lineItems_ = - java.util.Collections.emptyList(); + private java.util.List + lineItems_ = java.util.Collections.emptyList(); + private void ensureLineItemsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - lineItems_ = new java.util.ArrayList(lineItems_); + lineItems_ = + new java.util.ArrayList< + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem>(lineItems_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> lineItemsBuilder_; + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> + lineItemsBuilder_; /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getLineItemsList() { + public java.util.List + getLineItemsList() { if (lineItemsBuilder_ == null) { return java.util.Collections.unmodifiableList(lineItems_); } else { @@ -1219,11 +1368,15 @@ public java.util.List * Output only. The items being purchased. *
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getLineItemsCount() { if (lineItemsBuilder_ == null) { @@ -1233,13 +1386,18 @@ public int getLineItemsCount() { } } /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem getLineItems(int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem getLineItems( + int index) { if (lineItemsBuilder_ == null) { return lineItems_.get(index); } else { @@ -1247,11 +1405,15 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem getLineI } } /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLineItems( int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem value) { @@ -1268,14 +1430,19 @@ public Builder setLineItems( return this; } /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLineItems( - int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder builderForValue) { if (lineItemsBuilder_ == null) { ensureLineItemsIsMutable(); lineItems_.set(index, builderForValue.build()); @@ -1286,13 +1453,18 @@ public Builder setLineItems( return this; } /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addLineItems(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem value) { + public Builder addLineItems( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem value) { if (lineItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1306,11 +1478,15 @@ public Builder addLineItems(com.google.cloud.commerce.consumer.procurement.v1alp return this; } /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addLineItems( int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem value) { @@ -1327,11 +1503,15 @@ public Builder addLineItems( return this; } /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addLineItems( com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder builderForValue) { @@ -1345,14 +1525,19 @@ public Builder addLineItems( return this; } /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addLineItems( - int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder builderForValue) { if (lineItemsBuilder_ == null) { ensureLineItemsIsMutable(); lineItems_.add(index, builderForValue.build()); @@ -1363,18 +1548,23 @@ public Builder addLineItems( return this; } /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllLineItems( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1572,15 @@ public Builder addAllLineItems( return this; } /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearLineItems() { if (lineItemsBuilder_ == null) { @@ -1399,11 +1593,15 @@ public Builder clearLineItems() { return this; } /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeLineItems(int index) { if (lineItemsBuilder_ == null) { @@ -1416,39 +1614,53 @@ public Builder removeLineItems(int index) { return this; } /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder getLineItemsBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder + getLineItemsBuilder(int index) { return getLineItemsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder getLineItemsOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getLineItemsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> + getLineItemsOrBuilderList() { if (lineItemsBuilder_ != null) { return lineItemsBuilder_.getMessageOrBuilderList(); } else { @@ -1456,74 +1668,107 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder } } /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder addLineItemsBuilder() { - return getLineItemsFieldBuilder().addBuilder( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder + addLineItemsBuilder() { + return getLineItemsFieldBuilder() + .addBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem + .getDefaultInstance()); } /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder addLineItemsBuilder( - int index) { - return getLineItemsFieldBuilder().addBuilder( - index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder + addLineItemsBuilder(int index) { + return getLineItemsFieldBuilder() + .addBuilder( + index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem + .getDefaultInstance()); } /** + * + * *
      * Output only. The items being purchased.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItem, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> getLineItemsFieldBuilder() { if (lineItemsBuilder_ == null) { - lineItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder>( - lineItems_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + lineItemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.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< + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem>( + cancelledLineItems_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> cancelledLineItemsBuilder_; + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> + cancelledLineItemsBuilder_; /** + * + * *
      * Output only. Line items that were cancelled.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getCancelledLineItemsList() { + public java.util.List + getCancelledLineItemsList() { if (cancelledLineItemsBuilder_ == null) { return java.util.Collections.unmodifiableList(cancelledLineItems_); } else { @@ -1531,11 +1776,15 @@ public java.util.List * Output only. Line items that were cancelled. *
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getCancelledLineItemsCount() { if (cancelledLineItemsBuilder_ == null) { @@ -1545,13 +1794,18 @@ public int getCancelledLineItemsCount() { } } /** + * + * *
      * Output only. Line items that were cancelled.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem getCancelledLineItems(int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem getCancelledLineItems( + int index) { if (cancelledLineItemsBuilder_ == null) { return cancelledLineItems_.get(index); } else { @@ -1559,11 +1813,15 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem getCance } } /** + * + * *
      * Output only. Line items that were cancelled.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCancelledLineItems( int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem value) { @@ -1580,14 +1838,19 @@ public Builder setCancelledLineItems( return this; } /** + * + * *
      * Output only. Line items that were cancelled.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCancelledLineItems( - int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder builderForValue) { if (cancelledLineItemsBuilder_ == null) { ensureCancelledLineItemsIsMutable(); cancelledLineItems_.set(index, builderForValue.build()); @@ -1598,13 +1861,18 @@ public Builder setCancelledLineItems( return this; } /** + * + * *
      * Output only. Line items that were cancelled.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addCancelledLineItems(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem value) { + public Builder addCancelledLineItems( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem value) { if (cancelledLineItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1618,11 +1886,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.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addCancelledLineItems( int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem value) { @@ -1639,11 +1911,15 @@ public Builder addCancelledLineItems( return this; } /** + * + * *
      * Output only. Line items that were cancelled.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addCancelledLineItems( com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder builderForValue) { @@ -1657,14 +1933,19 @@ public Builder addCancelledLineItems( return this; } /** + * + * *
      * Output only. Line items that were cancelled.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addCancelledLineItems( - int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder builderForValue) { if (cancelledLineItemsBuilder_ == null) { ensureCancelledLineItemsIsMutable(); cancelledLineItems_.add(index, builderForValue.build()); @@ -1675,18 +1956,23 @@ public Builder addCancelledLineItems( return this; } /** + * + * *
      * Output only. Line items that were cancelled.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllCancelledLineItems( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1980,15 @@ public Builder addAllCancelledLineItems( return this; } /** + * + * *
      * Output only. Line items that were cancelled.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCancelledLineItems() { if (cancelledLineItemsBuilder_ == null) { @@ -1711,11 +2001,15 @@ public Builder clearCancelledLineItems() { return this; } /** + * + * *
      * Output only. Line items that were cancelled.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeCancelledLineItems(int index) { if (cancelledLineItemsBuilder_ == null) { @@ -1728,39 +2022,53 @@ public Builder removeCancelledLineItems(int index) { return this; } /** + * + * *
      * Output only. Line items that were cancelled.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder getCancelledLineItemsBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder + getCancelledLineItemsBuilder(int index) { return getCancelledLineItemsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Line items that were cancelled.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder getCancelledLineItemsOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getCancelledLineItemsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> + getCancelledLineItemsOrBuilderList() { if (cancelledLineItemsBuilder_ != null) { return cancelledLineItemsBuilder_.getMessageOrBuilderList(); } else { @@ -1768,45 +2076,69 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder } } /** + * + * *
      * Output only. Line items that were cancelled.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder addCancelledLineItemsBuilder() { - return getCancelledLineItemsFieldBuilder().addBuilder( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder + addCancelledLineItemsBuilder() { + return getCancelledLineItemsFieldBuilder() + .addBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem + .getDefaultInstance()); } /** + * + * *
      * Output only. Line items that were cancelled.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder addCancelledLineItemsBuilder( - int index) { - return getCancelledLineItemsFieldBuilder().addBuilder( - index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder + addCancelledLineItemsBuilder(int index) { + return getCancelledLineItemsFieldBuilder() + .addBuilder( + index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem + .getDefaultInstance()); } /** + * + * *
      * Output only. Line items that were cancelled.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItem, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> getCancelledLineItemsFieldBuilder() { if (cancelledLineItemsBuilder_ == null) { - cancelledLineItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder>( + cancelledLineItemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder>( cancelledLineItems_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -1818,39 +2150,58 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem.Builder 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 +2217,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 +2238,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 +2265,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 +2286,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 +2302,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 +2351,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 +2418,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 +2439,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 +2466,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 +2487,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 +2503,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 +2552,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 +2574,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 +2596,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 +2634,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 +2667,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1alpha1.Order) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1alpha1.Order) - private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.Order DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.Order + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1alpha1.Order(); } @@ -2243,27 +2682,27 @@ public static com.google.cloud.commerce.consumer.procurement.v1alpha1.Order getD 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 +2717,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOrBuilder.java similarity index 57% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOrBuilder.java index ac794c105201..a3da49f8891e 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/order.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; -public interface OrderOrBuilder extends +public interface OrderOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1alpha1.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,264 @@ 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.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getLineItemsList(); /** + * + * *
    * Output only. The items being purchased.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem getLineItems(int index); /** + * + * *
    * Output only. The items being purchased.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getLineItemsCount(); /** + * + * *
    * Output only. The items being purchased.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> getLineItemsOrBuilderList(); /** + * + * *
    * Output only. The items being purchased.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder getLineItemsOrBuilder( int index); /** + * + * *
    * Output only. Line items that were cancelled.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem getCancelledLineItems(int index); /** + * + * *
    * Output only. Line items that were cancelled.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> getCancelledLineItemsOrBuilderList(); /** + * + * *
    * Output only. Line items that were cancelled.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItem cancelled_line_items = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder getCancelledLineItemsOrBuilder( - int index); + com.google.cloud.commerce.consumer.procurement.v1alpha1.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-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOuterClass.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOuterClass.java new file mode 100644 index 000000000000..634b3972c73e --- /dev/null +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOuterClass.java @@ -0,0 +1,250 @@ +/* + * 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/v1alpha1/order.proto + +package com.google.cloud.commerce.consumer.procurement.v1alpha1; + +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_v1alpha1_Order_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_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 = { + "\n?google/cloud/commerce/consumer/procure" + + "ment/v1alpha1/order.proto\0223google.cloud." + + "commerce.consumer.procurement.v1alpha1\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\032\037google/protobuf/time" + + "stamp.proto\"\335\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\022W\n\nline_it" + + "ems\030\006 \003(\0132=.google.cloud.commerce.consum" + + "er.procurement.v1alpha1.LineItemB\004\342A\001\003\022a" + + "\n\024cancelled_line_items\030\007 \003(\0132=.google.cl" + + "oud.commerce.consumer.procurement.v1alph" + + "a1.LineItemB\004\342A\001\003\0225\n\013create_time\030\010 \001(\0132\032" + + ".google.protobuf.TimestampB\004\342A\001\003\0225\n\013upda" + + "te_time\030\t \001(\0132\032.google.protobuf.Timestam" + + "pB\004\342A\001\003\022\014\n\004etag\030\013 \001(\t:l\352Ai\n5cloudcommerc" + + "econsumerprocurement.googleapis.com/Orde" + + "r\0220billingAccounts/{billing_account}/ord" + + "ers/{order}\"\315\002\n\010LineItem\022\032\n\014line_item_id" + + "\030\001 \001(\tB\004\342A\001\003\022_\n\016line_item_info\030\002 \001(\0132A.g" + + "oogle.cloud.commerce.consumer.procuremen" + + "t.v1alpha1.LineItemInfoB\004\342A\001\003\022a\n\016pending" + + "_change\030\003 \001(\0132C.google.cloud.commerce.co" + + "nsumer.procurement.v1alpha1.LineItemChan" + + "geB\004\342A\001\003\022a\n\016change_history\030\004 \003(\0132C.googl" + + "e.cloud.commerce.consumer.procurement.v1" + + "alpha1.LineItemChangeB\004\342A\001\003\"\376\005\n\016LineItem" + + "Change\022\027\n\tchange_id\030\001 \001(\tB\004\342A\001\003\022b\n\013chang" + + "e_type\030\002 \001(\0162G.google.cloud.commerce.con" + + "sumer.procurement.v1alpha1.LineItemChang" + + "eTypeB\004\342A\001\002\022c\n\022old_line_item_info\030\003 \001(\0132" + + "A.google.cloud.commerce.consumer.procure" + + "ment.v1alpha1.LineItemInfoB\004\342A\001\003\022]\n\022new_" + + "line_item_info\030\004 \001(\0132A.google.cloud.comm" + + "erce.consumer.procurement.v1alpha1.LineI" + + "temInfo\022d\n\014change_state\030\005 \001(\0162H.google.c" + + "loud.commerce.consumer.procurement.v1alp" + + "ha1.LineItemChangeStateB\004\342A\001\003\022\032\n\014state_r" + + "eason\030\006 \001(\tB\004\342A\001\003\022z\n\030change_state_reason" + + "_type\030\n \001(\0162R.google.cloud.commerce.cons" + + "umer.procurement.v1alpha1.LineItemChange" + + "StateReasonTypeB\004\342A\001\003\022?\n\025change_effectiv" + + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" + + "B\004\342A\001\003\0225\n\013create_time\030\010 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003\0225\n\013update_time\030\t \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\"\212\002\n" + + "\014LineItemInfo\022A\n\005offer\030\r \001(\tB2\342A\001\001\372A+\n)c" + + "ommerceoffercatalog.googleapis.com/Offer" + + "\022X\n\nparameters\030\t \003(\0132>.google.cloud.comm" + + "erce.consumer.procurement.v1alpha1.Param" + + "eterB\004\342A\001\001\022]\n\014subscription\030\n \001(\0132A.googl" + + "e.cloud.commerce.consumer.procurement.v1" + + "alpha1.SubscriptionB\004\342A\001\003\"\306\001\n\tParameter\022" + + "\014\n\004name\030\001 \001(\t\022S\n\005value\030\002 \001(\0132D.google.cl" + + "oud.commerce.consumer.procurement.v1alph" + + "a1.Parameter.Value\032V\n\005Value\022\025\n\013int64_val" + + "ue\030\003 \001(\003H\000\022\026\n\014string_value\030\004 \001(\tH\000\022\026\n\014do" + + "uble_value\030\005 \001(\001H\000B\006\n\004kind\"\212\001\n\014Subscript" + + "ion\022.\n\nstart_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\022,\n\010end_time\030\001 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022\034\n\024auto_renewal_enable" + + "d\030\002 \001(\010*\320\001\n\022LineItemChangeType\022%\n!LINE_I" + + "TEM_CHANGE_TYPE_UNSPECIFIED\020\000\022 \n\034LINE_IT" + + "EM_CHANGE_TYPE_CREATE\020\001\022 \n\034LINE_ITEM_CHA" + + "NGE_TYPE_UPDATE\020\002\022 \n\034LINE_ITEM_CHANGE_TY" + + "PE_CANCEL\020\003\022-\n)LINE_ITEM_CHANGE_TYPE_REV" + + "ERT_CANCELLATION\020\004*\247\002\n\023LineItemChangeSta" + + "te\022&\n\"LINE_ITEM_CHANGE_STATE_UNSPECIFIED" + + "\020\000\022+\n\'LINE_ITEM_CHANGE_STATE_PENDING_APP" + + "ROVAL\020\001\022#\n\037LINE_ITEM_CHANGE_STATE_APPROV" + + "ED\020\002\022$\n LINE_ITEM_CHANGE_STATE_COMPLETED" + + "\020\003\022#\n\037LINE_ITEM_CHANGE_STATE_REJECTED\020\004\022" + + "$\n LINE_ITEM_CHANGE_STATE_ABANDONED\020\005\022%\n" + + "!LINE_ITEM_CHANGE_STATE_ACTIVATING\020\006*\363\001\n" + + "\035LineItemChangeStateReasonType\0222\n.LINE_I" + + "TEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED" + + "\020\000\022.\n*LINE_ITEM_CHANGE_STATE_REASON_TYPE" + + "_EXPIRED\020\001\0225\n1LINE_ITEM_CHANGE_STATE_REA" + + "SON_TYPE_USER_CANCELLED\020\002\0227\n3LINE_ITEM_C" + + "HANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED" + + "\020\003B\253\002\n7com.google.cloud.commerce.consume" + + "r.procurement.v1alpha1P\001ZYcloud.google.c" + + "om/go/commerce/consumer/procurement/apiv" + + "1alpha1/procurementpb;procurementpb\352A\221\001\n" + + ")commerceoffercatalog.googleapis.com/Off" + + "er\022)services/{service}/standardOffers/{o" + + "ffer}\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_v1alpha1_Order_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "LineItems", + "CancelledLineItems", + "CreateTime", + "UpdateTime", + "Etag", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_descriptor, + new java.lang.String[] { + "LineItemId", "LineItemInfo", "PendingChange", "ChangeHistory", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_descriptor, + new java.lang.String[] { + "ChangeId", + "ChangeType", + "OldLineItemInfo", + "NewLineItemInfo", + "ChangeState", + "StateReason", + "ChangeStateReasonType", + "ChangeEffectiveTime", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_descriptor, + new java.lang.String[] { + "Offer", "Parameters", "Subscription", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_descriptor, + new java.lang.String[] { + "Name", "Value", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_descriptor = + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_descriptor, + new java.lang.String[] { + "Int64Value", "StringValue", "DoubleValue", "Kind", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_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/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Parameter.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Parameter.java similarity index 65% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Parameter.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Parameter.java index 233d42786c8a..bb540ea4e393 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Parameter.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Parameter.java @@ -1,167 +1,211 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/commerce/consumer/procurement/v1alpha1/order.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; /** + * + * *
  * User-provided Parameters.
  * 
* * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.class, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder.class); } - public interface ValueOrBuilder extends + public interface ValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Parameter.Value.KindCase getKindCase(); } - /** - * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value} - */ - public static final class Value extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value} */ + public static final class Value extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.class, + com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +221,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 +260,14 @@ public boolean hasInt64Value() { return kindCase_ == 3; } /** + * + * *
      * Represents an int64 value.
      * 
* * int64 int64_value = 3; + * * @return The int64Value. */ @java.lang.Override @@ -226,22 +280,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 +312,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 +321,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 +350,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 +365,14 @@ public boolean hasDoubleValue() { return kindCase_ == 5; } /** + * + * *
      * Represents a double value.
      * 
* * double double_value = 5; + * * @return The doubleValue. */ @java.lang.Override @@ -318,6 +384,7 @@ public double getDoubleValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -329,18 +396,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 +416,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 +436,26 @@ 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.v1alpha1.Parameter.Value)) { + if (!(obj + instanceof com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value other = (com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value) obj; + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value other = + (com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +474,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 +482,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 +496,95 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.Parameter.Value parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.Parameter.Value prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +593,36 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value) com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.ValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.class, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.Builder + .class); } - // Construct using com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.commerce.consumer.procurement.v1alpha1.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,19 +633,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_descriptor; } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value getDefaultInstanceForType() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.getDefaultInstance(); + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value + getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value build() { - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value result = buildPartial(); + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -583,19 +656,25 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value b } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value result = new com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value + buildPartial() { + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value result = + new com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value result) { + private void buildPartial0( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value result) { + private void buildPartialOneofs( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value result) { result.kindCase_ = kindCase_; result.kind_ = this.kind_; } @@ -604,64 +683,76 @@ 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.v1alpha1.Parameter.Value) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value)other); + if (other + instanceof com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value) { + return mergeFrom( + (com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value other) { + if (other + == com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +780,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 +815,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 +833,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 +864,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 +883,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 +903,14 @@ public Builder clearInt64Value() { } /** + * + * *
        * Represents a string value.
        * 
* * string string_value = 4; + * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -808,11 +918,14 @@ public boolean hasStringValue() { return kindCase_ == 4; } /** + * + * *
        * Represents a string value.
        * 
* * string string_value = 4; + * * @return The stringValue. */ @java.lang.Override @@ -822,8 +935,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 +946,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 +974,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 +1014,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 +1037,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 +1068,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 +1087,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 +1105,7 @@ public Builder clearDoubleValue() { } return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -981,41 +1118,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value) - private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value(); + DEFAULT_INSTANCE = + new com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value(); } - public static com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1168,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1195,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 +1228,14 @@ public java.lang.String getName() { public static final int VALUE_FIELD_NUMBER = 2; private com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value_; /** + * + * *
    * Value of parameter.
    * 
* * .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value = 2; + * * @return Whether the value field is set. */ @java.lang.Override @@ -1095,18 +1243,26 @@ public boolean hasValue() { return value_ != null; } /** + * + * *
    * Value of parameter.
    * 
* * .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value = 2; + * * @return The value. */ @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value getValue() { - return value_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.getDefaultInstance() : value_; + return value_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value + .getDefaultInstance() + : value_; } /** + * + * *
    * Value of parameter.
    * 
@@ -1114,11 +1270,16 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value g * .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value = 2; */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.ValueOrBuilder getValueOrBuilder() { - return value_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.getDefaultInstance() : value_; + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.ValueOrBuilder + getValueOrBuilder() { + return value_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value + .getDefaultInstance() + : value_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1130,8 +1291,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 +1311,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 +1321,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.v1alpha1.Parameter)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter other = (com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter) obj; + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter other = + (com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +1357,138 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.Parameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Parameter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.Parameter 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.v1alpha1.Parameter + 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.v1alpha1.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.v1alpha1.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.v1alpha1.Parameter prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Parameter} */ - 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.v1alpha1.Parameter) com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.class, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Builder.class); } - // Construct using com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.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(); @@ -1338,13 +1503,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_descriptor; } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter + getDefaultInstanceForType() { return com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.getDefaultInstance(); } @@ -1359,21 +1525,23 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter build() @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter result = new com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter result = + new com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter result) { + private void buildPartial0( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = valueBuilder_ == null - ? value_ - : valueBuilder_.build(); + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); } } @@ -1381,46 +1549,50 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alph 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.v1alpha1.Parameter) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter)other); + return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter other) { + if (other + == com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1455,24 +1627,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 +1655,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 +1682,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 +1704,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 +1742,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 +1766,56 @@ public Builder setNameBytes( private com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.ValueOrBuilder> valueBuilder_; + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.ValueOrBuilder> + valueBuilder_; /** + * + * *
      * Value of parameter.
      * 
* * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Parameter.Value value = 2; + * * @return The value. */ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value getValue() { if (valueBuilder_ == null) { - return value_ == null ? com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.getDefaultInstance() : value_; + return value_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value + .getDefaultInstance() + : value_; } else { return valueBuilder_.getMessage(); } } /** + * + * *
      * Value of parameter.
      * 
* * .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value = 2; */ - public Builder setValue(com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value) { + public Builder setValue( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1626,6 +1829,8 @@ public Builder setValue(com.google.cloud.commerce.consumer.procurement.v1alpha1. return this; } /** + * + * *
      * Value of parameter.
      * 
@@ -1633,7 +1838,8 @@ public Builder setValue(com.google.cloud.commerce.consumer.procurement.v1alpha1. * .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value = 2; */ public Builder setValue( - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.Builder builderForValue) { + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.Builder + builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { @@ -1644,17 +1850,22 @@ public Builder setValue( return this; } /** + * + * *
      * Value of parameter.
      * 
* * .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value = 2; */ - public Builder mergeValue(com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value) { + public Builder mergeValue( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value) { if (valueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - value_ != null && - value_ != com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ + != com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value + .getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; @@ -1667,6 +1878,8 @@ public Builder mergeValue(com.google.cloud.commerce.consumer.procurement.v1alpha return this; } /** + * + * *
      * Value of parameter.
      * 
@@ -1684,33 +1897,43 @@ public Builder clearValue() { return this; } /** + * + * *
      * Value of parameter.
      * 
* * .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value = 2; */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.Builder getValueBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.Builder + getValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } /** + * + * *
      * Value of parameter.
      * 
* * .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value = 2; */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.ValueOrBuilder getValueOrBuilder() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.ValueOrBuilder + getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { - return value_ == null ? - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.getDefaultInstance() : value_; + return value_ == null + ? com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value + .getDefaultInstance() + : value_; } } /** + * + * *
      * Value of parameter.
      * 
@@ -1718,21 +1941,24 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.ValueOr * .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.ValueOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.ValueOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.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,41 +1968,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1alpha1.Parameter) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1alpha1.Parameter) - private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter(); } - public static com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter + getDefaultInstance() { 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; @@ -1788,9 +2016,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ParameterOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ParameterOrBuilder.java similarity index 63% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ParameterOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ParameterOrBuilder.java index e1b49b596ff2..ab61498db1dc 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ParameterOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ParameterOrBuilder.java @@ -1,56 +1,86 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/commerce/consumer/procurement/v1alpha1/order.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; -public interface ParameterOrBuilder extends +public interface ParameterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Parameter.Value value = 2; + * * @return Whether the value field is set. */ boolean hasValue(); /** + * + * *
    * Value of parameter.
    * 
* * .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value = 2; + * * @return The value. */ com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value getValue(); /** + * + * *
    * Value of parameter.
    * 
* * .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.Value value = 2; */ - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.ValueOrBuilder getValueOrBuilder(); + com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter.ValueOrBuilder + getValueOrBuilder(); } diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadata.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadata.java similarity index 50% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadata.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadata.java index 206d5360f1cd..4c51934ce66a 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadata.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; /** + * + * *
  * Message stored in the metadata field of the Operation returned by
  * [ConsumerProcurementService.PlaceOrder][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.PlaceOrder].
@@ -11,39 +28,42 @@
  *
  * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+        .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_fieldAccessorTable
+    return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+        .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata.Builder.class);
+            com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata.class,
+            com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata.Builder
+                .class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -55,8 +75,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 +93,14 @@ 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.v1alpha1.PlaceOrderMetadata)) {
+    if (!(obj
+        instanceof com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata other = (com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata) obj;
+    com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata other =
+        (com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -97,99 +118,111 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata
+      parseFrom(java.nio.ByteBuffer data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata
+      parseFrom(
+          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.v1alpha1.PlaceOrderMetadata parseFrom(
-      com.google.protobuf.ByteString data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata
+      parseFrom(com.google.protobuf.ByteString data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata parseFrom(
-      com.google.protobuf.ByteString data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.PlaceOrderMetadata parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata
+      parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata
+      parseFrom(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.v1alpha1.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.v1alpha1.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.v1alpha1.PlaceOrderMetadata parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata
+      parseFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.PlaceOrderMetadata parseFrom(
-      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.v1alpha1.PlaceOrderMetadata
+      parseFrom(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.v1alpha1.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);
+
+  public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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);
   }
 
   @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.v1alpha1.PlaceOrderMetadata prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.ConsumerProcurementService.PlaceOrder].
@@ -197,33 +230,34 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata}
    */
-  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.v1alpha1.PlaceOrderMetadata)
       com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_fieldAccessorTable
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata.Builder.class);
+              com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata.class,
+              com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.commerce.consumer.procurement.v1alpha1.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,19 +265,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata getDefaultInstanceForType() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata.getDefaultInstance();
+    public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata
+        getDefaultInstanceForType() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata build() {
-      com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata result = buildPartial();
+      com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -251,8 +288,10 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadat
     }
 
     @java.lang.Override
-    public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata buildPartial() {
-      com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata result = new com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata(this);
+    public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata
+        buildPartial() {
+      com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata result =
+          new com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata(this);
       onBuilt();
       return result;
     }
@@ -261,46 +300,52 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadat
     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.v1alpha1.PlaceOrderMetadata) {
-        return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata)other);
+      if (other
+          instanceof com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata) {
+        return mergeFrom(
+            (com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata other) {
-      if (other == com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata other) {
+      if (other
+          == com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata
+              .getDefaultInstance()) return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -327,12 +372,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 +388,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 +400,44 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata)
-  private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata DEFAULT_INSTANCE;
+  private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata
+      DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata();
+    DEFAULT_INSTANCE =
+        new com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata();
   }
 
-  public static com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata getDefaultInstance() {
+  public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +449,8 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata getDefaultInstanceForType() {
+  public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadataOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadataOrBuilder.java
new file mode 100644
index 000000000000..20fdb1c3088f
--- /dev/null
+++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/procurement_service.proto
+
+package com.google.cloud.commerce.consumer.procurement.v1alpha1;
+
+public interface PlaceOrderMetadataOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequest.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequest.java
similarity index 62%
rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequest.java
rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequest.java
index e5a8bd156257..81b9fcad7bde 100644
--- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequest.java
+++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/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/v1alpha1/procurement_service.proto
 
 package com.google.cloud.commerce.consumer.procurement.v1alpha1;
 
 /**
+ *
+ *
  * 
  * Request message for
  * [ConsumerProcurementService.PlaceOrder][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.PlaceOrder].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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,42 @@ 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.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+        .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_fieldAccessorTable
+    return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+        .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest.Builder.class);
+            com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest.class,
+            com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +91,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 +125,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 +145,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 +176,103 @@ public java.lang.String getDisplayName() { } public static final int LINE_ITEM_INFO_FIELD_NUMBER = 10; + @SuppressWarnings("serial") - private java.util.List lineItemInfo_; + 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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getLineItemInfoList() { + 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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> getLineItemInfoOrBuilderList() { return lineItemInfo_; } /** + * + * *
    * Optional. Places order for offer. Required when an offer-based order is
    * being placed.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getLineItemInfo(int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder getLineItemInfoOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +283,7 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBui
    * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -231,14 +292,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 +311,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 +328,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +340,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 +372,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 +382,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.v1alpha1.PlaceOrderRequest)) { + if (!(obj + instanceof com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest other = (com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest) obj; + com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest other = + (com.google.cloud.commerce.consumer.procurement.v1alpha1.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 +422,105 @@ public int hashCode() { } public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.PlaceOrderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.PlaceOrderRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.PlaceOrderRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.ConsumerProcurementService.PlaceOrder].
@@ -463,33 +528,34 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest}
    */
-  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.v1alpha1.PlaceOrderRequest)
       com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_fieldAccessorTable
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest.Builder.class);
+              com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest.class,
+              com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest.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();
@@ -508,19 +574,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.ProcurementService
+          .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest getDefaultInstanceForType() {
-      return com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest.getDefaultInstance();
+    public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest build() {
-      com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest result = buildPartial();
+      com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -528,15 +597,20 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest
     }
 
     @java.lang.Override
-    public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest buildPartial() {
-      com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest result = new com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest(this);
+    public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest
+        buildPartial() {
+      com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest result =
+          new com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest(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.v1alpha1.PlaceOrderRequest result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest result) {
       if (lineItemInfoBuilder_ == null) {
         if (((bitField0_ & 0x00000004) != 0)) {
           lineItemInfo_ = java.util.Collections.unmodifiableList(lineItemInfo_);
@@ -548,7 +622,8 @@ private void buildPartialRepeatedFields(com.google.cloud.commerce.consumer.procu
       }
     }
 
-    private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest result) {
+    private void buildPartial0(
+        com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
@@ -565,46 +640,52 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alph
     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.v1alpha1.PlaceOrderRequest) {
-        return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest)other);
+      if (other
+          instanceof com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest) {
+        return mergeFrom(
+            (com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest other) {
-      if (other == com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest other) {
+      if (other
+          == com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -633,9 +714,10 @@ public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1
             lineItemInfoBuilder_ = null;
             lineItemInfo_ = other.lineItemInfo_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            lineItemInfoBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLineItemInfoFieldBuilder() : null;
+            lineItemInfoBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLineItemInfoFieldBuilder()
+                    : null;
           } else {
             lineItemInfoBuilder_.addAllMessages(other.lineItemInfo_);
           }
@@ -672,40 +754,46 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 50: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 50
-            case 58: {
-              requestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 58
-            case 82: {
-              com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo m =
-                  input.readMessage(
-                      com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.parser(),
-                      extensionRegistry);
-              if (lineItemInfoBuilder_ == null) {
-                ensureLineItemInfoIsMutable();
-                lineItemInfo_.add(m);
-              } else {
-                lineItemInfoBuilder_.addMessage(m);
-              }
-              break;
-            } // case 82
-            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 50:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 50
+            case 58:
+              {
+                requestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 58
+            case 82:
+              {
+                com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo m =
+                    input.readMessage(
+                        com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo
+                            .parser(),
+                        extensionRegistry);
+                if (lineItemInfoBuilder_ == null) {
+                  ensureLineItemInfoIsMutable();
+                  lineItemInfo_.add(m);
+                } else {
+                  lineItemInfoBuilder_.addMessage(m);
+                }
+                break;
+              } // case 82
+            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) {
@@ -715,23 +803,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private 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. */ 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; @@ -740,21 +833,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * 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. */ - 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 { @@ -762,30 +858,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * 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) = { ... } + * + * * @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 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 This builder for chaining. */ public Builder clearParent() { @@ -795,18 +902,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * 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) = { ... } + * + * * @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; @@ -816,18 +929,20 @@ public Builder setParentBytes( private 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. */ 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; @@ -836,20 +951,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The user-specified name of the order being placed.
      * 
* * string display_name = 6 [(.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 { @@ -857,28 +973,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The user-specified name of the order being placed.
      * 
* * string display_name = 6 [(.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 being placed.
      * 
* * string display_name = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -888,17 +1011,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Required. The user-specified name of the order being placed.
      * 
* * string display_name = 6 [(.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; @@ -906,27 +1033,39 @@ public Builder setDisplayNameBytes( return this; } - private java.util.List lineItemInfo_ = - java.util.Collections.emptyList(); + private java.util.List + lineItemInfo_ = java.util.Collections.emptyList(); + private void ensureLineItemInfoIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - lineItemInfo_ = new java.util.ArrayList(lineItemInfo_); + lineItemInfo_ = + new java.util.ArrayList< + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo>( + lineItemInfo_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> lineItemInfoBuilder_; + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> + lineItemInfoBuilder_; /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getLineItemInfoList() { + public java.util.List + getLineItemInfoList() { if (lineItemInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(lineItemInfo_); } else { @@ -934,12 +1073,16 @@ public java.util.List * Optional. Places order for offer. Required when an offer-based order is * being placed. *
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getLineItemInfoCount() { if (lineItemInfoBuilder_ == null) { @@ -949,14 +1092,19 @@ public int getLineItemInfoCount() { } } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getLineItemInfo(int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getLineItemInfo( + int index) { if (lineItemInfoBuilder_ == null) { return lineItemInfo_.get(index); } else { @@ -964,12 +1112,16 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getL } } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLineItemInfo( int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { @@ -986,15 +1138,21 @@ public Builder setLineItemInfo( return this; } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setLineItemInfo( - int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder + builderForValue) { if (lineItemInfoBuilder_ == null) { ensureLineItemInfoIsMutable(); lineItemInfo_.set(index, builderForValue.build()); @@ -1005,14 +1163,19 @@ public Builder setLineItemInfo( return this; } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { + public Builder addLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { if (lineItemInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1026,12 +1189,16 @@ public Builder addLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1 return this; } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addLineItemInfo( int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo value) { @@ -1048,15 +1215,20 @@ public Builder addLineItemInfo( return this; } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addLineItemInfo( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder builderForValue) { + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder + builderForValue) { if (lineItemInfoBuilder_ == null) { ensureLineItemInfoIsMutable(); lineItemInfo_.add(builderForValue.build()); @@ -1067,15 +1239,21 @@ public Builder addLineItemInfo( return this; } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addLineItemInfo( - int index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder builderForValue) { + int index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder + builderForValue) { if (lineItemInfoBuilder_ == null) { ensureLineItemInfoIsMutable(); lineItemInfo_.add(index, builderForValue.build()); @@ -1086,19 +1264,24 @@ public Builder addLineItemInfo( return this; } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllLineItemInfo( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo> + values) { if (lineItemInfoBuilder_ == null) { ensureLineItemInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, lineItemInfo_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, lineItemInfo_); onChanged(); } else { lineItemInfoBuilder_.addAllMessages(values); @@ -1106,12 +1289,16 @@ public Builder addAllLineItemInfo( return this; } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearLineItemInfo() { if (lineItemInfoBuilder_ == null) { @@ -1124,12 +1311,16 @@ public Builder clearLineItemInfo() { return this; } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeLineItemInfo(int index) { if (lineItemInfoBuilder_ == null) { @@ -1142,42 +1333,56 @@ public Builder removeLineItemInfo(int index) { return this; } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder getLineItemInfoBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder + getLineItemInfoBuilder(int index) { return getLineItemInfoFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder getLineItemInfoOrBuilder( - int index) { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder + getLineItemInfoOrBuilder(int index) { if (lineItemInfoBuilder_ == null) { - return lineItemInfo_.get(index); } else { + return lineItemInfo_.get(index); + } else { return lineItemInfoBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getLineItemInfoOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> + getLineItemInfoOrBuilderList() { if (lineItemInfoBuilder_ != null) { return lineItemInfoBuilder_.getMessageOrBuilderList(); } else { @@ -1185,52 +1390,74 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBui } } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder addLineItemInfoBuilder() { - return getLineItemInfoFieldBuilder().addBuilder( - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder + addLineItemInfoBuilder() { + return getLineItemInfoFieldBuilder() + .addBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + .getDefaultInstance()); } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder addLineItemInfoBuilder( - int index) { - return getLineItemInfoFieldBuilder().addBuilder( - index, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.getDefaultInstance()); + public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder + addLineItemInfoBuilder(int index) { + return getLineItemInfoFieldBuilder() + .addBuilder( + index, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo + .getDefaultInstance()); } /** + * + * *
      * Optional. Places order for offer. Required when an offer-based order is
      * being placed.
      * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getLineItemInfoBuilderList() { + public java.util.List< + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder> + getLineItemInfoBuilderList() { return getLineItemInfoFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> getLineItemInfoFieldBuilder() { if (lineItemInfoBuilder_ == null) { - lineItemInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder>( - lineItemInfo_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + lineItemInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder, + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder>( + lineItemInfo_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); lineItemInfo_ = null; } return lineItemInfoBuilder_; @@ -1238,6 +1465,8 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Buil private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique identifier for this request.
      * The server will ignore subsequent requests that provide a duplicate request
@@ -1248,13 +1477,13 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Buil
      * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -1263,6 +1492,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique identifier for this request.
      * The server will ignore subsequent requests that provide a duplicate request
@@ -1273,15 +1504,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -1289,6 +1519,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique identifier for this request.
      * The server will ignore subsequent requests that provide a duplicate request
@@ -1299,18 +1531,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A unique identifier for this request.
      * The server will ignore subsequent requests that provide a duplicate request
@@ -1321,6 +1557,7 @@ public Builder setRequestId(
      * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1330,6 +1567,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique identifier for this request.
      * The server will ignore subsequent requests that provide a duplicate request
@@ -1340,21 +1579,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = 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); } @@ -1364,41 +1605,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest) - private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest(); } - public static com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PlaceOrderRequest 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 PlaceOrderRequest 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; @@ -1410,9 +1654,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequestOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequestOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequestOrBuilder.java index b125d08483e4..d874c6d9d143 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequestOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequestOrBuilder.java @@ -1,104 +1,157 @@ +/* + * 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/v1alpha1/procurement_service.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; -public interface PlaceOrderRequestOrBuilder extends +public interface PlaceOrderRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * 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.String getParent(); /** + * + * *
    * 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. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The user-specified name of the order being placed.
    * 
* * string display_name = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. The user-specified name of the order being placed.
    * 
* * string display_name = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. Places order for offer. Required when an offer-based order is
    * being placed.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getLineItemInfoList(); /** + * + * *
    * Optional. Places order for offer. Required when an offer-based order is
    * being placed.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getLineItemInfo(int index); /** + * + * *
    * Optional. Places order for offer. Required when an offer-based order is
    * being placed.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getLineItemInfoCount(); /** + * + * *
    * Optional. Places order for offer. Required when an offer-based order is
    * being placed.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> getLineItemInfoOrBuilderList(); /** + * + * *
    * Optional. Places order for offer. Required when an offer-based order is
    * being placed.
    * 
* - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder getLineItemInfoOrBuilder( - int index); + com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder + getLineItemInfoOrBuilder(int index); /** + * + * *
    * Optional. A unique identifier for this request.
    * The server will ignore subsequent requests that provide a duplicate request
@@ -109,10 +162,13 @@ com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder ge
    * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique identifier for this request.
    * The server will ignore subsequent requests that provide a duplicate request
@@ -123,8 +179,8 @@ com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder ge
    * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ProcurementService.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ProcurementService.java new file mode 100644 index 000000000000..3276bf0ba183 --- /dev/null +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ProcurementService.java @@ -0,0 +1,176 @@ +/* + * 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/v1alpha1/procurement_service.proto + +package com.google.cloud.commerce.consumer.procurement.v1alpha1; + +public final class ProcurementService { + private ProcurementService() {} + + 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_v1alpha1_PlaceOrderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nMgoogle/cloud/commerce/consumer/procure" + + "ment/v1alpha1/procurement_service.proto\022" + + "3google.cloud.commerce.consumer.procurem" + + "ent.v1alpha1\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032?google/cloud/commerce/consumer/" + + "procurement/v1alpha1/order.proto\032#google" + + "/longrunning/operations.proto\"\357\001\n\021PlaceO" + + "rderRequest\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\n*cl" + + "oudbilling.googleapis.com/BillingAccount" + + "\022\032\n\014display_name\030\006 \001(\tB\004\342A\001\002\022_\n\016line_ite" + + "m_info\030\n \003(\0132A.google.cloud.commerce.con" + + "sumer.procurement.v1alpha1.LineItemInfoB" + + "\004\342A\001\001\022\030\n\nrequest_id\030\007 \001(\tB\004\342A\001\001\"\024\n\022Place" + + "OrderMetadata\"%\n\017GetOrderRequest\022\022\n\004name" + + "\030\001 \001(\tB\004\342A\001\002\"`\n\021ListOrdersRequest\022\024\n\006par" + + "ent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"y\n\022ListOr" + + "dersResponse\022J\n\006orders\030\001 \003(\0132:.google.cl" + + "oud.commerce.consumer.procurement.v1alph" + + "a1.Order\022\027\n\017next_page_token\030\002 \001(\t2\374\005\n\032Co" + + "nsumerProcurementService\022\317\001\n\nPlaceOrder\022" + + "F.google.cloud.commerce.consumer.procure" + + "ment.v1alpha1.PlaceOrderRequest\032\035.google" + + ".longrunning.Operation\"Z\312A\033\n\005Order\022\022Plac" + + "eOrderMetadata\202\323\344\223\0026\"1/v1alpha1/{parent=" + + "billingAccounts/*}/orders:place:\001*\022\310\001\n\010G" + + "etOrder\022D.google.cloud.commerce.consumer" + + ".procurement.v1alpha1.GetOrderRequest\032:." + + "google.cloud.commerce.consumer.procureme" + + "nt.v1alpha1.Order\":\332A\004name\202\323\344\223\002-\022+/v1alp" + + "ha1/{name=billingAccounts/*/orders/*}\022\333\001" + + "\n\nListOrders\022F.google.cloud.commerce.con" + + "sumer.procurement.v1alpha1.ListOrdersReq" + + "uest\032G.google.cloud.commerce.consumer.pr" + + "ocurement.v1alpha1.ListOrdersResponse\"<\332" + + "A\006parent\202\323\344\223\002-\022+/v1alpha1/{parent=billin" + + "gAccounts/*}/orders\032c\312A/cloudcommercecon" + + "sumerprocurement.googleapis.com\322A.https:" + + "//www.googleapis.com/auth/cloud-platform" + + "B\226\001\n7com.google.cloud.commerce.consumer." + + "procurement.v1alpha1P\001ZYcloud.google.com" + + "/go/commerce/consumer/procurement/apiv1a" + + "lpha1/procurementpb;procurementpbb\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_descriptor, + new java.lang.String[] { + "Parent", "DisplayName", "LineItemInfo", "RequestId", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_descriptor, + new java.lang.String[] { + "Orders", "NextPageToken", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Subscription.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Subscription.java similarity index 68% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Subscription.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Subscription.java index e408013b5baf..218e84ef4bca 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Subscription.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Subscription.java @@ -1,55 +1,76 @@ +/* + * 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/v1alpha1/order.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; /** + * + * *
  * Subscription information.
  * 
* * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.Subscription} */ -public final class Subscription extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Subscription extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1alpha1.Subscription) SubscriptionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Subscription.newBuilder() to construct. private Subscription(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Subscription() { - } + + private Subscription() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Subscription(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.class, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * The timestamp when the subscription begins, if applicable.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -57,11 +78,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * The timestamp when the subscription begins, if applicable.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ @java.lang.Override @@ -69,6 +93,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The timestamp when the subscription begins, if applicable.
    * 
@@ -83,11 +109,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The timestamp when the subscription ends, if applicable.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -95,11 +124,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The timestamp when the subscription ends, if applicable.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return The endTime. */ @java.lang.Override @@ -107,6 +139,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The timestamp when the subscription ends, if applicable.
    * 
@@ -121,6 +155,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int AUTO_RENEWAL_ENABLED_FIELD_NUMBER = 2; private boolean autoRenewalEnabled_ = false; /** + * + * *
    * Whether auto renewal is enabled by user choice on current subscription.
    * This field indicates order/subscription status after pending plan change is
@@ -128,6 +164,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * bool auto_renewal_enabled = 2; + * * @return The autoRenewalEnabled. */ @java.lang.Override @@ -136,6 +173,7 @@ public boolean getAutoRenewalEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +185,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 (endTime_ != null) { output.writeMessage(1, getEndTime()); } @@ -168,16 +205,13 @@ public int getSerializedSize() { size = 0; if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEndTime()); } if (autoRenewalEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, autoRenewalEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, autoRenewalEnabled_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -187,25 +221,23 @@ 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.v1alpha1.Subscription)) { return super.equals(obj); } - com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription other = (com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription) obj; + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription other = + (com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } - if (getAutoRenewalEnabled() - != other.getAutoRenewalEnabled()) return false; + if (getAutoRenewalEnabled() != other.getAutoRenewalEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -226,139 +258,145 @@ public int hashCode() { hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + AUTO_RENEWAL_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAutoRenewalEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoRenewalEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription 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.v1alpha1.Subscription 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.v1alpha1.Subscription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription 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.v1alpha1.Subscription parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription 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.v1alpha1.Subscription 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.v1alpha1.Subscription 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.v1alpha1.Subscription 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.v1alpha1.Subscription 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.v1alpha1.Subscription + 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.v1alpha1.Subscription 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.v1alpha1.Subscription + 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.v1alpha1.Subscription 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.v1alpha1.Subscription 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.v1alpha1.Subscription prototype) { + + public static Builder newBuilder( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription 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; } /** + * + * *
    * Subscription information.
    * 
* * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1alpha1.Subscription} */ - 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.v1alpha1.Subscription) com.google.cloud.commerce.consumer.procurement.v1alpha1.SubscriptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_fieldAccessorTable + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.class, com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.Builder.class); + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.class, + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.Builder.class); } - // Construct using com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -378,14 +416,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass + .internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_descriptor; } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription getDefaultInstanceForType() { - return com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.getDefaultInstance(); + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription + getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription + .getDefaultInstance(); } @java.lang.Override @@ -399,23 +439,23 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription buil @java.lang.Override public com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription buildPartial() { - com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription result = new com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription result = + new com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription result) { + private void buildPartial0( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.autoRenewalEnabled_ = autoRenewalEnabled_; @@ -426,46 +466,51 @@ private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1alph 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.v1alpha1.Subscription) { - return mergeFrom((com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription)other); + return mergeFrom( + (com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription other) { - if (other == com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription other) { + if (other + == com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription + .getDefaultInstance()) return this; if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } @@ -501,31 +546,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 16: { - autoRenewalEnabled_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 26: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 16: + { + autoRenewalEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -535,28 +580,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -567,6 +622,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -587,14 +644,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
* * .google.protobuf.Timestamp start_time = 3; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -605,6 +663,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -613,9 +673,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -628,6 +688,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -645,6 +707,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -657,6 +721,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -667,11 +733,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -679,14 +746,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 3; */ 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> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -694,24 +764,33 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -722,6 +801,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -742,14 +823,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
* * .google.protobuf.Timestamp end_time = 1; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -760,6 +842,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -768,9 +852,9 @@ public Builder setEndTime( */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -783,6 +867,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -800,6 +886,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -812,6 +900,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -822,11 +912,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -834,21 +925,26 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 1; */ 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> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; } - private boolean autoRenewalEnabled_ ; + private boolean autoRenewalEnabled_; /** + * + * *
      * Whether auto renewal is enabled by user choice on current subscription.
      * This field indicates order/subscription status after pending plan change is
@@ -856,6 +952,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * 
* * bool auto_renewal_enabled = 2; + * * @return The autoRenewalEnabled. */ @java.lang.Override @@ -863,6 +960,8 @@ public boolean getAutoRenewalEnabled() { return autoRenewalEnabled_; } /** + * + * *
      * Whether auto renewal is enabled by user choice on current subscription.
      * This field indicates order/subscription status after pending plan change is
@@ -870,6 +969,7 @@ public boolean getAutoRenewalEnabled() {
      * 
* * bool auto_renewal_enabled = 2; + * * @param value The autoRenewalEnabled to set. * @return This builder for chaining. */ @@ -881,6 +981,8 @@ public Builder setAutoRenewalEnabled(boolean value) { return this; } /** + * + * *
      * Whether auto renewal is enabled by user choice on current subscription.
      * This field indicates order/subscription status after pending plan change is
@@ -888,6 +990,7 @@ public Builder setAutoRenewalEnabled(boolean value) {
      * 
* * bool auto_renewal_enabled = 2; + * * @return This builder for chaining. */ public Builder clearAutoRenewalEnabled() { @@ -896,9 +999,9 @@ public Builder clearAutoRenewalEnabled() { 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); } @@ -908,41 +1011,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.commerce.consumer.procurement.v1alpha1.Subscription) } // @@protoc_insertion_point(class_scope:google.cloud.commerce.consumer.procurement.v1alpha1.Subscription) - private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription DEFAULT_INSTANCE; + private static final com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription(); } - public static com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription getDefaultInstance() { + public static com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Subscription 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 Subscription 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; @@ -954,9 +1059,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription getDefaultInstanceForType() { + public com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/SubscriptionOrBuilder.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/SubscriptionOrBuilder.java similarity index 74% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/SubscriptionOrBuilder.java rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/SubscriptionOrBuilder.java index ff2319ac6c91..08bb4b62c671 100644 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/SubscriptionOrBuilder.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/SubscriptionOrBuilder.java @@ -1,31 +1,55 @@ +/* + * 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/v1alpha1/order.proto package com.google.cloud.commerce.consumer.procurement.v1alpha1; -public interface SubscriptionOrBuilder extends +public interface SubscriptionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1alpha1.Subscription) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The timestamp when the subscription begins, if applicable.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * The timestamp when the subscription begins, if applicable.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * The timestamp when the subscription begins, if applicable.
    * 
@@ -35,24 +59,32 @@ public interface SubscriptionOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * The timestamp when the subscription ends, if applicable.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The timestamp when the subscription ends, if applicable.
    * 
* * .google.protobuf.Timestamp end_time = 1; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The timestamp when the subscription ends, if applicable.
    * 
@@ -62,6 +94,8 @@ public interface SubscriptionOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Whether auto renewal is enabled by user choice on current subscription.
    * This field indicates order/subscription status after pending plan change is
@@ -69,6 +103,7 @@ public interface SubscriptionOrBuilder extends
    * 
* * bool auto_renewal_enabled = 2; + * * @return The autoRenewalEnabled. */ boolean getAutoRenewalEnabled(); diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/order.proto b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/order.proto similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/order.proto rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/order.proto diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.proto b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.proto similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.proto rename to java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.proto diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetEndpoint.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetEndpoint.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/AsyncGetOrder.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/AsyncGetOrder.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/AsyncGetOrder.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/AsyncGetOrder.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/SyncGetOrder.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/SyncGetOrder.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/SyncGetOrder.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/SyncGetOrder.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/SyncGetOrderString.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/SyncGetOrderString.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/SyncGetOrderString.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/SyncGetOrderString.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/AsyncListOrders.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/AsyncListOrders.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/AsyncListOrders.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/AsyncListOrders.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/AsyncListOrdersPaged.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/AsyncListOrdersPaged.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/AsyncListOrdersPaged.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/AsyncListOrdersPaged.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/SyncListOrders.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/SyncListOrders.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/SyncListOrders.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/SyncListOrders.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/SyncListOrdersString.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/SyncListOrdersString.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/SyncListOrdersString.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/SyncListOrdersString.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/AsyncPlaceOrder.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/AsyncPlaceOrder.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/AsyncPlaceOrder.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/AsyncPlaceOrder.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/AsyncPlaceOrderLRO.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/AsyncPlaceOrderLRO.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/AsyncPlaceOrderLRO.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/AsyncPlaceOrderLRO.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/SyncPlaceOrder.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/SyncPlaceOrder.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/SyncPlaceOrder.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/SyncPlaceOrder.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservicesettings/getorder/SyncGetOrder.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservicesettings/getorder/SyncGetOrder.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservicesettings/getorder/SyncGetOrder.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservicesettings/getorder/SyncGetOrder.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/stub/consumerprocurementservicestubsettings/getorder/SyncGetOrder.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/stub/consumerprocurementservicestubsettings/getorder/SyncGetOrder.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/stub/consumerprocurementservicestubsettings/getorder/SyncGetOrder.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/stub/consumerprocurementservicestubsettings/getorder/SyncGetOrder.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetEndpoint.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetEndpoint.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/AsyncGetOrder.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/AsyncGetOrder.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/AsyncGetOrder.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/AsyncGetOrder.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrder.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrder.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrder.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrder.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrderString.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrderString.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrderString.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrderString.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrders.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrders.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrders.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrders.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrdersPaged.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrdersPaged.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrdersPaged.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrdersPaged.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrders.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrders.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrders.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrders.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrdersString.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrdersString.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrdersString.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrdersString.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrder.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrder.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrder.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrder.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrderLRO.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrderLRO.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrderLRO.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrderLRO.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/SyncPlaceOrder.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/SyncPlaceOrder.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/SyncPlaceOrder.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/SyncPlaceOrder.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservicesettings/getorder/SyncGetOrder.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservicesettings/getorder/SyncGetOrder.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservicesettings/getorder/SyncGetOrder.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservicesettings/getorder/SyncGetOrder.java diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/consumerprocurementservicestubsettings/getorder/SyncGetOrder.java b/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/consumerprocurementservicestubsettings/getorder/SyncGetOrder.java similarity index 100% rename from owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/consumerprocurementservicestubsettings/getorder/SyncGetOrder.java rename to java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/consumerprocurementservicestubsettings/getorder/SyncGetOrder.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/LineItemInfoOrBuilder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemInfoOrBuilder.java deleted file mode 100644 index 45abcc45de4a..000000000000 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemInfoOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -// 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.List - getParametersList(); - /** - *
-   * 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 - 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/OrderOuterClass.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/OrderOuterClass.java deleted file mode 100644 index d191a6b238d0..000000000000 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/OrderOuterClass.java +++ /dev/null @@ -1,213 +0,0 @@ -// 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/PlaceOrderMetadataOrBuilder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderMetadataOrBuilder.java deleted file mode 100644 index 5e3ceacea42c..000000000000 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// 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/ProcurementService.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ProcurementService.java deleted file mode 100644 index 0333107437c3..000000000000 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ProcurementService.java +++ /dev/null @@ -1,159 +0,0 @@ -// 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 final class ProcurementService { - private ProcurementService() {} - 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_PlaceOrderRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nGgoogle/cloud/commerce/consumer/procure" + - "ment/v1/procurement_service.proto\022-googl" + - "e.cloud.commerce.consumer.procurement.v1" + - "\032\034google/api/annotations.proto\032\027google/a" + - "pi/client.proto\032\037google/api/field_behavi" + - "or.proto\032\031google/api/resource.proto\0329goo" + - "gle/cloud/commerce/consumer/procurement/" + - "v1/order.proto\032#google/longrunning/opera" + - "tions.proto\"\351\001\n\021PlaceOrderRequest\022C\n\006par" + - "ent\030\001 \001(\tB3\342A\001\002\372A,\n*cloudbilling.googlea" + - "pis.com/BillingAccount\022\032\n\014display_name\030\006" + - " \001(\tB\004\342A\001\002\022Y\n\016line_item_info\030\n \003(\0132;.goo" + - "gle.cloud.commerce.consumer.procurement." + - "v1.LineItemInfoB\004\342A\001\001\022\030\n\nrequest_id\030\007 \001(" + - "\tB\004\342A\001\001\"\024\n\022PlaceOrderMetadata\"%\n\017GetOrde" + - "rRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"`\n\021ListOrde" + - "rsRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_" + - "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter" + - "\030\004 \001(\t\"s\n\022ListOrdersResponse\022D\n\006orders\030\001" + - " \003(\01324.google.cloud.commerce.consumer.pr" + - "ocurement.v1.Order\022\027\n\017next_page_token\030\002 " + - "\001(\t2\314\005\n\032ConsumerProcurementService\022\303\001\n\nP" + - "laceOrder\022@.google.cloud.commerce.consum" + - "er.procurement.v1.PlaceOrderRequest\032\035.go" + - "ogle.longrunning.Operation\"T\312A\033\n\005Order\022\022" + - "PlaceOrderMetadata\202\323\344\223\0020\"+/v1/{parent=bi" + - "llingAccounts/*}/orders:place:\001*\022\266\001\n\010Get" + - "Order\022>.google.cloud.commerce.consumer.p" + - "rocurement.v1.GetOrderRequest\0324.google.c" + - "loud.commerce.consumer.procurement.v1.Or" + - "der\"4\332A\004name\202\323\344\223\002\'\022%/v1/{name=billingAcc" + - "ounts/*/orders/*}\022\311\001\n\nListOrders\022@.googl" + - "e.cloud.commerce.consumer.procurement.v1" + - ".ListOrdersRequest\032A.google.cloud.commer" + - "ce.consumer.procurement.v1.ListOrdersRes" + - "ponse\"6\332A\006parent\202\323\344\223\002\'\022%/v1/{parent=bill" + - "ingAccounts/*}/orders\032c\312A/cloudcommercec" + - "onsumerprocurement.googleapis.com\322A.http" + - "s://www.googleapis.com/auth/cloud-platfo" + - "rmB\237\002\n1com.google.cloud.commerce.consume" + - "r.procurement.v1P\001ZScloud.google.com/go/" + - "commerce/consumer/procurement/apiv1/proc" + - "urementpb;procurementpb\252\002-Google.Cloud.C" + - "ommerce.Consumer.Procurement.V1\312\002-Google" + - "\\Cloud\\Commerce\\Consumer\\Procurement\\V1\352" + - "\0022Google::Cloud::Commerce::Consumer::Pro" + - "curement::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - }); - internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderRequest_descriptor, - new java.lang.String[] { "Parent", "DisplayName", "LineItemInfo", "RequestId", }); - internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1_PlaceOrderMetadata_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1_GetOrderRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1_ListOrdersResponse_descriptor, - new java.lang.String[] { "Orders", "NextPageToken", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.commerce.consumer.procurement.v1.OrderOuterClass.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfoOrBuilder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfoOrBuilder.java deleted file mode 100644 index 96e0e7dce984..000000000000 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfoOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/commerce/consumer/procurement/v1alpha1/order.proto - -package com.google.cloud.commerce.consumer.procurement.v1alpha1; - -public interface LineItemInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.List - getParametersList(); - /** - *
-   * Optional. User-provided parameters.
-   * 
- * - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter getParameters(int index); - /** - *
-   * Optional. User-provided parameters.
-   * 
- * - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getParametersCount(); - /** - *
-   * Optional. User-provided parameters.
-   * 
- * - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.List - getParametersOrBuilderList(); - /** - *
-   * Optional. User-provided parameters.
-   * 
- * - * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder getParametersOrBuilder( - int index); - - /** - *
-   * Output only. Information about the subscription created, if applicable.
-   * 
- * - * .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The subscription. - */ - com.google.cloud.commerce.consumer.procurement.v1alpha1.Subscription getSubscription(); - /** - *
-   * Output only. Information about the subscription created, if applicable.
-   * 
- * - * .google.cloud.commerce.consumer.procurement.v1alpha1.Subscription subscription = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.commerce.consumer.procurement.v1alpha1.SubscriptionOrBuilder getSubscriptionOrBuilder(); -} diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOuterClass.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOuterClass.java deleted file mode 100644 index 9bda401a4cf2..000000000000 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOuterClass.java +++ /dev/null @@ -1,212 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/commerce/consumer/procurement/v1alpha1/order.proto - -package com.google.cloud.commerce.consumer.procurement.v1alpha1; - -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_v1alpha1_Order_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_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 = { - "\n?google/cloud/commerce/consumer/procure" + - "ment/v1alpha1/order.proto\0223google.cloud." + - "commerce.consumer.procurement.v1alpha1\032\037" + - "google/api/field_behavior.proto\032\031google/" + - "api/resource.proto\032\037google/protobuf/time" + - "stamp.proto\"\335\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\022W\n\nline_it" + - "ems\030\006 \003(\0132=.google.cloud.commerce.consum" + - "er.procurement.v1alpha1.LineItemB\004\342A\001\003\022a" + - "\n\024cancelled_line_items\030\007 \003(\0132=.google.cl" + - "oud.commerce.consumer.procurement.v1alph" + - "a1.LineItemB\004\342A\001\003\0225\n\013create_time\030\010 \001(\0132\032" + - ".google.protobuf.TimestampB\004\342A\001\003\0225\n\013upda" + - "te_time\030\t \001(\0132\032.google.protobuf.Timestam" + - "pB\004\342A\001\003\022\014\n\004etag\030\013 \001(\t:l\352Ai\n5cloudcommerc" + - "econsumerprocurement.googleapis.com/Orde" + - "r\0220billingAccounts/{billing_account}/ord" + - "ers/{order}\"\315\002\n\010LineItem\022\032\n\014line_item_id" + - "\030\001 \001(\tB\004\342A\001\003\022_\n\016line_item_info\030\002 \001(\0132A.g" + - "oogle.cloud.commerce.consumer.procuremen" + - "t.v1alpha1.LineItemInfoB\004\342A\001\003\022a\n\016pending" + - "_change\030\003 \001(\0132C.google.cloud.commerce.co" + - "nsumer.procurement.v1alpha1.LineItemChan" + - "geB\004\342A\001\003\022a\n\016change_history\030\004 \003(\0132C.googl" + - "e.cloud.commerce.consumer.procurement.v1" + - "alpha1.LineItemChangeB\004\342A\001\003\"\376\005\n\016LineItem" + - "Change\022\027\n\tchange_id\030\001 \001(\tB\004\342A\001\003\022b\n\013chang" + - "e_type\030\002 \001(\0162G.google.cloud.commerce.con" + - "sumer.procurement.v1alpha1.LineItemChang" + - "eTypeB\004\342A\001\002\022c\n\022old_line_item_info\030\003 \001(\0132" + - "A.google.cloud.commerce.consumer.procure" + - "ment.v1alpha1.LineItemInfoB\004\342A\001\003\022]\n\022new_" + - "line_item_info\030\004 \001(\0132A.google.cloud.comm" + - "erce.consumer.procurement.v1alpha1.LineI" + - "temInfo\022d\n\014change_state\030\005 \001(\0162H.google.c" + - "loud.commerce.consumer.procurement.v1alp" + - "ha1.LineItemChangeStateB\004\342A\001\003\022\032\n\014state_r" + - "eason\030\006 \001(\tB\004\342A\001\003\022z\n\030change_state_reason" + - "_type\030\n \001(\0162R.google.cloud.commerce.cons" + - "umer.procurement.v1alpha1.LineItemChange" + - "StateReasonTypeB\004\342A\001\003\022?\n\025change_effectiv" + - "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" + - "B\004\342A\001\003\0225\n\013create_time\030\010 \001(\0132\032.google.pro" + - "tobuf.TimestampB\004\342A\001\003\0225\n\013update_time\030\t \001" + - "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\"\212\002\n" + - "\014LineItemInfo\022A\n\005offer\030\r \001(\tB2\342A\001\001\372A+\n)c" + - "ommerceoffercatalog.googleapis.com/Offer" + - "\022X\n\nparameters\030\t \003(\0132>.google.cloud.comm" + - "erce.consumer.procurement.v1alpha1.Param" + - "eterB\004\342A\001\001\022]\n\014subscription\030\n \001(\0132A.googl" + - "e.cloud.commerce.consumer.procurement.v1" + - "alpha1.SubscriptionB\004\342A\001\003\"\306\001\n\tParameter\022" + - "\014\n\004name\030\001 \001(\t\022S\n\005value\030\002 \001(\0132D.google.cl" + - "oud.commerce.consumer.procurement.v1alph" + - "a1.Parameter.Value\032V\n\005Value\022\025\n\013int64_val" + - "ue\030\003 \001(\003H\000\022\026\n\014string_value\030\004 \001(\tH\000\022\026\n\014do" + - "uble_value\030\005 \001(\001H\000B\006\n\004kind\"\212\001\n\014Subscript" + - "ion\022.\n\nstart_time\030\003 \001(\0132\032.google.protobu" + - "f.Timestamp\022,\n\010end_time\030\001 \001(\0132\032.google.p" + - "rotobuf.Timestamp\022\034\n\024auto_renewal_enable" + - "d\030\002 \001(\010*\320\001\n\022LineItemChangeType\022%\n!LINE_I" + - "TEM_CHANGE_TYPE_UNSPECIFIED\020\000\022 \n\034LINE_IT" + - "EM_CHANGE_TYPE_CREATE\020\001\022 \n\034LINE_ITEM_CHA" + - "NGE_TYPE_UPDATE\020\002\022 \n\034LINE_ITEM_CHANGE_TY" + - "PE_CANCEL\020\003\022-\n)LINE_ITEM_CHANGE_TYPE_REV" + - "ERT_CANCELLATION\020\004*\247\002\n\023LineItemChangeSta" + - "te\022&\n\"LINE_ITEM_CHANGE_STATE_UNSPECIFIED" + - "\020\000\022+\n\'LINE_ITEM_CHANGE_STATE_PENDING_APP" + - "ROVAL\020\001\022#\n\037LINE_ITEM_CHANGE_STATE_APPROV" + - "ED\020\002\022$\n LINE_ITEM_CHANGE_STATE_COMPLETED" + - "\020\003\022#\n\037LINE_ITEM_CHANGE_STATE_REJECTED\020\004\022" + - "$\n LINE_ITEM_CHANGE_STATE_ABANDONED\020\005\022%\n" + - "!LINE_ITEM_CHANGE_STATE_ACTIVATING\020\006*\363\001\n" + - "\035LineItemChangeStateReasonType\0222\n.LINE_I" + - "TEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED" + - "\020\000\022.\n*LINE_ITEM_CHANGE_STATE_REASON_TYPE" + - "_EXPIRED\020\001\0225\n1LINE_ITEM_CHANGE_STATE_REA" + - "SON_TYPE_USER_CANCELLED\020\002\0227\n3LINE_ITEM_C" + - "HANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED" + - "\020\003B\253\002\n7com.google.cloud.commerce.consume" + - "r.procurement.v1alpha1P\001ZYcloud.google.c" + - "om/go/commerce/consumer/procurement/apiv" + - "1alpha1/procurementpb;procurementpb\352A\221\001\n" + - ")commerceoffercatalog.googleapis.com/Off" + - "er\022)services/{service}/standardOffers/{o" + - "ffer}\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_v1alpha1_Order_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Order_descriptor, - new java.lang.String[] { "Name", "DisplayName", "LineItems", "CancelledLineItems", "CreateTime", "UpdateTime", "Etag", }); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItem_descriptor, - new java.lang.String[] { "LineItemId", "LineItemInfo", "PendingChange", "ChangeHistory", }); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemChange_descriptor, - new java.lang.String[] { "ChangeId", "ChangeType", "OldLineItemInfo", "NewLineItemInfo", "ChangeState", "StateReason", "ChangeStateReasonType", "ChangeEffectiveTime", "CreateTime", "UpdateTime", }); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_LineItemInfo_descriptor, - new java.lang.String[] { "Offer", "Parameters", "Subscription", }); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_descriptor, - new java.lang.String[] { "Name", "Value", }); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_descriptor = - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Parameter_Value_descriptor, - new java.lang.String[] { "Int64Value", "StringValue", "DoubleValue", "Kind", }); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_Subscription_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_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/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadataOrBuilder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadataOrBuilder.java deleted file mode 100644 index da308087701b..000000000000 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.proto - -package com.google.cloud.commerce.consumer.procurement.v1alpha1; - -public interface PlaceOrderMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ProcurementService.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ProcurementService.java deleted file mode 100644 index 8174bca5e1ea..000000000000 --- a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ProcurementService.java +++ /dev/null @@ -1,158 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.proto - -package com.google.cloud.commerce.consumer.procurement.v1alpha1; - -public final class ProcurementService { - private ProcurementService() {} - 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_v1alpha1_PlaceOrderRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nMgoogle/cloud/commerce/consumer/procure" + - "ment/v1alpha1/procurement_service.proto\022" + - "3google.cloud.commerce.consumer.procurem" + - "ent.v1alpha1\032\034google/api/annotations.pro" + - "to\032\027google/api/client.proto\032\037google/api/" + - "field_behavior.proto\032\031google/api/resourc" + - "e.proto\032?google/cloud/commerce/consumer/" + - "procurement/v1alpha1/order.proto\032#google" + - "/longrunning/operations.proto\"\357\001\n\021PlaceO" + - "rderRequest\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\n*cl" + - "oudbilling.googleapis.com/BillingAccount" + - "\022\032\n\014display_name\030\006 \001(\tB\004\342A\001\002\022_\n\016line_ite" + - "m_info\030\n \003(\0132A.google.cloud.commerce.con" + - "sumer.procurement.v1alpha1.LineItemInfoB" + - "\004\342A\001\001\022\030\n\nrequest_id\030\007 \001(\tB\004\342A\001\001\"\024\n\022Place" + - "OrderMetadata\"%\n\017GetOrderRequest\022\022\n\004name" + - "\030\001 \001(\tB\004\342A\001\002\"`\n\021ListOrdersRequest\022\024\n\006par" + - "ent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + - "ge_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"y\n\022ListOr" + - "dersResponse\022J\n\006orders\030\001 \003(\0132:.google.cl" + - "oud.commerce.consumer.procurement.v1alph" + - "a1.Order\022\027\n\017next_page_token\030\002 \001(\t2\374\005\n\032Co" + - "nsumerProcurementService\022\317\001\n\nPlaceOrder\022" + - "F.google.cloud.commerce.consumer.procure" + - "ment.v1alpha1.PlaceOrderRequest\032\035.google" + - ".longrunning.Operation\"Z\312A\033\n\005Order\022\022Plac" + - "eOrderMetadata\202\323\344\223\0026\"1/v1alpha1/{parent=" + - "billingAccounts/*}/orders:place:\001*\022\310\001\n\010G" + - "etOrder\022D.google.cloud.commerce.consumer" + - ".procurement.v1alpha1.GetOrderRequest\032:." + - "google.cloud.commerce.consumer.procureme" + - "nt.v1alpha1.Order\":\332A\004name\202\323\344\223\002-\022+/v1alp" + - "ha1/{name=billingAccounts/*/orders/*}\022\333\001" + - "\n\nListOrders\022F.google.cloud.commerce.con" + - "sumer.procurement.v1alpha1.ListOrdersReq" + - "uest\032G.google.cloud.commerce.consumer.pr" + - "ocurement.v1alpha1.ListOrdersResponse\"<\332" + - "A\006parent\202\323\344\223\002-\022+/v1alpha1/{parent=billin" + - "gAccounts/*}/orders\032c\312A/cloudcommercecon" + - "sumerprocurement.googleapis.com\322A.https:" + - "//www.googleapis.com/auth/cloud-platform" + - "B\226\001\n7com.google.cloud.commerce.consumer." + - "procurement.v1alpha1P\001ZYcloud.google.com" + - "/go/commerce/consumer/procurement/apiv1a" + - "lpha1/procurementpb;procurementpbb\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - }); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderRequest_descriptor, - new java.lang.String[] { "Parent", "DisplayName", "LineItemInfo", "RequestId", }); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_PlaceOrderMetadata_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_GetOrderRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_commerce_consumer_procurement_v1alpha1_ListOrdersResponse_descriptor, - new java.lang.String[] { "Orders", "NextPageToken", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOuterClass.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}