diff --git a/java-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index 6de5acbd9533..dca68d1e8ed3 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.23.0 + 26.25.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-shopping-merchant-inventories/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-inventories.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.4.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1beta/reflect-config.json b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1beta/reflect-config.json index f55085ce4e90..cf8c2b686da8 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1beta/reflect-config.json +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/resources/META-INF/native-image/com.google.shopping.merchant.inventories.v1beta/reflect-config.json @@ -1205,6 +1205,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.type.Channel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.Channel$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.Channel$ChannelEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.type.CustomAttribute", "queryAllDeclaredConstructors": true, @@ -1232,6 +1259,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.type.Destination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.Destination$DestinationEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.type.Price", "queryAllDeclaredConstructors": true, @@ -1250,6 +1295,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.type.ReportingContext", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.ReportingContext$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.ReportingContext$ReportingContextEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.type.Interval", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryProto.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryProto.java index 1a5429a29c87..19c4627f9049 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryProto.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryProto.java @@ -113,11 +113,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/{name=accounts/*/products/*/localInvent" + "ories/*}\032G\312A\032merchantapi.googleapis.com\322" + "A\'https://www.googleapis.com/auth/conten" - + "tB\240\001\n/com.google.shopping.merchant.inven" - + "tories.v1betaB\023LocalInventoryProtoP\001ZVgo" - + "ogle.golang.org/genproto/googleapis/shop" - + "ping/merchant/inventories/v1beta;invento" - + "riesb\006proto3" + + "tB\241\001\n/com.google.shopping.merchant.inven" + + "tories.v1betaB\023LocalInventoryProtoP\001ZWcl" + + "oud.google.com/go/shopping/merchant/inve" + + "ntories/apiv1beta/inventoriespb;inventor" + + "iespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryProto.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryProto.java index 50c2cc1a9461..7d3f693efe27 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryProto.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryProto.java @@ -110,11 +110,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ame=accounts/*/products/*/regionalInvent" + "ories/*}\032G\312A\032merchantapi.googleapis.com\322" + "A\'https://www.googleapis.com/auth/conten" - + "tB\243\001\n/com.google.shopping.merchant.inven" + + "tB\244\001\n/com.google.shopping.merchant.inven" + "tories.v1betaB\026RegionalInventoryProtoP\001Z" - + "Vgoogle.golang.org/genproto/googleapis/s" - + "hopping/merchant/inventories/v1beta;inve" - + "ntoriesb\006proto3" + + "Wcloud.google.com/go/shopping/merchant/i" + + "nventories/apiv1beta/inventoriespb;inven" + + "toriespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Channel.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Channel.java new file mode 100644 index 000000000000..5ee421705cc4 --- /dev/null +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Channel.java @@ -0,0 +1,587 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/type/types.proto + +package com.google.shopping.type; + +/** + * + * + *
+ * [Channel](https://support.google.com/merchants/answer/7361332) of a product.
+ *
+ * Channel is used to distinguish between online and local products.
+ * 
+ * + * Protobuf type {@code google.shopping.type.Channel} + */ +public final class Channel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.type.Channel) + ChannelOrBuilder { + private static final long serialVersionUID = 0L; + // Use Channel.newBuilder() to construct. + private Channel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Channel() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Channel(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Channel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Channel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.type.Channel.class, com.google.shopping.type.Channel.Builder.class); + } + + /** + * + * + *
+   * Channel values.
+   * 
+ * + * Protobuf enum {@code google.shopping.type.Channel.ChannelEnum} + */ + public enum ChannelEnum implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * CHANNEL_ENUM_UNSPECIFIED = 0; + */ + CHANNEL_ENUM_UNSPECIFIED(0), + /** + * + * + *
+     * Online product.
+     * 
+ * + * ONLINE = 1; + */ + ONLINE(1), + /** + * + * + *
+     * Local product.
+     * 
+ * + * LOCAL = 2; + */ + LOCAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * CHANNEL_ENUM_UNSPECIFIED = 0; + */ + public static final int CHANNEL_ENUM_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Online product.
+     * 
+ * + * ONLINE = 1; + */ + public static final int ONLINE_VALUE = 1; + /** + * + * + *
+     * Local product.
+     * 
+ * + * LOCAL = 2; + */ + public static final int LOCAL_VALUE = 2; + + 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 ChannelEnum 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 ChannelEnum forNumber(int value) { + switch (value) { + case 0: + return CHANNEL_ENUM_UNSPECIFIED; + case 1: + return ONLINE; + case 2: + return LOCAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ChannelEnum findValueByNumber(int number) { + return ChannelEnum.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.type.Channel.getDescriptor().getEnumTypes().get(0); + } + + private static final ChannelEnum[] VALUES = values(); + + public static ChannelEnum valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + 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 ChannelEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.type.Channel.ChannelEnum) + } + + 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.shopping.type.Channel)) { + return super.equals(obj); + } + com.google.shopping.type.Channel other = (com.google.shopping.type.Channel) 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.shopping.type.Channel parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.type.Channel parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.type.Channel parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.type.Channel parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.type.Channel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.type.Channel parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.type.Channel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.type.Channel parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.type.Channel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.type.Channel parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.type.Channel parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.type.Channel parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.shopping.type.Channel prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * [Channel](https://support.google.com/merchants/answer/7361332) of a product.
+   *
+   * Channel is used to distinguish between online and local products.
+   * 
+ * + * Protobuf type {@code google.shopping.type.Channel} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.type.Channel) + com.google.shopping.type.ChannelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Channel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Channel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.type.Channel.class, + com.google.shopping.type.Channel.Builder.class); + } + + // Construct using com.google.shopping.type.Channel.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.shopping.type.TypesProto + .internal_static_google_shopping_type_Channel_descriptor; + } + + @java.lang.Override + public com.google.shopping.type.Channel getDefaultInstanceForType() { + return com.google.shopping.type.Channel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.type.Channel build() { + com.google.shopping.type.Channel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.type.Channel buildPartial() { + com.google.shopping.type.Channel result = new com.google.shopping.type.Channel(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.shopping.type.Channel) { + return mergeFrom((com.google.shopping.type.Channel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.type.Channel other) { + if (other == com.google.shopping.type.Channel.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.shopping.type.Channel) + } + + // @@protoc_insertion_point(class_scope:google.shopping.type.Channel) + private static final com.google.shopping.type.Channel DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.type.Channel(); + } + + public static com.google.shopping.type.Channel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Channel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.shopping.type.Channel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/ChannelOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/ChannelOrBuilder.java new file mode 100644 index 000000000000..06aee0067e60 --- /dev/null +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/ChannelOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/type/types.proto + +package com.google.shopping.type; + +public interface ChannelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.type.Channel) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Destination.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Destination.java index 555c9b9c713f..ba5b3940a70a 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Destination.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Destination.java @@ -28,196 +28,657 @@ * products from your data feed should be displayed. * * - * Protobuf enum {@code google.shopping.type.Destination} + * Protobuf type {@code google.shopping.type.Destination} */ -public enum Destination implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Not specified.
-   * 
- * - * DESTINATION_UNSPECIFIED = 0; - */ - DESTINATION_UNSPECIFIED(0), - /** - * - * - *
-   * Shopping ads.
-   * 
- * - * SHOPPING_ADS = 1; - */ - SHOPPING_ADS(1), - /** - * - * - *
-   * Local inventory ads.
-   * 
- * - * LOCAL_INVENTORY_ADS = 2; - */ - LOCAL_INVENTORY_ADS(2), - /** - * - * - *
-   * Free listings.
-   * 
- * - * FREE_LISTINGS = 3; - */ - FREE_LISTINGS(3), - /** - * - * - *
-   * Free local product listings.
-   * 
- * - * FREE_LOCAL_LISTINGS = 4; - */ - FREE_LOCAL_LISTINGS(4), - UNRECOGNIZED(-1), - ; +public final class Destination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.type.Destination) + DestinationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Destination.newBuilder() to construct. + private Destination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Destination() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Destination(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Destination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Destination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.type.Destination.class, + com.google.shopping.type.Destination.Builder.class); + } /** * * *
-   * Not specified.
-   * 
- * - * DESTINATION_UNSPECIFIED = 0; - */ - public static final int DESTINATION_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Shopping ads.
-   * 
- * - * SHOPPING_ADS = 1; - */ - public static final int SHOPPING_ADS_VALUE = 1; - /** - * - * - *
-   * Local inventory ads.
+   * Destination values.
    * 
* - * LOCAL_INVENTORY_ADS = 2; + * Protobuf enum {@code google.shopping.type.Destination.DestinationEnum} */ - public static final int LOCAL_INVENTORY_ADS_VALUE = 2; + public enum DestinationEnum implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * DESTINATION_ENUM_UNSPECIFIED = 0; + */ + DESTINATION_ENUM_UNSPECIFIED(0), + /** + * + * + *
+     * [Shopping ads](https://support.google.com/google-ads/answer/2454022).
+     * 
+ * + * SHOPPING_ADS = 1; + */ + SHOPPING_ADS(1), + /** + * + * + *
+     * [Display ads](https://support.google.com/merchants/answer/6069387).
+     * 
+ * + * DISPLAY_ADS = 2; + */ + DISPLAY_ADS(2), + /** + * + * + *
+     * [Local inventory
+     * ads](https://support.google.com/merchants/answer/3057972).
+     * 
+ * + * LOCAL_INVENTORY_ADS = 3; + */ + LOCAL_INVENTORY_ADS(3), + /** + * + * + *
+     * [Free listings](https://support.google.com/merchants/answer/9199328).
+     * 
+ * + * FREE_LISTINGS = 4; + */ + FREE_LISTINGS(4), + /** + * + * + *
+     * [Free local product
+     * listings](https://support.google.com/merchants/answer/9825611).
+     * 
+ * + * FREE_LOCAL_LISTINGS = 5; + */ + FREE_LOCAL_LISTINGS(5), + /** + * + * + *
+     * [YouTube Shopping](https://support.google.com/merchants/answer/12362804).
+     * 
+ * + * YOUTUBE_SHOPPING = 6; + */ + YOUTUBE_SHOPPING(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * DESTINATION_ENUM_UNSPECIFIED = 0; + */ + public static final int DESTINATION_ENUM_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * [Shopping ads](https://support.google.com/google-ads/answer/2454022).
+     * 
+ * + * SHOPPING_ADS = 1; + */ + public static final int SHOPPING_ADS_VALUE = 1; + /** + * + * + *
+     * [Display ads](https://support.google.com/merchants/answer/6069387).
+     * 
+ * + * DISPLAY_ADS = 2; + */ + public static final int DISPLAY_ADS_VALUE = 2; + /** + * + * + *
+     * [Local inventory
+     * ads](https://support.google.com/merchants/answer/3057972).
+     * 
+ * + * LOCAL_INVENTORY_ADS = 3; + */ + public static final int LOCAL_INVENTORY_ADS_VALUE = 3; + /** + * + * + *
+     * [Free listings](https://support.google.com/merchants/answer/9199328).
+     * 
+ * + * FREE_LISTINGS = 4; + */ + public static final int FREE_LISTINGS_VALUE = 4; + /** + * + * + *
+     * [Free local product
+     * listings](https://support.google.com/merchants/answer/9825611).
+     * 
+ * + * FREE_LOCAL_LISTINGS = 5; + */ + public static final int FREE_LOCAL_LISTINGS_VALUE = 5; + /** + * + * + *
+     * [YouTube Shopping](https://support.google.com/merchants/answer/12362804).
+     * 
+ * + * YOUTUBE_SHOPPING = 6; + */ + public static final int YOUTUBE_SHOPPING_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 DestinationEnum 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 DestinationEnum forNumber(int value) { + switch (value) { + case 0: + return DESTINATION_ENUM_UNSPECIFIED; + case 1: + return SHOPPING_ADS; + case 2: + return DISPLAY_ADS; + case 3: + return LOCAL_INVENTORY_ADS; + case 4: + return FREE_LISTINGS; + case 5: + return FREE_LOCAL_LISTINGS; + case 6: + return YOUTUBE_SHOPPING; + default: + return null; + } + } + + 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 DestinationEnum findValueByNumber(int number) { + return DestinationEnum.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.type.Destination.getDescriptor().getEnumTypes().get(0); + } + + private static final DestinationEnum[] VALUES = values(); + + public static DestinationEnum valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DestinationEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.type.Destination.DestinationEnum) + } + + 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.shopping.type.Destination)) { + return super.equals(obj); + } + com.google.shopping.type.Destination other = (com.google.shopping.type.Destination) 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.shopping.type.Destination parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.type.Destination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.type.Destination parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.type.Destination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.type.Destination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.type.Destination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.type.Destination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.type.Destination parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.type.Destination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.type.Destination parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.type.Destination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.type.Destination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.shopping.type.Destination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * * *
-   * Free listings.
-   * 
- * - * FREE_LISTINGS = 3; - */ - public static final int FREE_LISTINGS_VALUE = 3; - /** + * Destinations available for a product. * - * - *
-   * Free local product listings.
+   * Destinations are used in Merchant Center to allow you to control where the
+   * products from your data feed should be displayed.
    * 
* - * FREE_LOCAL_LISTINGS = 4; + * Protobuf type {@code google.shopping.type.Destination} */ - public static final int FREE_LOCAL_LISTINGS_VALUE = 4; + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.type.Destination) + com.google.shopping.type.DestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Destination_descriptor; + } - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Destination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.type.Destination.class, + com.google.shopping.type.Destination.Builder.class); } - 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 Destination valueOf(int value) { - return forNumber(value); - } + // Construct using com.google.shopping.type.Destination.newBuilder() + private Builder() {} - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Destination forNumber(int value) { - switch (value) { - case 0: - return DESTINATION_UNSPECIFIED; - case 1: - return SHOPPING_ADS; - case 2: - return LOCAL_INVENTORY_ADS; - case 3: - return FREE_LISTINGS; - case 4: - return FREE_LOCAL_LISTINGS; - default: - return null; - } - } - - 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 Destination findValueByNumber(int number) { - return Destination.forNumber(number); - } - }; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - 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."); + @java.lang.Override + public Builder clear() { + super.clear(); + return this; } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_Destination_descriptor; + } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.shopping.type.TypesProto.getDescriptor().getEnumTypes().get(0); - } + @java.lang.Override + public com.google.shopping.type.Destination getDefaultInstanceForType() { + return com.google.shopping.type.Destination.getDefaultInstance(); + } - private static final Destination[] VALUES = values(); + @java.lang.Override + public com.google.shopping.type.Destination build() { + com.google.shopping.type.Destination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.type.Destination buildPartial() { + com.google.shopping.type.Destination result = new com.google.shopping.type.Destination(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); + } - public static Destination valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; + + @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); } - return VALUES[desc.getIndex()]; + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.type.Destination) { + return mergeFrom((com.google.shopping.type.Destination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.type.Destination other) { + if (other == com.google.shopping.type.Destination.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.shopping.type.Destination) } - private final int value; + // @@protoc_insertion_point(class_scope:google.shopping.type.Destination) + private static final com.google.shopping.type.Destination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.type.Destination(); + } - private Destination(int value) { - this.value = value; + public static com.google.shopping.type.Destination getDefaultInstance() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(enum_scope:google.shopping.type.Destination) + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Destination 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.shopping.type.Destination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/DestinationOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/DestinationOrBuilder.java new file mode 100644 index 000000000000..ccec8f709da9 --- /dev/null +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/DestinationOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/type/types.proto + +package com.google.shopping.type; + +public interface DestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.type.Destination) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Price.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Price.java index 64a582473d71..daf2dbcc9282 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Price.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/Price.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * The price represented as a number in micros (1 million micros is an * equivalent to one's currency standard unit, for example, 1 USD = 1000000 * micros). + * This field can also be set as infinity by setting to -1. + * This field only support -1 and positive value. * * * optional int64 amount_micros = 1; @@ -88,6 +90,8 @@ public boolean hasAmountMicros() { * The price represented as a number in micros (1 million micros is an * equivalent to one's currency standard unit, for example, 1 USD = 1000000 * micros). + * This field can also be set as infinity by setting to -1. + * This field only support -1 and positive value. * * * optional int64 amount_micros = 1; @@ -549,6 +553,8 @@ public Builder mergeFrom( * The price represented as a number in micros (1 million micros is an * equivalent to one's currency standard unit, for example, 1 USD = 1000000 * micros). + * This field can also be set as infinity by setting to -1. + * This field only support -1 and positive value. * * * optional int64 amount_micros = 1; @@ -566,6 +572,8 @@ public boolean hasAmountMicros() { * The price represented as a number in micros (1 million micros is an * equivalent to one's currency standard unit, for example, 1 USD = 1000000 * micros). + * This field can also be set as infinity by setting to -1. + * This field only support -1 and positive value. * * * optional int64 amount_micros = 1; @@ -583,6 +591,8 @@ public long getAmountMicros() { * The price represented as a number in micros (1 million micros is an * equivalent to one's currency standard unit, for example, 1 USD = 1000000 * micros). + * This field can also be set as infinity by setting to -1. + * This field only support -1 and positive value. * * * optional int64 amount_micros = 1; @@ -604,6 +614,8 @@ public Builder setAmountMicros(long value) { * The price represented as a number in micros (1 million micros is an * equivalent to one's currency standard unit, for example, 1 USD = 1000000 * micros). + * This field can also be set as infinity by setting to -1. + * This field only support -1 and positive value. * * * optional int64 amount_micros = 1; diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/PriceOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/PriceOrBuilder.java index d071d52a528a..daad96b93806 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/PriceOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/PriceOrBuilder.java @@ -30,6 +30,8 @@ public interface PriceOrBuilder * The price represented as a number in micros (1 million micros is an * equivalent to one's currency standard unit, for example, 1 USD = 1000000 * micros). + * This field can also be set as infinity by setting to -1. + * This field only support -1 and positive value. * * * optional int64 amount_micros = 1; @@ -44,6 +46,8 @@ public interface PriceOrBuilder * The price represented as a number in micros (1 million micros is an * equivalent to one's currency standard unit, for example, 1 USD = 1000000 * micros). + * This field can also be set as infinity by setting to -1. + * This field only support -1 and positive value. * * * optional int64 amount_micros = 1; diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/ReportingContext.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/ReportingContext.java new file mode 100644 index 000000000000..891f8b1ea958 --- /dev/null +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/ReportingContext.java @@ -0,0 +1,836 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/type/types.proto + +package com.google.shopping.type; + +/** + * + * + *
+ * Reporting contexts that your account and product issues apply to.
+ *
+ * Reporting contexts are groups of surfaces and formats for product results on
+ * Google. They can represent the entire destination (for example, [Shopping
+ * ads](https://support.google.com/merchants/answer/6149970)) or a subset of
+ * formats within a destination (for example, [Discovery
+ * ads](https://support.google.com/merchants/answer/13389785)).
+ * 
+ * + * Protobuf type {@code google.shopping.type.ReportingContext} + */ +public final class ReportingContext extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.type.ReportingContext) + ReportingContextOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReportingContext.newBuilder() to construct. + private ReportingContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReportingContext() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReportingContext(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_ReportingContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_ReportingContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.type.ReportingContext.class, + com.google.shopping.type.ReportingContext.Builder.class); + } + + /** + * + * + *
+   * Reporting context values.
+   * 
+ * + * Protobuf enum {@code google.shopping.type.ReportingContext.ReportingContextEnum} + */ + public enum ReportingContextEnum implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * REPORTING_CONTEXT_ENUM_UNSPECIFIED = 0; + */ + REPORTING_CONTEXT_ENUM_UNSPECIFIED(0), + /** + * + * + *
+     * [Shopping ads](https://support.google.com/merchants/answer/6149970).
+     * 
+ * + * SHOPPING_ADS = 1; + */ + SHOPPING_ADS(1), + /** + * + * + *
+     * [Discovery and Demand Gen
+     * ads](https://support.google.com/merchants/answer/13389785).
+     * 
+ * + * DISCOVERY_ADS = 2; + */ + DISCOVERY_ADS(2), + /** + * + * + *
+     * [Video ads](https://support.google.com/google-ads/answer/6340491).
+     * 
+ * + * VIDEO_ADS = 3; + */ + VIDEO_ADS(3), + /** + * + * + *
+     * [Display ads](https://support.google.com/merchants/answer/6069387).
+     * 
+ * + * DISPLAY_ADS = 4; + */ + DISPLAY_ADS(4), + /** + * + * + *
+     * [Local inventory
+     * ads](https://support.google.com/merchants/answer/3271956).
+     * 
+ * + * LOCAL_INVENTORY_ADS = 5; + */ + LOCAL_INVENTORY_ADS(5), + /** + * + * + *
+     * [Vehicle inventory
+     * ads](https://support.google.com/merchants/answer/11544533).
+     * 
+ * + * VEHICLE_INVENTORY_ADS = 6; + */ + VEHICLE_INVENTORY_ADS(6), + /** + * + * + *
+     * [Free product
+     * listings](https://support.google.com/merchants/answer/9199328).
+     * 
+ * + * FREE_LISTINGS = 7; + */ + FREE_LISTINGS(7), + /** + * + * + *
+     * [Free local product
+     * listings](https://support.google.com/merchants/answer/9825611).
+     * 
+ * + * FREE_LOCAL_LISTINGS = 8; + */ + FREE_LOCAL_LISTINGS(8), + /** + * + * + *
+     * [Free local vehicle
+     * listings](https://support.google.com/merchants/answer/11544533).
+     * 
+ * + * FREE_LOCAL_VEHICLE_LISTINGS = 9; + */ + FREE_LOCAL_VEHICLE_LISTINGS(9), + /** + * + * + *
+     * [YouTube
+     * Shopping](https://support.google.com/merchants/answer/13478370).
+     * 
+ * + * YOUTUBE_SHOPPING = 10; + */ + YOUTUBE_SHOPPING(10), + /** + * + * + *
+     * [Cloud retail](https://cloud.google.com/solutions/retail).
+     * 
+ * + * CLOUD_RETAIL = 11; + */ + CLOUD_RETAIL(11), + /** + * + * + *
+     * [Local cloud retail](https://cloud.google.com/solutions/retail).
+     * 
+ * + * LOCAL_CLOUD_RETAIL = 12; + */ + LOCAL_CLOUD_RETAIL(12), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * REPORTING_CONTEXT_ENUM_UNSPECIFIED = 0; + */ + public static final int REPORTING_CONTEXT_ENUM_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * [Shopping ads](https://support.google.com/merchants/answer/6149970).
+     * 
+ * + * SHOPPING_ADS = 1; + */ + public static final int SHOPPING_ADS_VALUE = 1; + /** + * + * + *
+     * [Discovery and Demand Gen
+     * ads](https://support.google.com/merchants/answer/13389785).
+     * 
+ * + * DISCOVERY_ADS = 2; + */ + public static final int DISCOVERY_ADS_VALUE = 2; + /** + * + * + *
+     * [Video ads](https://support.google.com/google-ads/answer/6340491).
+     * 
+ * + * VIDEO_ADS = 3; + */ + public static final int VIDEO_ADS_VALUE = 3; + /** + * + * + *
+     * [Display ads](https://support.google.com/merchants/answer/6069387).
+     * 
+ * + * DISPLAY_ADS = 4; + */ + public static final int DISPLAY_ADS_VALUE = 4; + /** + * + * + *
+     * [Local inventory
+     * ads](https://support.google.com/merchants/answer/3271956).
+     * 
+ * + * LOCAL_INVENTORY_ADS = 5; + */ + public static final int LOCAL_INVENTORY_ADS_VALUE = 5; + /** + * + * + *
+     * [Vehicle inventory
+     * ads](https://support.google.com/merchants/answer/11544533).
+     * 
+ * + * VEHICLE_INVENTORY_ADS = 6; + */ + public static final int VEHICLE_INVENTORY_ADS_VALUE = 6; + /** + * + * + *
+     * [Free product
+     * listings](https://support.google.com/merchants/answer/9199328).
+     * 
+ * + * FREE_LISTINGS = 7; + */ + public static final int FREE_LISTINGS_VALUE = 7; + /** + * + * + *
+     * [Free local product
+     * listings](https://support.google.com/merchants/answer/9825611).
+     * 
+ * + * FREE_LOCAL_LISTINGS = 8; + */ + public static final int FREE_LOCAL_LISTINGS_VALUE = 8; + /** + * + * + *
+     * [Free local vehicle
+     * listings](https://support.google.com/merchants/answer/11544533).
+     * 
+ * + * FREE_LOCAL_VEHICLE_LISTINGS = 9; + */ + public static final int FREE_LOCAL_VEHICLE_LISTINGS_VALUE = 9; + /** + * + * + *
+     * [YouTube
+     * Shopping](https://support.google.com/merchants/answer/13478370).
+     * 
+ * + * YOUTUBE_SHOPPING = 10; + */ + public static final int YOUTUBE_SHOPPING_VALUE = 10; + /** + * + * + *
+     * [Cloud retail](https://cloud.google.com/solutions/retail).
+     * 
+ * + * CLOUD_RETAIL = 11; + */ + public static final int CLOUD_RETAIL_VALUE = 11; + /** + * + * + *
+     * [Local cloud retail](https://cloud.google.com/solutions/retail).
+     * 
+ * + * LOCAL_CLOUD_RETAIL = 12; + */ + public static final int LOCAL_CLOUD_RETAIL_VALUE = 12; + + 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 ReportingContextEnum 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 ReportingContextEnum forNumber(int value) { + switch (value) { + case 0: + return REPORTING_CONTEXT_ENUM_UNSPECIFIED; + case 1: + return SHOPPING_ADS; + case 2: + return DISCOVERY_ADS; + case 3: + return VIDEO_ADS; + case 4: + return DISPLAY_ADS; + case 5: + return LOCAL_INVENTORY_ADS; + case 6: + return VEHICLE_INVENTORY_ADS; + case 7: + return FREE_LISTINGS; + case 8: + return FREE_LOCAL_LISTINGS; + case 9: + return FREE_LOCAL_VEHICLE_LISTINGS; + case 10: + return YOUTUBE_SHOPPING; + case 11: + return CLOUD_RETAIL; + case 12: + return LOCAL_CLOUD_RETAIL; + default: + return null; + } + } + + 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 ReportingContextEnum findValueByNumber(int number) { + return ReportingContextEnum.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.shopping.type.ReportingContext.getDescriptor().getEnumTypes().get(0); + } + + private static final ReportingContextEnum[] VALUES = values(); + + public static ReportingContextEnum 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 ReportingContextEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.type.ReportingContext.ReportingContextEnum) + } + + 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.shopping.type.ReportingContext)) { + return super.equals(obj); + } + com.google.shopping.type.ReportingContext other = + (com.google.shopping.type.ReportingContext) 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.shopping.type.ReportingContext parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.type.ReportingContext parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.type.ReportingContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.type.ReportingContext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.type.ReportingContext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.type.ReportingContext parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.type.ReportingContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.type.ReportingContext parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.type.ReportingContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.type.ReportingContext parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.type.ReportingContext parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.type.ReportingContext 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.shopping.type.ReportingContext 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; + } + /** + * + * + *
+   * Reporting contexts that your account and product issues apply to.
+   *
+   * Reporting contexts are groups of surfaces and formats for product results on
+   * Google. They can represent the entire destination (for example, [Shopping
+   * ads](https://support.google.com/merchants/answer/6149970)) or a subset of
+   * formats within a destination (for example, [Discovery
+   * ads](https://support.google.com/merchants/answer/13389785)).
+   * 
+ * + * Protobuf type {@code google.shopping.type.ReportingContext} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.type.ReportingContext) + com.google.shopping.type.ReportingContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_ReportingContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.type.TypesProto + .internal_static_google_shopping_type_ReportingContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.type.ReportingContext.class, + com.google.shopping.type.ReportingContext.Builder.class); + } + + // Construct using com.google.shopping.type.ReportingContext.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.shopping.type.TypesProto + .internal_static_google_shopping_type_ReportingContext_descriptor; + } + + @java.lang.Override + public com.google.shopping.type.ReportingContext getDefaultInstanceForType() { + return com.google.shopping.type.ReportingContext.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.type.ReportingContext build() { + com.google.shopping.type.ReportingContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.type.ReportingContext buildPartial() { + com.google.shopping.type.ReportingContext result = + new com.google.shopping.type.ReportingContext(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.shopping.type.ReportingContext) { + return mergeFrom((com.google.shopping.type.ReportingContext) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.type.ReportingContext other) { + if (other == com.google.shopping.type.ReportingContext.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.shopping.type.ReportingContext) + } + + // @@protoc_insertion_point(class_scope:google.shopping.type.ReportingContext) + private static final com.google.shopping.type.ReportingContext DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.type.ReportingContext(); + } + + public static com.google.shopping.type.ReportingContext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReportingContext 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.shopping.type.ReportingContext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/ReportingContextOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/ReportingContextOrBuilder.java new file mode 100644 index 000000000000..e3650d6489ef --- /dev/null +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/ReportingContextOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/type/types.proto + +package com.google.shopping.type; + +public interface ReportingContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.type.ReportingContext) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/TypesProto.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/TypesProto.java index c0d5a014193f..39d4af4b9716 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/TypesProto.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/type/TypesProto.java @@ -35,6 +35,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_shopping_type_CustomAttribute_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_shopping_type_CustomAttribute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_type_Destination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_type_Destination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_type_ReportingContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_type_ReportingContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_type_Channel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_type_Channel_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -51,14 +63,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\017CustomAttribute\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022\022\n\005" + "value\030\002 \001(\tH\001\210\001\001\022;\n\014group_values\030\003 \003(\0132%" + ".google.shopping.type.CustomAttributeB\007\n" - + "\005_nameB\010\n\006_value*\201\001\n\013Destination\022\033\n\027DEST" - + "INATION_UNSPECIFIED\020\000\022\020\n\014SHOPPING_ADS\020\001\022" - + "\027\n\023LOCAL_INVENTORY_ADS\020\002\022\021\n\rFREE_LISTING" - + "S\020\003\022\027\n\023FREE_LOCAL_LISTINGS\020\004B\200\001\n\030com.goo" - + "gle.shopping.typeB\nTypesProtoP\001Z?google." - + "golang.org/genproto/googleapis/shopping/" - + "type/types;types\252\002\024Google.Shopping.Typeb" - + "\006proto3" + + "\005_nameB\010\n\006_value\"\301\001\n\013Destination\"\261\001\n\017Des" + + "tinationEnum\022 \n\034DESTINATION_ENUM_UNSPECI" + + "FIED\020\000\022\020\n\014SHOPPING_ADS\020\001\022\017\n\013DISPLAY_ADS\020" + + "\002\022\027\n\023LOCAL_INVENTORY_ADS\020\003\022\021\n\rFREE_LISTI" + + "NGS\020\004\022\027\n\023FREE_LOCAL_LISTINGS\020\005\022\024\n\020YOUTUB" + + "E_SHOPPING\020\006\"\331\002\n\020ReportingContext\"\304\002\n\024Re" + + "portingContextEnum\022&\n\"REPORTING_CONTEXT_" + + "ENUM_UNSPECIFIED\020\000\022\020\n\014SHOPPING_ADS\020\001\022\021\n\r" + + "DISCOVERY_ADS\020\002\022\r\n\tVIDEO_ADS\020\003\022\017\n\013DISPLA" + + "Y_ADS\020\004\022\027\n\023LOCAL_INVENTORY_ADS\020\005\022\031\n\025VEHI" + + "CLE_INVENTORY_ADS\020\006\022\021\n\rFREE_LISTINGS\020\007\022\027" + + "\n\023FREE_LOCAL_LISTINGS\020\010\022\037\n\033FREE_LOCAL_VE" + + "HICLE_LISTINGS\020\t\022\024\n\020YOUTUBE_SHOPPING\020\n\022\020" + + "\n\014CLOUD_RETAIL\020\013\022\026\n\022LOCAL_CLOUD_RETAIL\020\014" + + "\"M\n\007Channel\"B\n\013ChannelEnum\022\034\n\030CHANNEL_EN" + + "UM_UNSPECIFIED\020\000\022\n\n\006ONLINE\020\001\022\t\n\005LOCAL\020\002B" + + "p\n\030com.google.shopping.typeB\nTypesProtoP" + + "\001Z/cloud.google.com/go/shopping/type/typ" + + "epb;typepb\252\002\024Google.Shopping.Typeb\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -79,6 +103,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Value", "GroupValues", "Name", "Value", }); + internal_static_google_shopping_type_Destination_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_shopping_type_Destination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_type_Destination_descriptor, new java.lang.String[] {}); + internal_static_google_shopping_type_ReportingContext_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_shopping_type_ReportingContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_type_ReportingContext_descriptor, + new java.lang.String[] {}); + internal_static_google_shopping_type_Channel_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_shopping_type_Channel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_type_Channel_descriptor, new java.lang.String[] {}); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/localinventory.proto b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/localinventory.proto index 2e35cb5a163c..6e128d2bc6ab 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/localinventory.proto +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/localinventory.proto @@ -24,7 +24,7 @@ import "google/protobuf/empty.proto"; import "google/shopping/type/types.proto"; import "google/type/interval.proto"; -option go_package = "google.golang.org/genproto/googleapis/shopping/merchant/inventories/v1beta;inventories"; +option go_package = "cloud.google.com/go/shopping/merchant/inventories/apiv1beta/inventoriespb;inventoriespb"; option java_multiple_files = true; option java_outer_classname = "LocalInventoryProto"; option java_package = "com.google.shopping.merchant.inventories.v1beta"; diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/regionalinventory.proto b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/regionalinventory.proto index 7b3a76e5e103..756bef28ce6a 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/regionalinventory.proto +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/regionalinventory.proto @@ -24,7 +24,7 @@ import "google/protobuf/empty.proto"; import "google/shopping/type/types.proto"; import "google/type/interval.proto"; -option go_package = "google.golang.org/genproto/googleapis/shopping/merchant/inventories/v1beta;inventories"; +option go_package = "cloud.google.com/go/shopping/merchant/inventories/apiv1beta/inventoriespb;inventoriespb"; option java_multiple_files = true; option java_outer_classname = "RegionalInventoryProto"; option java_package = "com.google.shopping.merchant.inventories.v1beta";