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 deleted file mode 100644 index 1aee64e7c347..000000000000 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfoOrBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * 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/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 deleted file mode 100644 index 634b3972c73e..000000000000 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOuterClass.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * 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/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 deleted file mode 100644 index 20fdb1c3088f..000000000000 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadataOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * 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/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 deleted file mode 100644 index 3276bf0ba183..000000000000 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ProcurementService.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * 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/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClient.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClient.java new file mode 100644 index 000000000000..df9fb68c5cd3 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClient.java @@ -0,0 +1,663 @@ +/* + * 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 com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.commerce.consumer.procurement.v1.stub.ConsumerProcurementServiceStub; +import com.google.cloud.commerce.consumer.procurement.v1.stub.ConsumerProcurementServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: ConsumerProcurementService allows customers to make purchases of products + * served by the Cloud Commerce platform. + * + *

When purchases are made, the + * [ConsumerProcurementService][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService] + * programs the appropriate backends, including both Google's own infrastructure, as well as + * third-party systems, and to enable billing setup for charging for the procured item. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
+ *     ConsumerProcurementServiceClient.create()) {
+ *   String name = "name3373707";
+ *   Order response = consumerProcurementServiceClient.getOrder(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the ConsumerProcurementServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * ConsumerProcurementServiceSettings to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConsumerProcurementServiceSettings consumerProcurementServiceSettings =
+ *     ConsumerProcurementServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ConsumerProcurementServiceClient consumerProcurementServiceClient =
+ *     ConsumerProcurementServiceClient.create(consumerProcurementServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConsumerProcurementServiceSettings consumerProcurementServiceSettings =
+ *     ConsumerProcurementServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ConsumerProcurementServiceClient consumerProcurementServiceClient =
+ *     ConsumerProcurementServiceClient.create(consumerProcurementServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConsumerProcurementServiceSettings consumerProcurementServiceSettings =
+ *     ConsumerProcurementServiceSettings.newHttpJsonBuilder().build();
+ * ConsumerProcurementServiceClient consumerProcurementServiceClient =
+ *     ConsumerProcurementServiceClient.create(consumerProcurementServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ConsumerProcurementServiceClient implements BackgroundResource { + private final ConsumerProcurementServiceSettings settings; + private final ConsumerProcurementServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of ConsumerProcurementServiceClient with default settings. */ + public static final ConsumerProcurementServiceClient create() throws IOException { + return create(ConsumerProcurementServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ConsumerProcurementServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final ConsumerProcurementServiceClient create( + ConsumerProcurementServiceSettings settings) throws IOException { + return new ConsumerProcurementServiceClient(settings); + } + + /** + * Constructs an instance of ConsumerProcurementServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(ConsumerProcurementServiceSettings). + */ + public static final ConsumerProcurementServiceClient create(ConsumerProcurementServiceStub stub) { + return new ConsumerProcurementServiceClient(stub); + } + + /** + * Constructs an instance of ConsumerProcurementServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected ConsumerProcurementServiceClient(ConsumerProcurementServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((ConsumerProcurementServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected ConsumerProcurementServiceClient(ConsumerProcurementServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final ConsumerProcurementServiceSettings getSettings() { + return settings; + } + + public ConsumerProcurementServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.Order]. + * + *

This API only supports GCP spend-based committed use discounts specified by GCP + * documentation. + * + *

The returned long-running operation is in-progress until the backend completes the creation + * of the resource. Once completed, the order is in + * [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1.OrderState.ORDER_STATE_ACTIVE]. + * In case of failure, the order resource will be removed. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
+   *     ConsumerProcurementServiceClient.create()) {
+   *   PlaceOrderRequest request =
+   *       PlaceOrderRequest.newBuilder()
+   *           .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+   *           .setDisplayName("displayName1714148973")
+   *           .addAllLineItemInfo(new ArrayList())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Order response = consumerProcurementServiceClient.placeOrderAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture placeOrderAsync( + PlaceOrderRequest request) { + return placeOrderOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.Order]. + * + *

This API only supports GCP spend-based committed use discounts specified by GCP + * documentation. + * + *

The returned long-running operation is in-progress until the backend completes the creation + * of the resource. Once completed, the order is in + * [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1.OrderState.ORDER_STATE_ACTIVE]. + * In case of failure, the order resource will be removed. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
+   *     ConsumerProcurementServiceClient.create()) {
+   *   PlaceOrderRequest request =
+   *       PlaceOrderRequest.newBuilder()
+   *           .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+   *           .setDisplayName("displayName1714148973")
+   *           .addAllLineItemInfo(new ArrayList())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       consumerProcurementServiceClient.placeOrderOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Order response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + placeOrderOperationCallable() { + return stub.placeOrderOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.Order]. + * + *

This API only supports GCP spend-based committed use discounts specified by GCP + * documentation. + * + *

The returned long-running operation is in-progress until the backend completes the creation + * of the resource. Once completed, the order is in + * [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1.OrderState.ORDER_STATE_ACTIVE]. + * In case of failure, the order resource will be removed. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
+   *     ConsumerProcurementServiceClient.create()) {
+   *   PlaceOrderRequest request =
+   *       PlaceOrderRequest.newBuilder()
+   *           .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+   *           .setDisplayName("displayName1714148973")
+   *           .addAllLineItemInfo(new ArrayList())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       consumerProcurementServiceClient.placeOrderCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable placeOrderCallable() { + return stub.placeOrderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1.Order] resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
+   *     ConsumerProcurementServiceClient.create()) {
+   *   String name = "name3373707";
+   *   Order response = consumerProcurementServiceClient.getOrder(name);
+   * }
+   * }
+ * + * @param name Required. The name of the order to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Order getOrder(String name) { + GetOrderRequest request = GetOrderRequest.newBuilder().setName(name).build(); + return getOrder(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1.Order] resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
+   *     ConsumerProcurementServiceClient.create()) {
+   *   GetOrderRequest request = GetOrderRequest.newBuilder().setName("name3373707").build();
+   *   Order response = consumerProcurementServiceClient.getOrder(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Order getOrder(GetOrderRequest request) { + return getOrderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1.Order] resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
+   *     ConsumerProcurementServiceClient.create()) {
+   *   GetOrderRequest request = GetOrderRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       consumerProcurementServiceClient.getOrderCallable().futureCall(request);
+   *   // Do something.
+   *   Order response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getOrderCallable() { + return stub.getOrderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists [Order][google.cloud.commerce.consumer.procurement.v1.Order] resources that the user has + * access to, within the scope of the parent resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
+   *     ConsumerProcurementServiceClient.create()) {
+   *   String parent = "parent-995424086";
+   *   for (Order element : consumerProcurementServiceClient.listOrders(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource to query for orders. This field has the form + * `billingAccounts/{billing-account-id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOrdersPagedResponse listOrders(String parent) { + ListOrdersRequest request = ListOrdersRequest.newBuilder().setParent(parent).build(); + return listOrders(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists [Order][google.cloud.commerce.consumer.procurement.v1.Order] resources that the user has + * access to, within the scope of the parent resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
+   *     ConsumerProcurementServiceClient.create()) {
+   *   ListOrdersRequest request =
+   *       ListOrdersRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (Order element : consumerProcurementServiceClient.listOrders(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOrdersPagedResponse listOrders(ListOrdersRequest request) { + return listOrdersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists [Order][google.cloud.commerce.consumer.procurement.v1.Order] resources that the user has + * access to, within the scope of the parent resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
+   *     ConsumerProcurementServiceClient.create()) {
+   *   ListOrdersRequest request =
+   *       ListOrdersRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       consumerProcurementServiceClient.listOrdersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Order element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listOrdersPagedCallable() { + return stub.listOrdersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists [Order][google.cloud.commerce.consumer.procurement.v1.Order] resources that the user has + * access to, within the scope of the parent resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
+   *     ConsumerProcurementServiceClient.create()) {
+   *   ListOrdersRequest request =
+   *       ListOrdersRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListOrdersResponse response =
+   *         consumerProcurementServiceClient.listOrdersCallable().call(request);
+   *     for (Order element : response.getOrdersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listOrdersCallable() { + return stub.listOrdersCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListOrdersPagedResponse + extends AbstractPagedListResponse< + ListOrdersRequest, + ListOrdersResponse, + Order, + ListOrdersPage, + ListOrdersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListOrdersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListOrdersPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListOrdersPagedResponse(ListOrdersPage page) { + super(page, ListOrdersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListOrdersPage + extends AbstractPage { + + private ListOrdersPage( + PageContext context, + ListOrdersResponse response) { + super(context, response); + } + + private static ListOrdersPage createEmptyPage() { + return new ListOrdersPage(null, null); + } + + @Override + protected ListOrdersPage createPage( + PageContext context, + ListOrdersResponse response) { + return new ListOrdersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListOrdersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListOrdersRequest, + ListOrdersResponse, + Order, + ListOrdersPage, + ListOrdersFixedSizeCollection> { + + private ListOrdersFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListOrdersFixedSizeCollection createEmptyCollection() { + return new ListOrdersFixedSizeCollection(null, 0); + } + + @Override + protected ListOrdersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListOrdersFixedSizeCollection(pages, collectionSize); + } + } +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceSettings.java new file mode 100644 index 000000000000..4c4abcaa2fa3 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceSettings.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. + */ + +package com.google.cloud.commerce.consumer.procurement.v1; + +import static com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient.ListOrdersPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +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; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ConsumerProcurementServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (cloudcommerceconsumerprocurement.googleapis.com) and default + * port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getOrder to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConsumerProcurementServiceSettings.Builder consumerProcurementServiceSettingsBuilder =
+ *     ConsumerProcurementServiceSettings.newBuilder();
+ * consumerProcurementServiceSettingsBuilder
+ *     .getOrderSettings()
+ *     .setRetrySettings(
+ *         consumerProcurementServiceSettingsBuilder
+ *             .getOrderSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ConsumerProcurementServiceSettings consumerProcurementServiceSettings =
+ *     consumerProcurementServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class ConsumerProcurementServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to placeOrder. */ + public UnaryCallSettings placeOrderSettings() { + return ((ConsumerProcurementServiceStubSettings) getStubSettings()).placeOrderSettings(); + } + + /** Returns the object with the settings used for calls to placeOrder. */ + public OperationCallSettings + placeOrderOperationSettings() { + return ((ConsumerProcurementServiceStubSettings) getStubSettings()) + .placeOrderOperationSettings(); + } + + /** Returns the object with the settings used for calls to getOrder. */ + public UnaryCallSettings getOrderSettings() { + return ((ConsumerProcurementServiceStubSettings) getStubSettings()).getOrderSettings(); + } + + /** Returns the object with the settings used for calls to listOrders. */ + public PagedCallSettings + listOrdersSettings() { + return ((ConsumerProcurementServiceStubSettings) getStubSettings()).listOrdersSettings(); + } + + public static final ConsumerProcurementServiceSettings create( + ConsumerProcurementServiceStubSettings stub) throws IOException { + return new ConsumerProcurementServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ConsumerProcurementServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ConsumerProcurementServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ConsumerProcurementServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ConsumerProcurementServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ConsumerProcurementServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ConsumerProcurementServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ConsumerProcurementServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ConsumerProcurementServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ConsumerProcurementServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ConsumerProcurementServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ConsumerProcurementServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ConsumerProcurementServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ConsumerProcurementServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ConsumerProcurementServiceStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(ConsumerProcurementServiceStubSettings.newHttpJsonBuilder()); + } + + public ConsumerProcurementServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ConsumerProcurementServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to placeOrder. */ + public UnaryCallSettings.Builder placeOrderSettings() { + return getStubSettingsBuilder().placeOrderSettings(); + } + + /** Returns the builder for the settings used for calls to placeOrder. */ + public OperationCallSettings.Builder + placeOrderOperationSettings() { + return getStubSettingsBuilder().placeOrderOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getOrder. */ + public UnaryCallSettings.Builder getOrderSettings() { + return getStubSettingsBuilder().getOrderSettings(); + } + + /** Returns the builder for the settings used for calls to listOrders. */ + public PagedCallSettings.Builder + listOrdersSettings() { + return getStubSettingsBuilder().listOrdersSettings(); + } + + @Override + public ConsumerProcurementServiceSettings build() throws IOException { + return new ConsumerProcurementServiceSettings(this); + } + } +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/gapic_metadata.json new file mode 100644 index 000000000000..b2bf740384d8 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/gapic_metadata.json @@ -0,0 +1,27 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.commerce.consumer.procurement.v1", + "libraryPackage": "com.google.cloud.commerce.consumer.procurement.v1", + "services": { + "ConsumerProcurementService": { + "clients": { + "grpc": { + "libraryClient": "ConsumerProcurementServiceClient", + "rpcs": { + "GetOrder": { + "methods": ["getOrder", "getOrder", "getOrderCallable"] + }, + "ListOrders": { + "methods": ["listOrders", "listOrders", "listOrdersPagedCallable", "listOrdersCallable"] + }, + "PlaceOrder": { + "methods": ["placeOrderAsync", "placeOrderOperationCallable", "placeOrderCallable"] + } + } + } + } + } + } +} \ No newline at end of file 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/package-info.java new file mode 100644 index 000000000000..d857c5f74b78 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/package-info.java @@ -0,0 +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. + */ + +/** + * A client to Cloud Commerce Consumer Procurement API + * + *

The interfaces provided are listed below, along with usage samples. + * + *

======================= ConsumerProcurementServiceClient ======================= + * + *

Service Description: ConsumerProcurementService allows customers to make purchases of products + * served by the Cloud Commerce platform. + * + *

When purchases are made, the + * [ConsumerProcurementService][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService] + * programs the appropriate backends, including both Google's own infrastructure, as well as + * third-party systems, and to enable billing setup for charging for the procured item. + * + *

Sample for ConsumerProcurementServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
+ *     ConsumerProcurementServiceClient.create()) {
+ *   String name = "name3373707";
+ *   Order response = consumerProcurementServiceClient.getOrder(name);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.commerce.consumer.procurement.v1; + +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/ConsumerProcurementServiceStub.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStub.java new file mode 100644 index 000000000000..698abbafe6ac --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStub.java @@ -0,0 +1,74 @@ +/* + * 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.stub; + +import static com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient.ListOrdersPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest; +import com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest; +import com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse; +import com.google.cloud.commerce.consumer.procurement.v1.Order; +import com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata; +import com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ConsumerProcurementService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ConsumerProcurementServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable + placeOrderOperationCallable() { + throw new UnsupportedOperationException("Not implemented: placeOrderOperationCallable()"); + } + + public UnaryCallable placeOrderCallable() { + throw new UnsupportedOperationException("Not implemented: placeOrderCallable()"); + } + + public UnaryCallable getOrderCallable() { + throw new UnsupportedOperationException("Not implemented: getOrderCallable()"); + } + + public UnaryCallable listOrdersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listOrdersPagedCallable()"); + } + + public UnaryCallable listOrdersCallable() { + throw new UnsupportedOperationException("Not implemented: listOrdersCallable()"); + } + + @Override + public abstract void close(); +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStubSettings.java new file mode 100644 index 000000000000..6f43e8c781cb --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStubSettings.java @@ -0,0 +1,501 @@ +/* + * 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.stub; + +import static com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient.ListOrdersPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest; +import com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest; +import com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse; +import com.google.cloud.commerce.consumer.procurement.v1.Order; +import com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata; +import com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ConsumerProcurementServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (cloudcommerceconsumerprocurement.googleapis.com) and default + * port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getOrder to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConsumerProcurementServiceStubSettings.Builder consumerProcurementServiceSettingsBuilder =
+ *     ConsumerProcurementServiceStubSettings.newBuilder();
+ * consumerProcurementServiceSettingsBuilder
+ *     .getOrderSettings()
+ *     .setRetrySettings(
+ *         consumerProcurementServiceSettingsBuilder
+ *             .getOrderSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ConsumerProcurementServiceStubSettings consumerProcurementServiceSettings =
+ *     consumerProcurementServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class ConsumerProcurementServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings placeOrderSettings; + private final OperationCallSettings + placeOrderOperationSettings; + private final UnaryCallSettings getOrderSettings; + private final PagedCallSettings + listOrdersSettings; + + private static final PagedListDescriptor + LIST_ORDERS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListOrdersRequest injectToken(ListOrdersRequest payload, String token) { + return ListOrdersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListOrdersRequest injectPageSize(ListOrdersRequest payload, int pageSize) { + return ListOrdersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListOrdersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListOrdersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListOrdersResponse payload) { + return payload.getOrdersList() == null + ? ImmutableList.of() + : payload.getOrdersList(); + } + }; + + private static final PagedListResponseFactory< + ListOrdersRequest, ListOrdersResponse, ListOrdersPagedResponse> + LIST_ORDERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListOrdersRequest, ListOrdersResponse, ListOrdersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListOrdersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_ORDERS_PAGE_STR_DESC, request, context); + return ListOrdersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to placeOrder. */ + public UnaryCallSettings placeOrderSettings() { + return placeOrderSettings; + } + + /** Returns the object with the settings used for calls to placeOrder. */ + public OperationCallSettings + placeOrderOperationSettings() { + return placeOrderOperationSettings; + } + + /** Returns the object with the settings used for calls to getOrder. */ + public UnaryCallSettings getOrderSettings() { + return getOrderSettings; + } + + /** Returns the object with the settings used for calls to listOrders. */ + public PagedCallSettings + listOrdersSettings() { + return listOrdersSettings; + } + + public ConsumerProcurementServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcConsumerProcurementServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonConsumerProcurementServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "cloudcommerceconsumerprocurement.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "cloudcommerceconsumerprocurement.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ConsumerProcurementServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ConsumerProcurementServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ConsumerProcurementServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ConsumerProcurementServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + placeOrderSettings = settingsBuilder.placeOrderSettings().build(); + placeOrderOperationSettings = settingsBuilder.placeOrderOperationSettings().build(); + getOrderSettings = settingsBuilder.getOrderSettings().build(); + listOrdersSettings = settingsBuilder.listOrdersSettings().build(); + } + + /** Builder for ConsumerProcurementServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder placeOrderSettings; + private final OperationCallSettings.Builder + placeOrderOperationSettings; + private final UnaryCallSettings.Builder getOrderSettings; + private final PagedCallSettings.Builder< + ListOrdersRequest, ListOrdersResponse, ListOrdersPagedResponse> + listOrdersSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + placeOrderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + placeOrderOperationSettings = OperationCallSettings.newBuilder(); + getOrderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listOrdersSettings = PagedCallSettings.newBuilder(LIST_ORDERS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + placeOrderSettings, getOrderSettings, listOrdersSettings); + initDefaults(this); + } + + protected Builder(ConsumerProcurementServiceStubSettings settings) { + super(settings); + + placeOrderSettings = settings.placeOrderSettings.toBuilder(); + placeOrderOperationSettings = settings.placeOrderOperationSettings.toBuilder(); + getOrderSettings = settings.getOrderSettings.toBuilder(); + listOrdersSettings = settings.listOrdersSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + placeOrderSettings, getOrderSettings, listOrdersSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .placeOrderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getOrderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listOrdersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .placeOrderOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Order.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(PlaceOrderMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to placeOrder. */ + public UnaryCallSettings.Builder placeOrderSettings() { + return placeOrderSettings; + } + + /** Returns the builder for the settings used for calls to placeOrder. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + placeOrderOperationSettings() { + return placeOrderOperationSettings; + } + + /** Returns the builder for the settings used for calls to getOrder. */ + public UnaryCallSettings.Builder getOrderSettings() { + return getOrderSettings; + } + + /** Returns the builder for the settings used for calls to listOrders. */ + public PagedCallSettings.Builder + listOrdersSettings() { + return listOrdersSettings; + } + + @Override + public ConsumerProcurementServiceStubSettings build() throws IOException { + return new ConsumerProcurementServiceStubSettings(this); + } + } +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/GrpcConsumerProcurementServiceCallableFactory.java new file mode 100644 index 000000000000..7bf8d051a27c --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/GrpcConsumerProcurementServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * 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.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the ConsumerProcurementService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcConsumerProcurementServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/GrpcConsumerProcurementServiceStub.java new file mode 100644 index 000000000000..910007d701f4 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/GrpcConsumerProcurementServiceStub.java @@ -0,0 +1,253 @@ +/* + * 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.stub; + +import static com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient.ListOrdersPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest; +import com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest; +import com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse; +import com.google.cloud.commerce.consumer.procurement.v1.Order; +import com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata; +import com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the ConsumerProcurementService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcConsumerProcurementServiceStub extends ConsumerProcurementServiceStub { + private static final MethodDescriptor placeOrderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService/PlaceOrder") + .setRequestMarshaller(ProtoUtils.marshaller(PlaceOrderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getOrderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService/GetOrder") + .setRequestMarshaller(ProtoUtils.marshaller(GetOrderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Order.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listOrdersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService/ListOrders") + .setRequestMarshaller(ProtoUtils.marshaller(ListOrdersRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListOrdersResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable placeOrderCallable; + private final OperationCallable + placeOrderOperationCallable; + private final UnaryCallable getOrderCallable; + private final UnaryCallable listOrdersCallable; + private final UnaryCallable listOrdersPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcConsumerProcurementServiceStub create( + ConsumerProcurementServiceStubSettings settings) throws IOException { + return new GrpcConsumerProcurementServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcConsumerProcurementServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcConsumerProcurementServiceStub( + ConsumerProcurementServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcConsumerProcurementServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcConsumerProcurementServiceStub( + ConsumerProcurementServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcConsumerProcurementServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcConsumerProcurementServiceStub( + ConsumerProcurementServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcConsumerProcurementServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcConsumerProcurementServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcConsumerProcurementServiceStub( + ConsumerProcurementServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings placeOrderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(placeOrderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getOrderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getOrderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listOrdersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listOrdersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.placeOrderCallable = + callableFactory.createUnaryCallable( + placeOrderTransportSettings, settings.placeOrderSettings(), clientContext); + this.placeOrderOperationCallable = + callableFactory.createOperationCallable( + placeOrderTransportSettings, + settings.placeOrderOperationSettings(), + clientContext, + operationsStub); + this.getOrderCallable = + callableFactory.createUnaryCallable( + getOrderTransportSettings, settings.getOrderSettings(), clientContext); + this.listOrdersCallable = + callableFactory.createUnaryCallable( + listOrdersTransportSettings, settings.listOrdersSettings(), clientContext); + this.listOrdersPagedCallable = + callableFactory.createPagedCallable( + listOrdersTransportSettings, settings.listOrdersSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable placeOrderCallable() { + return placeOrderCallable; + } + + @Override + public OperationCallable + placeOrderOperationCallable() { + return placeOrderOperationCallable; + } + + @Override + public UnaryCallable getOrderCallable() { + return getOrderCallable; + } + + @Override + public UnaryCallable listOrdersCallable() { + return listOrdersCallable; + } + + @Override + public UnaryCallable listOrdersPagedCallable() { + return listOrdersPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/HttpJsonConsumerProcurementServiceCallableFactory.java new file mode 100644 index 000000000000..7b4b19173c40 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/HttpJsonConsumerProcurementServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ConsumerProcurementService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonConsumerProcurementServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/HttpJsonConsumerProcurementServiceStub.java new file mode 100644 index 000000000000..fc3e08151b0b --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/HttpJsonConsumerProcurementServiceStub.java @@ -0,0 +1,380 @@ +/* + * 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.stub; + +import static com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient.ListOrdersPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +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; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest; +import com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest; +import com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse; +import com.google.cloud.commerce.consumer.procurement.v1.Order; +import com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata; +import com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ConsumerProcurementService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonConsumerProcurementServiceStub extends ConsumerProcurementServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Order.getDescriptor()) + .add(PlaceOrderMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + placeOrderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService/PlaceOrder") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=billingAccounts/*}/orders:place", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (PlaceOrderRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor getOrderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService/GetOrder") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=billingAccounts/*/orders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Order.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listOrdersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService/ListOrders") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=billingAccounts/*}/orders", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListOrdersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable placeOrderCallable; + private final OperationCallable + placeOrderOperationCallable; + private final UnaryCallable getOrderCallable; + private final UnaryCallable listOrdersCallable; + private final UnaryCallable listOrdersPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonConsumerProcurementServiceStub create( + ConsumerProcurementServiceStubSettings settings) throws IOException { + return new HttpJsonConsumerProcurementServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonConsumerProcurementServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonConsumerProcurementServiceStub( + ConsumerProcurementServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonConsumerProcurementServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonConsumerProcurementServiceStub( + ConsumerProcurementServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonConsumerProcurementServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonConsumerProcurementServiceStub( + ConsumerProcurementServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonConsumerProcurementServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonConsumerProcurementServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonConsumerProcurementServiceStub( + ConsumerProcurementServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=billingAccounts/*/orders/*/operations/*}") + .build()) + .build()); + + HttpJsonCallSettings placeOrderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(placeOrderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getOrderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getOrderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listOrdersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listOrdersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.placeOrderCallable = + callableFactory.createUnaryCallable( + placeOrderTransportSettings, settings.placeOrderSettings(), clientContext); + this.placeOrderOperationCallable = + callableFactory.createOperationCallable( + placeOrderTransportSettings, + settings.placeOrderOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getOrderCallable = + callableFactory.createUnaryCallable( + getOrderTransportSettings, settings.getOrderSettings(), clientContext); + this.listOrdersCallable = + callableFactory.createUnaryCallable( + listOrdersTransportSettings, settings.listOrdersSettings(), clientContext); + this.listOrdersPagedCallable = + callableFactory.createPagedCallable( + listOrdersTransportSettings, settings.listOrdersSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(placeOrderMethodDescriptor); + methodDescriptors.add(getOrderMethodDescriptor); + methodDescriptors.add(listOrdersMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable placeOrderCallable() { + return placeOrderCallable; + } + + @Override + public OperationCallable + placeOrderOperationCallable() { + return placeOrderOperationCallable; + } + + @Override + public UnaryCallable getOrderCallable() { + return getOrderCallable; + } + + @Override + public UnaryCallable listOrdersCallable() { + return listOrdersCallable; + } + + @Override + public UnaryCallable listOrdersPagedCallable() { + return listOrdersPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} 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/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 new file mode 100644 index 000000000000..65f3f96203ac --- /dev/null +++ b/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 @@ -0,0 +1,1451 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.LineItem", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.LineItem$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.LineItemChange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.LineItemChange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.Order", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.Order$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.Parameter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.Parameter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.Parameter$Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.Parameter$Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.Subscription", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.commerce.consumer.procurement.v1.Subscription$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..43b06bd08668 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClientHttpJsonTest.java @@ -0,0 +1,249 @@ +/* + * 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 com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient.ListOrdersPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.commerce.consumer.procurement.v1.stub.HttpJsonConsumerProcurementServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ConsumerProcurementServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ConsumerProcurementServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonConsumerProcurementServiceStub.getMethodDescriptors(), + ConsumerProcurementServiceSettings.getDefaultEndpoint()); + ConsumerProcurementServiceSettings settings = + ConsumerProcurementServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ConsumerProcurementServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ConsumerProcurementServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void placeOrderTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName("name3373707") + .setDisplayName("displayName1714148973") + .addAllLineItems(new ArrayList()) + .addAllCancelledLineItems(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("placeOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PlaceOrderRequest request = + PlaceOrderRequest.newBuilder() + .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + .setDisplayName("displayName1714148973") + .addAllLineItemInfo(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + + Order actualResponse = client.placeOrderAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void placeOrderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PlaceOrderRequest request = + PlaceOrderRequest.newBuilder() + .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + .setDisplayName("displayName1714148973") + .addAllLineItemInfo(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + client.placeOrderAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getOrderTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName("name3373707") + .setDisplayName("displayName1714148973") + .addAllLineItems(new ArrayList()) + .addAllCancelledLineItems(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = "billingAccounts/billingAccount-9614/orders/order-9614"; + + Order actualResponse = client.getOrder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getOrderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "billingAccounts/billingAccount-9614/orders/order-9614"; + client.getOrder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOrdersTest() throws Exception { + Order responsesElement = Order.newBuilder().build(); + ListOrdersResponse expectedResponse = + ListOrdersResponse.newBuilder() + .setNextPageToken("") + .addAllOrders(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "billingAccounts/billingAccount-7950"; + + ListOrdersPagedResponse pagedListResponse = client.listOrders(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrdersList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listOrdersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "billingAccounts/billingAccount-7950"; + client.listOrders(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClientTest.java new file mode 100644 index 000000000000..0f85f9b0c4b1 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClientTest.java @@ -0,0 +1,242 @@ +/* + * 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 com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient.ListOrdersPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ConsumerProcurementServiceClientTest { + private static MockConsumerProcurementService mockConsumerProcurementService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ConsumerProcurementServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockConsumerProcurementService = new MockConsumerProcurementService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockConsumerProcurementService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ConsumerProcurementServiceSettings settings = + ConsumerProcurementServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ConsumerProcurementServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void placeOrderTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName("name3373707") + .setDisplayName("displayName1714148973") + .addAllLineItems(new ArrayList()) + .addAllCancelledLineItems(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("placeOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockConsumerProcurementService.addResponse(resultOperation); + + PlaceOrderRequest request = + PlaceOrderRequest.newBuilder() + .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + .setDisplayName("displayName1714148973") + .addAllLineItemInfo(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + + Order actualResponse = client.placeOrderAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConsumerProcurementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PlaceOrderRequest actualRequest = ((PlaceOrderRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getDisplayName(), actualRequest.getDisplayName()); + Assert.assertEquals(request.getLineItemInfoList(), actualRequest.getLineItemInfoList()); + Assert.assertEquals(request.getRequestId(), actualRequest.getRequestId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void placeOrderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConsumerProcurementService.addException(exception); + + try { + PlaceOrderRequest request = + PlaceOrderRequest.newBuilder() + .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + .setDisplayName("displayName1714148973") + .addAllLineItemInfo(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + client.placeOrderAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getOrderTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName("name3373707") + .setDisplayName("displayName1714148973") + .addAllLineItems(new ArrayList()) + .addAllCancelledLineItems(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockConsumerProcurementService.addResponse(expectedResponse); + + String name = "name3373707"; + + Order actualResponse = client.getOrder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConsumerProcurementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOrderRequest actualRequest = ((GetOrderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOrderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConsumerProcurementService.addException(exception); + + try { + String name = "name3373707"; + client.getOrder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOrdersTest() throws Exception { + Order responsesElement = Order.newBuilder().build(); + ListOrdersResponse expectedResponse = + ListOrdersResponse.newBuilder() + .setNextPageToken("") + .addAllOrders(Arrays.asList(responsesElement)) + .build(); + mockConsumerProcurementService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListOrdersPagedResponse pagedListResponse = client.listOrders(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrdersList().get(0), resources.get(0)); + + List actualRequests = mockConsumerProcurementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOrdersRequest actualRequest = ((ListOrdersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOrdersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConsumerProcurementService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listOrders(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/MockConsumerProcurementService.java new file mode 100644 index 000000000000..2e4ae0f2b74d --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/MockConsumerProcurementService.java @@ -0,0 +1,59 @@ +/* + * 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 com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockConsumerProcurementService implements MockGrpcService { + private final MockConsumerProcurementServiceImpl serviceImpl; + + public MockConsumerProcurementService() { + serviceImpl = new MockConsumerProcurementServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/MockConsumerProcurementServiceImpl.java new file mode 100644 index 000000000000..f96a6c1fa7db --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1/MockConsumerProcurementServiceImpl.java @@ -0,0 +1,122 @@ +/* + * 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 com.google.api.core.BetaApi; +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceGrpc.ConsumerProcurementServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockConsumerProcurementServiceImpl extends ConsumerProcurementServiceImplBase { + private List requests; + private Queue responses; + + public MockConsumerProcurementServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void placeOrder(PlaceOrderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method PlaceOrder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getOrder(GetOrderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Order) { + requests.add(request); + responseObserver.onNext(((Order) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetOrder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Order.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listOrders( + ListOrdersRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListOrdersResponse) { + requests.add(request); + responseObserver.onNext(((ListOrdersResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListOrders, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListOrdersResponse.class.getName(), + Exception.class.getName()))); + } + } +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceGrpc.java new file mode 100644 index 000000000000..dbc3baf29ac1 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceGrpc.java @@ -0,0 +1,571 @@ +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.
+ * When purchases are made, the
+ * [ConsumerProcurementService][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService]
+ * programs the appropriate backends, including both Google's own
+ * infrastructure, as well as third-party systems, and to enable billing setup
+ * for charging for the procured item.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/commerce/consumer/procurement/v1/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.v1.ConsumerProcurementService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor 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; + 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(); + } + } + } + return getPlaceOrderMethod; + } + + private static volatile io.grpc.MethodDescriptor 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; + 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(); + } + } + } + return getGetOrderMethod; + } + + private static volatile io.grpc.MethodDescriptor 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; + 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(); + } + } + } + return getListOrdersMethod; + } + + /** + * 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); + } + }; + 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) { + 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); + } + }; + 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) { + 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); + } + }; + return ConsumerProcurementServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * ConsumerProcurementService allows customers to make purchases of products
+   * served by the Cloud Commerce platform.
+   * When purchases are made, the
+   * [ConsumerProcurementService][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService]
+   * programs the appropriate backends, including both Google's own
+   * infrastructure, as well as third-party systems, and to enable billing setup
+   * for charging for the procured item.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.Order].
+     * This API only supports GCP spend-based committed use
+     * discounts specified by GCP documentation.
+     * The returned long-running operation is in-progress until the backend
+     * completes the creation of the resource. Once completed, the order is
+     * in
+     * [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1.OrderState.ORDER_STATE_ACTIVE].
+     * In case of failure, the order resource will be removed.
+     * 
+ */ + 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) { + 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) { + 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.
+   * When purchases are made, the
+   * [ConsumerProcurementService][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService]
+   * programs the appropriate backends, including both Google's own
+   * infrastructure, as well as third-party systems, and to enable billing setup
+   * for charging for the procured item.
+   * 
+ */ + public static abstract class ConsumerProcurementServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @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.
+   * When purchases are made, the
+   * [ConsumerProcurementService][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService]
+   * programs the appropriate backends, including both Google's own
+   * infrastructure, as well as third-party systems, and to enable billing setup
+   * for charging for the procured item.
+   * 
+ */ + public static final class ConsumerProcurementServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ConsumerProcurementServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConsumerProcurementServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConsumerProcurementServiceStub(channel, callOptions); + } + + /** + *
+     * Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.Order].
+     * This API only supports GCP spend-based committed use
+     * discounts specified by GCP documentation.
+     * The returned long-running operation is in-progress until the backend
+     * completes the creation of the resource. Once completed, the order is
+     * in
+     * [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1.OrderState.ORDER_STATE_ACTIVE].
+     * In case of failure, the order resource will be removed.
+     * 
+ */ + 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) { + 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOrdersMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * 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.
+   * When purchases are made, the
+   * [ConsumerProcurementService][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService]
+   * programs the appropriate backends, including both Google's own
+   * infrastructure, as well as third-party systems, and to enable billing setup
+   * for charging for the procured item.
+   * 
+ */ + public static final class ConsumerProcurementServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ConsumerProcurementServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConsumerProcurementServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConsumerProcurementServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.Order].
+     * This API only supports GCP spend-based committed use
+     * discounts specified by GCP documentation.
+     * The returned long-running operation is in-progress until the backend
+     * completes the creation of the resource. Once completed, the order is
+     * in
+     * [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1.OrderState.ORDER_STATE_ACTIVE].
+     * 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) { + 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) { + 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) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOrdersMethod(), getCallOptions(), request); + } + } + + /** + * 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.
+   * When purchases are made, the
+   * [ConsumerProcurementService][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService]
+   * programs the appropriate backends, including both Google's own
+   * infrastructure, as well as third-party systems, and to enable billing setup
+   * for charging for the procured item.
+   * 
+ */ + public static final class ConsumerProcurementServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConsumerProcurementServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConsumerProcurementServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConsumerProcurementServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.Order].
+     * This API only supports GCP spend-based committed use
+     * discounts specified by GCP documentation.
+     * The returned long-running operation is in-progress until the backend
+     * completes the creation of the resource. Once completed, the order is
+     * in
+     * [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1.OrderState.ORDER_STATE_ACTIVE].
+     * 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) { + 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) { + 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) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOrdersMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_PLACE_ORDER = 0; + private static final int METHODID_GET_ORDER = 1; + private static final int METHODID_LIST_ORDERS = 2; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_PLACE_ORDER: + 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); + break; + case METHODID_LIST_ORDERS: + serviceImpl.listOrders((com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + 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))) + .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))) + .build(); + } + + private static abstract 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.v1.ProcurementService.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConsumerProcurementService"); + } + } + + private static final class ConsumerProcurementServiceFileDescriptorSupplier + extends ConsumerProcurementServiceBaseDescriptorSupplier { + ConsumerProcurementServiceFileDescriptorSupplier() {} + } + + private static final class ConsumerProcurementServiceMethodDescriptorSupplier + extends ConsumerProcurementServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ConsumerProcurementServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (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(); + } + } + } + return result; + } +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/BillingAccountName.java new file mode 100644 index 000000000000..900c7d09c61d --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/BillingAccountName.java @@ -0,0 +1,168 @@ +/* + * 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 com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class BillingAccountName implements ResourceName { + private static final PathTemplate BILLING_ACCOUNT = + PathTemplate.createWithoutUrlEncoding("billingAccounts/{billing_account}"); + private volatile Map fieldValuesMap; + private final String billingAccount; + + @Deprecated + protected BillingAccountName() { + billingAccount = null; + } + + private BillingAccountName(Builder builder) { + billingAccount = Preconditions.checkNotNull(builder.getBillingAccount()); + } + + public String getBillingAccount() { + return billingAccount; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BillingAccountName of(String billingAccount) { + return newBuilder().setBillingAccount(billingAccount).build(); + } + + public static String format(String billingAccount) { + return newBuilder().setBillingAccount(billingAccount).build().toString(); + } + + public static BillingAccountName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + BILLING_ACCOUNT.validatedMatch( + formattedString, "BillingAccountName.parse: formattedString not in valid format"); + return of(matchMap.get("billing_account")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (BillingAccountName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return BILLING_ACCOUNT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (billingAccount != null) { + fieldMapBuilder.put("billing_account", billingAccount); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return BILLING_ACCOUNT.instantiate("billing_account", billingAccount); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + BillingAccountName that = ((BillingAccountName) o); + return Objects.equals(this.billingAccount, that.billingAccount); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(billingAccount); + return h; + } + + /** Builder for billingAccounts/{billing_account}. */ + public static class Builder { + private String billingAccount; + + protected Builder() {} + + public String getBillingAccount() { + return billingAccount; + } + + public Builder setBillingAccount(String billingAccount) { + this.billingAccount = billingAccount; + return this; + } + + private Builder(BillingAccountName billingAccountName) { + this.billingAccount = billingAccountName.billingAccount; + } + + public BillingAccountName build() { + return new BillingAccountName(this); + } + } +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequest.java new file mode 100644 index 000000000000..ddfa74181f8d --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequest.java @@ -0,0 +1,579 @@ +// 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]
+ * 
+ * + * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.GetOrderRequest} + */ +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; + // 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) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest parseFrom( + 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) + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest 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.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) + throws java.io.IOException { + 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, + 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); + } + 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); + } + + @java.lang.Override + 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) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + 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]
+   * 
+ * + * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.GetOrderRequest} + */ + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @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; + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest build() { + com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); } + onBuilt(); + return 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_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + 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); + } 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; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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(); } + 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() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + 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(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest(); + } + + 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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequestOrBuilder.java new file mode 100644 index 000000000000..9502c3bace5c --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/GetOrderRequestOrBuilder.java @@ -0,0 +1,29 @@ +// 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 + // @@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(); +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItem.java new file mode 100644 index 000000000000..f3986649e3e3 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItem.java @@ -0,0 +1,1586 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.LineItem) + LineItemOrBuilder { +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(); + } + + @java.lang.Override + @SuppressWarnings({"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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getLineItemId() { + java.lang.Object ref = lineItemId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + lineItemId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return Whether the lineItemInfo field is set. + */ + @java.lang.Override + 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]; + * @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_; + } + /** + *
+   * 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]; + */ + @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 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]; + * @return Whether the pendingChange field is set. + */ + @java.lang.Override + 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]; + * @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_; + } + /** + *
+   * 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]; + */ + @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 static final int CHANGE_HISTORY_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + 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,
+   * or were rejected by the partner. No more operations are allowed on these
+   * changes.
+   * 
+ * + * 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() { + 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,
+   * or were rejected by the partner. No more operations are allowed on these
+   * changes.
+   * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List + 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,
+   * or were rejected by the partner. No more operations are allowed on these
+   * changes.
+   * 
+ * + * 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,
+   * or were rejected by the partner. No more operations are allowed on these
+   * changes.
+   * 
+ * + * 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) { + 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,
+   * or were rejected by the partner. No more operations are allowed on these
+   * changes.
+   * 
+ * + * 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) { + return changeHistory_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (lineItemInfo_ != null) { + output.writeMessage(2, getLineItemInfo()); + } + if (pendingChange_ != null) { + output.writeMessage(3, getPendingChange()); + } + for (int i = 0; i < changeHistory_.size(); i++) { + output.writeMessage(4, changeHistory_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lineItemId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lineItemId_); + } + if (lineItemInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLineItemInfo()); + } + if (pendingChange_ != null) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getLineItemId() + .equals(other.getLineItemId())) return false; + if (hasLineItemInfo() != other.hasLineItemInfo()) return false; + if (hasLineItemInfo()) { + if (!getLineItemInfo() + .equals(other.getLineItemInfo())) return false; + } + if (hasPendingChange() != other.hasPendingChange()) return false; + if (hasPendingChange()) { + if (!getPendingChange() + .equals(other.getPendingChange())) return false; + } + if (!getChangeHistoryList() + .equals(other.getChangeHistoryList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LINE_ITEM_ID_FIELD_NUMBER; + hash = (53 * hash) + getLineItemId().hashCode(); + if (hasLineItemInfo()) { + hash = (37 * hash) + LINE_ITEM_INFO_FIELD_NUMBER; + hash = (53 * hash) + getLineItemInfo().hashCode(); + } + if (hasPendingChange()) { + hash = (37 * hash) + PENDING_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + getPendingChange().hashCode(); + } + if (getChangeHistoryCount() > 0) { + hash = (37 * hash) + CHANGE_HISTORY_FIELD_NUMBER; + hash = (53 * hash) + getChangeHistoryList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.commerce.consumer.procurement.v1.LineItem parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + lineItemId_ = ""; + lineItemInfo_ = null; + if (lineItemInfoBuilder_ != null) { + lineItemInfoBuilder_.dispose(); + lineItemInfoBuilder_ = null; + } + pendingChange_ = null; + if (pendingChangeBuilder_ != null) { + pendingChangeBuilder_.dispose(); + pendingChangeBuilder_ = null; + } + if (changeHistoryBuilder_ == null) { + changeHistory_ = java.util.Collections.emptyList(); + } else { + changeHistory_ = null; + changeHistoryBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @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; + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.LineItem getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1.LineItem.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.LineItem build() { + com.google.cloud.commerce.consumer.procurement.v1.LineItem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return 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_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.changeHistory_ = changeHistory_; + } else { + result.changeHistory_ = changeHistoryBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.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(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pendingChange_ = pendingChangeBuilder_ == null + ? pendingChange_ + : pendingChangeBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + 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.getLineItemId().isEmpty()) { + lineItemId_ = other.lineItemId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasLineItemInfo()) { + mergeLineItemInfo(other.getLineItemInfo()); + } + if (other.hasPendingChange()) { + mergePendingChange(other.getPendingChange()); + } + if (changeHistoryBuilder_ == null) { + if (!other.changeHistory_.isEmpty()) { + if (changeHistory_.isEmpty()) { + changeHistory_ = other.changeHistory_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureChangeHistoryIsMutable(); + changeHistory_.addAll(other.changeHistory_); + } + onChanged(); + } + } else { + if (!other.changeHistory_.isEmpty()) { + if (changeHistoryBuilder_.isEmpty()) { + changeHistoryBuilder_.dispose(); + changeHistoryBuilder_ = null; + changeHistory_ = other.changeHistory_; + bitField0_ = (bitField0_ & ~0x00000008); + changeHistoryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getChangeHistoryFieldBuilder() : null; + } else { + changeHistoryBuilder_.addAllMessages(other.changeHistory_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // 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; + java.lang.String s = bs.toStringUtf8(); + lineItemId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = lineItemId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lineItemId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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(); } + 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() { + lineItemId_ = getDefaultInstance().getLineItemId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + 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(); } + checkByteStringIsUtf8(value); + lineItemId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + 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_; + /** + *
+     * 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]; + * @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]; + * @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_; + } 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]; + */ + public Builder setLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { + if (lineItemInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lineItemInfo_ = value; + } else { + lineItemInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + 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]; + */ + public Builder setLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder builderForValue) { + if (lineItemInfoBuilder_ == null) { + lineItemInfo_ = builderForValue.build(); + } else { + lineItemInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + 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]; + */ + 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()) { + getLineItemInfoBuilder().mergeFrom(value); + } else { + lineItemInfo_ = value; + } + } else { + lineItemInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + 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]; + */ + public Builder clearLineItemInfo() { + bitField0_ = (bitField0_ & ~0x00000002); + lineItemInfo_ = null; + if (lineItemInfoBuilder_ != null) { + lineItemInfoBuilder_.dispose(); + lineItemInfoBuilder_ = null; + } + onChanged(); + 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]; + */ + 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]; + */ + 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_; + } + } + /** + *
+     * 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]; + */ + 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> + 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()); + lineItemInfo_ = null; + } + return lineItemInfoBuilder_; + } + + 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_; + /** + *
+     * 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]; + * @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]; + * @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_; + } 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]; + */ + public Builder setPendingChange(com.google.cloud.commerce.consumer.procurement.v1.LineItemChange value) { + if (pendingChangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pendingChange_ = value; + } else { + pendingChangeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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]; + */ + public Builder setPendingChange( + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.Builder builderForValue) { + if (pendingChangeBuilder_ == null) { + pendingChange_ = builderForValue.build(); + } else { + pendingChangeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + 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]; + */ + 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()) { + getPendingChangeBuilder().mergeFrom(value); + } else { + pendingChange_ = value; + } + } else { + pendingChangeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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]; + */ + public Builder clearPendingChange() { + bitField0_ = (bitField0_ & ~0x00000004); + pendingChange_ = null; + if (pendingChangeBuilder_ != null) { + pendingChangeBuilder_.dispose(); + pendingChangeBuilder_ = null; + } + onChanged(); + 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]; + */ + 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]; + */ + 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_; + } + } + /** + *
+     * 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]; + */ + 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> + 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()); + pendingChange_ = null; + } + return pendingChangeBuilder_; + } + + private java.util.List changeHistory_ = + java.util.Collections.emptyList(); + private void ensureChangeHistoryIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + changeHistory_ = new java.util.ArrayList(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_; + + /** + *
+     * 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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getChangeHistoryList() { + if (changeHistoryBuilder_ == null) { + return java.util.Collections.unmodifiableList(changeHistory_); + } else { + return changeHistoryBuilder_.getMessageList(); + } + } + /** + *
+     * 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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getChangeHistoryCount() { + if (changeHistoryBuilder_ == null) { + return changeHistory_.size(); + } else { + return changeHistoryBuilder_.getCount(); + } + } + /** + *
+     * 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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * 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) { + if (changeHistoryBuilder_ == null) { + return changeHistory_.get(index); + } else { + return changeHistoryBuilder_.getMessage(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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * 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) { + if (changeHistoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeHistoryIsMutable(); + changeHistory_.set(index, value); + onChanged(); + } else { + changeHistoryBuilder_.setMessage(index, value); + } + 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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * 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) { + if (changeHistoryBuilder_ == null) { + ensureChangeHistoryIsMutable(); + changeHistory_.set(index, builderForValue.build()); + onChanged(); + } else { + changeHistoryBuilder_.setMessage(index, builderForValue.build()); + } + 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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * 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) { + if (changeHistoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeHistoryIsMutable(); + changeHistory_.add(value); + onChanged(); + } else { + changeHistoryBuilder_.addMessage(value); + } + 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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * 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) { + if (changeHistoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeHistoryIsMutable(); + changeHistory_.add(index, value); + onChanged(); + } else { + changeHistoryBuilder_.addMessage(index, value); + } + 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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * 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) { + if (changeHistoryBuilder_ == null) { + ensureChangeHistoryIsMutable(); + changeHistory_.add(builderForValue.build()); + onChanged(); + } else { + changeHistoryBuilder_.addMessage(builderForValue.build()); + } + 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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * 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) { + if (changeHistoryBuilder_ == null) { + ensureChangeHistoryIsMutable(); + changeHistory_.add(index, builderForValue.build()); + onChanged(); + } else { + changeHistoryBuilder_.addMessage(index, builderForValue.build()); + } + 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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addAllChangeHistory( + java.lang.Iterable values) { + if (changeHistoryBuilder_ == null) { + ensureChangeHistoryIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, changeHistory_); + onChanged(); + } else { + changeHistoryBuilder_.addAllMessages(values); + } + 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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearChangeHistory() { + if (changeHistoryBuilder_ == null) { + changeHistory_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + changeHistoryBuilder_.clear(); + } + 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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * 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) { + ensureChangeHistoryIsMutable(); + changeHistory_.remove(index); + onChanged(); + } else { + changeHistoryBuilder_.remove(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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * 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) { + 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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * 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) { + if (changeHistoryBuilder_ == null) { + 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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getChangeHistoryOrBuilderList() { + if (changeHistoryBuilder_ != null) { + return changeHistoryBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * 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()); + } + /** + *
+     * 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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * 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()); + } + /** + *
+     * 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,
+     * or were rejected by the partner. No more operations are allowed on these
+     * changes.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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> + 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>( + changeHistory_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + changeHistory_ = null; + } + return changeHistoryBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.commerce.consumer.procurement.v1.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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChange.java new file mode 100644 index 000000000000..a82a59312141 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChange.java @@ -0,0 +1,2332 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.LineItemChange) + LineItemChangeOrBuilder { +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; + changeState_ = 0; + stateReason_ = ""; + changeStateReasonType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getChangeId() { + java.lang.Object ref = changeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + changeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return The enum numeric value on the wire for changeType. + */ + @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]; + * @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; + } + + 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]; + * @return Whether the oldLineItemInfo field is set. + */ + @java.lang.Override + 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]; + * @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_; + } + /** + *
+   * 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]; + */ + @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 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; + * @return Whether the newLineItemInfo field is set. + */ + @java.lang.Override + public boolean hasNewLineItemInfo() { + return newLineItemInfo_ != null; + } + /** + *
+   * Line item info after the change.
+   * 
+ * + * .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_; + } + /** + *
+   * Line item info after the change.
+   * 
+ * + * .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 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]; + * @return The enum numeric value on the wire for changeState. + */ + @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]; + * @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; + } + + 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
+   * case of `PENDING_APPROVAL`, and to explain why the change request was
+   * denied or canceled in the case of `REJECTED` and `CANCELED` states.
+   * 
+ * + * string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The stateReason. + */ + @java.lang.Override + public java.lang.String getStateReason() { + java.lang.Object ref = stateReason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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
+   * case of `PENDING_APPROVAL`, and to explain why the change request was
+   * denied or canceled in the case of `REJECTED` and `CANCELED` states.
+   * 
+ * + * string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for stateReason. + */ + @java.lang.Override + 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); + stateReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration,
+   * immediate cancellation initiated by the user, or system-initiated
+   * cancellation.
+   * 
+ * + * .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() { + 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
+   * `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration,
+   * immediate cancellation initiated by the user, or system-initiated
+   * cancellation.
+   * 
+ * + * .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 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]; + * @return Whether the changeEffectiveTime field is set. + */ + @java.lang.Override + 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]; + * @return The changeEffectiveTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getChangeEffectiveTime() { + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getChangeEffectiveTimeOrBuilder() { + 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]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + 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]; + * @return The createTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + 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]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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]; + * @return The updateTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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()) { + output.writeEnum(2, changeType_); + } + if (oldLineItemInfo_ != null) { + output.writeMessage(3, getOldLineItemInfo()); + } + if (newLineItemInfo_ != null) { + output.writeMessage(4, getNewLineItemInfo()); + } + 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_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, stateReason_); + } + if (changeEffectiveTime_ != null) { + output.writeMessage(7, getChangeEffectiveTime()); + } + if (createTime_ != null) { + output.writeMessage(8, getCreateTime()); + } + 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()) { + output.writeEnum(10, changeStateReasonType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 (oldLineItemInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOldLineItemInfo()); + } + if (newLineItemInfo_ != null) { + 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 (!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()); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCreateTime()); + } + if (updateTime_ != null) { + 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_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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 (hasNewLineItemInfo() != other.hasNewLineItemInfo()) return false; + if (hasNewLineItemInfo()) { + if (!getNewLineItemInfo() + .equals(other.getNewLineItemInfo())) return false; + } + if (changeState_ != other.changeState_) 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 (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHANGE_ID_FIELD_NUMBER; + hash = (53 * hash) + getChangeId().hashCode(); + hash = (37 * hash) + CHANGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + changeType_; + if (hasOldLineItemInfo()) { + hash = (37 * hash) + OLD_LINE_ITEM_INFO_FIELD_NUMBER; + hash = (53 * hash) + getOldLineItemInfo().hashCode(); + } + if (hasNewLineItemInfo()) { + hash = (37 * hash) + NEW_LINE_ITEM_INFO_FIELD_NUMBER; + hash = (53 * hash) + getNewLineItemInfo().hashCode(); + } + hash = (37 * hash) + CHANGE_STATE_FIELD_NUMBER; + hash = (53 * hash) + changeState_; + hash = (37 * hash) + STATE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getStateReason().hashCode(); + hash = (37 * hash) + CHANGE_STATE_REASON_TYPE_FIELD_NUMBER; + hash = (53 * hash) + changeStateReasonType_; + if (hasChangeEffectiveTime()) { + hash = (37 * hash) + CHANGE_EFFECTIVE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getChangeEffectiveTime().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemChange parseFrom( + 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) + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemChange 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.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) + throws java.io.IOException { + 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, + 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.LineItemChange 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.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); + } + + @java.lang.Override + 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) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + changeId_ = ""; + changeType_ = 0; + oldLineItemInfo_ = null; + if (oldLineItemInfoBuilder_ != null) { + oldLineItemInfoBuilder_.dispose(); + oldLineItemInfoBuilder_ = null; + } + newLineItemInfo_ = null; + if (newLineItemInfoBuilder_ != null) { + newLineItemInfoBuilder_.dispose(); + newLineItemInfoBuilder_ = null; + } + changeState_ = 0; + stateReason_ = ""; + changeStateReasonType_ = 0; + changeEffectiveTime_ = null; + if (changeEffectiveTimeBuilder_ != null) { + changeEffectiveTimeBuilder_.dispose(); + changeEffectiveTimeBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @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; + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1.LineItemChange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.LineItemChange build() { + com.google.cloud.commerce.consumer.procurement.v1.LineItemChange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); } + onBuilt(); + return 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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.changeType_ = changeType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.oldLineItemInfo_ = oldLineItemInfoBuilder_ == null + ? oldLineItemInfo_ + : oldLineItemInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.newLineItemInfo_ = newLineItemInfoBuilder_ == null + ? newLineItemInfo_ + : newLineItemInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.changeState_ = changeState_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.stateReason_ = stateReason_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.changeStateReasonType_ = changeStateReasonType_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.changeEffectiveTime_ = changeEffectiveTimeBuilder_ == null + ? changeEffectiveTime_ + : changeEffectiveTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + 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); + } 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; + if (!other.getChangeId().isEmpty()) { + changeId_ = other.changeId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.changeType_ != 0) { + setChangeTypeValue(other.getChangeTypeValue()); + } + if (other.hasOldLineItemInfo()) { + mergeOldLineItemInfo(other.getOldLineItemInfo()); + } + if (other.hasNewLineItemInfo()) { + mergeNewLineItemInfo(other.getNewLineItemInfo()); + } + if (other.changeState_ != 0) { + setChangeStateValue(other.getChangeStateValue()); + } + if (!other.getStateReason().isEmpty()) { + stateReason_ = other.stateReason_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.changeStateReasonType_ != 0) { + setChangeStateReasonTypeValue(other.getChangeStateReasonTypeValue()); + } + if (other.hasChangeEffectiveTime()) { + mergeChangeEffectiveTime(other.getChangeEffectiveTime()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // 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; + java.lang.String s = bs.toStringUtf8(); + changeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = changeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + changeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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(); } + 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() { + changeId_ = getDefaultInstance().getChangeId(); + bitField0_ = (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]; + * @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(); } + checkByteStringIsUtf8(value); + changeId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + 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]; + * @return The enum numeric value on the wire for changeType. + */ + @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]; + * @param value The enum numeric value on the wire for changeType to set. + * @return This builder for chaining. + */ + public Builder setChangeTypeValue(int value) { + changeType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Type of the change to make.
+     * 
+ * + * .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; + } + /** + *
+     * Required. Type of the change to make.
+     * 
+ * + * .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) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + changeType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Required. Type of the change to make.
+     * 
+ * + * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearChangeType() { + bitField0_ = (bitField0_ & ~0x00000002); + changeType_ = 0; + onChanged(); + return this; + } + + 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_; + /** + *
+     * 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]; + * @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]; + * @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_; + } 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]; + */ + public Builder setOldLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { + if (oldLineItemInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oldLineItemInfo_ = value; + } else { + oldLineItemInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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]; + */ + public Builder setOldLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder builderForValue) { + if (oldLineItemInfoBuilder_ == null) { + oldLineItemInfo_ = builderForValue.build(); + } else { + oldLineItemInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + 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]; + */ + 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()) { + getOldLineItemInfoBuilder().mergeFrom(value); + } else { + oldLineItemInfo_ = value; + } + } else { + oldLineItemInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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]; + */ + public Builder clearOldLineItemInfo() { + bitField0_ = (bitField0_ & ~0x00000004); + oldLineItemInfo_ = null; + if (oldLineItemInfoBuilder_ != null) { + oldLineItemInfoBuilder_.dispose(); + oldLineItemInfoBuilder_ = null; + } + onChanged(); + 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]; + */ + 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]; + */ + 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_; + } + } + /** + *
+     * 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]; + */ + 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> + 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()); + oldLineItemInfo_ = null; + } + return oldLineItemInfoBuilder_; + } + + 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_; + /** + *
+     * Line item info after the change.
+     * 
+ * + * .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; + * @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_; + } else { + return newLineItemInfoBuilder_.getMessage(); + } + } + /** + *
+     * Line item info after the change.
+     * 
+ * + * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + */ + public Builder setNewLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { + if (newLineItemInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + newLineItemInfo_ = value; + } else { + newLineItemInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Line item info after the change.
+     * 
+ * + * .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) { + if (newLineItemInfoBuilder_ == null) { + newLineItemInfo_ = builderForValue.build(); + } else { + newLineItemInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Line item info after the change.
+     * 
+ * + * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + */ + 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()) { + getNewLineItemInfoBuilder().mergeFrom(value); + } else { + newLineItemInfo_ = value; + } + } else { + newLineItemInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Line item info after the change.
+     * 
+ * + * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + */ + public Builder clearNewLineItemInfo() { + bitField0_ = (bitField0_ & ~0x00000008); + newLineItemInfo_ = null; + if (newLineItemInfoBuilder_ != null) { + newLineItemInfoBuilder_.dispose(); + newLineItemInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Line item info after the change.
+     * 
+ * + * .google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4; + */ + 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; + */ + 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_; + } + } + /** + *
+     * Line item info after the change.
+     * 
+ * + * .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> + 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()); + newLineItemInfo_ = null; + } + return newLineItemInfoBuilder_; + } + + 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]; + * @return The enum numeric value on the wire for changeState. + */ + @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]; + * @param value The enum numeric value on the wire for changeState to set. + * @return This builder for chaining. + */ + public Builder setChangeStateValue(int value) { + changeState_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Output only. State of the change.
+     * 
+ * + * .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; + } + /** + *
+     * Output only. State of the change.
+     * 
+ * + * .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) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + changeState_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Output only. State of the change.
+     * 
+ * + * .google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearChangeState() { + bitField0_ = (bitField0_ & ~0x00000010); + changeState_ = 0; + onChanged(); + return this; + } + + 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
+     * case of `PENDING_APPROVAL`, and to explain why the change request was
+     * denied or canceled in the case of `REJECTED` and `CANCELED` states.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + stateReason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Provider-supplied message explaining the LineItemChange's
+     * state. Mainly used to communicate progress and ETA for provisioning in the
+     * case of `PENDING_APPROVAL`, and to explain why the change request was
+     * denied or canceled in the case of `REJECTED` and `CANCELED` states.
+     * 
+ * + * string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for stateReason. + */ + 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); + stateReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Provider-supplied message explaining the LineItemChange's
+     * state. Mainly used to communicate progress and ETA for provisioning in the
+     * case of `PENDING_APPROVAL`, and to explain why the change request was
+     * denied or canceled in the case of `REJECTED` and `CANCELED` states.
+     * 
+ * + * 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(); } + 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
+     * case of `PENDING_APPROVAL`, and to explain why the change request was
+     * denied or canceled in the case of `REJECTED` and `CANCELED` states.
+     * 
+ * + * string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearStateReason() { + stateReason_ = getDefaultInstance().getStateReason(); + bitField0_ = (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
+     * case of `PENDING_APPROVAL`, and to explain why the change request was
+     * denied or canceled in the case of `REJECTED` and `CANCELED` states.
+     * 
+ * + * 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(); } + checkByteStringIsUtf8(value); + stateReason_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + 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
+     * `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration,
+     * immediate cancellation initiated by the user, or system-initiated
+     * cancellation.
+     * 
+ * + * .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() { + 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
+     * `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration,
+     * immediate cancellation initiated by the user, or system-initiated
+     * cancellation.
+     * 
+ * + * .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. + */ + public Builder setChangeStateReasonTypeValue(int value) { + changeStateReasonType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + 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
+     * `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration,
+     * immediate cancellation initiated by the user, or system-initiated
+     * cancellation.
+     * 
+ * + * .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; + } + /** + *
+     * 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
+     * `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration,
+     * immediate cancellation initiated by the user, or system-initiated
+     * cancellation.
+     * 
+ * + * .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) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + changeStateReasonType_ = value.getNumber(); + onChanged(); + 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
+     * `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration,
+     * immediate cancellation initiated by the user, or system-initiated
+     * cancellation.
+     * 
+ * + * .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() { + bitField0_ = (bitField0_ & ~0x00000040); + changeStateReasonType_ = 0; + onChanged(); + return this; + } + + 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_; + /** + *
+     * 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]; + * @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]; + * @return The changeEffectiveTime. + */ + public com.google.protobuf.Timestamp getChangeEffectiveTime() { + if (changeEffectiveTimeBuilder_ == null) { + 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]; + */ + public Builder setChangeEffectiveTime(com.google.protobuf.Timestamp value) { + if (changeEffectiveTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + changeEffectiveTime_ = value; + } else { + changeEffectiveTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + 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]; + */ + public Builder setChangeEffectiveTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (changeEffectiveTimeBuilder_ == null) { + changeEffectiveTime_ = builderForValue.build(); + } else { + changeEffectiveTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + 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]; + */ + public Builder mergeChangeEffectiveTime(com.google.protobuf.Timestamp value) { + if (changeEffectiveTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + changeEffectiveTime_ != null && + changeEffectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getChangeEffectiveTimeBuilder().mergeFrom(value); + } else { + changeEffectiveTime_ = value; + } + } else { + changeEffectiveTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + 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]; + */ + public Builder clearChangeEffectiveTime() { + bitField0_ = (bitField0_ & ~0x00000080); + changeEffectiveTime_ = null; + if (changeEffectiveTimeBuilder_ != null) { + changeEffectiveTimeBuilder_.dispose(); + changeEffectiveTimeBuilder_ = null; + } + onChanged(); + 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]; + */ + public com.google.protobuf.Timestamp.Builder getChangeEffectiveTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + 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]; + */ + public com.google.protobuf.TimestampOrBuilder getChangeEffectiveTimeOrBuilder() { + if (changeEffectiveTimeBuilder_ != null) { + return changeEffectiveTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + changeEffectiveTime_ = null; + } + return changeEffectiveTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. The time when change was initiated.
+     * 
+ * + * .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]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + 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]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Output only. The time when change was initiated.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Output only. The time when change was initiated.
+     * 
+ * + * .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()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Output only. The time when change was initiated.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. The time when change was initiated.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. The time when change was initiated.
+     * 
+ * + * .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_; + } + } + /** + *
+     * Output only. The time when change was initiated.
+     * 
+ * + * .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> + 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()); + createTime_ = null; + } + return createTimeBuilder_; + } + + 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_; + /** + *
+     * 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]; + * @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]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + 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]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + 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]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + 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]; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000200; + onChanged(); + 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]; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + 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]; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + 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]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.LineItemChange(); + } + + 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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeOrBuilder.java new file mode 100644 index 000000000000..a31e86b00e7a --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeOrBuilder.java @@ -0,0 +1,263 @@ +// 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 + // @@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(); + + /** + *
+   * Required. Type of the change to make.
+   * 
+ * + * .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]; + * @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]; + * @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]; + * @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]; + */ + 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; + * @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; + * @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; + */ + 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]; + * @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]; + * @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
+   * case of `PENDING_APPROVAL`, and to explain why the change request was
+   * denied or canceled in the case of `REJECTED` and `CANCELED` states.
+   * 
+ * + * 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
+   * case of `PENDING_APPROVAL`, and to explain why the change request was
+   * denied or canceled in the case of `REJECTED` and `CANCELED` states.
+   * 
+ * + * string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for stateReason. + */ + 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
+   * `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration,
+   * immediate cancellation initiated by the user, or system-initiated
+   * cancellation.
+   * 
+ * + * .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
+   * `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration,
+   * immediate cancellation initiated by the user, or system-initiated
+   * cancellation.
+   * 
+ * + * .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(); + + /** + *
+   * 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]; + * @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]; + * @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]; + */ + 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]; + * @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]; + * @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]; + */ + 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]; + * @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]; + * @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]; + */ + 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeState.java new file mode 100644 index 000000000000..c923a1b3b7f9 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeState.java @@ -0,0 +1,230 @@ +// 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 { + /** + *
+   * Sentinel value. Do not use.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_UNSPECIFIED = 0; + */ + LINE_ITEM_CHANGE_STATE_UNSPECIFIED(0), + /** + *
+   * Change is in this state when a change is initiated and waiting for
+   * partner approval.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL = 1; + */ + 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
+   * or cancelled depending on the new line item info property (pending Private
+   * Offer change cannot be cancelled and can only be overwritten by another
+   * Private Offer).
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_APPROVED = 2; + */ + LINE_ITEM_CHANGE_STATE_APPROVED(2), + /** + *
+   * Change is in this state after it's been activated.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_COMPLETED = 3; + */ + LINE_ITEM_CHANGE_STATE_COMPLETED(3), + /** + *
+   * Change is in this state if it was rejected by the partner.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_REJECTED = 4; + */ + LINE_ITEM_CHANGE_STATE_REJECTED(4), + /** + *
+   * Change is in this state if it was abandoned by the user.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_ABANDONED = 5; + */ + 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.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_ACTIVATING = 6; + */ + LINE_ITEM_CHANGE_STATE_ACTIVATING(6), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Sentinel value. Do not use.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_UNSPECIFIED = 0; + */ + 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.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL = 1; + */ + 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
+   * or cancelled depending on the new line item info property (pending Private
+   * Offer change cannot be cancelled and can only be overwritten by another
+   * Private Offer).
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_APPROVED = 2; + */ + public static final int LINE_ITEM_CHANGE_STATE_APPROVED_VALUE = 2; + /** + *
+   * Change is in this state after it's been activated.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_COMPLETED = 3; + */ + public static final int LINE_ITEM_CHANGE_STATE_COMPLETED_VALUE = 3; + /** + *
+   * Change is in this state if it was rejected by the partner.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_REJECTED = 4; + */ + public static final int LINE_ITEM_CHANGE_STATE_REJECTED_VALUE = 4; + /** + *
+   * Change is in this state if it was abandoned by the user.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_ABANDONED = 5; + */ + 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.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_ACTIVATING = 6; + */ + public static final int LINE_ITEM_CHANGE_STATE_ACTIVATING_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LineItemChangeState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire 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; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + 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() { + 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() { + return getDescriptor(); + } + 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(); + + 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."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LineItemChangeState(int value) { + this.value = 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeStateReasonType.java new file mode 100644 index 000000000000..76d3086b0435 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeStateReasonType.java @@ -0,0 +1,169 @@ +// 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 { + /** + *
+   * Default value, indicating there's no predefined type for change state
+   * reason.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED = 0; + */ + LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED(0), + /** + *
+   * Change is in current state due to term expiration.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED = 1; + */ + LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED(1), + /** + *
+   * Change is in current state due to user-initiated cancellation.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED = 2; + */ + LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED(2), + /** + *
+   * Change is in current state due to system-initiated cancellation.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED = 3; + */ + LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED(3), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Default value, indicating there's no predefined type for change state
+   * reason.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED = 0; + */ + public static final int LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+   * Change is in current state due to term expiration.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED = 1; + */ + public static final int LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED_VALUE = 1; + /** + *
+   * Change is in current state due to user-initiated cancellation.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED = 2; + */ + public static final int LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED_VALUE = 2; + /** + *
+   * Change is in current state due to system-initiated cancellation.
+   * 
+ * + * LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED = 3; + */ + 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( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LineItemChangeStateReasonType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire 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; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + 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() { + 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() { + return getDescriptor(); + } + 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(); + + 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."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LineItemChangeStateReasonType(int value) { + this.value = 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeType.java new file mode 100644 index 000000000000..d25089203c53 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemChangeType.java @@ -0,0 +1,184 @@ +// 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 { + /** + *
+   * Sentinel value. Do not use.
+   * 
+ * + * LINE_ITEM_CHANGE_TYPE_UNSPECIFIED = 0; + */ + LINE_ITEM_CHANGE_TYPE_UNSPECIFIED(0), + /** + *
+   * The change is to create a new line item.
+   * 
+ * + * LINE_ITEM_CHANGE_TYPE_CREATE = 1; + */ + LINE_ITEM_CHANGE_TYPE_CREATE(1), + /** + *
+   * The change is to update an existing line item.
+   * 
+ * + * LINE_ITEM_CHANGE_TYPE_UPDATE = 2; + */ + LINE_ITEM_CHANGE_TYPE_UPDATE(2), + /** + *
+   * The change is to cancel an existing line item.
+   * 
+ * + * LINE_ITEM_CHANGE_TYPE_CANCEL = 3; + */ + LINE_ITEM_CHANGE_TYPE_CANCEL(3), + /** + *
+   * The change is to revert a cancellation.
+   * 
+ * + * LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION = 4; + */ + LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION(4), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Sentinel value. Do not use.
+   * 
+ * + * LINE_ITEM_CHANGE_TYPE_UNSPECIFIED = 0; + */ + public static final int LINE_ITEM_CHANGE_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+   * The change is to create a new line item.
+   * 
+ * + * LINE_ITEM_CHANGE_TYPE_CREATE = 1; + */ + public static final int LINE_ITEM_CHANGE_TYPE_CREATE_VALUE = 1; + /** + *
+   * The change is to update an existing line item.
+   * 
+ * + * LINE_ITEM_CHANGE_TYPE_UPDATE = 2; + */ + public static final int LINE_ITEM_CHANGE_TYPE_UPDATE_VALUE = 2; + /** + *
+   * The change is to cancel an existing line item.
+   * 
+ * + * LINE_ITEM_CHANGE_TYPE_CANCEL = 3; + */ + public static final int LINE_ITEM_CHANGE_TYPE_CANCEL_VALUE = 3; + /** + *
+   * The change is to revert a cancellation.
+   * 
+ * + * LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION = 4; + */ + public static final int LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LineItemChangeType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire 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; + } + } + + 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() { + 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() { + return getDescriptor(); + } + 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(); + + 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."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LineItemChangeType(int value) { + this.value = 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemInfo.java new file mode 100644 index 000000000000..34b5bc07aa8b --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemInfo.java @@ -0,0 +1,1266 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.LineItemInfo) + LineItemInfoOrBuilder { +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(); + } + + @java.lang.Override + @SuppressWarnings({"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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The offer. + */ + @java.lang.Override + public java.lang.String getOffer() { + java.lang.Object ref = offer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for offer. + */ + @java.lang.Override + 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); + offer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public java.util.List + getParametersOrBuilderList() { + return parameters_; + } + /** + *
+   * Optional. User-provided parameters.
+   * 
+ * + * 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]; + */ + @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]; + */ + @java.lang.Override + 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]; + * @return Whether the subscription field is set. + */ + @java.lang.Override + 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]; + * @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_; + } + /** + *
+   * Output only. Information about the subscription created, if applicable.
+   * 
+ * + * .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_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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)); + } + if (subscription_ != null) { + output.writeMessage(10, getSubscription()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(offer_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, offer_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < parameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, parameters_.get(i)); + } + if (subscription_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getSubscription()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(offer_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, offer_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OFFER_FIELD_NUMBER; + hash = (53 * hash) + getOffer().hashCode(); + if (getParametersCount() > 0) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParametersList().hashCode(); + } + if (hasSubscription()) { + hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSubscription().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo parseFrom( + 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) + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo 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.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) + throws java.io.IOException { + 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, + 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.LineItemInfo 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.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); + } + + @java.lang.Override + 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) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + offer_ = ""; + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + } else { + parameters_ = null; + parametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + subscription_ = null; + if (subscriptionBuilder_ != null) { + subscriptionBuilder_.dispose(); + subscriptionBuilder_ = null; + } + return this; + } + + @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; + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo build() { + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return 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_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); + } + } + + 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(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + 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.getOffer().isEmpty()) { + offer_ = other.offer_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (parametersBuilder_ == null) { + if (!other.parameters_.isEmpty()) { + if (parameters_.isEmpty()) { + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureParametersIsMutable(); + parameters_.addAll(other.parameters_); + } + onChanged(); + } + } else { + if (!other.parameters_.isEmpty()) { + if (parametersBuilder_.isEmpty()) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000002); + parametersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getParametersFieldBuilder() : null; + } else { + parametersBuilder_.addAllMessages(other.parameters_); + } + } + } + if (other.hasSubscription()) { + mergeSubscription(other.getSubscription()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + offer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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. + */ + 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); + offer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) = { ... } + * @param value The offer to set. + * @return This builder for chaining. + */ + 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) = { ... } + * @return This builder for chaining. + */ + public Builder clearOffer() { + offer_ = getDefaultInstance().getOffer(); + bitField0_ = (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) = { ... } + * @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(); } + checkByteStringIsUtf8(value); + offer_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List parameters_ = + java.util.Collections.emptyList(); + private void ensureParametersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + 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_; + + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List getParametersList() { + if (parametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(parameters_); + } else { + return parametersBuilder_.getMessageList(); + } + } + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public int getParametersCount() { + if (parametersBuilder_ == null) { + return parameters_.size(); + } else { + return parametersBuilder_.getCount(); + } + } + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * 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) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessage(index); + } + } + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * 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) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.set(index, value); + onChanged(); + } else { + parametersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * 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) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.set(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * 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) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(value); + onChanged(); + } else { + parametersBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * 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) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(index, value); + onChanged(); + } else { + parametersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * 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) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * 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) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addAllParameters( + java.lang.Iterable values) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, parameters_); + onChanged(); + } else { + parametersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearParameters() { + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + parametersBuilder_.clear(); + } + return this; + } + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeParameters(int index) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.remove(index); + onChanged(); + } else { + parametersBuilder_.remove(index); + } + return this; + } + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * 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]; + */ + public com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder getParametersOrBuilder( + int index) { + if (parametersBuilder_ == null) { + 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]; + */ + public java.util.List + getParametersOrBuilderList() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parameters_); + } + } + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * 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()); + } + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * 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()); + } + /** + *
+     * Optional. User-provided parameters.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Parameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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> + 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()); + parameters_ = null; + } + return parametersBuilder_; + } + + 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_; + /** + *
+     * 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. + */ + 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]; + * @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_; + } 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]; + */ + public Builder setSubscription(com.google.cloud.commerce.consumer.procurement.v1.Subscription value) { + if (subscriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subscription_ = value; + } else { + subscriptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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]; + */ + public Builder setSubscription( + com.google.cloud.commerce.consumer.procurement.v1.Subscription.Builder builderForValue) { + if (subscriptionBuilder_ == null) { + subscription_ = builderForValue.build(); + } else { + subscriptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + 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]; + */ + 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()) { + getSubscriptionBuilder().mergeFrom(value); + } else { + subscription_ = value; + } + } else { + subscriptionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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]; + */ + public Builder clearSubscription() { + bitField0_ = (bitField0_ & ~0x00000004); + subscription_ = null; + if (subscriptionBuilder_ != null) { + subscriptionBuilder_.dispose(); + subscriptionBuilder_ = null; + } + onChanged(); + 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]; + */ + 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]; + */ + 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_; + } + } + /** + *
+     * Output only. Information about the subscription created, if applicable.
+     * 
+ * + * .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> + 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()); + subscription_ = null; + } + return subscriptionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo(); + } + + 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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo 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/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 new file mode 100644 index 000000000000..45abcc45de4a --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemInfoOrBuilder.java @@ -0,0 +1,104 @@ +// 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemOrBuilder.java new file mode 100644 index 000000000000..a9bb4175fe34 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LineItemOrBuilder.java @@ -0,0 +1,151 @@ +// 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 + // @@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(); + + /** + *
+   * 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]; + * @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]; + * @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]; + */ + 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]; + * @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]; + * @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]; + */ + 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,
+   * or were rejected by the partner. No more operations are allowed on these
+   * changes.
+   * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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,
+   * or were rejected by the partner. No more operations are allowed on these
+   * changes.
+   * 
+ * + * 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,
+   * or were rejected by the partner. No more operations are allowed on these
+   * changes.
+   * 
+ * + * 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,
+   * or were rejected by the partner. No more operations are allowed on these
+   * changes.
+   * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.LineItemChange change_history = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + 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,
+   * or were rejected by the partner. No more operations are allowed on these
+   * changes.
+   * 
+ * + * 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); +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequest.java new file mode 100644 index 000000000000..934a12ff8477 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequest.java @@ -0,0 +1,1105 @@ +// 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].
+ * 
+ * + * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest} + */ +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; + // Use ListOrdersRequest.newBuilder() to construct. + private ListOrdersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListOrdersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public int getPageSize() { + return pageSize_; + } + + 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 + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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.
+   *
+   * A query string that can match a selected set of attributes
+   * with string values. For example, `display_name=abc`.
+   * Supported query attributes are
+   *
+   * * `display_name`
+   *
+   * If the query contains special characters other than letters,
+   * underscore, or digits, the phrase must be quoted with double quotes. For
+   * example, `display_name="foo:bar"`, where the display name needs to be
+   * quoted because it contains special character colon.
+   *
+   * Queries can be combined with `OR`, and `NOT` to form more complex queries.
+   * You can also group them to force a desired evaluation order.
+   * For example, `display_name=abc OR display_name=def`.
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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.
+   *
+   * A query string that can match a selected set of attributes
+   * with string values. For example, `display_name=abc`.
+   * Supported query attributes are
+   *
+   * * `display_name`
+   *
+   * If the query contains special characters other than letters,
+   * underscore, or digits, the phrase must be quoted with double quotes. For
+   * example, `display_name="foo:bar"`, where the display name needs to be
+   * quoted because it contains special character colon.
+   *
+   * Queries can be combined with `OR`, and `NOT` to form more complex queries.
+   * You can also group them to force a desired evaluation order.
+   * For example, `display_name=abc OR display_name=def`.
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + @java.lang.Override + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest parseFrom( + 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) + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest 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.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) + throws java.io.IOException { + 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, + 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); + } + 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); + } + + @java.lang.Override + 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) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + 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].
+   * 
+ * + * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest} + */ + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @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; + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest build() { + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); } + onBuilt(); + return 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_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + 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); + } 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; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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(); } + 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() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (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]; + * @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(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + 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 + 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. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The token for fetching the next page.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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(); } + 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() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + 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(); } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
+     * Filter that you can use to limit the list request.
+     *
+     * A query string that can match a selected set of attributes
+     * with string values. For example, `display_name=abc`.
+     * Supported query attributes are
+     *
+     * * `display_name`
+     *
+     * If the query contains special characters other than letters,
+     * underscore, or digits, the phrase must be quoted with double quotes. For
+     * example, `display_name="foo:bar"`, where the display name needs to be
+     * quoted because it contains special character colon.
+     *
+     * Queries can be combined with `OR`, and `NOT` to form more complex queries.
+     * You can also group them to force a desired evaluation order.
+     * For example, `display_name=abc OR display_name=def`.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Filter that you can use to limit the list request.
+     *
+     * A query string that can match a selected set of attributes
+     * with string values. For example, `display_name=abc`.
+     * Supported query attributes are
+     *
+     * * `display_name`
+     *
+     * If the query contains special characters other than letters,
+     * underscore, or digits, the phrase must be quoted with double quotes. For
+     * example, `display_name="foo:bar"`, where the display name needs to be
+     * quoted because it contains special character colon.
+     *
+     * Queries can be combined with `OR`, and `NOT` to form more complex queries.
+     * You can also group them to force a desired evaluation order.
+     * For example, `display_name=abc OR display_name=def`.
+     * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Filter that you can use to limit the list request.
+     *
+     * A query string that can match a selected set of attributes
+     * with string values. For example, `display_name=abc`.
+     * Supported query attributes are
+     *
+     * * `display_name`
+     *
+     * If the query contains special characters other than letters,
+     * underscore, or digits, the phrase must be quoted with double quotes. For
+     * example, `display_name="foo:bar"`, where the display name needs to be
+     * quoted because it contains special character colon.
+     *
+     * Queries can be combined with `OR`, and `NOT` to form more complex queries.
+     * You can also group them to force a desired evaluation order.
+     * For example, `display_name=abc OR display_name=def`.
+     * 
+ * + * 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(); } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Filter that you can use to limit the list request.
+     *
+     * A query string that can match a selected set of attributes
+     * with string values. For example, `display_name=abc`.
+     * Supported query attributes are
+     *
+     * * `display_name`
+     *
+     * If the query contains special characters other than letters,
+     * underscore, or digits, the phrase must be quoted with double quotes. For
+     * example, `display_name="foo:bar"`, where the display name needs to be
+     * quoted because it contains special character colon.
+     *
+     * Queries can be combined with `OR`, and `NOT` to form more complex queries.
+     * You can also group them to force a desired evaluation order.
+     * For example, `display_name=abc OR display_name=def`.
+     * 
+ * + * string filter = 4; + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Filter that you can use to limit the list request.
+     *
+     * A query string that can match a selected set of attributes
+     * with string values. For example, `display_name=abc`.
+     * Supported query attributes are
+     *
+     * * `display_name`
+     *
+     * If the query contains special characters other than letters,
+     * underscore, or digits, the phrase must be quoted with double quotes. For
+     * example, `display_name="foo:bar"`, where the display name needs to be
+     * quoted because it contains special character colon.
+     *
+     * Queries can be combined with `OR`, and `NOT` to form more complex queries.
+     * You can also group them to force a desired evaluation order.
+     * For example, `display_name=abc OR display_name=def`.
+     * 
+ * + * 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(); } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest(); + } + + 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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequestOrBuilder.java new file mode 100644 index 000000000000..e5f0ee52cbdc --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersRequestOrBuilder.java @@ -0,0 +1,112 @@ +// 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 + // @@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(); + + /** + *
+   * 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(); + + /** + *
+   * Filter that you can use to limit the list request.
+   *
+   * A query string that can match a selected set of attributes
+   * with string values. For example, `display_name=abc`.
+   * Supported query attributes are
+   *
+   * * `display_name`
+   *
+   * If the query contains special characters other than letters,
+   * underscore, or digits, the phrase must be quoted with double quotes. For
+   * example, `display_name="foo:bar"`, where the display name needs to be
+   * quoted because it contains special character colon.
+   *
+   * Queries can be combined with `OR`, and `NOT` to form more complex queries.
+   * You can also group them to force a desired evaluation order.
+   * For example, `display_name=abc OR display_name=def`.
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+   * Filter that you can use to limit the list request.
+   *
+   * A query string that can match a selected set of attributes
+   * with string values. For example, `display_name=abc`.
+   * Supported query attributes are
+   *
+   * * `display_name`
+   *
+   * If the query contains special characters other than letters,
+   * underscore, or digits, the phrase must be quoted with double quotes. For
+   * example, `display_name="foo:bar"`, where the display name needs to be
+   * quoted because it contains special character colon.
+   *
+   * Queries can be combined with `OR`, and `NOT` to form more complex queries.
+   * You can also group them to force a desired evaluation order.
+   * For example, `display_name=abc OR display_name=def`.
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponse.java new file mode 100644 index 000000000000..dddfebd33aef --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponse.java @@ -0,0 +1,1025 @@ +// 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].
+ * 
+ * + * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse} + */ +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; + // Use ListOrdersResponse.newBuilder() to construct. + private ListOrdersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListOrdersResponse() { + orders_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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.
+   * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + @java.lang.Override + public java.util.List getOrdersList() { + return orders_; + } + /** + *
+   * The list of orders in this response.
+   * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + @java.lang.Override + public java.util.List + getOrdersOrBuilderList() { + return orders_; + } + /** + *
+   * The list of orders in this response.
+   * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + @java.lang.Override + public int getOrdersCount() { + return orders_.size(); + } + /** + *
+   * The list of orders in this response.
+   * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.Order getOrders(int index) { + return orders_.get(index); + } + /** + *
+   * The list of orders in this response.
+   * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder getOrdersOrBuilder( + int index) { + return orders_.get(index); + } + + 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 + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < orders_.size(); 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_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getOrdersList() + .equals(other.getOrdersList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getOrdersCount() > 0) { + hash = (37 * hash) + ORDERS_FIELD_NUMBER; + hash = (53 * hash) + getOrdersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse parseFrom( + 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) + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.commerce.consumer.procurement.v1.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.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) + throws java.io.IOException { + 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, + 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); + } + 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); + } + + @java.lang.Override + 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) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + 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].
+   * 
+ * + * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse} + */ + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (ordersBuilder_ == null) { + orders_ = java.util.Collections.emptyList(); + } else { + orders_ = null; + ordersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @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; + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse build() { + com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return 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_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.orders_ = orders_; + } else { + result.orders_ = ordersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + 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); + } 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; + if (ordersBuilder_ == null) { + if (!other.orders_.isEmpty()) { + if (orders_.isEmpty()) { + orders_ = other.orders_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOrdersIsMutable(); + orders_.addAll(other.orders_); + } + onChanged(); + } + } else { + if (!other.orders_.isEmpty()) { + if (ordersBuilder_.isEmpty()) { + ordersBuilder_.dispose(); + ordersBuilder_ = null; + orders_ = other.orders_; + bitField0_ = (bitField0_ & ~0x00000001); + ordersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOrdersFieldBuilder() : null; + } else { + ordersBuilder_.addAllMessages(other.orders_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List orders_ = + java.util.Collections.emptyList(); + private void ensureOrdersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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_; + + /** + *
+     * The list of orders in this response.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + public java.util.List getOrdersList() { + if (ordersBuilder_ == null) { + return java.util.Collections.unmodifiableList(orders_); + } else { + return ordersBuilder_.getMessageList(); + } + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + public int getOrdersCount() { + if (ordersBuilder_ == null) { + return orders_.size(); + } else { + return ordersBuilder_.getCount(); + } + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + public com.google.cloud.commerce.consumer.procurement.v1.Order getOrders(int index) { + if (ordersBuilder_ == null) { + return orders_.get(index); + } else { + return ordersBuilder_.getMessage(index); + } + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + public Builder setOrders( + int index, com.google.cloud.commerce.consumer.procurement.v1.Order value) { + if (ordersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrdersIsMutable(); + orders_.set(index, value); + onChanged(); + } else { + ordersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * 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) { + if (ordersBuilder_ == null) { + ensureOrdersIsMutable(); + orders_.set(index, builderForValue.build()); + onChanged(); + } else { + ordersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + public Builder addOrders(com.google.cloud.commerce.consumer.procurement.v1.Order value) { + if (ordersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrdersIsMutable(); + orders_.add(value); + onChanged(); + } else { + ordersBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + public Builder addOrders( + int index, com.google.cloud.commerce.consumer.procurement.v1.Order value) { + if (ordersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrdersIsMutable(); + orders_.add(index, value); + onChanged(); + } else { + ordersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + public Builder addOrders( + com.google.cloud.commerce.consumer.procurement.v1.Order.Builder builderForValue) { + if (ordersBuilder_ == null) { + ensureOrdersIsMutable(); + orders_.add(builderForValue.build()); + onChanged(); + } else { + ordersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * 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) { + if (ordersBuilder_ == null) { + ensureOrdersIsMutable(); + orders_.add(index, builderForValue.build()); + onChanged(); + } else { + ordersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + public Builder addAllOrders( + java.lang.Iterable values) { + if (ordersBuilder_ == null) { + ensureOrdersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, orders_); + onChanged(); + } else { + ordersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + public Builder clearOrders() { + if (ordersBuilder_ == null) { + orders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ordersBuilder_.clear(); + } + return this; + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + public Builder removeOrders(int index) { + if (ordersBuilder_ == null) { + ensureOrdersIsMutable(); + orders_.remove(index); + onChanged(); + } else { + ordersBuilder_.remove(index); + } + return this; + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + public com.google.cloud.commerce.consumer.procurement.v1.Order.Builder getOrdersBuilder( + int index) { + return getOrdersFieldBuilder().getBuilder(index); + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + public com.google.cloud.commerce.consumer.procurement.v1.OrderOrBuilder getOrdersOrBuilder( + int index) { + if (ordersBuilder_ == null) { + 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() { + if (ordersBuilder_ != null) { + return ordersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(orders_); + } + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * 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()); + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + 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()); + } + /** + *
+     * The list of orders in this response.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + 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> + 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()); + orders_ = null; + } + return ordersBuilder_; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The token for fetching the next page.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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(); } + 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() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + 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(); } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse(); + } + + 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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponseOrBuilder.java new file mode 100644 index 000000000000..3c47b83b4adc --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ListOrdersResponseOrBuilder.java @@ -0,0 +1,73 @@ +// 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 + // @@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(); + /** + *
+   * The list of orders in this response.
+   * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + com.google.cloud.commerce.consumer.procurement.v1.Order getOrders(int index); + /** + *
+   * The list of orders in this response.
+   * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + int getOrdersCount(); + /** + *
+   * The list of orders in this response.
+   * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.Order orders = 1; + */ + 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); + + /** + *
+   * 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(); +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Order.java new file mode 100644 index 000000000000..63c6d52f1778 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Order.java @@ -0,0 +1,2283 @@ +// 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
+ * as well as external service provider's systems (if needed) allow use of
+ * purchased products and ensures the appropriate billing events occur.
+ *
+ * An Order can be made against one Product with multiple add-ons (optional) or
+ * one Quote which might reference multiple products.
+ *
+ * Customers typically choose a price plan for each Product purchased when
+ * they create an order and can change their plan later, if the product allows.
+ * 
+ * + * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.Order} + */ +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; + // Use Order.newBuilder() to construct. + private Order(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Order() { + name_ = ""; + displayName_ = ""; + lineItems_ = java.util.Collections.emptyList(); + cancelledLineItems_ = java.util.Collections.emptyList(); + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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
+   * `billingAccounts/{billing_account}/orders/{order}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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
+   * `billingAccounts/{billing_account}/orders/{order}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public java.util.List + 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]; + */ + @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]; + */ + @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]; + */ + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.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_; + /** + *
+   * 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]; + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public java.util.List + 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]; + */ + @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]; + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + 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]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Output only. The creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + 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]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + *
+   * Output only. The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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 + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + for (int i = 0; i < lineItems_.size(); i++) { + output.writeMessage(6, lineItems_.get(i)); + } + for (int i = 0; i < cancelledLineItems_.size(); i++) { + output.writeMessage(7, cancelledLineItems_.get(i)); + } + if (createTime_ != null) { + output.writeMessage(8, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(9, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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)); + } + for (int i = 0; i < cancelledLineItems_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, cancelledLineItems_.get(i)); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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 (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getLineItemsCount() > 0) { + hash = (37 * hash) + LINE_ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getLineItemsList().hashCode(); + } + if (getCancelledLineItemsCount() > 0) { + hash = (37 * hash) + CANCELLED_LINE_ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getCancelledLineItemsList().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.commerce.consumer.procurement.v1.Order parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + 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
+   * as well as external service provider's systems (if needed) allow use of
+   * purchased products and ensures the appropriate billing events occur.
+   *
+   * An Order can be made against one Product with multiple add-ons (optional) or
+   * one Quote which might reference multiple products.
+   *
+   * Customers typically choose a price plan for each Product purchased when
+   * they create an order and can change their plan later, if the product allows.
+   * 
+ * + * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.Order} + */ + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + if (lineItemsBuilder_ == null) { + lineItems_ = java.util.Collections.emptyList(); + } else { + lineItems_ = null; + lineItemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (cancelledLineItemsBuilder_ == null) { + cancelledLineItems_ = java.util.Collections.emptyList(); + } else { + cancelledLineItems_ = null; + cancelledLineItemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + return this; + } + + @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; + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.Order getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1.Order.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.Order build() { + com.google.cloud.commerce.consumer.procurement.v1.Order result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return 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_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.lineItems_ = lineItems_; + } else { + result.lineItems_ = lineItemsBuilder_.build(); + } + if (cancelledLineItemsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + cancelledLineItems_ = java.util.Collections.unmodifiableList(cancelledLineItems_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.cancelledLineItems_ = cancelledLineItems_; + } else { + result.cancelledLineItems_ = cancelledLineItemsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.Order result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + 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.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (lineItemsBuilder_ == null) { + if (!other.lineItems_.isEmpty()) { + if (lineItems_.isEmpty()) { + lineItems_ = other.lineItems_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureLineItemsIsMutable(); + lineItems_.addAll(other.lineItems_); + } + onChanged(); + } + } else { + if (!other.lineItems_.isEmpty()) { + if (lineItemsBuilder_.isEmpty()) { + lineItemsBuilder_.dispose(); + lineItemsBuilder_ = null; + lineItems_ = other.lineItems_; + bitField0_ = (bitField0_ & ~0x00000004); + lineItemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLineItemsFieldBuilder() : null; + } else { + lineItemsBuilder_.addAllMessages(other.lineItems_); + } + } + } + if (cancelledLineItemsBuilder_ == null) { + if (!other.cancelledLineItems_.isEmpty()) { + if (cancelledLineItems_.isEmpty()) { + cancelledLineItems_ = other.cancelledLineItems_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureCancelledLineItemsIsMutable(); + cancelledLineItems_.addAll(other.cancelledLineItems_); + } + onChanged(); + } + } else { + if (!other.cancelledLineItems_.isEmpty()) { + if (cancelledLineItemsBuilder_.isEmpty()) { + cancelledLineItemsBuilder_.dispose(); + cancelledLineItemsBuilder_ = null; + cancelledLineItems_ = other.cancelledLineItems_; + bitField0_ = (bitField0_ & ~0x00000008); + cancelledLineItemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCancelledLineItemsFieldBuilder() : null; + } else { + cancelledLineItemsBuilder_.addAllMessages(other.cancelledLineItems_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Output only. The resource name of the order.
+     * Has the form
+     * `billingAccounts/{billing_account}/orders/{order}`.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The resource name of the order.
+     * Has the form
+     * `billingAccounts/{billing_account}/orders/{order}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The resource name of the order.
+     * Has the form
+     * `billingAccounts/{billing_account}/orders/{order}`.
+     * 
+ * + * 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(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Output only. The resource name of the order.
+     * Has the form
+     * `billingAccounts/{billing_account}/orders/{order}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Output only. The resource name of the order.
+     * Has the form
+     * `billingAccounts/{billing_account}/orders/{order}`.
+     * 
+ * + * 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(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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(); } + 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() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + 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(); } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List lineItems_ = + java.util.Collections.emptyList(); + private void ensureLineItemsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + 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_; + + /** + *
+     * Output only. The items being purchased.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getLineItemsList() { + if (lineItemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(lineItems_); + } else { + return lineItemsBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. The items being purchased.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getLineItemsCount() { + if (lineItemsBuilder_ == null) { + return lineItems_.size(); + } else { + return lineItemsBuilder_.getCount(); + } + } + /** + *
+     * Output only. The items being purchased.
+     * 
+ * + * 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) { + return lineItems_.get(index); + } else { + return lineItemsBuilder_.getMessage(index); + } + } + /** + *
+     * Output only. The items being purchased.
+     * 
+ * + * 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) { + if (lineItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLineItemsIsMutable(); + lineItems_.set(index, value); + onChanged(); + } else { + lineItemsBuilder_.setMessage(index, value); + } + 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]; + */ + public Builder setLineItems( + int index, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { + if (lineItemsBuilder_ == null) { + ensureLineItemsIsMutable(); + lineItems_.set(index, builderForValue.build()); + onChanged(); + } else { + lineItemsBuilder_.setMessage(index, builderForValue.build()); + } + 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]; + */ + public Builder addLineItems(com.google.cloud.commerce.consumer.procurement.v1.LineItem value) { + if (lineItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLineItemsIsMutable(); + lineItems_.add(value); + onChanged(); + } else { + lineItemsBuilder_.addMessage(value); + } + 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]; + */ + public Builder addLineItems( + int index, com.google.cloud.commerce.consumer.procurement.v1.LineItem value) { + if (lineItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLineItemsIsMutable(); + lineItems_.add(index, value); + onChanged(); + } else { + lineItemsBuilder_.addMessage(index, value); + } + 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]; + */ + public Builder addLineItems( + com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { + if (lineItemsBuilder_ == null) { + ensureLineItemsIsMutable(); + lineItems_.add(builderForValue.build()); + onChanged(); + } else { + lineItemsBuilder_.addMessage(builderForValue.build()); + } + 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]; + */ + public Builder addLineItems( + int index, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { + if (lineItemsBuilder_ == null) { + ensureLineItemsIsMutable(); + lineItems_.add(index, builderForValue.build()); + onChanged(); + } else { + lineItemsBuilder_.addMessage(index, builderForValue.build()); + } + 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]; + */ + public Builder addAllLineItems( + java.lang.Iterable values) { + if (lineItemsBuilder_ == null) { + ensureLineItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, lineItems_); + onChanged(); + } else { + lineItemsBuilder_.addAllMessages(values); + } + 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]; + */ + public Builder clearLineItems() { + if (lineItemsBuilder_ == null) { + lineItems_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + lineItemsBuilder_.clear(); + } + 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]; + */ + public Builder removeLineItems(int index) { + if (lineItemsBuilder_ == null) { + ensureLineItemsIsMutable(); + lineItems_.remove(index); + onChanged(); + } else { + lineItemsBuilder_.remove(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]; + */ + 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]; + */ + public com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder getLineItemsOrBuilder( + int index) { + if (lineItemsBuilder_ == null) { + 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]; + */ + public java.util.List + getLineItemsOrBuilderList() { + if (lineItemsBuilder_ != null) { + return lineItemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(lineItems_); + } + } + /** + *
+     * Output only. The items being purchased.
+     * 
+ * + * 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()); + } + /** + *
+     * Output only. The items being purchased.
+     * 
+ * + * 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()); + } + /** + *
+     * Output only. The items being purchased.
+     * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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> + 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()); + lineItems_ = null; + } + return lineItemsBuilder_; + } + + private java.util.List cancelledLineItems_ = + java.util.Collections.emptyList(); + private void ensureCancelledLineItemsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + 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_; + + /** + *
+     * 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]; + */ + public java.util.List getCancelledLineItemsList() { + if (cancelledLineItemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cancelledLineItems_); + } else { + return cancelledLineItemsBuilder_.getMessageList(); + } + } + /** + *
+     * 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]; + */ + public int getCancelledLineItemsCount() { + if (cancelledLineItemsBuilder_ == null) { + return cancelledLineItems_.size(); + } else { + return cancelledLineItemsBuilder_.getCount(); + } + } + /** + *
+     * 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]; + */ + public com.google.cloud.commerce.consumer.procurement.v1.LineItem getCancelledLineItems(int index) { + if (cancelledLineItemsBuilder_ == null) { + return cancelledLineItems_.get(index); + } else { + return cancelledLineItemsBuilder_.getMessage(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]; + */ + public Builder setCancelledLineItems( + int index, com.google.cloud.commerce.consumer.procurement.v1.LineItem value) { + if (cancelledLineItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCancelledLineItemsIsMutable(); + cancelledLineItems_.set(index, value); + onChanged(); + } else { + cancelledLineItemsBuilder_.setMessage(index, value); + } + 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]; + */ + public Builder setCancelledLineItems( + int index, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { + if (cancelledLineItemsBuilder_ == null) { + ensureCancelledLineItemsIsMutable(); + cancelledLineItems_.set(index, builderForValue.build()); + onChanged(); + } else { + cancelledLineItemsBuilder_.setMessage(index, builderForValue.build()); + } + 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]; + */ + public Builder addCancelledLineItems(com.google.cloud.commerce.consumer.procurement.v1.LineItem value) { + if (cancelledLineItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCancelledLineItemsIsMutable(); + cancelledLineItems_.add(value); + onChanged(); + } else { + cancelledLineItemsBuilder_.addMessage(value); + } + 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]; + */ + public Builder addCancelledLineItems( + int index, com.google.cloud.commerce.consumer.procurement.v1.LineItem value) { + if (cancelledLineItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCancelledLineItemsIsMutable(); + cancelledLineItems_.add(index, value); + onChanged(); + } else { + cancelledLineItemsBuilder_.addMessage(index, value); + } + 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]; + */ + public Builder addCancelledLineItems( + com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { + if (cancelledLineItemsBuilder_ == null) { + ensureCancelledLineItemsIsMutable(); + cancelledLineItems_.add(builderForValue.build()); + onChanged(); + } else { + cancelledLineItemsBuilder_.addMessage(builderForValue.build()); + } + 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]; + */ + public Builder addCancelledLineItems( + int index, com.google.cloud.commerce.consumer.procurement.v1.LineItem.Builder builderForValue) { + if (cancelledLineItemsBuilder_ == null) { + ensureCancelledLineItemsIsMutable(); + cancelledLineItems_.add(index, builderForValue.build()); + onChanged(); + } else { + cancelledLineItemsBuilder_.addMessage(index, builderForValue.build()); + } + 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]; + */ + public Builder addAllCancelledLineItems( + java.lang.Iterable values) { + if (cancelledLineItemsBuilder_ == null) { + ensureCancelledLineItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cancelledLineItems_); + onChanged(); + } else { + cancelledLineItemsBuilder_.addAllMessages(values); + } + 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]; + */ + public Builder clearCancelledLineItems() { + if (cancelledLineItemsBuilder_ == null) { + cancelledLineItems_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + cancelledLineItemsBuilder_.clear(); + } + 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]; + */ + public Builder removeCancelledLineItems(int index) { + if (cancelledLineItemsBuilder_ == null) { + ensureCancelledLineItemsIsMutable(); + cancelledLineItems_.remove(index); + onChanged(); + } else { + cancelledLineItemsBuilder_.remove(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]; + */ + 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]; + */ + public com.google.cloud.commerce.consumer.procurement.v1.LineItemOrBuilder getCancelledLineItemsOrBuilder( + int index) { + if (cancelledLineItemsBuilder_ == null) { + 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]; + */ + public java.util.List + getCancelledLineItemsOrBuilderList() { + if (cancelledLineItemsBuilder_ != null) { + return cancelledLineItemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(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]; + */ + 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]; + */ + 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]; + */ + 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> + 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>( + cancelledLineItems_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + cancelledLineItems_ = null; + } + return cancelledLineItemsBuilder_; + } + + 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_; + /** + *
+     * Output only. The creation timestamp.
+     * 
+ * + * .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]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + 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]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Output only. The creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Output only. The creation timestamp.
+     * 
+ * + * .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()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Output only. The creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. The creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. The creation timestamp.
+     * 
+ * + * .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_; + } + } + /** + *
+     * Output only. The creation timestamp.
+     * 
+ * + * .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> + 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()); + createTime_ = null; + } + return createTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. The last update timestamp.
+     * 
+ * + * .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]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + 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]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Output only. The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Output only. The last update timestamp.
+     * 
+ * + * .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()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Output only. The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. The last update timestamp.
+     * 
+ * + * .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_; + } + } + /** + *
+     * Output only. The last update timestamp.
+     * 
+ * + * .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> + 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()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The weak etag of the order.
+     * 
+ * + * string etag = 11; + * @return The bytes for etag. + */ + 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); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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(); } + etag_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The weak etag of the order.
+     * 
+ * + * string etag = 11; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + 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(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.commerce.consumer.procurement.v1.Order getDefaultInstance() { + 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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/OrderOrBuilder.java new file mode 100644 index 000000000000..e6d01e457598 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/OrderOrBuilder.java @@ -0,0 +1,215 @@ +// 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 + // @@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
+   * `billingAccounts/{billing_account}/orders/{order}`.
+   * 
+ * + * 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
+   * `billingAccounts/{billing_account}/orders/{order}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + 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(); + + /** + *
+   * Output only. The items being purchased.
+   * 
+ * + * repeated .google.cloud.commerce.consumer.procurement.v1.LineItem line_items = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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]; + */ + 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]; + */ + 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]; + */ + 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]; + */ + 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]; + */ + 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]; + */ + 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]; + */ + 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]; + */ + 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]; + */ + 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]; + * @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]; + * @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]; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Output only. The last update timestamp.
+   * 
+ * + * .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]; + * @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]; + */ + 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(); +} 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 new file mode 100644 index 000000000000..8dd368901f5c --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/OrderOuterClass.java @@ -0,0 +1,210 @@ +// 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\237\002\n1com" + + ".google.cloud.commerce.consumer.procurem" + + "ent.v1P\001ZScloud.google.com/go/commerce/c" + + "onsumer/procurement/apiv1/procurementpb;" + + "procurementpb\352A\221\001\n)commerceoffercatalog." + + "googleapis.com/Offer\022)services/{service}" + + "/standardOffers/{offer}\0229billingAccounts" + + "/{consumer_billing_account}/offers/{offe" + + "r}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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Parameter.java new file mode 100644 index 000000000000..349a7fbb55c2 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Parameter.java @@ -0,0 +1,1796 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.Parameter) + ParameterOrBuilder { +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) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.commerce.consumer.procurement.v1.Parameter.class, com.google.cloud.commerce.consumer.procurement.v1.Parameter.Builder.class); + } + + 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(); + + /** + *
+     * 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 + // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.Parameter.Value) + ValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use Value.newBuilder() to construct. + private Value(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Value() { + } + + @java.lang.Override + @SuppressWarnings({"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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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, + 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; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KindCase valueOf(int value) { + return forNumber(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; + } + } + public int getNumber() { + return this.value; + } + }; + + 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 + public boolean hasInt64Value() { + return kindCase_ == 3; + } + /** + *
+     * Represents an int64 value.
+     * 
+ * + * int64 int64_value = 3; + * @return The int64Value. + */ + @java.lang.Override + public long getInt64Value() { + if (kindCase_ == 3) { + return (java.lang.Long) kind_; + } + return 0L; + } + + 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() { + java.lang.Object ref = ""; + if (kindCase_ == 4) { + ref = kind_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (kindCase_ == 4) { + kind_ = s; + } + return s; + } + } + /** + *
+     * Represents a string value.
+     * 
+ * + * string string_value = 4; + * @return The bytes for stringValue. + */ + 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); + if (kindCase_ == 4) { + kind_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean hasDoubleValue() { + return kindCase_ == 5; + } + /** + *
+     * Represents a double value.
+     * 
+ * + * double double_value = 5; + * @return The doubleValue. + */ + @java.lang.Override + public double getDoubleValue() { + if (kindCase_ == 5) { + return (java.lang.Double) kind_; + } + return 0D; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (kindCase_ == 3) { + 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_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (kindCase_ == 3) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getKindCase().equals(other.getKindCase())) return false; + switch (kindCase_) { + case 3: + if (getInt64Value() + != other.getInt64Value()) return false; + break; + case 4: + if (!getStringValue() + .equals(other.getStringValue())) return false; + break; + case 5: + if (java.lang.Double.doubleToLongBits(getDoubleValue()) + != java.lang.Double.doubleToLongBits( + other.getDoubleValue())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (kindCase_) { + case 3: + hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInt64Value()); + break; + case 4: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 5: + hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value parseFrom( + 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) + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value 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.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) + throws java.io.IOException { + 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, + 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); + } + 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); + } + + @java.lang.Override + 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) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + kindCase_ = 0; + kind_ = null; + return this; + } + + @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; + } + + @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(); + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value build() { + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); } + buildPartialOneofs(result); + onBuilt(); + return 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) { + result.kindCase_ = kindCase_; + result.kind_ = this.kind_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + 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); + } 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; + 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; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int kindCase_ = 0; + private java.lang.Object kind_; + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public Builder clearKind() { + kindCase_ = 0; + kind_ = null; + onChanged(); + return this; + } + + 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() { + if (kindCase_ == 3) { + return (java.lang.Long) kind_; + } + return 0L; + } + /** + *
+       * Represents an int64 value.
+       * 
+ * + * int64 int64_value = 3; + * @param value The int64Value to set. + * @return This builder for chaining. + */ + public Builder setInt64Value(long value) { + + kindCase_ = 3; + kind_ = value; + onChanged(); + return this; + } + /** + *
+       * Represents an int64 value.
+       * 
+ * + * int64 int64_value = 3; + * @return This builder for chaining. + */ + public Builder clearInt64Value() { + if (kindCase_ == 3) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + return this; + } + + /** + *
+       * Represents a string value.
+       * 
+ * + * string string_value = 4; + * @return Whether the stringValue field is set. + */ + @java.lang.Override + public boolean hasStringValue() { + return kindCase_ == 4; + } + /** + *
+       * Represents a string value.
+       * 
+ * + * string string_value = 4; + * @return The stringValue. + */ + @java.lang.Override + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (kindCase_ == 4) { + ref = kind_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (kindCase_ == 4) { + kind_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Represents a string value.
+       * 
+ * + * string string_value = 4; + * @return The bytes for stringValue. + */ + @java.lang.Override + 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); + if (kindCase_ == 4) { + kind_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * 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(); } + kindCase_ = 4; + kind_ = value; + onChanged(); + return this; + } + /** + *
+       * Represents a string value.
+       * 
+ * + * string string_value = 4; + * @return This builder for chaining. + */ + public Builder clearStringValue() { + if (kindCase_ == 4) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + 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(); } + checkByteStringIsUtf8(value); + kindCase_ = 4; + kind_ = value; + onChanged(); + return this; + } + + /** + *
+       * 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() { + if (kindCase_ == 5) { + return (java.lang.Double) kind_; + } + return 0D; + } + /** + *
+       * Represents a double value.
+       * 
+ * + * double double_value = 5; + * @param value The doubleValue to set. + * @return This builder for chaining. + */ + public Builder setDoubleValue(double value) { + + kindCase_ = 5; + kind_ = value; + onChanged(); + return this; + } + /** + *
+       * Represents a double value.
+       * 
+ * + * double double_value = 5; + * @return This builder for chaining. + */ + public Builder clearDoubleValue() { + if (kindCase_ == 5) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + 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() { + 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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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 + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + 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_; + } + /** + *
+   * Value of parameter.
+   * 
+ * + * .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_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (value_ != null) { + output.writeMessage(2, getValue()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getValue()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getName() + .equals(other.getName())) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.commerce.consumer.procurement.v1.Parameter parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + return this; + } + + @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; + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.Parameter getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1.Parameter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.Parameter build() { + com.google.cloud.commerce.consumer.procurement.v1.Parameter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.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(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + 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.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the parameter.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Name of the parameter.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + 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(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + 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_; + /** + *
+     * 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_; + } 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) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + } else { + valueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * 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.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + 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) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + value_ != null && + value_ != com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); + } else { + value_ = value; + } + } else { + valueBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Value of parameter.
+     * 
+ * + * .google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2; + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + onChanged(); + 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() { + 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() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + com.google.cloud.commerce.consumer.procurement.v1.Parameter.Value.getDefaultInstance() : value_; + } + } + /** + *
+     * Value of parameter.
+     * 
+ * + * .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> + 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()); + value_ = null; + } + return valueBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.commerce.consumer.procurement.v1.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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ParameterOrBuilder.java new file mode 100644 index 000000000000..7c87ef04a8a0 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ParameterOrBuilder.java @@ -0,0 +1,56 @@ +// 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 + // @@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(); + + /** + *
+   * 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.
+   * 
+ * + * .google.cloud.commerce.consumer.procurement.v1.Parameter.Value value = 2; + */ + com.google.cloud.commerce.consumer.procurement.v1.Parameter.ValueOrBuilder getValueOrBuilder(); +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderMetadata.java new file mode 100644 index 000000000000..55cf6bbadfb6 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderMetadata.java @@ -0,0 +1,408 @@ +// 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].
+ * 
+ * + * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata} + */ +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; + // Use PlaceOrderMetadata.newBuilder() to construct. + private PlaceOrderMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PlaceOrderMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata parseFrom( + 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) + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.commerce.consumer.procurement.v1.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.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) + throws java.io.IOException { + 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, + 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); + } + 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); + } + + @java.lang.Override + 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) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + 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].
+   * 
+ * + * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata} + */ + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @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; + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata build() { + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + 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); + } 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; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata(); + } + + 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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata 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/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 new file mode 100644 index 000000000000..5e3ceacea42c --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderRequest.java new file mode 100644 index 000000000000..cb4684163bae --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderRequest.java @@ -0,0 +1,1418 @@ +// 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].
+ * 
+ * + * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest} + */ +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; + // Use PlaceOrderRequest.newBuilder() to construct. + private PlaceOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PlaceOrderRequest() { + parent_ = ""; + displayName_ = ""; + lineItemInfo_ = java.util.Collections.emptyList(); + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINE_ITEM_INFO_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + 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]; + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public java.util.List + 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]; + */ + @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]; + */ + @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]; + */ + @java.lang.Override + 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
+   * ID for at least 120 minutes after the first request.
+   *
+   * The request ID must be a valid
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
+   * 
+ * + * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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
+   * ID for at least 120 minutes after the first request.
+   *
+   * The request ID must be a valid
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
+   * 
+ * + * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + @java.lang.Override + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, requestId_); + } + for (int i = 0; i < lineItemInfo_.size(); i++) { + output.writeMessage(10, lineItemInfo_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getLineItemInfoCount() > 0) { + hash = (37 * hash) + LINE_ITEM_INFO_FIELD_NUMBER; + hash = (53 * hash) + getLineItemInfoList().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest parseFrom( + 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) + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest 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.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) + throws java.io.IOException { + 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, + 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); + } + 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); + } + + @java.lang.Override + 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) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + 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].
+   * 
+ * + * Protobuf type {@code google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest} + */ + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + displayName_ = ""; + if (lineItemInfoBuilder_ == null) { + lineItemInfo_ = java.util.Collections.emptyList(); + } else { + lineItemInfo_ = null; + lineItemInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + requestId_ = ""; + return this; + } + + @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; + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest build() { + com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return 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_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.lineItemInfo_ = lineItemInfo_; + } else { + result.lineItemInfo_ = lineItemInfoBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + 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); + } 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; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (lineItemInfoBuilder_ == null) { + if (!other.lineItemInfo_.isEmpty()) { + if (lineItemInfo_.isEmpty()) { + lineItemInfo_ = other.lineItemInfo_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureLineItemInfoIsMutable(); + lineItemInfo_.addAll(other.lineItemInfo_); + } + onChanged(); + } + } else { + if (!other.lineItemInfo_.isEmpty()) { + if (lineItemInfoBuilder_.isEmpty()) { + lineItemInfoBuilder_.dispose(); + lineItemInfoBuilder_ = null; + lineItemInfo_ = other.lineItemInfo_; + bitField0_ = (bitField0_ & ~0x00000004); + lineItemInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLineItemInfoFieldBuilder() : null; + } else { + lineItemInfoBuilder_.addAllMessages(other.lineItemInfo_); + } + } + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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) = { ... } + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + 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) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (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) = { ... } + * @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(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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(); } + 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() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + 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(); } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List lineItemInfo_ = + java.util.Collections.emptyList(); + private void ensureLineItemInfoIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + 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_; + + /** + *
+     * 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]; + */ + public java.util.List getLineItemInfoList() { + if (lineItemInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(lineItemInfo_); + } else { + return lineItemInfoBuilder_.getMessageList(); + } + } + /** + *
+     * 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]; + */ + public int getLineItemInfoCount() { + if (lineItemInfoBuilder_ == null) { + return lineItemInfo_.size(); + } else { + return lineItemInfoBuilder_.getCount(); + } + } + /** + *
+     * 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]; + */ + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo getLineItemInfo(int index) { + if (lineItemInfoBuilder_ == null) { + return lineItemInfo_.get(index); + } else { + return lineItemInfoBuilder_.getMessage(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]; + */ + public Builder setLineItemInfo( + int index, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { + if (lineItemInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLineItemInfoIsMutable(); + lineItemInfo_.set(index, value); + onChanged(); + } else { + lineItemInfoBuilder_.setMessage(index, value); + } + 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]; + */ + public Builder setLineItemInfo( + int index, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder builderForValue) { + if (lineItemInfoBuilder_ == null) { + ensureLineItemInfoIsMutable(); + lineItemInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + lineItemInfoBuilder_.setMessage(index, builderForValue.build()); + } + 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]; + */ + public Builder addLineItemInfo(com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { + if (lineItemInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLineItemInfoIsMutable(); + lineItemInfo_.add(value); + onChanged(); + } else { + lineItemInfoBuilder_.addMessage(value); + } + 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]; + */ + public Builder addLineItemInfo( + int index, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo value) { + if (lineItemInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLineItemInfoIsMutable(); + lineItemInfo_.add(index, value); + onChanged(); + } else { + lineItemInfoBuilder_.addMessage(index, value); + } + 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]; + */ + public Builder addLineItemInfo( + com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder builderForValue) { + if (lineItemInfoBuilder_ == null) { + ensureLineItemInfoIsMutable(); + lineItemInfo_.add(builderForValue.build()); + onChanged(); + } else { + lineItemInfoBuilder_.addMessage(builderForValue.build()); + } + 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]; + */ + public Builder addLineItemInfo( + int index, com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo.Builder builderForValue) { + if (lineItemInfoBuilder_ == null) { + ensureLineItemInfoIsMutable(); + lineItemInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + lineItemInfoBuilder_.addMessage(index, builderForValue.build()); + } + 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]; + */ + public Builder addAllLineItemInfo( + java.lang.Iterable values) { + if (lineItemInfoBuilder_ == null) { + ensureLineItemInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, lineItemInfo_); + onChanged(); + } else { + lineItemInfoBuilder_.addAllMessages(values); + } + 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]; + */ + public Builder clearLineItemInfo() { + if (lineItemInfoBuilder_ == null) { + lineItemInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + lineItemInfoBuilder_.clear(); + } + 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]; + */ + public Builder removeLineItemInfo(int index) { + if (lineItemInfoBuilder_ == null) { + ensureLineItemInfoIsMutable(); + lineItemInfo_.remove(index); + onChanged(); + } else { + lineItemInfoBuilder_.remove(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]; + */ + 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]; + */ + public com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder getLineItemInfoOrBuilder( + int index) { + if (lineItemInfoBuilder_ == null) { + 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]; + */ + public java.util.List + getLineItemInfoOrBuilderList() { + if (lineItemInfoBuilder_ != null) { + return lineItemInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(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]; + */ + 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]; + */ + 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]; + */ + 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> + 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()); + lineItemInfo_ = null; + } + return lineItemInfoBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + *
+     * Optional. A unique identifier for this request.
+     * The server will ignore subsequent requests that provide a duplicate request
+     * ID for at least 120 minutes after the first request.
+     *
+     * The request ID must be a valid
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. A unique identifier for this request.
+     * The server will ignore subsequent requests that provide a duplicate request
+     * ID for at least 120 minutes after the first request.
+     *
+     * The request ID must be a valid
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
+     * 
+ * + * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. A unique identifier for this request.
+     * The server will ignore subsequent requests that provide a duplicate request
+     * ID for at least 120 minutes after the first request.
+     *
+     * The request ID must be a valid
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
+     * 
+ * + * 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(); } + 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
+     * ID for at least 120 minutes after the first request.
+     *
+     * The request ID must be a valid
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
+     * 
+ * + * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Optional. A unique identifier for this request.
+     * The server will ignore subsequent requests that provide a duplicate request
+     * ID for at least 120 minutes after the first request.
+     *
+     * The request ID must be a valid
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
+     * 
+ * + * 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(); } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest(); + } + + 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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderRequestOrBuilder.java new file mode 100644 index 000000000000..d960ad12a20e --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/PlaceOrderRequestOrBuilder.java @@ -0,0 +1,130 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for parent. + */ + 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(); + + /** + *
+   * 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]; + */ + 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]; + */ + 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]; + */ + 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]; + */ + 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]; + */ + 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
+   * ID for at least 120 minutes after the first request.
+   *
+   * The request ID must be a valid
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
+   * 
+ * + * 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
+   * ID for at least 120 minutes after the first request.
+   *
+   * The request ID must be a valid
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
+   * 
+ * + * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString + getRequestIdBytes(); +} 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 new file mode 100644 index 000000000000..0333107437c3 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ProcurementService.java @@ -0,0 +1,159 @@ +// 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Subscription.java new file mode 100644 index 000000000000..144fb718126b --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/Subscription.java @@ -0,0 +1,962 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.commerce.consumer.procurement.v1.Subscription) + SubscriptionOrBuilder { +private static final long serialVersionUID = 0L; + // Use Subscription.newBuilder() to construct. + private Subscription(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Subscription() { + } + + @java.lang.Override + @SuppressWarnings({"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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + 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 + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + *
+   * The timestamp when the subscription begins, if applicable.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + 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 + 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 + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + *
+   * The timestamp when the subscription ends, if applicable.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + 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
+   * cancelled or rejected.
+   * 
+ * + * bool auto_renewal_enabled = 2; + * @return The autoRenewalEnabled. + */ + @java.lang.Override + public boolean getAutoRenewalEnabled() { + return autoRenewalEnabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (endTime_ != null) { + output.writeMessage(1, getEndTime()); + } + if (autoRenewalEnabled_ != false) { + output.writeBool(2, autoRenewalEnabled_); + } + if (startTime_ != null) { + output.writeMessage(3, getStartTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEndTime()); + } + if (autoRenewalEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, autoRenewalEnabled_); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStartTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime() + .equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (getAutoRenewalEnabled() + != other.getAutoRenewalEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + AUTO_RENEWAL_ENABLED_FIELD_NUMBER; + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.commerce.consumer.procurement.v1.Subscription 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.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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.commerce.consumer.procurement.v1.Subscription 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.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) + throws java.io.IOException { + 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, + 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.Subscription 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.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); + } + + @java.lang.Override + 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) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + autoRenewalEnabled_ = false; + return this; + } + + @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; + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.Subscription getDefaultInstanceForType() { + return com.google.cloud.commerce.consumer.procurement.v1.Subscription.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.commerce.consumer.procurement.v1.Subscription build() { + com.google.cloud.commerce.consumer.procurement.v1.Subscription result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); } + onBuilt(); + return 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(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.autoRenewalEnabled_ = autoRenewalEnabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + 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.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.getAutoRenewalEnabled() != false) { + setAutoRenewalEnabled(other.getAutoRenewalEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // 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_; + /** + *
+     * 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() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + *
+     * The timestamp when the subscription begins, if applicable.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + 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) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The timestamp when the subscription begins, if applicable.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The timestamp when the subscription begins, if applicable.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The timestamp when the subscription begins, if applicable.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The timestamp when the subscription begins, if applicable.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + *
+     * The timestamp when the subscription begins, if applicable.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + startTime_ = null; + } + return startTimeBuilder_; + } + + 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_; + /** + *
+     * 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() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + *
+     * The timestamp when the subscription ends, if applicable.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + 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) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The timestamp when the subscription ends, if applicable.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The timestamp when the subscription ends, if applicable.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The timestamp when the subscription ends, if applicable.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The timestamp when the subscription ends, if applicable.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + *
+     * The timestamp when the subscription ends, if applicable.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + endTime_ = null; + } + return endTimeBuilder_; + } + + 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
+     * cancelled or rejected.
+     * 
+ * + * bool auto_renewal_enabled = 2; + * @return The autoRenewalEnabled. + */ + @java.lang.Override + 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
+     * cancelled or rejected.
+     * 
+ * + * bool auto_renewal_enabled = 2; + * @param value The autoRenewalEnabled to set. + * @return This builder for chaining. + */ + public Builder setAutoRenewalEnabled(boolean value) { + + autoRenewalEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Whether auto renewal is enabled by user choice on current subscription.
+     * This field indicates order/subscription status after pending plan change is
+     * cancelled or rejected.
+     * 
+ * + * bool auto_renewal_enabled = 2; + * @return This builder for chaining. + */ + public Builder clearAutoRenewalEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + autoRenewalEnabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.commerce.consumer.procurement.v1.Subscription(); + } + + 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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/SubscriptionOrBuilder.java new file mode 100644 index 000000000000..714efee40edc --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/SubscriptionOrBuilder.java @@ -0,0 +1,75 @@ +// 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 + // @@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.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + 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.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 1; + */ + 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
+   * cancelled or rejected.
+   * 
+ * + * 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/proto/google/cloud/commerce/consumer/procurement/v1/order.proto new file mode 100644 index 000000000000..ed7c92d0dbeb --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/proto/google/cloud/commerce/consumer/procurement/v1/order.proto @@ -0,0 +1,264 @@ +// 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.commerce.consumer.procurement.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/commerce/consumer/procurement/apiv1/procurementpb;procurementpb"; +option java_multiple_files = true; +option java_package = "com.google.cloud.commerce.consumer.procurement.v1"; +option (google.api.resource_definition) = { + type: "commerceoffercatalog.googleapis.com/Offer" + pattern: "services/{service}/standardOffers/{offer}" + pattern: "billingAccounts/{consumer_billing_account}/offers/{offer}" +}; + +// Type of a line item change. +enum LineItemChangeType { + // Sentinel value. Do not use. + LINE_ITEM_CHANGE_TYPE_UNSPECIFIED = 0; + + // The change is to create a new line item. + LINE_ITEM_CHANGE_TYPE_CREATE = 1; + + // The change is to update an existing line item. + LINE_ITEM_CHANGE_TYPE_UPDATE = 2; + + // The change is to cancel an existing line item. + LINE_ITEM_CHANGE_TYPE_CANCEL = 3; + + // The change is to revert a cancellation. + LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION = 4; +} + +// State of a change. +enum LineItemChangeState { + // Sentinel value. Do not use. + LINE_ITEM_CHANGE_STATE_UNSPECIFIED = 0; + + // Change is in this state when a change is initiated and waiting for + // partner approval. + 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 + // or cancelled depending on the new line item info property (pending Private + // Offer change cannot be cancelled and can only be overwritten by another + // Private Offer). + LINE_ITEM_CHANGE_STATE_APPROVED = 2; + + // Change is in this state after it's been activated. + LINE_ITEM_CHANGE_STATE_COMPLETED = 3; + + // Change is in this state if it was rejected by the partner. + LINE_ITEM_CHANGE_STATE_REJECTED = 4; + + // Change is in this state if it was abandoned by the user. + 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. + LINE_ITEM_CHANGE_STATE_ACTIVATING = 6; +} + +// Predefined types for line item change state reason. +enum LineItemChangeStateReasonType { + // Default value, indicating there's no predefined type for change state + // reason. + LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED = 0; + + // Change is in current state due to term expiration. + LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED = 1; + + // Change is in current state due to user-initiated cancellation. + LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED = 2; + + // Change is in current state due to system-initiated cancellation. + LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED = 3; +} + +// Represents a purchase made by a customer on Cloud Marketplace. +// Creating an order makes sure that both the Google backend systems +// as well as external service provider's systems (if needed) allow use of +// purchased products and ensures the appropriate billing events occur. +// +// An Order can be made against one Product with multiple add-ons (optional) or +// one Quote which might reference multiple products. +// +// Customers typically choose a price plan for each Product purchased when +// they create an order and can change their plan later, if the product allows. +message Order { + option (google.api.resource) = { + type: "cloudcommerceconsumerprocurement.googleapis.com/Order" + pattern: "billingAccounts/{billing_account}/orders/{order}" + }; + + // Output only. The resource name of the order. + // Has the form + // `billingAccounts/{billing_account}/orders/{order}`. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The user-specified name of the order. + string display_name = 10 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The items being purchased. + repeated LineItem line_items = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Line items that were cancelled. + repeated LineItem cancelled_line_items = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The creation timestamp. + google.protobuf.Timestamp create_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last update timestamp. + google.protobuf.Timestamp update_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The weak etag of the order. + string etag = 11; +} + +// A single item within an order. +message LineItem { + // Output only. Line item ID. + string line_item_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Current state and information of this item. It tells what, + // e.g. which offer, is currently effective. + LineItemInfo line_item_info = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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. + LineItemChange pending_change = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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, + // or were rejected by the partner. No more operations are allowed on these + // changes. + repeated LineItemChange change_history = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A change made on a line item. +message LineItemChange { + // 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]; + + // Required. Type of the change to make. + LineItemChangeType change_type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Line item info before the change. + LineItemInfo old_line_item_info = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Line item info after the change. + LineItemInfo new_line_item_info = 4; + + // Output only. State of the change. + LineItemChangeState change_state = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Provider-supplied message explaining the LineItemChange's + // state. Mainly used to communicate progress and ETA for provisioning in the + // case of `PENDING_APPROVAL`, and to explain why the change request was + // denied or canceled in the case of `REJECTED` and `CANCELED` states. + string state_reason = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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 + // `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration, + // immediate cancellation initiated by the user, or system-initiated + // cancellation. + LineItemChangeStateReasonType change_state_reason_type = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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]; + + // Output only. The time when change was initiated. + google.protobuf.Timestamp create_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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]; +} + +// Line item information. +message LineItemInfo { + // 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) = { + type: "commerceoffercatalog.googleapis.com/Offer" + } + ]; + + // Optional. User-provided parameters. + repeated Parameter parameters = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Information about the subscription created, if applicable. + Subscription subscription = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// User-provided Parameters. +message Parameter { + message Value { + // The kind of value. + oneof kind { + // Represents an int64 value. + int64 int64_value = 3; + + // Represents a string value. + string string_value = 4; + + // Represents a double value. + double double_value = 5; + } + } + + // Name of the parameter. + string name = 1; + + // Value of parameter. + Value value = 2; +} + +// Subscription information. +message Subscription { + // The timestamp when the subscription begins, if applicable. + google.protobuf.Timestamp start_time = 3; + + // The timestamp when the subscription ends, if applicable. + google.protobuf.Timestamp end_time = 1; + + // Whether auto renewal is enabled by user choice on current subscription. + // This field indicates order/subscription status after pending plan change is + // cancelled or rejected. + bool auto_renewal_enabled = 2; +} 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/proto/google/cloud/commerce/consumer/procurement/v1/procurement_service.proto new file mode 100644 index 000000000000..3fa40309afde --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/proto/google/cloud/commerce/consumer/procurement/v1/procurement_service.proto @@ -0,0 +1,171 @@ +// 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.commerce.consumer.procurement.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/commerce/consumer/procurement/v1/order.proto"; +import "google/longrunning/operations.proto"; + +option csharp_namespace = "Google.Cloud.Commerce.Consumer.Procurement.V1"; +option go_package = "cloud.google.com/go/commerce/consumer/procurement/apiv1/procurementpb;procurementpb"; +option java_multiple_files = true; +option java_package = "com.google.cloud.commerce.consumer.procurement.v1"; +option php_namespace = "Google\\Cloud\\Commerce\\Consumer\\Procurement\\V1"; +option ruby_package = "Google::Cloud::Commerce::Consumer::Procurement::V1"; + +// ConsumerProcurementService allows customers to make purchases of products +// served by the Cloud Commerce platform. +// +// +// When purchases are made, the +// [ConsumerProcurementService][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService] +// programs the appropriate backends, including both Google's own +// infrastructure, as well as third-party systems, and to enable billing setup +// for charging for the procured item. +// +service ConsumerProcurementService { + option (google.api.default_host) = + "cloudcommerceconsumerprocurement.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.Order]. + // + // This API only supports GCP spend-based committed use + // discounts specified by GCP documentation. + // + // The returned long-running operation is in-progress until the backend + // completes the creation of the resource. Once completed, the order is + // in + // [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1.OrderState.ORDER_STATE_ACTIVE]. + // In case of failure, the order resource will be removed. + rpc PlaceOrder(PlaceOrderRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=billingAccounts/*}/orders:place" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "Order" + metadata_type: "PlaceOrderMetadata" + }; + } + + // Returns the requested + // [Order][google.cloud.commerce.consumer.procurement.v1.Order] resource. + rpc GetOrder(GetOrderRequest) returns (Order) { + option (google.api.http) = { + get: "/v1/{name=billingAccounts/*/orders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists [Order][google.cloud.commerce.consumer.procurement.v1.Order] + // resources that the user has access to, within the scope of the parent + // resource. + rpc ListOrders(ListOrdersRequest) returns (ListOrdersResponse) { + option (google.api.http) = { + get: "/v1/{parent=billingAccounts/*}/orders" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request message for +// [ConsumerProcurementService.PlaceOrder][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.PlaceOrder]. +message PlaceOrderRequest { + // 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) = { + type: "cloudbilling.googleapis.com/BillingAccount" + } + ]; + + // Required. The user-specified name of the order being placed. + string display_name = 6 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Places order for offer. Required when an offer-based order is + // being placed. + repeated LineItemInfo line_item_info = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A unique identifier for this request. + // The server will ignore subsequent requests that provide a duplicate request + // ID for at least 120 minutes after the first request. + // + // The request ID must be a valid + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). + string request_id = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message stored in the metadata field of the Operation returned by +// [ConsumerProcurementService.PlaceOrder][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.PlaceOrder]. +message PlaceOrderMetadata {} + +// Request message for +// [ConsumerProcurementService.GetOrder][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.GetOrder] +message GetOrderRequest { + // Required. The name of the order to retrieve. + string name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [ConsumerProcurementService.ListOrders][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.ListOrders]. +message ListOrdersRequest { + // 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]; + + // The maximum number of entries requested. + // The default page size is 25 and the maximum page size is 200. + int32 page_size = 2; + + // The token for fetching the next page. + string page_token = 3; + + // Filter that you can use to limit the list request. + // + // A query string that can match a selected set of attributes + // with string values. For example, `display_name=abc`. + // Supported query attributes are + // + // * `display_name` + // + // If the query contains special characters other than letters, + // underscore, or digits, the phrase must be quoted with double quotes. For + // example, `display_name="foo:bar"`, where the display name needs to be + // quoted because it contains special character colon. + // + // Queries can be combined with `OR`, and `NOT` to form more complex queries. + // You can also group them to force a desired evaluation order. + // For example, `display_name=abc OR display_name=def`. + string filter = 4; +} + +// Response message for +// [ConsumerProcurementService.ListOrders][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.ListOrders]. +message ListOrdersResponse { + // The list of orders in this response. + repeated Order orders = 1; + + // The token for fetching the next page. + string next_page_token = 2; +} diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..e5b942a29a99 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * 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.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceSettings; +import com.google.cloud.commerce.consumer.procurement.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConsumerProcurementServiceSettings consumerProcurementServiceSettings = + ConsumerProcurementServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ConsumerProcurementServiceClient consumerProcurementServiceClient = + ConsumerProcurementServiceClient.create(consumerProcurementServiceSettings); + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_Create_SetCredentialsProvider_sync] diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..542d52ffdda9 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +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. + */ + +package com.google.cloud.commerce.consumer.procurement.v1.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConsumerProcurementServiceSettings consumerProcurementServiceSettings = + ConsumerProcurementServiceSettings.newHttpJsonBuilder().build(); + ConsumerProcurementServiceClient consumerProcurementServiceClient = + ConsumerProcurementServiceClient.create(consumerProcurementServiceSettings); + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_Create_SetCredentialsProvider1_sync] diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..b19b95300d8a --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/create/SyncCreateSetEndpoint.java @@ -0,0 +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. + */ + +package com.google.cloud.commerce.consumer.procurement.v1.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_Create_SetEndpoint_sync] +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceSettings; +import com.google.cloud.commerce.consumer.procurement.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConsumerProcurementServiceSettings consumerProcurementServiceSettings = + ConsumerProcurementServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ConsumerProcurementServiceClient consumerProcurementServiceClient = + ConsumerProcurementServiceClient.create(consumerProcurementServiceSettings); + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_Create_SetEndpoint_sync] diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/AsyncGetOrder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/AsyncGetOrder.java new file mode 100644 index 000000000000..c9c64805a528 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/AsyncGetOrder.java @@ -0,0 +1,47 @@ +/* + * 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.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_GetOrder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest; +import com.google.cloud.commerce.consumer.procurement.v1.Order; + +public class AsyncGetOrder { + + public static void main(String[] args) throws Exception { + asyncGetOrder(); + } + + public static void asyncGetOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConsumerProcurementServiceClient consumerProcurementServiceClient = + ConsumerProcurementServiceClient.create()) { + GetOrderRequest request = GetOrderRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + consumerProcurementServiceClient.getOrderCallable().futureCall(request); + // Do something. + Order response = future.get(); + } + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_GetOrder_async] diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/SyncGetOrder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/SyncGetOrder.java new file mode 100644 index 000000000000..1d79a0735233 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/SyncGetOrder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.commerce.consumer.procurement.v1.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_GetOrder_sync] +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest; +import com.google.cloud.commerce.consumer.procurement.v1.Order; + +public class SyncGetOrder { + + public static void main(String[] args) throws Exception { + syncGetOrder(); + } + + public static void syncGetOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConsumerProcurementServiceClient consumerProcurementServiceClient = + ConsumerProcurementServiceClient.create()) { + GetOrderRequest request = GetOrderRequest.newBuilder().setName("name3373707").build(); + Order response = consumerProcurementServiceClient.getOrder(request); + } + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_GetOrder_sync] diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/SyncGetOrderString.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/SyncGetOrderString.java new file mode 100644 index 000000000000..c35a3aaca9b2 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/getorder/SyncGetOrderString.java @@ -0,0 +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. + */ + +package com.google.cloud.commerce.consumer.procurement.v1.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_GetOrder_String_sync] +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1.Order; + +public class SyncGetOrderString { + + public static void main(String[] args) throws Exception { + syncGetOrderString(); + } + + public static void syncGetOrderString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConsumerProcurementServiceClient consumerProcurementServiceClient = + ConsumerProcurementServiceClient.create()) { + String name = "name3373707"; + Order response = consumerProcurementServiceClient.getOrder(name); + } + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_GetOrder_String_sync] diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/AsyncListOrders.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/AsyncListOrders.java new file mode 100644 index 000000000000..f1a5c7835a0e --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/AsyncListOrders.java @@ -0,0 +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. + */ + +package com.google.cloud.commerce.consumer.procurement.v1.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_ListOrders_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest; +import com.google.cloud.commerce.consumer.procurement.v1.Order; + +public class AsyncListOrders { + + public static void main(String[] args) throws Exception { + asyncListOrders(); + } + + public static void asyncListOrders() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConsumerProcurementServiceClient consumerProcurementServiceClient = + ConsumerProcurementServiceClient.create()) { + ListOrdersRequest request = + ListOrdersRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + consumerProcurementServiceClient.listOrdersPagedCallable().futureCall(request); + // Do something. + for (Order element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_ListOrders_async] diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/AsyncListOrdersPaged.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/AsyncListOrdersPaged.java new file mode 100644 index 000000000000..334474294782 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/AsyncListOrdersPaged.java @@ -0,0 +1,63 @@ +/* + * 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.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_ListOrders_Paged_async] +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest; +import com.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse; +import com.google.cloud.commerce.consumer.procurement.v1.Order; +import com.google.common.base.Strings; + +public class AsyncListOrdersPaged { + + public static void main(String[] args) throws Exception { + asyncListOrdersPaged(); + } + + public static void asyncListOrdersPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConsumerProcurementServiceClient consumerProcurementServiceClient = + ConsumerProcurementServiceClient.create()) { + ListOrdersRequest request = + ListOrdersRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListOrdersResponse response = + consumerProcurementServiceClient.listOrdersCallable().call(request); + for (Order element : response.getOrdersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_ListOrders_Paged_async] diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/SyncListOrders.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/SyncListOrders.java new file mode 100644 index 000000000000..9a0e1a841c25 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/SyncListOrders.java @@ -0,0 +1,51 @@ +/* + * 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.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_ListOrders_sync] +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest; +import com.google.cloud.commerce.consumer.procurement.v1.Order; + +public class SyncListOrders { + + public static void main(String[] args) throws Exception { + syncListOrders(); + } + + public static void syncListOrders() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConsumerProcurementServiceClient consumerProcurementServiceClient = + ConsumerProcurementServiceClient.create()) { + ListOrdersRequest request = + ListOrdersRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (Order element : consumerProcurementServiceClient.listOrders(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_ListOrders_sync] diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/SyncListOrdersString.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/SyncListOrdersString.java new file mode 100644 index 000000000000..65784421d554 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/listorders/SyncListOrdersString.java @@ -0,0 +1,44 @@ +/* + * 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.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_ListOrders_String_sync] +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1.Order; + +public class SyncListOrdersString { + + public static void main(String[] args) throws Exception { + syncListOrdersString(); + } + + public static void syncListOrdersString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConsumerProcurementServiceClient consumerProcurementServiceClient = + ConsumerProcurementServiceClient.create()) { + String parent = "parent-995424086"; + for (Order element : consumerProcurementServiceClient.listOrders(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_ListOrders_String_sync] diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/AsyncPlaceOrder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/AsyncPlaceOrder.java new file mode 100644 index 000000000000..f76347e4af89 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/AsyncPlaceOrder.java @@ -0,0 +1,56 @@ +/* + * 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.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_PlaceOrder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.commerce.consumer.procurement.v1.BillingAccountName; +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo; +import com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncPlaceOrder { + + public static void main(String[] args) throws Exception { + asyncPlaceOrder(); + } + + public static void asyncPlaceOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConsumerProcurementServiceClient consumerProcurementServiceClient = + ConsumerProcurementServiceClient.create()) { + PlaceOrderRequest request = + PlaceOrderRequest.newBuilder() + .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + .setDisplayName("displayName1714148973") + .addAllLineItemInfo(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + consumerProcurementServiceClient.placeOrderCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_PlaceOrder_async] diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/AsyncPlaceOrderLRO.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/AsyncPlaceOrderLRO.java new file mode 100644 index 000000000000..e92dad0ec703 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/AsyncPlaceOrderLRO.java @@ -0,0 +1,57 @@ +/* + * 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.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_PlaceOrder_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.commerce.consumer.procurement.v1.BillingAccountName; +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo; +import com.google.cloud.commerce.consumer.procurement.v1.Order; +import com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata; +import com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest; +import java.util.ArrayList; + +public class AsyncPlaceOrderLRO { + + public static void main(String[] args) throws Exception { + asyncPlaceOrderLRO(); + } + + public static void asyncPlaceOrderLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConsumerProcurementServiceClient consumerProcurementServiceClient = + ConsumerProcurementServiceClient.create()) { + PlaceOrderRequest request = + PlaceOrderRequest.newBuilder() + .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + .setDisplayName("displayName1714148973") + .addAllLineItemInfo(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + consumerProcurementServiceClient.placeOrderOperationCallable().futureCall(request); + // Do something. + Order response = future.get(); + } + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_PlaceOrder_LRO_async] diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/SyncPlaceOrder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/SyncPlaceOrder.java new file mode 100644 index 000000000000..51bfd91cd212 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservice/placeorder/SyncPlaceOrder.java @@ -0,0 +1,52 @@ +/* + * 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.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_PlaceOrder_sync] +import com.google.cloud.commerce.consumer.procurement.v1.BillingAccountName; +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient; +import com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo; +import com.google.cloud.commerce.consumer.procurement.v1.Order; +import com.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest; +import java.util.ArrayList; + +public class SyncPlaceOrder { + + public static void main(String[] args) throws Exception { + syncPlaceOrder(); + } + + public static void syncPlaceOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConsumerProcurementServiceClient consumerProcurementServiceClient = + ConsumerProcurementServiceClient.create()) { + PlaceOrderRequest request = + PlaceOrderRequest.newBuilder() + .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + .setDisplayName("displayName1714148973") + .addAllLineItemInfo(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + Order response = consumerProcurementServiceClient.placeOrderAsync(request).get(); + } + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_PlaceOrder_sync] diff --git a/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservicesettings/getorder/SyncGetOrder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservicesettings/getorder/SyncGetOrder.java new file mode 100644 index 000000000000..affd6fea7b2f --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/consumerprocurementservicesettings/getorder/SyncGetOrder.java @@ -0,0 +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. + */ + +package com.google.cloud.commerce.consumer.procurement.v1.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementServiceSettings_GetOrder_sync] +import com.google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceSettings; +import java.time.Duration; + +public class SyncGetOrder { + + public static void main(String[] args) throws Exception { + syncGetOrder(); + } + + public static void syncGetOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConsumerProcurementServiceSettings.Builder consumerProcurementServiceSettingsBuilder = + ConsumerProcurementServiceSettings.newBuilder(); + consumerProcurementServiceSettingsBuilder + .getOrderSettings() + .setRetrySettings( + consumerProcurementServiceSettingsBuilder + .getOrderSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ConsumerProcurementServiceSettings consumerProcurementServiceSettings = + consumerProcurementServiceSettingsBuilder.build(); + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementServiceSettings_GetOrder_sync] 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/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/stub/consumerprocurementservicestubsettings/getorder/SyncGetOrder.java new file mode 100644 index 000000000000..a9f34fda0d70 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1/stub/consumerprocurementservicestubsettings/getorder/SyncGetOrder.java @@ -0,0 +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. + */ + +package com.google.cloud.commerce.consumer.procurement.v1.stub.samples; + +// [START cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementServiceStubSettings_GetOrder_sync] +import com.google.cloud.commerce.consumer.procurement.v1.stub.ConsumerProcurementServiceStubSettings; +import java.time.Duration; + +public class SyncGetOrder { + + public static void main(String[] args) throws Exception { + syncGetOrder(); + } + + public static void syncGetOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConsumerProcurementServiceStubSettings.Builder consumerProcurementServiceSettingsBuilder = + ConsumerProcurementServiceStubSettings.newBuilder(); + consumerProcurementServiceSettingsBuilder + .getOrderSettings() + .setRetrySettings( + consumerProcurementServiceSettingsBuilder + .getOrderSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ConsumerProcurementServiceStubSettings consumerProcurementServiceSettings = + consumerProcurementServiceSettingsBuilder.build(); + } +} +// [END cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementServiceStubSettings_GetOrder_sync] diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClient.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClient.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClient.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClient.java diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java similarity index 99% rename from java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java index 25a3e256ecee..975d2816f73e 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java @@ -29,6 +29,7 @@ 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/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/gapic_metadata.json b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/gapic_metadata.json similarity index 100% rename from java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/gapic_metadata.json rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/gapic_metadata.json diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/package-info.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/package-info.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/package-info.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/package-info.java diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStub.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStub.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStub.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStub.java diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceCallableFactory.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceCallableFactory.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceCallableFactory.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceCallableFactory.java diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceStub.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceStub.java similarity index 99% rename from java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceStub.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceStub.java index 079d63fa0a48..9879c00a1d80 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceStub.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/GrpcConsumerProcurementServiceStub.java @@ -38,6 +38,7 @@ 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/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceCallableFactory.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceCallableFactory.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceCallableFactory.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceCallableFactory.java diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceStub.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceStub.java similarity index 99% rename from java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceStub.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceStub.java index 6a49f391afd2..b13aaba95d0a 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceStub.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceStub.java @@ -31,6 +31,7 @@ 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/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1alpha1/reflect-config.json b/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 similarity index 100% rename from java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/resources/META-INF/native-image/com.google.cloud.commerce.consumer.procurement.v1alpha1/reflect-config.json rename to 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 diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientHttpJsonTest.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientHttpJsonTest.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientHttpJsonTest.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientHttpJsonTest.java diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientTest.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientTest.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientTest.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClientTest.java diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementService.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementService.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementService.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementService.java diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementServiceImpl.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementServiceImpl.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementServiceImpl.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/google-cloud-cloudcommerceconsumerprocurement/src/test/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/MockConsumerProcurementServiceImpl.java diff --git a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.java similarity index 57% rename from java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.java index 8954381dc3f2..a180022d0255 100644 --- a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * 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.
@@ -32,203 +15,153 @@
  */
 @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<
-          com.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest,
-          com.google.longrunning.Operation>
-      getPlaceOrderMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          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;
+  public static io.grpc.MethodDescriptor getPlaceOrderMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest,
-          com.google.cloud.commerce.consumer.procurement.v1alpha1.Order>
-      getGetOrderMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          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;
+  public static io.grpc.MethodDescriptor getGetOrderMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest,
-          com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse>
-      getListOrdersMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          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;
+  public static io.grpc.MethodDescriptor getListOrdersMethod() {
+    io.grpc.MethodDescriptor 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.
@@ -242,8 +175,6 @@ public ConsumerProcurementServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Creates a new
      * [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order].
@@ -256,49 +187,38 @@ 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< - com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse> - responseObserver) { + default void listOrders(com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest request, + io.grpc.stub.StreamObserver 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.
@@ -309,18 +229,16 @@ default void listOrders(
    * for charging for the procured item.
    * 
*/ - public abstract static class ConsumerProcurementServiceImplBase + public static abstract 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.
@@ -345,8 +263,6 @@ protected ConsumerProcurementServiceStub build(
     }
 
     /**
-     *
-     *
      * 
      * Creates a new
      * [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order].
@@ -359,44 +275,34 @@ 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< - com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse> - responseObserver) { + public void listOrders(com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListOrdersMethod(), getCallOptions()), request, responseObserver); } @@ -404,7 +310,6 @@ public void listOrders( /** * 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.
@@ -429,8 +334,6 @@ protected ConsumerProcurementServiceBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Creates a new
      * [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order].
@@ -443,47 +346,38 @@ 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.
@@ -508,8 +402,6 @@ protected ConsumerProcurementServiceFutureStub build(
     }
 
     /**
-     *
-     *
      * 
      * Creates a new
      * [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order].
@@ -522,42 +414,34 @@ 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< - com.google.cloud.commerce.consumer.procurement.v1alpha1.Order> - getOrder(com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest request) { + public com.google.common.util.concurrent.ListenableFuture 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< - com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse> - listOrders( - com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest request) { + public com.google.common.util.concurrent.ListenableFuture listOrders( + com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListOrdersMethod(), getCallOptions()), request); } @@ -567,11 +451,11 @@ protected ConsumerProcurementServiceFutureStub build( private static final int METHODID_GET_ORDER = 1; private static final int METHODID_LIST_ORDERS = 2; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private 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; @@ -585,23 +469,16 @@ private static final class MethodHandlers 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< - com.google.cloud.commerce.consumer.procurement.v1alpha1.Order>) - responseObserver); + serviceImpl.getOrder((com.google.cloud.commerce.consumer.procurement.v1alpha1.GetOrderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_ORDERS: - serviceImpl.listOrders( - (com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse>) - responseObserver); + serviceImpl.listOrders((com.google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -622,37 +499,36 @@ 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 abstract static class ConsumerProcurementServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract 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 @@ -689,14 +565,12 @@ 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/BillingAccountName.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/BillingAccountName.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/BillingAccountName.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/BillingAccountName.java diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequest.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequest.java similarity index 61% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequest.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequest.java index 5cb055fb5e4b..49cf369e690d 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequest.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequest.java @@ -1,26 +1,9 @@ -/* - * 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]
@@ -28,54 +11,48 @@
  *
  * 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 @@ -84,29 +61,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 { @@ -115,7 +92,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,7 +103,8 @@ 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_); } @@ -151,15 +128,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; } @@ -179,105 +156,98 @@ 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]
@@ -285,34 +255,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -322,22 +291,19 @@ 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);
       }
@@ -346,17 +312,13 @@ 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_;
@@ -367,52 +329,46 @@ private void buildPartial0(
     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;
@@ -444,19 +400,17 @@ 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) {
@@ -466,25 +420,22 @@ 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; @@ -493,21 +444,20 @@ 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 { @@ -515,35 +465,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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() { @@ -553,30 +496,26 @@ 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); } @@ -586,44 +525,41 @@ 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; @@ -635,8 +571,9 @@ 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequestOrBuilder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequestOrBuilder.java similarity index 52% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequestOrBuilder.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequestOrBuilder.java index d779465ac661..519fb146a82d 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequestOrBuilder.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/GetOrderRequestOrBuilder.java @@ -1,50 +1,29 @@ -/* - * 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItem.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItem.java similarity index 60% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItem.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItem.java index 843999cf02e3..6be7e50ee899 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItem.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItem.java @@ -1,42 +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/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(); @@ -44,38 +26,33 @@ 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 @@ -84,29 +61,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 { @@ -117,17 +94,12 @@ public com.google.protobuf.ByteString getLineItemIdBytes() { 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 @@ -135,60 +107,41 @@ 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 @@ -196,57 +149,37 @@ 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,
@@ -254,18 +187,13 @@ 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 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,
@@ -273,19 +201,14 @@ 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 java.util.List< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder> + public java.util.List 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,
@@ -293,17 +216,13 @@ 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 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,
@@ -311,18 +230,13 @@ 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,
@@ -330,18 +244,15 @@ 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; @@ -353,7 +264,8 @@ 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_); } @@ -379,13 +291,16 @@ 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; @@ -395,24 +310,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.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; } @@ -444,136 +362,131 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -600,14 +513,13 @@ 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(); } @@ -622,18 +534,14 @@ 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_); @@ -645,19 +553,20 @@ private void buildPartialRepeatedFields( } } - 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(); } } @@ -665,50 +574,46 @@ private void buildPartial0( 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; @@ -738,10 +643,9 @@ public Builder mergeFrom( 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_); } @@ -773,46 +677,44 @@ 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) { @@ -822,25 +724,22 @@ 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; @@ -849,21 +748,20 @@ 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 { @@ -871,35 +769,28 @@ public com.google.protobuf.ByteString getLineItemIdBytes() { } } /** - * - * *
      * 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() { @@ -909,21 +800,17 @@ 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; @@ -933,65 +820,44 @@ public Builder setLineItemIdBytes(com.google.protobuf.ByteString value) { 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(); @@ -1005,20 +871,15 @@ 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 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 { @@ -1029,25 +890,18 @@ 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; @@ -1060,16 +914,12 @@ public Builder mergeLineItemInfo( 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); @@ -1082,70 +932,51 @@ 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_; @@ -1153,69 +984,47 @@ public Builder clearLineItemInfo() { 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(); @@ -1229,21 +1038,16 @@ 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 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 { @@ -1254,26 +1058,19 @@ 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; @@ -1286,17 +1083,13 @@ public Builder mergePendingChange( 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); @@ -1309,100 +1102,72 @@ 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< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange>( - changeHistory_); + changeHistory_ = new java.util.ArrayList(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,
@@ -1410,12 +1175,9 @@ 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 { @@ -1423,8 +1185,6 @@ private void ensureChangeHistoryIsMutable() { } } /** - * - * *
      * 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,
@@ -1432,9 +1192,7 @@ 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 int getChangeHistoryCount() { if (changeHistoryBuilder_ == null) { @@ -1444,8 +1202,6 @@ 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,
@@ -1453,12 +1209,9 @@ 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 { @@ -1466,8 +1219,6 @@ 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,
@@ -1475,9 +1226,7 @@ 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) { @@ -1494,8 +1243,6 @@ 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,
@@ -1503,14 +1250,10 @@ 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()); @@ -1521,8 +1264,6 @@ 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,
@@ -1530,12 +1271,9 @@ 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(); @@ -1549,8 +1287,6 @@ 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,
@@ -1558,9 +1294,7 @@ 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 value) { @@ -1577,8 +1311,6 @@ 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,
@@ -1586,13 +1318,10 @@ 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()); @@ -1603,8 +1332,6 @@ 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,
@@ -1612,14 +1339,10 @@ 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()); @@ -1630,8 +1353,6 @@ 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,
@@ -1639,17 +1360,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 addAllChangeHistory( - java.lang.Iterable< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange> - values) { + java.lang.Iterable 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); @@ -1657,8 +1375,6 @@ 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,
@@ -1666,9 +1382,7 @@ 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) { @@ -1681,8 +1395,6 @@ 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,
@@ -1690,9 +1402,7 @@ 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) { @@ -1705,8 +1415,6 @@ 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,
@@ -1714,17 +1422,13 @@ 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,
@@ -1732,21 +1436,16 @@ 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.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,
@@ -1754,14 +1453,10 @@ 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 java.util.List< - ? extends - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder> - getChangeHistoryOrBuilderList() { + public java.util.List + getChangeHistoryOrBuilderList() { if (changeHistoryBuilder_ != null) { return changeHistoryBuilder_.getMessageOrBuilderList(); } else { @@ -1769,8 +1464,6 @@ public Builder removeChangeHistory(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,
@@ -1778,20 +1471,13 @@ 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 - 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,
@@ -1799,21 +1485,14 @@ 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 - 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,
@@ -1821,27 +1500,18 @@ 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 java.util.List< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange.Builder> - getChangeHistoryBuilderList() { + public java.util.List + 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(), @@ -1850,9 +1520,9 @@ public Builder removeChangeHistory(int index) { } 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); } @@ -1862,43 +1532,41 @@ 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; @@ -1910,8 +1578,9 @@ 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChange.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChange.java similarity index 59% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChange.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChange.java index 13d075195cec..5cabd107e5a9 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChange.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChange.java @@ -1,42 +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/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; @@ -47,39 +29,34 @@ 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 @@ -88,30 +65,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 { @@ -122,59 +99,37 @@ public com.google.protobuf.ByteString getChangeIdBytes() { 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 @@ -182,55 +137,37 @@ 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 @@ -238,91 +175,59 @@ 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
@@ -331,7 +236,6 @@ public int getChangeStateValue() {
    * 
* * string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The stateReason. */ @java.lang.Override @@ -340,15 +244,14 @@ 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
@@ -357,15 +260,16 @@ 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 { @@ -376,8 +280,6 @@ public com.google.protobuf.ByteString getStateReasonBytes() { 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
@@ -386,19 +288,13 @@ public com.google.protobuf.ByteString getStateReasonBytes() {
    * 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
@@ -407,38 +303,23 @@ public int getChangeStateReasonTypeValue() {
    * 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 @@ -446,56 +327,39 @@ 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 @@ -503,15 +367,11 @@ 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 @@ -519,14 +379,11 @@ 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() { @@ -536,16 +393,12 @@ 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 @@ -553,16 +406,12 @@ 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 @@ -570,15 +419,12 @@ 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() { @@ -586,7 +432,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -598,14 +443,12 @@ 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) { @@ -614,10 +457,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 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_)) { @@ -632,10 +472,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 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); @@ -650,41 +487,40 @@ 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; @@ -694,38 +530,44 @@ 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; @@ -774,138 +616,131 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -944,22 +779,19 @@ 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); } @@ -968,17 +800,13 @@ 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_; @@ -987,12 +815,14 @@ private void buildPartial0( 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_; @@ -1004,16 +834,19 @@ private void buildPartial0( 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(); } } @@ -1021,51 +854,46 @@ private void buildPartial0( 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; @@ -1126,74 +954,72 @@ 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) { @@ -1203,26 +1029,23 @@ 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; @@ -1231,22 +1054,21 @@ 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 { @@ -1254,37 +1076,30 @@ public com.google.protobuf.ByteString getChangeIdBytes() { } } /** - * - * *
      * 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() { @@ -1294,22 +1109,18 @@ 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; @@ -1319,33 +1130,22 @@ public Builder setChangeIdBytes(com.google.protobuf.ByteString value) { 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. */ @@ -1356,44 +1156,28 @@ 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(); } @@ -1403,16 +1187,11 @@ public Builder setChangeType( 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() { @@ -1424,63 +1203,41 @@ 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(); @@ -1494,19 +1251,14 @@ 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 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 { @@ -1517,24 +1269,17 @@ 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; @@ -1547,15 +1292,11 @@ public Builder mergeOldLineItemInfo( 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); @@ -1568,67 +1309,48 @@ 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_; @@ -1636,63 +1358,41 @@ public Builder clearOldLineItemInfo() { 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(); @@ -1706,19 +1406,14 @@ 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 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 { @@ -1729,24 +1424,17 @@ 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; @@ -1759,15 +1447,11 @@ public Builder mergeNewLineItemInfo( 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); @@ -1780,67 +1464,48 @@ 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_; @@ -1848,33 +1513,22 @@ public Builder clearNewLineItemInfo() { 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. */ @@ -1885,44 +1539,28 @@ 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(); } @@ -1932,16 +1570,11 @@ public Builder setChangeState( 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() { @@ -1953,8 +1586,6 @@ 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
@@ -1963,13 +1594,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; @@ -1978,8 +1609,6 @@ 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
@@ -1988,14 +1617,15 @@ 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 { @@ -2003,8 +1633,6 @@ public com.google.protobuf.ByteString getStateReasonBytes() { } } /** - * - * *
      * Output only. Provider-supplied message explaining the LineItemChange's
      * state. Mainly used to communicate progress and ETA for provisioning in the
@@ -2013,22 +1641,18 @@ public com.google.protobuf.ByteString getStateReasonBytes() {
      * 
* * 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
@@ -2037,7 +1661,6 @@ public Builder setStateReason(java.lang.String value) {
      * 
* * string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStateReason() { @@ -2047,8 +1670,6 @@ 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
@@ -2057,14 +1678,12 @@ 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; @@ -2074,8 +1693,6 @@ public Builder setStateReasonBytes(com.google.protobuf.ByteString value) { 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
@@ -2084,19 +1701,13 @@ public Builder setStateReasonBytes(com.google.protobuf.ByteString 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 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
@@ -2105,10 +1716,7 @@ public int getChangeStateReasonTypeValue() {
      * 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. */ @@ -2119,8 +1727,6 @@ 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
@@ -2129,26 +1735,15 @@ 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
@@ -2157,16 +1752,11 @@ 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]; * @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(); } @@ -2176,8 +1766,6 @@ public Builder setChangeStateReasonType( 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
@@ -2186,10 +1774,7 @@ public Builder setChangeStateReasonType(
      * 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() { @@ -2201,61 +1786,42 @@ 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) { @@ -2271,18 +1837,15 @@ 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 { @@ -2293,22 +1856,18 @@ public Builder setChangeEffectiveTime(com.google.protobuf.Timestamp.Builder buil 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; @@ -2321,16 +1880,12 @@ 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); @@ -2343,16 +1898,12 @@ 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; @@ -2360,50 +1911,38 @@ 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_; @@ -2411,58 +1950,39 @@ 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) { @@ -2478,17 +1998,14 @@ 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 { @@ -2499,21 +2016,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -2526,15 +2039,11 @@ 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); @@ -2547,15 +2056,11 @@ 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; @@ -2563,48 +2068,36 @@ 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_; @@ -2612,61 +2105,42 @@ 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) { @@ -2682,18 +2156,15 @@ 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 { @@ -2704,22 +2175,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -2732,16 +2199,12 @@ 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); @@ -2754,16 +2217,12 @@ 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; @@ -2771,57 +2230,45 @@ 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); } @@ -2831,43 +2278,41 @@ 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; @@ -2879,8 +2324,9 @@ 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeOrBuilder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeOrBuilder.java similarity index 66% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeOrBuilder.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeOrBuilder.java index e5a395e28b55..1a2f4fc54480 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeOrBuilder.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeOrBuilder.java @@ -1,197 +1,127 @@ -/* - * 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
@@ -200,13 +130,10 @@ public interface LineItemChangeOrBuilder
    * 
* * 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
@@ -215,14 +142,12 @@ public interface LineItemChangeOrBuilder
    * 
* * 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
@@ -231,16 +156,11 @@ public interface LineItemChangeOrBuilder
    * 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
@@ -249,135 +169,95 @@ public interface LineItemChangeOrBuilder
    * 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeState.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeState.java similarity index 76% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeState.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeState.java index 732b3a11857a..c51dde1eda98 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeState.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeState.java @@ -1,36 +1,18 @@ -/* - * 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.
    * 
@@ -39,8 +21,6 @@ public enum LineItemChangeState implements com.google.protobuf.ProtocolMessageEn */ LINE_ITEM_CHANGE_STATE_UNSPECIFIED(0), /** - * - * *
    * Change is in this state when a change is initiated and waiting for
    * partner approval.
@@ -50,8 +30,6 @@ public enum LineItemChangeState implements com.google.protobuf.ProtocolMessageEn
    */
   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
@@ -64,8 +42,6 @@ public enum LineItemChangeState implements com.google.protobuf.ProtocolMessageEn
    */
   LINE_ITEM_CHANGE_STATE_APPROVED(2),
   /**
-   *
-   *
    * 
    * Change is in this state after it's been activated.
    * 
@@ -74,8 +50,6 @@ public enum LineItemChangeState implements com.google.protobuf.ProtocolMessageEn */ LINE_ITEM_CHANGE_STATE_COMPLETED(3), /** - * - * *
    * Change is in this state if it was rejected by the partner.
    * 
@@ -84,8 +58,6 @@ public enum LineItemChangeState implements com.google.protobuf.ProtocolMessageEn */ LINE_ITEM_CHANGE_STATE_REJECTED(4), /** - * - * *
    * Change is in this state if it was abandoned by the user.
    * 
@@ -94,8 +66,6 @@ public enum LineItemChangeState implements com.google.protobuf.ProtocolMessageEn */ 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.
@@ -108,8 +78,6 @@ public enum LineItemChangeState implements com.google.protobuf.ProtocolMessageEn
   ;
 
   /**
-   *
-   *
    * 
    * Sentinel value. Do not use.
    * 
@@ -118,8 +86,6 @@ public enum LineItemChangeState implements com.google.protobuf.ProtocolMessageEn */ 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.
@@ -129,8 +95,6 @@ public enum LineItemChangeState implements com.google.protobuf.ProtocolMessageEn
    */
   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
@@ -143,8 +107,6 @@ public enum LineItemChangeState implements com.google.protobuf.ProtocolMessageEn
    */
   public static final int LINE_ITEM_CHANGE_STATE_APPROVED_VALUE = 2;
   /**
-   *
-   *
    * 
    * Change is in this state after it's been activated.
    * 
@@ -153,8 +115,6 @@ public enum LineItemChangeState implements com.google.protobuf.ProtocolMessageEn */ public static final int LINE_ITEM_CHANGE_STATE_COMPLETED_VALUE = 3; /** - * - * *
    * Change is in this state if it was rejected by the partner.
    * 
@@ -163,8 +123,6 @@ public enum LineItemChangeState implements com.google.protobuf.ProtocolMessageEn */ public static final int LINE_ITEM_CHANGE_STATE_REJECTED_VALUE = 4; /** - * - * *
    * Change is in this state if it was abandoned by the user.
    * 
@@ -173,8 +131,6 @@ public enum LineItemChangeState implements com.google.protobuf.ProtocolMessageEn */ 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.
@@ -184,6 +140,7 @@ public enum LineItemChangeState implements com.google.protobuf.ProtocolMessageEn
    */
   public static final int LINE_ITEM_CHANGE_STATE_ACTIVATING_VALUE = 6;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -208,22 +165,14 @@ 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;
     }
   }
 
@@ -231,31 +180,29 @@ public static LineItemChangeState forNumber(int value) {
       internalGetValueMap() {
     return internalValueMap;
   }
-
-  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() {
+  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() {
     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();
@@ -263,7 +210,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
   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;
@@ -279,3 +227,4 @@ private LineItemChangeState(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState)
 }
+
diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeStateReasonType.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeStateReasonType.java
similarity index 70%
rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeStateReasonType.java
rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeStateReasonType.java
index 22577e7258f2..2e992a7b9da1 100644
--- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeStateReasonType.java
+++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeStateReasonType.java
@@ -1,37 +1,18 @@
-/*
- * 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.
@@ -41,8 +22,6 @@ public enum LineItemChangeStateReasonType implements com.google.protobuf.Protoco
    */
   LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * Change is in current state due to term expiration.
    * 
@@ -51,8 +30,6 @@ public enum LineItemChangeStateReasonType implements com.google.protobuf.Protoco */ LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED(1), /** - * - * *
    * Change is in current state due to user-initiated cancellation.
    * 
@@ -61,8 +38,6 @@ public enum LineItemChangeStateReasonType implements com.google.protobuf.Protoco */ LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED(2), /** - * - * *
    * Change is in current state due to system-initiated cancellation.
    * 
@@ -74,8 +49,6 @@ public enum LineItemChangeStateReasonType implements com.google.protobuf.Protoco ; /** - * - * *
    * Default value, indicating there's no predefined type for change state
    * reason.
@@ -85,8 +58,6 @@ public enum LineItemChangeStateReasonType implements com.google.protobuf.Protoco
    */
   public static final int LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * Change is in current state due to term expiration.
    * 
@@ -95,8 +66,6 @@ public enum LineItemChangeStateReasonType implements com.google.protobuf.Protoco */ public static final int LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED_VALUE = 1; /** - * - * *
    * Change is in current state due to user-initiated cancellation.
    * 
@@ -105,8 +74,6 @@ public enum LineItemChangeStateReasonType implements com.google.protobuf.Protoco */ public static final int LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED_VALUE = 2; /** - * - * *
    * Change is in current state due to system-initiated cancellation.
    * 
@@ -115,6 +82,7 @@ public enum LineItemChangeStateReasonType implements com.google.protobuf.Protoco */ 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( @@ -139,16 +107,11 @@ 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; } } @@ -156,31 +119,29 @@ public static LineItemChangeStateReasonType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - - 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() { + 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() { 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(); @@ -188,7 +149,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor 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; @@ -204,3 +166,4 @@ private LineItemChangeStateReasonType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeStateReasonType) } + diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeType.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeType.java similarity index 70% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeType.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeType.java index 1f05c40da402..04bbfef6a2db 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeType.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemChangeType.java @@ -1,36 +1,18 @@ -/* - * 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.
    * 
@@ -39,8 +21,6 @@ public enum LineItemChangeType implements com.google.protobuf.ProtocolMessageEnu */ LINE_ITEM_CHANGE_TYPE_UNSPECIFIED(0), /** - * - * *
    * The change is to create a new line item.
    * 
@@ -49,8 +29,6 @@ public enum LineItemChangeType implements com.google.protobuf.ProtocolMessageEnu */ LINE_ITEM_CHANGE_TYPE_CREATE(1), /** - * - * *
    * The change is to update an existing line item.
    * 
@@ -59,8 +37,6 @@ public enum LineItemChangeType implements com.google.protobuf.ProtocolMessageEnu */ LINE_ITEM_CHANGE_TYPE_UPDATE(2), /** - * - * *
    * The change is to cancel an existing line item.
    * 
@@ -69,8 +45,6 @@ public enum LineItemChangeType implements com.google.protobuf.ProtocolMessageEnu */ LINE_ITEM_CHANGE_TYPE_CANCEL(3), /** - * - * *
    * The change is to revert a cancellation.
    * 
@@ -82,8 +56,6 @@ public enum LineItemChangeType implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
    * Sentinel value. Do not use.
    * 
@@ -92,8 +64,6 @@ public enum LineItemChangeType implements com.google.protobuf.ProtocolMessageEnu */ public static final int LINE_ITEM_CHANGE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The change is to create a new line item.
    * 
@@ -102,8 +72,6 @@ public enum LineItemChangeType implements com.google.protobuf.ProtocolMessageEnu */ public static final int LINE_ITEM_CHANGE_TYPE_CREATE_VALUE = 1; /** - * - * *
    * The change is to update an existing line item.
    * 
@@ -112,8 +80,6 @@ public enum LineItemChangeType implements com.google.protobuf.ProtocolMessageEnu */ public static final int LINE_ITEM_CHANGE_TYPE_UPDATE_VALUE = 2; /** - * - * *
    * The change is to cancel an existing line item.
    * 
@@ -122,8 +88,6 @@ public enum LineItemChangeType implements com.google.protobuf.ProtocolMessageEnu */ public static final int LINE_ITEM_CHANGE_TYPE_CANCEL_VALUE = 3; /** - * - * *
    * The change is to revert a cancellation.
    * 
@@ -132,6 +96,7 @@ public enum LineItemChangeType implements com.google.protobuf.ProtocolMessageEnu */ public static final int LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -156,49 +121,42 @@ 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 - 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< + 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() { 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(); @@ -206,7 +164,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor 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; @@ -222,3 +181,4 @@ private LineItemChangeType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeType) } + diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfo.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfo.java similarity index 56% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfo.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfo.java index 79d495fdab2e..c1d4b16c6142 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfo.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfo.java @@ -1,42 +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/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(); @@ -44,42 +26,35 @@ 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 @@ -88,33 +63,31 @@ 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 { @@ -123,104 +96,74 @@ public com.google.protobuf.ByteString getOfferBytes() { } 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder> + public java.util.List 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 @@ -228,45 +171,30 @@ 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; @@ -278,7 +206,8 @@ 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)); } @@ -298,10 +227,12 @@ 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_); @@ -314,19 +245,21 @@ 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; @@ -355,138 +288,131 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -508,16 +434,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_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 @@ -531,18 +455,14 @@ 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_); @@ -554,15 +474,15 @@ private void buildPartialRepeatedFields( } } - 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(); } } @@ -570,51 +490,46 @@ private void buildPartial0( 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; @@ -638,10 +553,9 @@ public Builder mergeFrom( 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_); } @@ -676,39 +590,37 @@ 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) { @@ -718,29 +630,24 @@ 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; @@ -749,25 +656,22 @@ 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 { @@ -775,43 +679,32 @@ public com.google.protobuf.ByteString getOfferBytes() { } } /** - * - * *
      * 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() { @@ -821,25 +714,19 @@ 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; @@ -847,37 +734,26 @@ public Builder setOfferBytes(com.google.protobuf.ByteString value) { 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< - com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter>(parameters_); + parameters_ = new java.util.ArrayList(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 { @@ -885,15 +761,11 @@ private void ensureParametersIsMutable() { } } /** - * - * *
      * 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) { @@ -903,18 +775,13 @@ 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 { @@ -922,15 +789,11 @@ 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) { @@ -947,19 +810,14 @@ 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()); @@ -970,18 +828,13 @@ 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(); @@ -995,15 +848,11 @@ 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 value) { @@ -1020,15 +869,11 @@ 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) { @@ -1042,19 +887,14 @@ 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()); @@ -1065,23 +905,18 @@ 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.Parameter> - 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); @@ -1089,15 +924,11 @@ 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) { @@ -1110,15 +941,11 @@ 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) { @@ -1131,53 +958,39 @@ 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.ParameterOrBuilder> - getParametersOrBuilderList() { + public java.util.List + getParametersOrBuilderList() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilderList(); } else { @@ -1185,70 +998,49 @@ public Builder removeParameters(int 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.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_; @@ -1256,62 +1048,41 @@ public Builder removeParameters(int index) { 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(); @@ -1325,19 +1096,14 @@ 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 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 { @@ -1348,24 +1114,17 @@ 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; @@ -1378,15 +1137,11 @@ public Builder mergeSubscription( 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); @@ -1399,74 +1154,55 @@ 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); } @@ -1476,43 +1212,41 @@ 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; @@ -1524,8 +1258,9 @@ 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/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 new file mode 100644 index 000000000000..96e0e7dce984 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemInfoOrBuilder.java @@ -0,0 +1,104 @@ +// 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemOrBuilder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemOrBuilder.java similarity index 58% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemOrBuilder.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemOrBuilder.java index 93da6a27d46b..43759dc78893 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemOrBuilder.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/LineItemOrBuilder.java @@ -1,149 +1,96 @@ -/* - * 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,
@@ -151,15 +98,11 @@ public interface LineItemOrBuilder
    * 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,
@@ -167,15 +110,10 @@ public interface LineItemOrBuilder
    * 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,
@@ -183,14 +121,10 @@ com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange getChange
    * 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,
@@ -198,16 +132,11 @@ com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange getChange
    * 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeOrBuilder> + java.util.List 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,
@@ -215,10 +144,8 @@ com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange getChange
    * 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequest.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequest.java similarity index 70% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequest.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequest.java index 399630a6888a..735a6845254e 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequest.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequest.java @@ -1,26 +1,9 @@ -/* - * 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].
@@ -28,16 +11,15 @@
  *
  * 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_ = "";
@@ -46,40 +28,34 @@ 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 @@ -88,30 +64,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 { @@ -122,15 +98,12 @@ public com.google.protobuf.ByteString getParentBytes() { 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 @@ -139,18 +112,14 @@ 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 @@ -159,29 +128,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 { @@ -190,12 +159,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } 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.
    *
@@ -216,7 +182,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -225,15 +190,14 @@ 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.
    *
@@ -254,15 +218,16 @@ 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 { @@ -271,7 +236,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -283,7 +247,8 @@ 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_); } @@ -309,7 +274,8 @@ 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_); @@ -325,19 +291,21 @@ 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; } @@ -363,105 +331,98 @@ 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].
@@ -469,34 +430,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -509,22 +469,19 @@ 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);
       }
@@ -532,19 +489,14 @@ 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_;
@@ -564,52 +516,46 @@ private void buildPartial0(
     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;
@@ -654,37 +600,32 @@ 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) {
@@ -694,26 +635,23 @@ 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; @@ -722,22 +660,21 @@ 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 { @@ -745,37 +682,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * 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() { @@ -785,22 +715,18 @@ 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; @@ -808,17 +734,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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 @@ -826,15 +749,12 @@ 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. */ @@ -846,15 +766,12 @@ 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() { @@ -866,20 +783,18 @@ 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; @@ -888,21 +803,20 @@ 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 { @@ -910,35 +824,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * 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() { @@ -948,21 +855,17 @@ 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; @@ -972,8 +875,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter that you can use to limit the list request.
      *
@@ -994,13 +895,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -1009,8 +910,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter that you can use to limit the list request.
      *
@@ -1031,14 +930,15 @@ 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 { @@ -1046,8 +946,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter that you can use to limit the list request.
      *
@@ -1068,22 +966,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * 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.
      *
@@ -1104,7 +998,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1114,8 +1007,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Filter that you can use to limit the list request.
      *
@@ -1136,23 +1027,21 @@ 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); } @@ -1162,44 +1051,41 @@ 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; @@ -1211,8 +1097,9 @@ 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequestOrBuilder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequestOrBuilder.java similarity index 78% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequestOrBuilder.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequestOrBuilder.java index d1cad75bffdd..f328684cbcd2 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequestOrBuilder.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersRequestOrBuilder.java @@ -1,97 +1,66 @@ -/* - * 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.
    *
@@ -112,13 +81,10 @@ public interface ListOrdersRequestOrBuilder
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter that you can use to limit the list request.
    *
@@ -139,8 +105,8 @@ public interface ListOrdersRequestOrBuilder
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponse.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponse.java similarity index 64% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponse.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponse.java index ecf105ebcbe2..6206d19b15af 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponse.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponse.java @@ -1,26 +1,9 @@ -/* - * 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].
@@ -28,16 +11,15 @@
  *
  * 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_ = "";
@@ -45,33 +27,28 @@ 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.
    * 
@@ -79,13 +56,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * 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.
    * 
@@ -93,14 +67,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.commerce.consumer.procurement.v1alpha1.Order orders = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder> + public java.util.List getOrdersOrBuilderList() { return orders_; } /** - * - * *
    * The list of orders in this response.
    * 
@@ -112,8 +83,6 @@ public int getOrdersCount() { return orders_.size(); } /** - * - * *
    * The list of orders in this response.
    * 
@@ -125,8 +94,6 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order getOrders(i return orders_.get(index); } /** - * - * *
    * The list of orders in this response.
    * 
@@ -140,18 +107,14 @@ 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 @@ -160,29 +123,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 { @@ -191,7 +154,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +165,8 @@ 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)); } @@ -220,7 +183,8 @@ 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_); @@ -233,17 +197,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; } @@ -266,111 +230,99 @@ 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].
@@ -378,34 +330,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,22 +373,19 @@ 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);
       }
@@ -445,20 +393,15 @@ 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_);
@@ -470,8 +413,7 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    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_;
@@ -482,52 +424,46 @@ private void buildPartial0(
     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()) {
@@ -546,10 +482,9 @@ public Builder mergeFrom(
             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_);
           }
@@ -586,33 +521,30 @@ 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) {
@@ -622,38 +554,28 @@ 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 { @@ -661,8 +583,6 @@ private void ensureOrdersIsMutable() { } } /** - * - * *
      * The list of orders in this response.
      * 
@@ -677,8 +597,6 @@ public int getOrdersCount() { } } /** - * - * *
      * The list of orders in this response.
      * 
@@ -693,8 +611,6 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order getOrders(i } } /** - * - * *
      * The list of orders in this response.
      * 
@@ -716,8 +632,6 @@ public Builder setOrders( return this; } /** - * - * *
      * The list of orders in this response.
      * 
@@ -725,8 +639,7 @@ 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()); @@ -737,8 +650,6 @@ public Builder setOrders( return this; } /** - * - * *
      * The list of orders in this response.
      * 
@@ -759,8 +670,6 @@ public Builder addOrders(com.google.cloud.commerce.consumer.procurement.v1alpha1 return this; } /** - * - * *
      * The list of orders in this response.
      * 
@@ -782,8 +691,6 @@ public Builder addOrders( return this; } /** - * - * *
      * The list of orders in this response.
      * 
@@ -802,8 +709,6 @@ public Builder addOrders( return this; } /** - * - * *
      * The list of orders in this response.
      * 
@@ -811,8 +716,7 @@ 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()); @@ -823,8 +727,6 @@ public Builder addOrders( return this; } /** - * - * *
      * The list of orders in this response.
      * 
@@ -832,11 +734,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); @@ -844,8 +746,6 @@ public Builder addAllOrders( return this; } /** - * - * *
      * The list of orders in this response.
      * 
@@ -863,8 +763,6 @@ public Builder clearOrders() { return this; } /** - * - * *
      * The list of orders in this response.
      * 
@@ -882,8 +780,6 @@ public Builder removeOrders(int index) { return this; } /** - * - * *
      * The list of orders in this response.
      * 
@@ -895,34 +791,28 @@ 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.OrderOrBuilder> - getOrdersOrBuilderList() { + public java.util.List + getOrdersOrBuilderList() { if (ordersBuilder_ != null) { return ordersBuilder_.getMessageOrBuilderList(); } else { @@ -930,23 +820,17 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder get } } /** - * - * *
      * 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.
      * 
@@ -955,37 +839,30 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order.Builder get */ 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_; @@ -993,20 +870,18 @@ 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; @@ -1015,21 +890,20 @@ 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 { @@ -1037,35 +911,28 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * 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() { @@ -1075,30 +942,26 @@ 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); } @@ -1108,44 +971,41 @@ 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; @@ -1157,8 +1017,9 @@ 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponseOrBuilder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponseOrBuilder.java similarity index 70% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponseOrBuilder.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponseOrBuilder.java index 8b01780d46b9..0429972962d2 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponseOrBuilder.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ListOrdersResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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.
    * 
@@ -44,8 +25,6 @@ public interface ListOrdersResponseOrBuilder */ com.google.cloud.commerce.consumer.procurement.v1alpha1.Order getOrders(int index); /** - * - * *
    * The list of orders in this response.
    * 
@@ -54,19 +33,15 @@ public interface ListOrdersResponseOrBuilder */ 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.
    * 
@@ -77,27 +52,22 @@ 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Order.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Order.java similarity index 62% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Order.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Order.java index af06902c2c23..426a04f0469f 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Order.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Order.java @@ -1,26 +1,9 @@ -/* - * 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
@@ -36,16 +19,15 @@
  *
  * 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_ = "";
@@ -56,32 +38,28 @@ 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
@@ -89,7 +67,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -98,15 +75,14 @@ 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
@@ -114,15 +90,16 @@ 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 { @@ -131,18 +108,14 @@ public com.google.protobuf.ByteString getNameBytes() { } 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 @@ -151,29 +124,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 { @@ -182,188 +155,135 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> + public java.util.List 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> + public java.util.List 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 @@ -371,15 +291,11 @@ 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 @@ -387,14 +303,11 @@ 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() { @@ -404,15 +317,11 @@ 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 @@ -420,15 +329,11 @@ 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 @@ -436,14 +341,11 @@ 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() { @@ -451,18 +353,14 @@ 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 @@ -471,29 +369,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 { @@ -502,7 +400,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -514,7 +411,8 @@ 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_); } @@ -549,17 +447,20 @@ 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_); @@ -575,27 +476,33 @@ 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; } @@ -635,104 +542,98 @@ 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
@@ -748,32 +649,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -809,14 +711,13 @@ 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();
     }
 
@@ -831,18 +732,14 @@ 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_);
@@ -863,8 +760,7 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    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_;
@@ -873,10 +769,14 @@ private void buildPartial0(
         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_;
@@ -887,39 +787,38 @@ private void buildPartial0(
     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;
@@ -927,9 +826,7 @@ 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;
@@ -958,10 +855,9 @@ 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_);
           }
@@ -985,10 +881,9 @@ 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_);
           }
@@ -1031,71 +926,67 @@ 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) {
@@ -1105,13 +996,10 @@ 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
@@ -1119,13 +1007,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; @@ -1134,8 +1022,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the order.
      * Has the form
@@ -1143,14 +1029,15 @@ 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 { @@ -1158,8 +1045,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the order.
      * Has the form
@@ -1167,22 +1052,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * 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
@@ -1190,7 +1071,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1200,8 +1080,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the order.
      * Has the form
@@ -1209,14 +1087,12 @@ 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; @@ -1226,20 +1102,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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; @@ -1248,21 +1122,20 @@ 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 { @@ -1270,35 +1143,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * 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() { @@ -1308,21 +1174,17 @@ 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; @@ -1330,37 +1192,26 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 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< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem>(lineItems_); + lineItems_ = new java.util.ArrayList(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 { @@ -1368,15 +1219,11 @@ private void ensureLineItemsIsMutable() { } } /** - * - * *
      * 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) { @@ -1386,18 +1233,13 @@ 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 { @@ -1405,15 +1247,11 @@ 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) { @@ -1430,19 +1268,14 @@ 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()); @@ -1453,18 +1286,13 @@ 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(); @@ -1478,15 +1306,11 @@ 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 value) { @@ -1503,15 +1327,11 @@ 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) { @@ -1525,19 +1345,14 @@ 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()); @@ -1548,23 +1363,18 @@ 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem> - 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); @@ -1572,15 +1382,11 @@ 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) { @@ -1593,15 +1399,11 @@ 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) { @@ -1614,53 +1416,39 @@ 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> - getLineItemsOrBuilderList() { + public java.util.List + getLineItemsOrBuilderList() { if (lineItemsBuilder_ != null) { return lineItemsBuilder_.getMessageOrBuilderList(); } else { @@ -1668,107 +1456,74 @@ public Builder removeLineItems(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]; */ - 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< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem>( - cancelledLineItems_); + cancelledLineItems_ = new java.util.ArrayList(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 { @@ -1776,15 +1531,11 @@ private void ensureCancelledLineItemsIsMutable() { } } /** - * - * *
      * 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) { @@ -1794,18 +1545,13 @@ 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 { @@ -1813,15 +1559,11 @@ 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) { @@ -1838,19 +1580,14 @@ 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()); @@ -1861,18 +1598,13 @@ 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(); @@ -1886,15 +1618,11 @@ 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 value) { @@ -1911,15 +1639,11 @@ 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) { @@ -1933,19 +1657,14 @@ 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()); @@ -1956,23 +1675,18 @@ 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItem> - 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); @@ -1980,15 +1694,11 @@ 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) { @@ -2001,15 +1711,11 @@ 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) { @@ -2022,53 +1728,39 @@ 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> - getCancelledLineItemsOrBuilderList() { + public java.util.List + getCancelledLineItemsOrBuilderList() { if (cancelledLineItemsBuilder_ != null) { return cancelledLineItemsBuilder_.getMessageOrBuilderList(); } else { @@ -2076,69 +1768,45 @@ public Builder removeCancelledLineItems(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]; */ - 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(), @@ -2150,58 +1818,39 @@ public Builder removeCancelledLineItems(int index) { 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) { @@ -2217,17 +1866,14 @@ 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 { @@ -2238,21 +1884,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -2265,15 +1907,11 @@ 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); @@ -2286,15 +1924,11 @@ 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; @@ -2302,48 +1936,36 @@ 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_; @@ -2351,58 +1973,39 @@ 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) { @@ -2418,17 +2021,14 @@ 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 { @@ -2439,21 +2039,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -2466,15 +2062,11 @@ 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); @@ -2487,15 +2079,11 @@ 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; @@ -2503,48 +2091,36 @@ 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_; @@ -2552,20 +2128,18 @@ 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; @@ -2574,21 +2148,20 @@ 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 { @@ -2596,35 +2169,28 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * 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() { @@ -2634,30 +2200,26 @@ 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); } @@ -2667,13 +2229,12 @@ 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(); } @@ -2682,27 +2243,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; @@ -2717,4 +2278,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.commerce.consumer.procurement.v1alpha1.Order getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOrBuilder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOrBuilder.java similarity index 57% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOrBuilder.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOrBuilder.java index a3da49f8891e..ac794c105201 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOrBuilder.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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
@@ -33,13 +15,10 @@ public interface OrderOrBuilder
    * 
* * 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
@@ -47,264 +26,190 @@ public interface OrderOrBuilder
    * 
* * 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> + java.util.List 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemOrBuilder> + java.util.List 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/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 new file mode 100644 index 000000000000..9bda401a4cf2 --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/OrderOuterClass.java @@ -0,0 +1,212 @@ +// 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Parameter.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Parameter.java similarity index 65% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Parameter.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Parameter.java index bb540ea4e393..233d42786c8a 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Parameter.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Parameter.java @@ -1,211 +1,167 @@ -/* - * 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; } @@ -221,38 +177,31 @@ 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 @@ -260,14 +209,11 @@ public boolean hasInt64Value() { return kindCase_ == 3; } /** - * - * *
      * Represents an int64 value.
      * 
* * int64 int64_value = 3; - * * @return The int64Value. */ @java.lang.Override @@ -280,28 +226,22 @@ 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() { @@ -312,7 +252,8 @@ 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; @@ -321,24 +262,23 @@ 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; } @@ -350,14 +290,11 @@ public com.google.protobuf.ByteString getStringValueBytes() { 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 @@ -365,14 +302,11 @@ public boolean hasDoubleValue() { return kindCase_ == 5; } /** - * - * *
      * Represents a double value.
      * 
* * double double_value = 5; - * * @return The doubleValue. */ @java.lang.Override @@ -384,7 +318,6 @@ public double getDoubleValue() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -396,15 +329,18 @@ 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); } @@ -416,17 +352,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; @@ -436,26 +372,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.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: @@ -474,7 +411,8 @@ 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; @@ -482,10 +420,8 @@ 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: @@ -496,95 +432,89 @@ 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 @@ -593,36 +523,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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -633,22 +563,19 @@ 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); } @@ -656,25 +583,19 @@ 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_; } @@ -683,76 +604,64 @@ private void buildPartialOneofs( 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(); @@ -780,32 +689,28 @@ 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) { @@ -815,12 +720,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() { @@ -833,28 +738,22 @@ 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() { @@ -864,14 +763,11 @@ public long getInt64Value() { return 0L; } /** - * - * *
        * Represents an int64 value.
        * 
* * int64 int64_value = 3; - * * @param value The int64Value to set. * @return This builder for chaining. */ @@ -883,14 +779,11 @@ public Builder setInt64Value(long value) { return this; } /** - * - * *
        * Represents an int64 value.
        * 
* * int64 int64_value = 3; - * * @return This builder for chaining. */ public Builder clearInt64Value() { @@ -903,14 +796,11 @@ public Builder clearInt64Value() { } /** - * - * *
        * Represents a string value.
        * 
* * string string_value = 4; - * * @return Whether the stringValue field is set. */ @java.lang.Override @@ -918,14 +808,11 @@ public boolean hasStringValue() { return kindCase_ == 4; } /** - * - * *
        * Represents a string value.
        * 
* * string string_value = 4; - * * @return The stringValue. */ @java.lang.Override @@ -935,7 +822,8 @@ 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; @@ -946,25 +834,24 @@ 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; } @@ -974,35 +861,28 @@ public com.google.protobuf.ByteString getStringValueBytes() { } } /** - * - * *
        * 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() { @@ -1014,21 +894,17 @@ 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; @@ -1037,28 +913,22 @@ public Builder setStringValueBytes(com.google.protobuf.ByteString value) { } /** - * - * *
        * 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() { @@ -1068,14 +938,11 @@ public double getDoubleValue() { return 0D; } /** - * - * *
        * Represents a double value.
        * 
* * double double_value = 5; - * * @param value The doubleValue to set. * @return This builder for chaining. */ @@ -1087,14 +954,11 @@ public Builder setDoubleValue(double value) { return this; } /** - * - * *
        * Represents a double value.
        * 
* * double double_value = 5; - * * @return This builder for chaining. */ public Builder clearDoubleValue() { @@ -1105,7 +969,6 @@ public Builder clearDoubleValue() { } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1118,45 +981,41 @@ 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; @@ -1168,25 +1027,21 @@ 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 @@ -1195,29 +1050,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 { @@ -1228,14 +1083,11 @@ public com.google.protobuf.ByteString getNameBytes() { 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 @@ -1243,26 +1095,18 @@ 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.
    * 
@@ -1270,16 +1114,11 @@ 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; @@ -1291,7 +1130,8 @@ 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_); } @@ -1311,7 +1151,8 @@ 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; @@ -1321,18 +1162,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.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; @@ -1357,138 +1199,131 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1503,14 +1338,13 @@ 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(); } @@ -1525,23 +1359,21 @@ 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(); } } @@ -1549,50 +1381,46 @@ private void buildPartial0( 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; @@ -1627,25 +1455,24 @@ 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) { @@ -1655,25 +1482,22 @@ 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; @@ -1682,21 +1506,20 @@ 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 { @@ -1704,35 +1527,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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() { @@ -1742,21 +1558,17 @@ 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; @@ -1766,56 +1578,41 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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(); @@ -1829,8 +1626,6 @@ public Builder setValue( return this; } /** - * - * *
      * Value of parameter.
      * 
@@ -1838,8 +1633,7 @@ public Builder setValue( * .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 { @@ -1850,22 +1644,17 @@ 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; @@ -1878,8 +1667,6 @@ public Builder mergeValue( return this; } /** - * - * *
      * Value of parameter.
      * 
@@ -1897,43 +1684,33 @@ 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.
      * 
@@ -1941,24 +1718,21 @@ public Builder clearValue() { * .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); } @@ -1968,43 +1742,41 @@ 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; @@ -2016,8 +1788,9 @@ 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ParameterOrBuilder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ParameterOrBuilder.java similarity index 63% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ParameterOrBuilder.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ParameterOrBuilder.java index ab61498db1dc..e1b49b596ff2 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ParameterOrBuilder.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ParameterOrBuilder.java @@ -1,86 +1,56 @@ -/* - * 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadata.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadata.java similarity index 50% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadata.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadata.java index 4c51934ce66a..206d5360f1cd 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadata.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadata.java @@ -1,26 +1,9 @@ -/* - * 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].
@@ -28,42 +11,39 @@
  *
  * 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;
@@ -75,7 +55,8 @@ 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);
   }
 
@@ -93,14 +74,12 @@ 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;
@@ -118,111 +97,99 @@ 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].
@@ -230,34 +197,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -265,22 +231,19 @@ 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);
       }
@@ -288,10 +251,8 @@ 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;
     }
@@ -300,52 +261,46 @@ 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;
@@ -372,13 +327,12 @@ 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) {
@@ -388,9 +342,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);
     }
 
@@ -400,44 +354,41 @@ 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;
@@ -449,8 +400,9 @@ 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/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
new file mode 100644
index 000000000000..da308087701b
--- /dev/null
+++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderMetadataOrBuilder.java
@@ -0,0 +1,9 @@
+// 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequest.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequest.java
similarity index 62%
rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequest.java
rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequest.java
index 81b9fcad7bde..e5a8bd156257 100644
--- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequest.java
+++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequest.java
@@ -1,26 +1,9 @@
-/*
- * 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].
@@ -28,16 +11,15 @@
  *
  * 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_ = "";
@@ -47,42 +29,34 @@ 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 @@ -91,32 +65,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 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 { @@ -125,18 +97,14 @@ public com.google.protobuf.ByteString getParentBytes() { } 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 @@ -145,29 +113,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 { @@ -176,103 +144,75 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> + public java.util.List 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
@@ -283,7 +223,6 @@ public com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo getL
    * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -292,15 +231,14 @@ 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
@@ -311,15 +249,16 @@ 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 { @@ -328,7 +267,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -340,7 +278,8 @@ 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_); } @@ -372,7 +311,8 @@ 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; @@ -382,19 +322,21 @@ 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; } @@ -422,105 +364,98 @@ 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].
@@ -528,34 +463,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -574,22 +508,19 @@ 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);
       }
@@ -597,20 +528,15 @@ 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_);
@@ -622,8 +548,7 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    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_;
@@ -640,52 +565,46 @@ private void buildPartial0(
     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;
@@ -714,10 +633,9 @@ public Builder mergeFrom(
             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_);
           }
@@ -754,46 +672,40 @@ 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) {
@@ -803,28 +715,23 @@ 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; @@ -833,24 +740,21 @@ 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 { @@ -858,41 +762,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * 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() { @@ -902,24 +795,18 @@ 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; @@ -929,20 +816,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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; @@ -951,21 +836,20 @@ 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 { @@ -973,35 +857,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * 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() { @@ -1011,21 +888,17 @@ 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; @@ -1033,39 +906,27 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 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< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo>( - lineItemInfo_); + lineItemInfo_ = new java.util.ArrayList(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 { @@ -1073,16 +934,12 @@ private void ensureLineItemInfoIsMutable() { } } /** - * - * *
      * 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) { @@ -1092,19 +949,14 @@ 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 { @@ -1112,16 +964,12 @@ 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) { @@ -1138,21 +986,15 @@ 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()); @@ -1163,19 +1005,14 @@ 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(); @@ -1189,16 +1026,12 @@ 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 value) { @@ -1215,20 +1048,15 @@ 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()); @@ -1239,21 +1067,15 @@ 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()); @@ -1264,24 +1086,19 @@ 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo> - 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); @@ -1289,16 +1106,12 @@ 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) { @@ -1311,16 +1124,12 @@ 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) { @@ -1333,56 +1142,42 @@ 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> - getLineItemInfoOrBuilderList() { + public java.util.List + getLineItemInfoOrBuilderList() { if (lineItemInfoBuilder_ != null) { return lineItemInfoBuilder_.getMessageOrBuilderList(); } else { @@ -1390,74 +1185,52 @@ public Builder removeLineItemInfo(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]; */ - 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< - com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo.Builder> - getLineItemInfoBuilderList() { + public java.util.List + 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_; @@ -1465,8 +1238,6 @@ public Builder removeLineItemInfo(int index) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique identifier for this request.
      * The server will ignore subsequent requests that provide a duplicate request
@@ -1477,13 +1248,13 @@ public Builder removeLineItemInfo(int index) {
      * 
* * 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; @@ -1492,8 +1263,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique identifier for this request.
      * The server will ignore subsequent requests that provide a duplicate request
@@ -1504,14 +1273,15 @@ 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 { @@ -1519,8 +1289,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique identifier for this request.
      * The server will ignore subsequent requests that provide a duplicate request
@@ -1531,22 +1299,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * 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
@@ -1557,7 +1321,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1567,8 +1330,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A unique identifier for this request.
      * The server will ignore subsequent requests that provide a duplicate request
@@ -1579,23 +1340,21 @@ 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); } @@ -1605,44 +1364,41 @@ 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; @@ -1654,8 +1410,9 @@ 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequestOrBuilder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequestOrBuilder.java similarity index 59% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequestOrBuilder.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequestOrBuilder.java index d874c6d9d143..b125d08483e4 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequestOrBuilder.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/PlaceOrderRequestOrBuilder.java @@ -1,157 +1,104 @@ -/* - * 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< - ? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfoOrBuilder> + java.util.List 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
@@ -162,13 +109,10 @@ public interface PlaceOrderRequestOrBuilder
    * 
* * 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
@@ -179,8 +123,8 @@ public interface PlaceOrderRequestOrBuilder
    * 
* * 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/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 new file mode 100644 index 000000000000..8174bca5e1ea --- /dev/null +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ProcurementService.java @@ -0,0 +1,158 @@ +// 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Subscription.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Subscription.java similarity index 68% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Subscription.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Subscription.java index 218e84ef4bca..e408013b5baf 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Subscription.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/Subscription.java @@ -1,76 +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; /** - * - * *
  * 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 @@ -78,14 +57,11 @@ 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 @@ -93,8 +69,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The timestamp when the subscription begins, if applicable.
    * 
@@ -109,14 +83,11 @@ 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 @@ -124,14 +95,11 @@ 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 @@ -139,8 +107,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The timestamp when the subscription ends, if applicable.
    * 
@@ -155,8 +121,6 @@ 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
@@ -164,7 +128,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * bool auto_renewal_enabled = 2; - * * @return The autoRenewalEnabled. */ @java.lang.Override @@ -173,7 +136,6 @@ public boolean getAutoRenewalEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +147,8 @@ 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()); } @@ -205,13 +168,16 @@ 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; @@ -221,23 +187,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.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; } @@ -258,145 +226,139 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -416,16 +378,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_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 @@ -439,23 +399,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_; @@ -466,51 +426,46 @@ private void buildPartial0( 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()); } @@ -546,31 +501,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) { @@ -580,38 +535,28 @@ 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() { @@ -622,8 +567,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -644,15 +587,14 @@ 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 { @@ -663,8 +605,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -673,9 +613,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ 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; @@ -688,8 +628,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -707,8 +645,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -721,8 +657,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The timestamp when the subscription begins, if applicable.
      * 
@@ -733,12 +667,11 @@ 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.
      * 
@@ -746,17 +679,14 @@ 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_; @@ -764,33 +694,24 @@ 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() { @@ -801,8 +722,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -823,15 +742,14 @@ 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 { @@ -842,8 +760,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -852,9 +768,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ 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; @@ -867,8 +783,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -886,8 +800,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -900,8 +812,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The timestamp when the subscription ends, if applicable.
      * 
@@ -912,12 +822,11 @@ 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.
      * 
@@ -925,26 +834,21 @@ 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
@@ -952,7 +856,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * 
* * bool auto_renewal_enabled = 2; - * * @return The autoRenewalEnabled. */ @java.lang.Override @@ -960,8 +863,6 @@ 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
@@ -969,7 +870,6 @@ public boolean getAutoRenewalEnabled() {
      * 
* * bool auto_renewal_enabled = 2; - * * @param value The autoRenewalEnabled to set. * @return This builder for chaining. */ @@ -981,8 +881,6 @@ 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
@@ -990,7 +888,6 @@ public Builder setAutoRenewalEnabled(boolean value) {
      * 
* * bool auto_renewal_enabled = 2; - * * @return This builder for chaining. */ public Builder clearAutoRenewalEnabled() { @@ -999,9 +896,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); } @@ -1011,43 +908,41 @@ 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; @@ -1059,8 +954,9 @@ 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/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/SubscriptionOrBuilder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/SubscriptionOrBuilder.java similarity index 74% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/SubscriptionOrBuilder.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/SubscriptionOrBuilder.java index 08bb4b62c671..ff2319ac6c91 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/SubscriptionOrBuilder.java +++ b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/SubscriptionOrBuilder.java @@ -1,55 +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 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.
    * 
@@ -59,32 +35,24 @@ public interface SubscriptionOrBuilder 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.
    * 
@@ -94,8 +62,6 @@ public interface SubscriptionOrBuilder 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
@@ -103,7 +69,6 @@ public interface SubscriptionOrBuilder
    * 
* * bool auto_renewal_enabled = 2; - * * @return The autoRenewalEnabled. */ boolean getAutoRenewalEnabled(); diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/order.proto b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/order.proto similarity index 100% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/order.proto rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/order.proto diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.proto b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.proto similarity index 100% rename from java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.proto rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/proto/google/cloud/commerce/consumer/procurement/v1alpha1/procurement_service.proto diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/create/SyncCreateSetEndpoint.java diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/AsyncGetOrder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/AsyncGetOrder.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/AsyncGetOrder.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/AsyncGetOrder.java diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrder.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrder.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrder.java diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrderString.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrderString.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrderString.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/getorder/SyncGetOrderString.java diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrders.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrders.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrders.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrders.java diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrdersPaged.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrdersPaged.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrdersPaged.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/AsyncListOrdersPaged.java diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrders.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrders.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrders.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrders.java diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrdersString.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrdersString.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrdersString.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/listorders/SyncListOrdersString.java diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrder.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrder.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrder.java diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrderLRO.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrderLRO.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrderLRO.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/AsyncPlaceOrderLRO.java diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/SyncPlaceOrder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/SyncPlaceOrder.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/SyncPlaceOrder.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservice/placeorder/SyncPlaceOrder.java diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservicesettings/getorder/SyncGetOrder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservicesettings/getorder/SyncGetOrder.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservicesettings/getorder/SyncGetOrder.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/consumerprocurementservicesettings/getorder/SyncGetOrder.java diff --git a/java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/consumerprocurementservicestubsettings/getorder/SyncGetOrder.java b/owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/consumerprocurementservicestubsettings/getorder/SyncGetOrder.java similarity index 100% rename from java-cloudcommerceconsumerprocurement/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/consumerprocurementservicestubsettings/getorder/SyncGetOrder.java rename to owl-bot-staging/java-cloudcommerceconsumerprocurement/v1alpha1/samples/snippets/generated/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/consumerprocurementservicestubsettings/getorder/SyncGetOrder.java