diff --git a/java-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index f2b1474347e5..261ec09be180 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/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-reports/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-reports.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/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-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1beta/reflect-config.json b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1beta/reflect-config.json index ace99628cdc3..eba88cd9f40f 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1beta/reflect-config.json +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1beta/reflect-config.json @@ -1106,6 +1106,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.reports.v1beta.MarketingMethod", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1beta.MarketingMethod$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1beta.MarketingMethod$MarketingMethodEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView", "queryAllDeclaredConstructors": true, @@ -1188,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.shopping.merchant.reports.v1beta.ProductView$AggregatedDestinationStatus", + "name": "com.google.shopping.merchant.reports.v1beta.ProductView$AggregatedReportingContextStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.shopping.merchant.reports.v1beta.ProductView$ItemIssue$ItemIssueSeverity$IssueSeverityPerDestination", + "name": "com.google.shopping.merchant.reports.v1beta.ProductView$ItemIssue$ItemIssueSeverity$IssueSeverityPerReportingContext", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.shopping.merchant.reports.v1beta.ProductView$ItemIssue$ItemIssueSeverity$IssueSeverityPerDestination$Builder", + "name": "com.google.shopping.merchant.reports.v1beta.ProductView$ItemIssue$ItemIssueSeverity$IssueSeverityPerReportingContext$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1304,6 +1331,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.reports.v1beta.RelativeDemand$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1beta.RelativeDemand$RelativeDemandEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType", "queryAllDeclaredConstructors": true, @@ -1313,6 +1358,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType$RelativeDemandChangeTypeEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.reports.v1beta.ReportGranularity", "queryAllDeclaredConstructors": true, @@ -1322,6 +1385,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.reports.v1beta.ReportGranularity$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1beta.ReportGranularity$ReportGranularityEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.reports.v1beta.ReportRow", "queryAllDeclaredConstructors": true, @@ -1385,6 +1466,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.reports.v1beta.TrafficSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1beta.TrafficSource$TrafficSourceEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "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, @@ -1412,6 +1538,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, @@ -1430,6 +1574,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.Date", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersBrandView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersBrandView.java index a6bd805ec87f..6cd01c655fe9 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersBrandView.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersBrandView.java @@ -156,7 +156,7 @@ public com.google.type.DateOrBuilder getReportDateOrBuilder() { * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return Whether the reportGranularity field is set. @@ -177,7 +177,7 @@ public boolean hasReportGranularity() { * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return The enum numeric value on the wire for reportGranularity. @@ -198,17 +198,20 @@ public int getReportGranularityValue() { * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return The reportGranularity. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.ReportGranularity getReportGranularity() { - com.google.shopping.merchant.reports.v1beta.ReportGranularity result = - com.google.shopping.merchant.reports.v1beta.ReportGranularity.forNumber(reportGranularity_); + public com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum + getReportGranularity() { + com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum result = + com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum + .forNumber(reportGranularity_); return result == null - ? com.google.shopping.merchant.reports.v1beta.ReportGranularity.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum + .UNRECOGNIZED : result; } @@ -545,7 +548,8 @@ public long getPreviousRank() { * in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 9; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 9; * * * @return Whether the relativeDemand field is set. @@ -562,7 +566,8 @@ public boolean hasRelativeDemand() { * in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 9; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 9; * * * @return The enum numeric value on the wire for relativeDemand. @@ -579,17 +584,20 @@ public int getRelativeDemandValue() { * in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 9; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 9; * * * @return The relativeDemand. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.RelativeDemand getRelativeDemand() { - com.google.shopping.merchant.reports.v1beta.RelativeDemand result = - com.google.shopping.merchant.reports.v1beta.RelativeDemand.forNumber(relativeDemand_); + public com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum + getRelativeDemand() { + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum.forNumber( + relativeDemand_); return result == null - ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum.UNRECOGNIZED : result; } @@ -604,7 +612,7 @@ public com.google.shopping.merchant.reports.v1beta.RelativeDemand getRelativeDem * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 10; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; * * * @return Whether the previousRelativeDemand field is set. @@ -622,7 +630,7 @@ public boolean hasPreviousRelativeDemand() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 10; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; * * * @return The enum numeric value on the wire for previousRelativeDemand. @@ -640,18 +648,19 @@ public int getPreviousRelativeDemandValue() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 10; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; * * * @return The previousRelativeDemand. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.RelativeDemand getPreviousRelativeDemand() { - com.google.shopping.merchant.reports.v1beta.RelativeDemand result = - com.google.shopping.merchant.reports.v1beta.RelativeDemand.forNumber( + public com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum + getPreviousRelativeDemand() { + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum.forNumber( previousRelativeDemand_); return result == null - ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum.UNRECOGNIZED : result; } @@ -665,7 +674,7 @@ public com.google.shopping.merchant.reports.v1beta.RelativeDemand getPreviousRel * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 11; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; * * * @return Whether the relativeDemandChange field is set. @@ -682,7 +691,7 @@ public boolean hasRelativeDemandChange() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 11; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; * * * @return The enum numeric value on the wire for relativeDemandChange. @@ -699,19 +708,23 @@ public int getRelativeDemandChangeValue() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 11; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; * * * @return The relativeDemandChange. */ @java.lang.Override public com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum getRelativeDemandChange() { - com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType result = - com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.forNumber( - relativeDemandChange_); + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + result = + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.forNumber(relativeDemandChange_); return result == null - ? com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.UNRECOGNIZED : result; } @@ -1612,7 +1625,7 @@ public com.google.type.DateOrBuilder getReportDateOrBuilder() { * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return Whether the reportGranularity field is set. @@ -1633,7 +1646,7 @@ public boolean hasReportGranularity() { * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return The enum numeric value on the wire for reportGranularity. @@ -1654,7 +1667,7 @@ public int getReportGranularityValue() { * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @param value The enum numeric value on the wire for reportGranularity to set. @@ -1678,18 +1691,20 @@ public Builder setReportGranularityValue(int value) { * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return The reportGranularity. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.ReportGranularity getReportGranularity() { - com.google.shopping.merchant.reports.v1beta.ReportGranularity result = - com.google.shopping.merchant.reports.v1beta.ReportGranularity.forNumber( - reportGranularity_); + public com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum + getReportGranularity() { + com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum result = + com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum + .forNumber(reportGranularity_); return result == null - ? com.google.shopping.merchant.reports.v1beta.ReportGranularity.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum + .UNRECOGNIZED : result; } /** @@ -1704,14 +1719,14 @@ public com.google.shopping.merchant.reports.v1beta.ReportGranularity getReportGr * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @param value The reportGranularity to set. * @return This builder for chaining. */ public Builder setReportGranularity( - com.google.shopping.merchant.reports.v1beta.ReportGranularity value) { + com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum value) { if (value == null) { throw new NullPointerException(); } @@ -1732,7 +1747,7 @@ public Builder setReportGranularity( * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return This builder for chaining. @@ -2369,7 +2384,8 @@ public Builder clearPreviousRank() { * in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 9; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 9; * * * @return Whether the relativeDemand field is set. @@ -2386,7 +2402,8 @@ public boolean hasRelativeDemand() { * in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 9; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 9; * * * @return The enum numeric value on the wire for relativeDemand. @@ -2403,7 +2420,8 @@ public int getRelativeDemandValue() { * in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 9; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 9; * * * @param value The enum numeric value on the wire for relativeDemand to set. @@ -2423,17 +2441,21 @@ public Builder setRelativeDemandValue(int value) { * in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 9; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 9; * * * @return The relativeDemand. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.RelativeDemand getRelativeDemand() { - com.google.shopping.merchant.reports.v1beta.RelativeDemand result = - com.google.shopping.merchant.reports.v1beta.RelativeDemand.forNumber(relativeDemand_); + public com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum + getRelativeDemand() { + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum.forNumber( + relativeDemand_); return result == null - ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum + .UNRECOGNIZED : result; } /** @@ -2444,14 +2466,15 @@ public com.google.shopping.merchant.reports.v1beta.RelativeDemand getRelativeDem * in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 9; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 9; * * * @param value The relativeDemand to set. * @return This builder for chaining. */ public Builder setRelativeDemand( - com.google.shopping.merchant.reports.v1beta.RelativeDemand value) { + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum value) { if (value == null) { throw new NullPointerException(); } @@ -2468,7 +2491,8 @@ public Builder setRelativeDemand( * in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 9; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 9; * * * @return This builder for chaining. @@ -2490,7 +2514,7 @@ public Builder clearRelativeDemand() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 10; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; * * * @return Whether the previousRelativeDemand field is set. @@ -2508,7 +2532,7 @@ public boolean hasPreviousRelativeDemand() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 10; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; * * * @return The enum numeric value on the wire for previousRelativeDemand. @@ -2526,7 +2550,7 @@ public int getPreviousRelativeDemandValue() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 10; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; * * * @param value The enum numeric value on the wire for previousRelativeDemand to set. @@ -2547,18 +2571,20 @@ public Builder setPreviousRelativeDemandValue(int value) { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 10; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; * * * @return The previousRelativeDemand. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.RelativeDemand getPreviousRelativeDemand() { - com.google.shopping.merchant.reports.v1beta.RelativeDemand result = - com.google.shopping.merchant.reports.v1beta.RelativeDemand.forNumber( + public com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum + getPreviousRelativeDemand() { + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum.forNumber( previousRelativeDemand_); return result == null - ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum + .UNRECOGNIZED : result; } /** @@ -2570,14 +2596,14 @@ public com.google.shopping.merchant.reports.v1beta.RelativeDemand getPreviousRel * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 10; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; * * * @param value The previousRelativeDemand to set. * @return This builder for chaining. */ public Builder setPreviousRelativeDemand( - com.google.shopping.merchant.reports.v1beta.RelativeDemand value) { + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum value) { if (value == null) { throw new NullPointerException(); } @@ -2595,7 +2621,7 @@ public Builder setPreviousRelativeDemand( * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 10; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; * * * @return This builder for chaining. @@ -2616,7 +2642,7 @@ public Builder clearPreviousRelativeDemand() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 11; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; * * * @return Whether the relativeDemandChange field is set. @@ -2633,7 +2659,7 @@ public boolean hasRelativeDemandChange() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 11; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; * * * @return The enum numeric value on the wire for relativeDemandChange. @@ -2650,7 +2676,7 @@ public int getRelativeDemandChangeValue() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 11; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; * * * @param value The enum numeric value on the wire for relativeDemandChange to set. @@ -2670,19 +2696,23 @@ public Builder setRelativeDemandChangeValue(int value) { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 11; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; * * * @return The relativeDemandChange. */ @java.lang.Override public com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum getRelativeDemandChange() { - com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType result = - com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.forNumber( - relativeDemandChange_); + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + result = + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.forNumber(relativeDemandChange_); return result == null - ? com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.UNRECOGNIZED : result; } /** @@ -2693,14 +2723,16 @@ public Builder setRelativeDemandChangeValue(int value) { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 11; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; * * * @param value The relativeDemandChange to set. * @return This builder for chaining. */ public Builder setRelativeDemandChange( - com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType value) { + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + value) { if (value == null) { throw new NullPointerException(); } @@ -2717,7 +2749,7 @@ public Builder setRelativeDemandChange( * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 11; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; * * * @return This builder for chaining. diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersBrandViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersBrandViewOrBuilder.java index 07dccf839634..ab5950e4d922 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersBrandViewOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersBrandViewOrBuilder.java @@ -91,7 +91,7 @@ public interface BestSellersBrandViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return Whether the reportGranularity field is set. @@ -109,7 +109,7 @@ public interface BestSellersBrandViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return The enum numeric value on the wire for reportGranularity. @@ -127,12 +127,13 @@ public interface BestSellersBrandViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return The reportGranularity. */ - com.google.shopping.merchant.reports.v1beta.ReportGranularity getReportGranularity(); + com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum + getReportGranularity(); /** * @@ -354,7 +355,8 @@ public interface BestSellersBrandViewOrBuilder * in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 9; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 9; * * * @return Whether the relativeDemand field is set. @@ -368,7 +370,8 @@ public interface BestSellersBrandViewOrBuilder * in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 9; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 9; * * * @return The enum numeric value on the wire for relativeDemand. @@ -382,12 +385,13 @@ public interface BestSellersBrandViewOrBuilder * in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 9; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 9; * * * @return The relativeDemand. */ - com.google.shopping.merchant.reports.v1beta.RelativeDemand getRelativeDemand(); + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum getRelativeDemand(); /** * @@ -398,7 +402,7 @@ public interface BestSellersBrandViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 10; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; * * * @return Whether the previousRelativeDemand field is set. @@ -413,7 +417,7 @@ public interface BestSellersBrandViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 10; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; * * * @return The enum numeric value on the wire for previousRelativeDemand. @@ -428,12 +432,13 @@ public interface BestSellersBrandViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 10; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; * * * @return The previousRelativeDemand. */ - com.google.shopping.merchant.reports.v1beta.RelativeDemand getPreviousRelativeDemand(); + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum + getPreviousRelativeDemand(); /** * @@ -443,7 +448,7 @@ public interface BestSellersBrandViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 11; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; * * * @return Whether the relativeDemandChange field is set. @@ -457,7 +462,7 @@ public interface BestSellersBrandViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 11; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; * * * @return The enum numeric value on the wire for relativeDemandChange. @@ -471,10 +476,11 @@ public interface BestSellersBrandViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 11; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; * * * @return The relativeDemandChange. */ - com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType getRelativeDemandChange(); + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum + getRelativeDemandChange(); } diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterView.java index fc0ee9f46b56..64c689b08bbf 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterView.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterView.java @@ -355,7 +355,7 @@ public com.google.type.DateOrBuilder getReportDateOrBuilder() { * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return Whether the reportGranularity field is set. @@ -376,7 +376,7 @@ public boolean hasReportGranularity() { * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return The enum numeric value on the wire for reportGranularity. @@ -397,17 +397,20 @@ public int getReportGranularityValue() { * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return The reportGranularity. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.ReportGranularity getReportGranularity() { - com.google.shopping.merchant.reports.v1beta.ReportGranularity result = - com.google.shopping.merchant.reports.v1beta.ReportGranularity.forNumber(reportGranularity_); + public com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum + getReportGranularity() { + com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum result = + com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum + .forNumber(reportGranularity_); return result == null - ? com.google.shopping.merchant.reports.v1beta.ReportGranularity.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum + .UNRECOGNIZED : result; } @@ -1385,7 +1388,8 @@ public long getPreviousRank() { * popularity rank in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 18; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18; * * * @return Whether the relativeDemand field is set. @@ -1402,7 +1406,8 @@ public boolean hasRelativeDemand() { * popularity rank in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 18; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18; * * * @return The enum numeric value on the wire for relativeDemand. @@ -1419,17 +1424,20 @@ public int getRelativeDemandValue() { * popularity rank in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 18; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18; * * * @return The relativeDemand. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.RelativeDemand getRelativeDemand() { - com.google.shopping.merchant.reports.v1beta.RelativeDemand result = - com.google.shopping.merchant.reports.v1beta.RelativeDemand.forNumber(relativeDemand_); + public com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum + getRelativeDemand() { + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum.forNumber( + relativeDemand_); return result == null - ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum.UNRECOGNIZED : result; } @@ -1445,7 +1453,7 @@ public com.google.shopping.merchant.reports.v1beta.RelativeDemand getRelativeDem * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 19; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; * * * @return Whether the previousRelativeDemand field is set. @@ -1464,7 +1472,7 @@ public boolean hasPreviousRelativeDemand() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 19; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; * * * @return The enum numeric value on the wire for previousRelativeDemand. @@ -1483,18 +1491,19 @@ public int getPreviousRelativeDemandValue() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 19; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; * * * @return The previousRelativeDemand. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.RelativeDemand getPreviousRelativeDemand() { - com.google.shopping.merchant.reports.v1beta.RelativeDemand result = - com.google.shopping.merchant.reports.v1beta.RelativeDemand.forNumber( + public com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum + getPreviousRelativeDemand() { + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum.forNumber( previousRelativeDemand_); return result == null - ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum.UNRECOGNIZED : result; } @@ -1508,7 +1517,7 @@ public com.google.shopping.merchant.reports.v1beta.RelativeDemand getPreviousRel * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 20; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; * * * @return Whether the relativeDemandChange field is set. @@ -1525,7 +1534,7 @@ public boolean hasRelativeDemandChange() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 20; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; * * * @return The enum numeric value on the wire for relativeDemandChange. @@ -1542,19 +1551,23 @@ public int getRelativeDemandChangeValue() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 20; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; * * * @return The relativeDemandChange. */ @java.lang.Override public com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum getRelativeDemandChange() { - com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType result = - com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.forNumber( - relativeDemandChange_); + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + result = + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.forNumber(relativeDemandChange_); return result == null - ? com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.UNRECOGNIZED : result; } @@ -2740,7 +2753,7 @@ public com.google.type.DateOrBuilder getReportDateOrBuilder() { * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return Whether the reportGranularity field is set. @@ -2761,7 +2774,7 @@ public boolean hasReportGranularity() { * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return The enum numeric value on the wire for reportGranularity. @@ -2782,7 +2795,7 @@ public int getReportGranularityValue() { * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @param value The enum numeric value on the wire for reportGranularity to set. @@ -2806,18 +2819,20 @@ public Builder setReportGranularityValue(int value) { * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return The reportGranularity. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.ReportGranularity getReportGranularity() { - com.google.shopping.merchant.reports.v1beta.ReportGranularity result = - com.google.shopping.merchant.reports.v1beta.ReportGranularity.forNumber( - reportGranularity_); + public com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum + getReportGranularity() { + com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum result = + com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum + .forNumber(reportGranularity_); return result == null - ? com.google.shopping.merchant.reports.v1beta.ReportGranularity.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum + .UNRECOGNIZED : result; } /** @@ -2832,14 +2847,14 @@ public com.google.shopping.merchant.reports.v1beta.ReportGranularity getReportGr * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @param value The reportGranularity to set. * @return This builder for chaining. */ public Builder setReportGranularity( - com.google.shopping.merchant.reports.v1beta.ReportGranularity value) { + com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum value) { if (value == null) { throw new NullPointerException(); } @@ -2860,7 +2875,7 @@ public Builder setReportGranularity( * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return This builder for chaining. @@ -4755,7 +4770,8 @@ public Builder clearPreviousRank() { * popularity rank in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 18; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18; * * * @return Whether the relativeDemand field is set. @@ -4772,7 +4788,8 @@ public boolean hasRelativeDemand() { * popularity rank in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 18; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18; * * * @return The enum numeric value on the wire for relativeDemand. @@ -4789,7 +4806,8 @@ public int getRelativeDemandValue() { * popularity rank in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 18; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18; * * * @param value The enum numeric value on the wire for relativeDemand to set. @@ -4809,17 +4827,21 @@ public Builder setRelativeDemandValue(int value) { * popularity rank in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 18; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18; * * * @return The relativeDemand. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.RelativeDemand getRelativeDemand() { - com.google.shopping.merchant.reports.v1beta.RelativeDemand result = - com.google.shopping.merchant.reports.v1beta.RelativeDemand.forNumber(relativeDemand_); + public com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum + getRelativeDemand() { + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum.forNumber( + relativeDemand_); return result == null - ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum + .UNRECOGNIZED : result; } /** @@ -4830,14 +4852,15 @@ public com.google.shopping.merchant.reports.v1beta.RelativeDemand getRelativeDem * popularity rank in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 18; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18; * * * @param value The relativeDemand to set. * @return This builder for chaining. */ public Builder setRelativeDemand( - com.google.shopping.merchant.reports.v1beta.RelativeDemand value) { + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum value) { if (value == null) { throw new NullPointerException(); } @@ -4854,7 +4877,8 @@ public Builder setRelativeDemand( * popularity rank in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 18; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18; * * * @return This builder for chaining. @@ -4877,7 +4901,7 @@ public Builder clearRelativeDemand() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 19; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; * * * @return Whether the previousRelativeDemand field is set. @@ -4896,7 +4920,7 @@ public boolean hasPreviousRelativeDemand() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 19; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; * * * @return The enum numeric value on the wire for previousRelativeDemand. @@ -4915,7 +4939,7 @@ public int getPreviousRelativeDemandValue() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 19; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; * * * @param value The enum numeric value on the wire for previousRelativeDemand to set. @@ -4937,18 +4961,20 @@ public Builder setPreviousRelativeDemandValue(int value) { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 19; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; * * * @return The previousRelativeDemand. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.RelativeDemand getPreviousRelativeDemand() { - com.google.shopping.merchant.reports.v1beta.RelativeDemand result = - com.google.shopping.merchant.reports.v1beta.RelativeDemand.forNumber( + public com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum + getPreviousRelativeDemand() { + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum.forNumber( previousRelativeDemand_); return result == null - ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum + .UNRECOGNIZED : result; } /** @@ -4961,14 +4987,14 @@ public com.google.shopping.merchant.reports.v1beta.RelativeDemand getPreviousRel * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 19; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; * * * @param value The previousRelativeDemand to set. * @return This builder for chaining. */ public Builder setPreviousRelativeDemand( - com.google.shopping.merchant.reports.v1beta.RelativeDemand value) { + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum value) { if (value == null) { throw new NullPointerException(); } @@ -4987,7 +5013,7 @@ public Builder setPreviousRelativeDemand( * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 19; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; * * * @return This builder for chaining. @@ -5008,7 +5034,7 @@ public Builder clearPreviousRelativeDemand() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 20; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; * * * @return Whether the relativeDemandChange field is set. @@ -5025,7 +5051,7 @@ public boolean hasRelativeDemandChange() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 20; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; * * * @return The enum numeric value on the wire for relativeDemandChange. @@ -5042,7 +5068,7 @@ public int getRelativeDemandChangeValue() { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 20; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; * * * @param value The enum numeric value on the wire for relativeDemandChange to set. @@ -5062,19 +5088,23 @@ public Builder setRelativeDemandChangeValue(int value) { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 20; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; * * * @return The relativeDemandChange. */ @java.lang.Override public com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum getRelativeDemandChange() { - com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType result = - com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.forNumber( - relativeDemandChange_); + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + result = + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.forNumber(relativeDemandChange_); return result == null - ? com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.UNRECOGNIZED : result; } /** @@ -5085,14 +5115,16 @@ public Builder setRelativeDemandChangeValue(int value) { * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 20; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; * * * @param value The relativeDemandChange to set. * @return This builder for chaining. */ public Builder setRelativeDemandChange( - com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType value) { + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + value) { if (value == null) { throw new NullPointerException(); } @@ -5109,7 +5141,7 @@ public Builder setRelativeDemandChange( * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 20; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; * * * @return This builder for chaining. diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterViewOrBuilder.java index 47e364b3ed7e..cd59bd44e06f 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterViewOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterViewOrBuilder.java @@ -91,7 +91,7 @@ public interface BestSellersProductClusterViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return Whether the reportGranularity field is set. @@ -109,7 +109,7 @@ public interface BestSellersProductClusterViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return The enum numeric value on the wire for reportGranularity. @@ -127,12 +127,13 @@ public interface BestSellersProductClusterViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.ReportGranularity report_granularity = 2; + * optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2; * * * @return The reportGranularity. */ - com.google.shopping.merchant.reports.v1beta.ReportGranularity getReportGranularity(); + com.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum + getReportGranularity(); /** * @@ -772,7 +773,8 @@ public interface BestSellersProductClusterViewOrBuilder * popularity rank in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 18; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18; * * * @return Whether the relativeDemand field is set. @@ -786,7 +788,8 @@ public interface BestSellersProductClusterViewOrBuilder * popularity rank in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 18; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18; * * * @return The enum numeric value on the wire for relativeDemand. @@ -800,12 +803,13 @@ public interface BestSellersProductClusterViewOrBuilder * popularity rank in the same category and country. * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand relative_demand = 18; + * + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18; * * * @return The relativeDemand. */ - com.google.shopping.merchant.reports.v1beta.RelativeDemand getRelativeDemand(); + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum getRelativeDemand(); /** * @@ -817,7 +821,7 @@ public interface BestSellersProductClusterViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 19; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; * * * @return Whether the previousRelativeDemand field is set. @@ -833,7 +837,7 @@ public interface BestSellersProductClusterViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 19; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; * * * @return The enum numeric value on the wire for previousRelativeDemand. @@ -849,12 +853,13 @@ public interface BestSellersProductClusterViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemand previous_relative_demand = 19; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; * * * @return The previousRelativeDemand. */ - com.google.shopping.merchant.reports.v1beta.RelativeDemand getPreviousRelativeDemand(); + com.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum + getPreviousRelativeDemand(); /** * @@ -864,7 +869,7 @@ public interface BestSellersProductClusterViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 20; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; * * * @return Whether the relativeDemandChange field is set. @@ -878,7 +883,7 @@ public interface BestSellersProductClusterViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 20; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; * * * @return The enum numeric value on the wire for relativeDemandChange. @@ -892,10 +897,11 @@ public interface BestSellersProductClusterViewOrBuilder * * * - * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType relative_demand_change = 20; + * optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; * * * @return The relativeDemandChange. */ - com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType getRelativeDemandChange(); + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum + getRelativeDemandChange(); } diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityBenchmarkView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityBenchmarkView.java index 11751e1b73b2..12ccb75a6a24 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityBenchmarkView.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityBenchmarkView.java @@ -257,7 +257,8 @@ public long getReportCategoryId() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 4; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 4; * * * @return Whether the trafficSource field is set. @@ -275,7 +276,8 @@ public boolean hasTrafficSource() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 4; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 4; * * * @return The enum numeric value on the wire for trafficSource. @@ -293,17 +295,20 @@ public int getTrafficSourceValue() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 4; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 4; * * * @return The trafficSource. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.TrafficSource getTrafficSource() { - com.google.shopping.merchant.reports.v1beta.TrafficSource result = - com.google.shopping.merchant.reports.v1beta.TrafficSource.forNumber(trafficSource_); + public com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum + getTrafficSource() { + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum result = + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum.forNumber( + trafficSource_); return result == null - ? com.google.shopping.merchant.reports.v1beta.TrafficSource.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum.UNRECOGNIZED : result; } @@ -1362,7 +1367,8 @@ public Builder clearReportCategoryId() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 4; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 4; * * * @return Whether the trafficSource field is set. @@ -1380,7 +1386,8 @@ public boolean hasTrafficSource() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 4; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 4; * * * @return The enum numeric value on the wire for trafficSource. @@ -1398,7 +1405,8 @@ public int getTrafficSourceValue() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 4; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 4; * * * @param value The enum numeric value on the wire for trafficSource to set. @@ -1419,17 +1427,20 @@ public Builder setTrafficSourceValue(int value) { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 4; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 4; * * * @return The trafficSource. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.TrafficSource getTrafficSource() { - com.google.shopping.merchant.reports.v1beta.TrafficSource result = - com.google.shopping.merchant.reports.v1beta.TrafficSource.forNumber(trafficSource_); + public com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum + getTrafficSource() { + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum result = + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum.forNumber( + trafficSource_); return result == null - ? com.google.shopping.merchant.reports.v1beta.TrafficSource.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum.UNRECOGNIZED : result; } /** @@ -1441,14 +1452,15 @@ public com.google.shopping.merchant.reports.v1beta.TrafficSource getTrafficSourc * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 4; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 4; * * * @param value The trafficSource to set. * @return This builder for chaining. */ public Builder setTrafficSource( - com.google.shopping.merchant.reports.v1beta.TrafficSource value) { + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum value) { if (value == null) { throw new NullPointerException(); } @@ -1466,7 +1478,8 @@ public Builder setTrafficSource( * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 4; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 4; * * * @return This builder for chaining. diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityBenchmarkViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityBenchmarkViewOrBuilder.java index ca37c7652329..1a6e7d26933f 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityBenchmarkViewOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityBenchmarkViewOrBuilder.java @@ -157,7 +157,8 @@ public interface CompetitiveVisibilityBenchmarkViewOrBuilder * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 4; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 4; * * * @return Whether the trafficSource field is set. @@ -172,7 +173,8 @@ public interface CompetitiveVisibilityBenchmarkViewOrBuilder * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 4; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 4; * * * @return The enum numeric value on the wire for trafficSource. @@ -187,12 +189,13 @@ public interface CompetitiveVisibilityBenchmarkViewOrBuilder * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 4; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 4; * * * @return The trafficSource. */ - com.google.shopping.merchant.reports.v1beta.TrafficSource getTrafficSource(); + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum getTrafficSource(); /** * diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityCompetitorView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityCompetitorView.java index 9826ddaa777e..6bdac813b521 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityCompetitorView.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityCompetitorView.java @@ -368,7 +368,8 @@ public long getReportCategoryId() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return Whether the trafficSource field is set. @@ -386,7 +387,8 @@ public boolean hasTrafficSource() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return The enum numeric value on the wire for trafficSource. @@ -404,17 +406,20 @@ public int getTrafficSourceValue() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return The trafficSource. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.TrafficSource getTrafficSource() { - com.google.shopping.merchant.reports.v1beta.TrafficSource result = - com.google.shopping.merchant.reports.v1beta.TrafficSource.forNumber(trafficSource_); + public com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum + getTrafficSource() { + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum result = + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum.forNumber( + trafficSource_); return result == null - ? com.google.shopping.merchant.reports.v1beta.TrafficSource.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum.UNRECOGNIZED : result; } @@ -1957,7 +1962,8 @@ public Builder clearReportCategoryId() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return Whether the trafficSource field is set. @@ -1975,7 +1981,8 @@ public boolean hasTrafficSource() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return The enum numeric value on the wire for trafficSource. @@ -1993,7 +2000,8 @@ public int getTrafficSourceValue() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @param value The enum numeric value on the wire for trafficSource to set. @@ -2014,17 +2022,20 @@ public Builder setTrafficSourceValue(int value) { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return The trafficSource. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.TrafficSource getTrafficSource() { - com.google.shopping.merchant.reports.v1beta.TrafficSource result = - com.google.shopping.merchant.reports.v1beta.TrafficSource.forNumber(trafficSource_); + public com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum + getTrafficSource() { + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum result = + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum.forNumber( + trafficSource_); return result == null - ? com.google.shopping.merchant.reports.v1beta.TrafficSource.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum.UNRECOGNIZED : result; } /** @@ -2036,14 +2047,15 @@ public com.google.shopping.merchant.reports.v1beta.TrafficSource getTrafficSourc * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @param value The trafficSource to set. * @return This builder for chaining. */ public Builder setTrafficSource( - com.google.shopping.merchant.reports.v1beta.TrafficSource value) { + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum value) { if (value == null) { throw new NullPointerException(); } @@ -2061,7 +2073,8 @@ public Builder setTrafficSource( * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return This builder for chaining. diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityCompetitorViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityCompetitorViewOrBuilder.java index bca949145f94..ffc8b2b7e929 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityCompetitorViewOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityCompetitorViewOrBuilder.java @@ -229,7 +229,8 @@ public interface CompetitiveVisibilityCompetitorViewOrBuilder * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return Whether the trafficSource field is set. @@ -244,7 +245,8 @@ public interface CompetitiveVisibilityCompetitorViewOrBuilder * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return The enum numeric value on the wire for trafficSource. @@ -259,12 +261,13 @@ public interface CompetitiveVisibilityCompetitorViewOrBuilder * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return The trafficSource. */ - com.google.shopping.merchant.reports.v1beta.TrafficSource getTrafficSource(); + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum getTrafficSource(); /** * diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityTopMerchantView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityTopMerchantView.java index a10d8022ce51..267950937cbc 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityTopMerchantView.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityTopMerchantView.java @@ -373,7 +373,8 @@ public long getReportCategoryId() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return Whether the trafficSource field is set. @@ -391,7 +392,8 @@ public boolean hasTrafficSource() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return The enum numeric value on the wire for trafficSource. @@ -409,17 +411,20 @@ public int getTrafficSourceValue() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return The trafficSource. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.TrafficSource getTrafficSource() { - com.google.shopping.merchant.reports.v1beta.TrafficSource result = - com.google.shopping.merchant.reports.v1beta.TrafficSource.forNumber(trafficSource_); + public com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum + getTrafficSource() { + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum result = + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum.forNumber( + trafficSource_); return result == null - ? com.google.shopping.merchant.reports.v1beta.TrafficSource.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum.UNRECOGNIZED : result; } @@ -1896,7 +1901,8 @@ public Builder clearReportCategoryId() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return Whether the trafficSource field is set. @@ -1914,7 +1920,8 @@ public boolean hasTrafficSource() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return The enum numeric value on the wire for trafficSource. @@ -1932,7 +1939,8 @@ public int getTrafficSourceValue() { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @param value The enum numeric value on the wire for trafficSource to set. @@ -1953,17 +1961,20 @@ public Builder setTrafficSourceValue(int value) { * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return The trafficSource. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.TrafficSource getTrafficSource() { - com.google.shopping.merchant.reports.v1beta.TrafficSource result = - com.google.shopping.merchant.reports.v1beta.TrafficSource.forNumber(trafficSource_); + public com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum + getTrafficSource() { + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum result = + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum.forNumber( + trafficSource_); return result == null - ? com.google.shopping.merchant.reports.v1beta.TrafficSource.UNRECOGNIZED + ? com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum.UNRECOGNIZED : result; } /** @@ -1975,14 +1986,15 @@ public com.google.shopping.merchant.reports.v1beta.TrafficSource getTrafficSourc * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @param value The trafficSource to set. * @return This builder for chaining. */ public Builder setTrafficSource( - com.google.shopping.merchant.reports.v1beta.TrafficSource value) { + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum value) { if (value == null) { throw new NullPointerException(); } @@ -2000,7 +2012,8 @@ public Builder setTrafficSource( * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return This builder for chaining. diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityTopMerchantViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityTopMerchantViewOrBuilder.java index 23824683898b..a73eca8a7d5c 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityTopMerchantViewOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/CompetitiveVisibilityTopMerchantViewOrBuilder.java @@ -232,7 +232,8 @@ public interface CompetitiveVisibilityTopMerchantViewOrBuilder * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return Whether the trafficSource field is set. @@ -247,7 +248,8 @@ public interface CompetitiveVisibilityTopMerchantViewOrBuilder * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return The enum numeric value on the wire for trafficSource. @@ -262,12 +264,13 @@ public interface CompetitiveVisibilityTopMerchantViewOrBuilder * Required in the `SELECT` clause. * * - * optional .google.shopping.merchant.reports.v1beta.TrafficSource traffic_source = 6; + * + * optional .google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum traffic_source = 6; * * * @return The trafficSource. */ - com.google.shopping.merchant.reports.v1beta.TrafficSource getTrafficSource(); + com.google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum getTrafficSource(); /** * diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/MarketingMethod.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/MarketingMethod.java new file mode 100644 index 000000000000..2f686f08fdcc --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/MarketingMethod.java @@ -0,0 +1,597 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1beta/reports.proto + +package com.google.shopping.merchant.reports.v1beta; + +/** + * + * + *
+ * Marketing method used to promote your products on Google (organic versus
+ * ads).
+ * 
+ * + * Protobuf type {@code google.shopping.merchant.reports.v1beta.MarketingMethod} + */ +public final class MarketingMethod extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1beta.MarketingMethod) + MarketingMethodOrBuilder { + private static final long serialVersionUID = 0L; + // Use MarketingMethod.newBuilder() to construct. + private MarketingMethod(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MarketingMethod() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MarketingMethod(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_MarketingMethod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_MarketingMethod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1beta.MarketingMethod.class, + com.google.shopping.merchant.reports.v1beta.MarketingMethod.Builder.class); + } + + /** + * + * + *
+   * Marketing method values.
+   * 
+ * + * Protobuf enum {@code + * google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum} + */ + public enum MarketingMethodEnum implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * MARKETING_METHOD_ENUM_UNSPECIFIED = 0; + */ + MARKETING_METHOD_ENUM_UNSPECIFIED(0), + /** + * + * + *
+     * Organic marketing.
+     * 
+ * + * ORGANIC = 1; + */ + ORGANIC(1), + /** + * + * + *
+     * Ads-based marketing.
+     * 
+ * + * ADS = 2; + */ + ADS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * MARKETING_METHOD_ENUM_UNSPECIFIED = 0; + */ + public static final int MARKETING_METHOD_ENUM_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Organic marketing.
+     * 
+ * + * ORGANIC = 1; + */ + public static final int ORGANIC_VALUE = 1; + /** + * + * + *
+     * Ads-based marketing.
+     * 
+ * + * ADS = 2; + */ + public static final int ADS_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 MarketingMethodEnum 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 MarketingMethodEnum forNumber(int value) { + switch (value) { + case 0: + return MARKETING_METHOD_ENUM_UNSPECIFIED; + case 1: + return ORGANIC; + case 2: + return ADS; + 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 MarketingMethodEnum findValueByNumber(int number) { + return MarketingMethodEnum.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.merchant.reports.v1beta.MarketingMethod.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MarketingMethodEnum[] VALUES = values(); + + public static MarketingMethodEnum 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 MarketingMethodEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum) + } + + 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.merchant.reports.v1beta.MarketingMethod)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1beta.MarketingMethod other = + (com.google.shopping.merchant.reports.v1beta.MarketingMethod) 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.merchant.reports.v1beta.MarketingMethod parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.MarketingMethod parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.MarketingMethod parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.MarketingMethod parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.MarketingMethod parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.MarketingMethod parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.MarketingMethod parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.MarketingMethod parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.MarketingMethod parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.MarketingMethod parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.MarketingMethod parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.MarketingMethod 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.merchant.reports.v1beta.MarketingMethod 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; + } + /** + * + * + *
+   * Marketing method used to promote your products on Google (organic versus
+   * ads).
+   * 
+ * + * Protobuf type {@code google.shopping.merchant.reports.v1beta.MarketingMethod} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1beta.MarketingMethod) + com.google.shopping.merchant.reports.v1beta.MarketingMethodOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_MarketingMethod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_MarketingMethod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1beta.MarketingMethod.class, + com.google.shopping.merchant.reports.v1beta.MarketingMethod.Builder.class); + } + + // Construct using com.google.shopping.merchant.reports.v1beta.MarketingMethod.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.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_MarketingMethod_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.MarketingMethod getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1beta.MarketingMethod.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.MarketingMethod build() { + com.google.shopping.merchant.reports.v1beta.MarketingMethod result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.MarketingMethod buildPartial() { + com.google.shopping.merchant.reports.v1beta.MarketingMethod result = + new com.google.shopping.merchant.reports.v1beta.MarketingMethod(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.merchant.reports.v1beta.MarketingMethod) { + return mergeFrom((com.google.shopping.merchant.reports.v1beta.MarketingMethod) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.merchant.reports.v1beta.MarketingMethod other) { + if (other == com.google.shopping.merchant.reports.v1beta.MarketingMethod.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.merchant.reports.v1beta.MarketingMethod) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1beta.MarketingMethod) + private static final com.google.shopping.merchant.reports.v1beta.MarketingMethod DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1beta.MarketingMethod(); + } + + public static com.google.shopping.merchant.reports.v1beta.MarketingMethod getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MarketingMethod 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.merchant.reports.v1beta.MarketingMethod getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/MarketingMethodOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/MarketingMethodOrBuilder.java new file mode 100644 index 000000000000..a67a9f217f76 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/MarketingMethodOrBuilder.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/merchant/reports/v1beta/reports.proto + +package com.google.shopping.merchant.reports.v1beta; + +public interface MarketingMethodOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1beta.MarketingMethod) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceCompetitivenessProductView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceCompetitivenessProductView.java index ff32cec92b7a..6b03875f18ea 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceCompetitivenessProductView.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceCompetitivenessProductView.java @@ -165,8 +165,9 @@ public com.google.protobuf.ByteString getReportCountryCodeBytes() { * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-   * be used to join data with the `product_view` table.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+   * `product_view` table.
    *
    * Required in the `SELECT` clause.
    * 
@@ -183,8 +184,9 @@ public boolean hasId() { * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-   * be used to join data with the `product_view` table.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+   * `product_view` table.
    *
    * Required in the `SELECT` clause.
    * 
@@ -209,8 +211,9 @@ public java.lang.String getId() { * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-   * be used to join data with the `product_view` table.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+   * `product_view` table.
    *
    * Required in the `SELECT` clause.
    * 
@@ -2214,8 +2217,9 @@ public Builder setReportCountryCodeBytes(com.google.protobuf.ByteString value) { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-     * be used to join data with the `product_view` table.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+     * `product_view` table.
      *
      * Required in the `SELECT` clause.
      * 
@@ -2231,8 +2235,9 @@ public boolean hasId() { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-     * be used to join data with the `product_view` table.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+     * `product_view` table.
      *
      * Required in the `SELECT` clause.
      * 
@@ -2256,8 +2261,9 @@ public java.lang.String getId() { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-     * be used to join data with the `product_view` table.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+     * `product_view` table.
      *
      * Required in the `SELECT` clause.
      * 
@@ -2281,8 +2287,9 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-     * be used to join data with the `product_view` table.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+     * `product_view` table.
      *
      * Required in the `SELECT` clause.
      * 
@@ -2305,8 +2312,9 @@ public Builder setId(java.lang.String value) { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-     * be used to join data with the `product_view` table.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+     * `product_view` table.
      *
      * Required in the `SELECT` clause.
      * 
@@ -2325,8 +2333,9 @@ public Builder clearId() { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-     * be used to join data with the `product_view` table.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+     * `product_view` table.
      *
      * Required in the `SELECT` clause.
      * 
diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceCompetitivenessProductViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceCompetitivenessProductViewOrBuilder.java index 10b423161d59..a88460ed7654 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceCompetitivenessProductViewOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceCompetitivenessProductViewOrBuilder.java @@ -70,8 +70,9 @@ public interface PriceCompetitivenessProductViewOrBuilder * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-   * be used to join data with the `product_view` table.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+   * `product_view` table.
    *
    * Required in the `SELECT` clause.
    * 
@@ -85,8 +86,9 @@ public interface PriceCompetitivenessProductViewOrBuilder * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-   * be used to join data with the `product_view` table.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+   * `product_view` table.
    *
    * Required in the `SELECT` clause.
    * 
@@ -100,8 +102,9 @@ public interface PriceCompetitivenessProductViewOrBuilder * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-   * be used to join data with the `product_view` table.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+   * `product_view` table.
    *
    * Required in the `SELECT` clause.
    * 
diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductView.java index 4b69f5fd323a..d2ca54a81f7d 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductView.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductView.java @@ -90,8 +90,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-   * be used to join data with the `product_view` table.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+   * `product_view` table.
    *
    * Required in the `SELECT` clause.
    * 
@@ -108,8 +109,9 @@ public boolean hasId() { * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-   * be used to join data with the `product_view` table.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+   * `product_view` table.
    *
    * Required in the `SELECT` clause.
    * 
@@ -134,8 +136,9 @@ public java.lang.String getId() { * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-   * be used to join data with the `product_view` table.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+   * `product_view` table.
    *
    * Required in the `SELECT` clause.
    * 
@@ -1252,96 +1255,6 @@ public double getPredictedConversionsChangeFraction() { return predictedConversionsChangeFraction_; } - public static final int PREDICTED_GROSS_PROFIT_CHANGE_FRACTION_FIELD_NUMBER = 20; - private double predictedGrossProfitChangeFraction_ = 0D; - /** - * - * - *
-   * Predicted change in gross profit as a fraction after introducing the
-   * suggested price compared to current active price. For example, 0.05 is a 5%
-   * predicted increase in gross profit.
-   * 
- * - * optional double predicted_gross_profit_change_fraction = 20; - * - * @return Whether the predictedGrossProfitChangeFraction field is set. - */ - @java.lang.Override - public boolean hasPredictedGrossProfitChangeFraction() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * - * - *
-   * Predicted change in gross profit as a fraction after introducing the
-   * suggested price compared to current active price. For example, 0.05 is a 5%
-   * predicted increase in gross profit.
-   * 
- * - * optional double predicted_gross_profit_change_fraction = 20; - * - * @return The predictedGrossProfitChangeFraction. - */ - @java.lang.Override - public double getPredictedGrossProfitChangeFraction() { - return predictedGrossProfitChangeFraction_; - } - - public static final int PREDICTED_MONTHLY_GROSS_PROFIT_CHANGE_FIELD_NUMBER = 21; - private com.google.shopping.type.Price predictedMonthlyGrossProfitChange_; - /** - * - * - *
-   * Predicted change in gross profit after introducing the suggested price
-   * for a month compared to current active price.
-   * 
- * - * .google.shopping.type.Price predicted_monthly_gross_profit_change = 21; - * - * @return Whether the predictedMonthlyGrossProfitChange field is set. - */ - @java.lang.Override - public boolean hasPredictedMonthlyGrossProfitChange() { - return predictedMonthlyGrossProfitChange_ != null; - } - /** - * - * - *
-   * Predicted change in gross profit after introducing the suggested price
-   * for a month compared to current active price.
-   * 
- * - * .google.shopping.type.Price predicted_monthly_gross_profit_change = 21; - * - * @return The predictedMonthlyGrossProfitChange. - */ - @java.lang.Override - public com.google.shopping.type.Price getPredictedMonthlyGrossProfitChange() { - return predictedMonthlyGrossProfitChange_ == null - ? com.google.shopping.type.Price.getDefaultInstance() - : predictedMonthlyGrossProfitChange_; - } - /** - * - * - *
-   * Predicted change in gross profit after introducing the suggested price
-   * for a month compared to current active price.
-   * 
- * - * .google.shopping.type.Price predicted_monthly_gross_profit_change = 21; - */ - @java.lang.Override - public com.google.shopping.type.PriceOrBuilder getPredictedMonthlyGrossProfitChangeOrBuilder() { - return predictedMonthlyGrossProfitChange_ == null - ? com.google.shopping.type.Price.getDefaultInstance() - : predictedMonthlyGrossProfitChange_; - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1413,12 +1326,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00010000) != 0)) { output.writeDouble(19, predictedConversionsChangeFraction_); } - if (((bitField0_ & 0x00020000) != 0)) { - output.writeDouble(20, predictedGrossProfitChangeFraction_); - } - if (predictedMonthlyGrossProfitChange_ != null) { - output.writeMessage(21, getPredictedMonthlyGrossProfitChange()); - } getUnknownFields().writeTo(output); } @@ -1491,16 +1398,6 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeDoubleSize( 19, predictedConversionsChangeFraction_); } - if (((bitField0_ & 0x00020000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 20, predictedGrossProfitChangeFraction_); - } - if (predictedMonthlyGrossProfitChange_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, getPredictedMonthlyGrossProfitChange()); - } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1602,19 +1499,6 @@ public boolean equals(final java.lang.Object obj) { != java.lang.Double.doubleToLongBits(other.getPredictedConversionsChangeFraction())) return false; } - if (hasPredictedGrossProfitChangeFraction() != other.hasPredictedGrossProfitChangeFraction()) - return false; - if (hasPredictedGrossProfitChangeFraction()) { - if (java.lang.Double.doubleToLongBits(getPredictedGrossProfitChangeFraction()) - != java.lang.Double.doubleToLongBits(other.getPredictedGrossProfitChangeFraction())) - return false; - } - if (hasPredictedMonthlyGrossProfitChange() != other.hasPredictedMonthlyGrossProfitChange()) - return false; - if (hasPredictedMonthlyGrossProfitChange()) { - if (!getPredictedMonthlyGrossProfitChange() - .equals(other.getPredictedMonthlyGrossProfitChange())) return false; - } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1711,17 +1595,6 @@ public int hashCode() { + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getPredictedConversionsChangeFraction())); } - if (hasPredictedGrossProfitChangeFraction()) { - hash = (37 * hash) + PREDICTED_GROSS_PROFIT_CHANGE_FRACTION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getPredictedGrossProfitChangeFraction())); - } - if (hasPredictedMonthlyGrossProfitChange()) { - hash = (37 * hash) + PREDICTED_MONTHLY_GROSS_PROFIT_CHANGE_FIELD_NUMBER; - hash = (53 * hash) + getPredictedMonthlyGrossProfitChange().hashCode(); - } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1897,12 +1770,6 @@ public Builder clear() { predictedImpressionsChangeFraction_ = 0D; predictedClicksChangeFraction_ = 0D; predictedConversionsChangeFraction_ = 0D; - predictedGrossProfitChangeFraction_ = 0D; - predictedMonthlyGrossProfitChange_ = null; - if (predictedMonthlyGrossProfitChangeBuilder_ != null) { - predictedMonthlyGrossProfitChangeBuilder_.dispose(); - predictedMonthlyGrossProfitChangeBuilder_ = null; - } return this; } @@ -2018,16 +1885,6 @@ private void buildPartial0( result.predictedConversionsChangeFraction_ = predictedConversionsChangeFraction_; to_bitField0_ |= 0x00010000; } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.predictedGrossProfitChangeFraction_ = predictedGrossProfitChangeFraction_; - to_bitField0_ |= 0x00020000; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.predictedMonthlyGrossProfitChange_ = - predictedMonthlyGrossProfitChangeBuilder_ == null - ? predictedMonthlyGrossProfitChange_ - : predictedMonthlyGrossProfitChangeBuilder_.build(); - } result.bitField0_ |= to_bitField0_; } @@ -2165,12 +2022,6 @@ public Builder mergeFrom( if (other.hasPredictedConversionsChangeFraction()) { setPredictedConversionsChangeFraction(other.getPredictedConversionsChangeFraction()); } - if (other.hasPredictedGrossProfitChangeFraction()) { - setPredictedGrossProfitChangeFraction(other.getPredictedGrossProfitChangeFraction()); - } - if (other.hasPredictedMonthlyGrossProfitChange()) { - mergePredictedMonthlyGrossProfitChange(other.getPredictedMonthlyGrossProfitChange()); - } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2311,20 +2162,6 @@ public Builder mergeFrom( bitField0_ |= 0x00040000; break; } // case 153 - case 161: - { - predictedGrossProfitChangeFraction_ = input.readDouble(); - bitField0_ |= 0x00080000; - break; - } // case 161 - case 170: - { - input.readMessage( - getPredictedMonthlyGrossProfitChangeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2349,8 +2186,9 @@ public Builder mergeFrom( * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-     * be used to join data with the `product_view` table.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+     * `product_view` table.
      *
      * Required in the `SELECT` clause.
      * 
@@ -2366,8 +2204,9 @@ public boolean hasId() { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-     * be used to join data with the `product_view` table.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+     * `product_view` table.
      *
      * Required in the `SELECT` clause.
      * 
@@ -2391,8 +2230,9 @@ public java.lang.String getId() { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-     * be used to join data with the `product_view` table.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+     * `product_view` table.
      *
      * Required in the `SELECT` clause.
      * 
@@ -2416,8 +2256,9 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-     * be used to join data with the `product_view` table.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+     * `product_view` table.
      *
      * Required in the `SELECT` clause.
      * 
@@ -2440,8 +2281,9 @@ public Builder setId(java.lang.String value) { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-     * be used to join data with the `product_view` table.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+     * `product_view` table.
      *
      * Required in the `SELECT` clause.
      * 
@@ -2460,8 +2302,9 @@ public Builder clearId() { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-     * be used to join data with the `product_view` table.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+     * `product_view` table.
      *
      * Required in the `SELECT` clause.
      * 
@@ -4692,276 +4535,6 @@ public Builder clearPredictedConversionsChangeFraction() { return this; } - private double predictedGrossProfitChangeFraction_; - /** - * - * - *
-     * Predicted change in gross profit as a fraction after introducing the
-     * suggested price compared to current active price. For example, 0.05 is a 5%
-     * predicted increase in gross profit.
-     * 
- * - * optional double predicted_gross_profit_change_fraction = 20; - * - * @return Whether the predictedGrossProfitChangeFraction field is set. - */ - @java.lang.Override - public boolean hasPredictedGrossProfitChangeFraction() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - * - * - *
-     * Predicted change in gross profit as a fraction after introducing the
-     * suggested price compared to current active price. For example, 0.05 is a 5%
-     * predicted increase in gross profit.
-     * 
- * - * optional double predicted_gross_profit_change_fraction = 20; - * - * @return The predictedGrossProfitChangeFraction. - */ - @java.lang.Override - public double getPredictedGrossProfitChangeFraction() { - return predictedGrossProfitChangeFraction_; - } - /** - * - * - *
-     * Predicted change in gross profit as a fraction after introducing the
-     * suggested price compared to current active price. For example, 0.05 is a 5%
-     * predicted increase in gross profit.
-     * 
- * - * optional double predicted_gross_profit_change_fraction = 20; - * - * @param value The predictedGrossProfitChangeFraction to set. - * @return This builder for chaining. - */ - public Builder setPredictedGrossProfitChangeFraction(double value) { - - predictedGrossProfitChangeFraction_ = value; - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * Predicted change in gross profit as a fraction after introducing the
-     * suggested price compared to current active price. For example, 0.05 is a 5%
-     * predicted increase in gross profit.
-     * 
- * - * optional double predicted_gross_profit_change_fraction = 20; - * - * @return This builder for chaining. - */ - public Builder clearPredictedGrossProfitChangeFraction() { - bitField0_ = (bitField0_ & ~0x00080000); - predictedGrossProfitChangeFraction_ = 0D; - onChanged(); - return this; - } - - private com.google.shopping.type.Price predictedMonthlyGrossProfitChange_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.type.Price, - com.google.shopping.type.Price.Builder, - com.google.shopping.type.PriceOrBuilder> - predictedMonthlyGrossProfitChangeBuilder_; - /** - * - * - *
-     * Predicted change in gross profit after introducing the suggested price
-     * for a month compared to current active price.
-     * 
- * - * .google.shopping.type.Price predicted_monthly_gross_profit_change = 21; - * - * @return Whether the predictedMonthlyGrossProfitChange field is set. - */ - public boolean hasPredictedMonthlyGrossProfitChange() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - * - * - *
-     * Predicted change in gross profit after introducing the suggested price
-     * for a month compared to current active price.
-     * 
- * - * .google.shopping.type.Price predicted_monthly_gross_profit_change = 21; - * - * @return The predictedMonthlyGrossProfitChange. - */ - public com.google.shopping.type.Price getPredictedMonthlyGrossProfitChange() { - if (predictedMonthlyGrossProfitChangeBuilder_ == null) { - return predictedMonthlyGrossProfitChange_ == null - ? com.google.shopping.type.Price.getDefaultInstance() - : predictedMonthlyGrossProfitChange_; - } else { - return predictedMonthlyGrossProfitChangeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Predicted change in gross profit after introducing the suggested price
-     * for a month compared to current active price.
-     * 
- * - * .google.shopping.type.Price predicted_monthly_gross_profit_change = 21; - */ - public Builder setPredictedMonthlyGrossProfitChange(com.google.shopping.type.Price value) { - if (predictedMonthlyGrossProfitChangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - predictedMonthlyGrossProfitChange_ = value; - } else { - predictedMonthlyGrossProfitChangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Predicted change in gross profit after introducing the suggested price
-     * for a month compared to current active price.
-     * 
- * - * .google.shopping.type.Price predicted_monthly_gross_profit_change = 21; - */ - public Builder setPredictedMonthlyGrossProfitChange( - com.google.shopping.type.Price.Builder builderForValue) { - if (predictedMonthlyGrossProfitChangeBuilder_ == null) { - predictedMonthlyGrossProfitChange_ = builderForValue.build(); - } else { - predictedMonthlyGrossProfitChangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Predicted change in gross profit after introducing the suggested price
-     * for a month compared to current active price.
-     * 
- * - * .google.shopping.type.Price predicted_monthly_gross_profit_change = 21; - */ - public Builder mergePredictedMonthlyGrossProfitChange(com.google.shopping.type.Price value) { - if (predictedMonthlyGrossProfitChangeBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) - && predictedMonthlyGrossProfitChange_ != null - && predictedMonthlyGrossProfitChange_ - != com.google.shopping.type.Price.getDefaultInstance()) { - getPredictedMonthlyGrossProfitChangeBuilder().mergeFrom(value); - } else { - predictedMonthlyGrossProfitChange_ = value; - } - } else { - predictedMonthlyGrossProfitChangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Predicted change in gross profit after introducing the suggested price
-     * for a month compared to current active price.
-     * 
- * - * .google.shopping.type.Price predicted_monthly_gross_profit_change = 21; - */ - public Builder clearPredictedMonthlyGrossProfitChange() { - bitField0_ = (bitField0_ & ~0x00100000); - predictedMonthlyGrossProfitChange_ = null; - if (predictedMonthlyGrossProfitChangeBuilder_ != null) { - predictedMonthlyGrossProfitChangeBuilder_.dispose(); - predictedMonthlyGrossProfitChangeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Predicted change in gross profit after introducing the suggested price
-     * for a month compared to current active price.
-     * 
- * - * .google.shopping.type.Price predicted_monthly_gross_profit_change = 21; - */ - public com.google.shopping.type.Price.Builder getPredictedMonthlyGrossProfitChangeBuilder() { - bitField0_ |= 0x00100000; - onChanged(); - return getPredictedMonthlyGrossProfitChangeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Predicted change in gross profit after introducing the suggested price
-     * for a month compared to current active price.
-     * 
- * - * .google.shopping.type.Price predicted_monthly_gross_profit_change = 21; - */ - public com.google.shopping.type.PriceOrBuilder getPredictedMonthlyGrossProfitChangeOrBuilder() { - if (predictedMonthlyGrossProfitChangeBuilder_ != null) { - return predictedMonthlyGrossProfitChangeBuilder_.getMessageOrBuilder(); - } else { - return predictedMonthlyGrossProfitChange_ == null - ? com.google.shopping.type.Price.getDefaultInstance() - : predictedMonthlyGrossProfitChange_; - } - } - /** - * - * - *
-     * Predicted change in gross profit after introducing the suggested price
-     * for a month compared to current active price.
-     * 
- * - * .google.shopping.type.Price predicted_monthly_gross_profit_change = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.type.Price, - com.google.shopping.type.Price.Builder, - com.google.shopping.type.PriceOrBuilder> - getPredictedMonthlyGrossProfitChangeFieldBuilder() { - if (predictedMonthlyGrossProfitChangeBuilder_ == null) { - predictedMonthlyGrossProfitChangeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.shopping.type.Price, - com.google.shopping.type.Price.Builder, - com.google.shopping.type.PriceOrBuilder>( - getPredictedMonthlyGrossProfitChange(), getParentForChildren(), isClean()); - predictedMonthlyGrossProfitChange_ = null; - } - return predictedMonthlyGrossProfitChangeBuilder_; - } - @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductViewOrBuilder.java index 4c7c255e8893..c41fc6f5f3cc 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductViewOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductViewOrBuilder.java @@ -27,8 +27,9 @@ public interface PriceInsightsProductViewOrBuilder * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-   * be used to join data with the `product_view` table.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+   * `product_view` table.
    *
    * Required in the `SELECT` clause.
    * 
@@ -42,8 +43,9 @@ public interface PriceInsightsProductViewOrBuilder * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-   * be used to join data with the `product_view` table.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+   * `product_view` table.
    *
    * Required in the `SELECT` clause.
    * 
@@ -57,8 +59,9 @@ public interface PriceInsightsProductViewOrBuilder * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId. Can
-   * be used to join data with the `product_view` table.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
+   * `product_view` table.
    *
    * Required in the `SELECT` clause.
    * 
@@ -736,71 +739,4 @@ public interface PriceInsightsProductViewOrBuilder * @return The predictedConversionsChangeFraction. */ double getPredictedConversionsChangeFraction(); - - /** - * - * - *
-   * Predicted change in gross profit as a fraction after introducing the
-   * suggested price compared to current active price. For example, 0.05 is a 5%
-   * predicted increase in gross profit.
-   * 
- * - * optional double predicted_gross_profit_change_fraction = 20; - * - * @return Whether the predictedGrossProfitChangeFraction field is set. - */ - boolean hasPredictedGrossProfitChangeFraction(); - /** - * - * - *
-   * Predicted change in gross profit as a fraction after introducing the
-   * suggested price compared to current active price. For example, 0.05 is a 5%
-   * predicted increase in gross profit.
-   * 
- * - * optional double predicted_gross_profit_change_fraction = 20; - * - * @return The predictedGrossProfitChangeFraction. - */ - double getPredictedGrossProfitChangeFraction(); - - /** - * - * - *
-   * Predicted change in gross profit after introducing the suggested price
-   * for a month compared to current active price.
-   * 
- * - * .google.shopping.type.Price predicted_monthly_gross_profit_change = 21; - * - * @return Whether the predictedMonthlyGrossProfitChange field is set. - */ - boolean hasPredictedMonthlyGrossProfitChange(); - /** - * - * - *
-   * Predicted change in gross profit after introducing the suggested price
-   * for a month compared to current active price.
-   * 
- * - * .google.shopping.type.Price predicted_monthly_gross_profit_change = 21; - * - * @return The predictedMonthlyGrossProfitChange. - */ - com.google.shopping.type.Price getPredictedMonthlyGrossProfitChange(); - /** - * - * - *
-   * Predicted change in gross profit after introducing the suggested price
-   * for a month compared to current active price.
-   * 
- * - * .google.shopping.type.Price predicted_monthly_gross_profit_change = 21; - */ - com.google.shopping.type.PriceOrBuilder getPredictedMonthlyGrossProfitChangeOrBuilder(); } diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductPerformanceView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductPerformanceView.java index a43ad2cf171b..d110e0f87ca9 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductPerformanceView.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductPerformanceView.java @@ -49,7 +49,7 @@ private ProductPerformanceView(com.google.protobuf.GeneratedMessageV3.Builder } private ProductPerformanceView() { - destination_ = 0; + marketingMethod_ = 0; customerCountryCode_ = ""; accountDisplayName_ = ""; externalAccountId_ = ""; @@ -95,63 +95,65 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; - public static final int DESTINATION_FIELD_NUMBER = 1; - private int destination_ = 0; + public static final int MARKETING_METHOD_FIELD_NUMBER = 1; + private int marketingMethod_ = 0; /** * * *
-   * Destination of the product to which metrics apply. Segment.
-   *
-   * Product performance data is not available for the LOCAL_INVENTORY_ADS
-   * destination.
+   * Marketing method to which metrics apply. Segment.
    * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * * - * @return Whether the destination field is set. + * @return Whether the marketingMethod field is set. */ @java.lang.Override - public boolean hasDestination() { + public boolean hasMarketingMethod() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
-   * Destination of the product to which metrics apply. Segment.
-   *
-   * Product performance data is not available for the LOCAL_INVENTORY_ADS
-   * destination.
+   * Marketing method to which metrics apply. Segment.
    * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * * - * @return The enum numeric value on the wire for destination. + * @return The enum numeric value on the wire for marketingMethod. */ @java.lang.Override - public int getDestinationValue() { - return destination_; + public int getMarketingMethodValue() { + return marketingMethod_; } /** * * *
-   * Destination of the product to which metrics apply. Segment.
-   *
-   * Product performance data is not available for the LOCAL_INVENTORY_ADS
-   * destination.
+   * Marketing method to which metrics apply. Segment.
    * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * * - * @return The destination. + * @return The marketingMethod. */ @java.lang.Override - public com.google.shopping.type.Destination getDestination() { - com.google.shopping.type.Destination result = - com.google.shopping.type.Destination.forNumber(destination_); - return result == null ? com.google.shopping.type.Destination.UNRECOGNIZED : result; + public com.google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum + getMarketingMethod() { + com.google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum result = + com.google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum.forNumber( + marketingMethod_); + return result == null + ? com.google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum + .UNRECOGNIZED + : result; } public static final int DATE_FIELD_NUMBER = 2; @@ -2033,7 +2035,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, destination_); + output.writeEnum(1, marketingMethod_); } if (date_ != null) { output.writeMessage(2, getDate()); @@ -2135,7 +2137,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, destination_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, marketingMethod_); } if (date_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDate()); @@ -2243,9 +2245,9 @@ public boolean equals(final java.lang.Object obj) { com.google.shopping.merchant.reports.v1beta.ProductPerformanceView other = (com.google.shopping.merchant.reports.v1beta.ProductPerformanceView) obj; - if (hasDestination() != other.hasDestination()) return false; - if (hasDestination()) { - if (destination_ != other.destination_) return false; + if (hasMarketingMethod() != other.hasMarketingMethod()) return false; + if (hasMarketingMethod()) { + if (marketingMethod_ != other.marketingMethod_) return false; } if (hasDate() != other.hasDate()) return false; if (hasDate()) { @@ -2381,9 +2383,9 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDestination()) { - hash = (37 * hash) + DESTINATION_FIELD_NUMBER; - hash = (53 * hash) + destination_; + if (hasMarketingMethod()) { + hash = (37 * hash) + MARKETING_METHOD_FIELD_NUMBER; + hash = (53 * hash) + marketingMethod_; } if (hasDate()) { hash = (37 * hash) + DATE_FIELD_NUMBER; @@ -2667,7 +2669,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - destination_ = 0; + marketingMethod_ = 0; date_ = null; if (dateBuilder_ != null) { dateBuilder_.dispose(); @@ -2751,7 +2753,7 @@ private void buildPartial0( int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.destination_ = destination_; + result.marketingMethod_ = marketingMethod_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -2924,8 +2926,8 @@ public Builder mergeFrom( if (other == com.google.shopping.merchant.reports.v1beta.ProductPerformanceView .getDefaultInstance()) return this; - if (other.hasDestination()) { - setDestination(other.getDestination()); + if (other.hasMarketingMethod()) { + setMarketingMethod(other.getMarketingMethod()); } if (other.hasDate()) { mergeDate(other.getDate()); @@ -3087,7 +3089,7 @@ public Builder mergeFrom( break; case 8: { - destination_ = input.readEnum(); + marketingMethod_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 @@ -3290,60 +3292,57 @@ public Builder mergeFrom( private int bitField0_; - private int destination_ = 0; + private int marketingMethod_ = 0; /** * * *
-     * Destination of the product to which metrics apply. Segment.
-     *
-     * Product performance data is not available for the LOCAL_INVENTORY_ADS
-     * destination.
+     * Marketing method to which metrics apply. Segment.
      * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * * - * @return Whether the destination field is set. + * @return Whether the marketingMethod field is set. */ @java.lang.Override - public boolean hasDestination() { + public boolean hasMarketingMethod() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
-     * Destination of the product to which metrics apply. Segment.
-     *
-     * Product performance data is not available for the LOCAL_INVENTORY_ADS
-     * destination.
+     * Marketing method to which metrics apply. Segment.
      * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * * - * @return The enum numeric value on the wire for destination. + * @return The enum numeric value on the wire for marketingMethod. */ @java.lang.Override - public int getDestinationValue() { - return destination_; + public int getMarketingMethodValue() { + return marketingMethod_; } /** * * *
-     * Destination of the product to which metrics apply. Segment.
-     *
-     * Product performance data is not available for the LOCAL_INVENTORY_ADS
-     * destination.
+     * Marketing method to which metrics apply. Segment.
      * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * * - * @param value The enum numeric value on the wire for destination to set. + * @param value The enum numeric value on the wire for marketingMethod to set. * @return This builder for chaining. */ - public Builder setDestinationValue(int value) { - destination_ = value; + public Builder setMarketingMethodValue(int value) { + marketingMethod_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -3352,43 +3351,47 @@ public Builder setDestinationValue(int value) { * * *
-     * Destination of the product to which metrics apply. Segment.
-     *
-     * Product performance data is not available for the LOCAL_INVENTORY_ADS
-     * destination.
+     * Marketing method to which metrics apply. Segment.
      * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * * - * @return The destination. + * @return The marketingMethod. */ @java.lang.Override - public com.google.shopping.type.Destination getDestination() { - com.google.shopping.type.Destination result = - com.google.shopping.type.Destination.forNumber(destination_); - return result == null ? com.google.shopping.type.Destination.UNRECOGNIZED : result; + public com.google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum + getMarketingMethod() { + com.google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum result = + com.google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum.forNumber( + marketingMethod_); + return result == null + ? com.google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum + .UNRECOGNIZED + : result; } /** * * *
-     * Destination of the product to which metrics apply. Segment.
-     *
-     * Product performance data is not available for the LOCAL_INVENTORY_ADS
-     * destination.
+     * Marketing method to which metrics apply. Segment.
      * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * * - * @param value The destination to set. + * @param value The marketingMethod to set. * @return This builder for chaining. */ - public Builder setDestination(com.google.shopping.type.Destination value) { + public Builder setMarketingMethod( + com.google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - destination_ = value.getNumber(); + marketingMethod_ = value.getNumber(); onChanged(); return this; } @@ -3396,19 +3399,18 @@ public Builder setDestination(com.google.shopping.type.Destination value) { * * *
-     * Destination of the product to which metrics apply. Segment.
-     *
-     * Product performance data is not available for the LOCAL_INVENTORY_ADS
-     * destination.
+     * Marketing method to which metrics apply. Segment.
      * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * * * @return This builder for chaining. */ - public Builder clearDestination() { + public Builder clearMarketingMethod() { bitField0_ = (bitField0_ & ~0x00000001); - destination_ = 0; + marketingMethod_ = 0; onChanged(); return this; } diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductPerformanceViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductPerformanceViewOrBuilder.java index 3126681ea8b0..527d7b11ae70 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductPerformanceViewOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductPerformanceViewOrBuilder.java @@ -27,47 +27,45 @@ public interface ProductPerformanceViewOrBuilder * * *
-   * Destination of the product to which metrics apply. Segment.
-   *
-   * Product performance data is not available for the LOCAL_INVENTORY_ADS
-   * destination.
+   * Marketing method to which metrics apply. Segment.
    * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * * - * @return Whether the destination field is set. + * @return Whether the marketingMethod field is set. */ - boolean hasDestination(); + boolean hasMarketingMethod(); /** * * *
-   * Destination of the product to which metrics apply. Segment.
-   *
-   * Product performance data is not available for the LOCAL_INVENTORY_ADS
-   * destination.
+   * Marketing method to which metrics apply. Segment.
    * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * * - * @return The enum numeric value on the wire for destination. + * @return The enum numeric value on the wire for marketingMethod. */ - int getDestinationValue(); + int getMarketingMethodValue(); /** * * *
-   * Destination of the product to which metrics apply. Segment.
-   *
-   * Product performance data is not available for the LOCAL_INVENTORY_ADS
-   * destination.
+   * Marketing method to which metrics apply. Segment.
    * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * * - * @return The destination. + * @return The marketingMethod. */ - com.google.shopping.type.Destination getDestination(); + com.google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum + getMarketingMethod(); /** * diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductView.java index e361597b9aa0..1ec056c8585d 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductView.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductView.java @@ -49,6 +49,7 @@ private ProductView(com.google.protobuf.GeneratedMessageV3.Builder builder) { private ProductView() { id_ = ""; + channel_ = 0; languageCode_ = ""; feedLabel_ = ""; offerId_ = ""; @@ -70,7 +71,7 @@ private ProductView() { gtin_ = com.google.protobuf.LazyStringArrayList.emptyList(); itemGroupId_ = ""; thumbnailLink_ = ""; - aggregatedDestinationStatus_ = 0; + aggregatedReportingContextStatus_ = 0; itemIssues_ = java.util.Collections.emptyList(); } @@ -99,9 +100,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Status of the product aggregated for all destinations.
+   * Status of the product aggregated for all reporting contexts.
    *
-   * Here's an example of how the aggregated destination status is computed:
+   * Here's an example of how the aggregated status is computed:
    *
    * Free listings | Shopping Ads | Status
    * --------------|--------------|------------------------------
@@ -113,9 +114,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * Protobuf enum {@code - * google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus} + * google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus} */ - public enum AggregatedDestinationStatus implements com.google.protobuf.ProtocolMessageEnum { + public enum AggregatedReportingContextStatus implements com.google.protobuf.ProtocolMessageEnum { /** * * @@ -123,14 +124,14 @@ public enum AggregatedDestinationStatus implements com.google.protobuf.ProtocolM * Not specified. * * - * AGGREGATED_DESTINATION_STATUS_UNSPECIFIED = 0; + * AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED = 0; */ - AGGREGATED_DESTINATION_STATUS_UNSPECIFIED(0), + AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED(0), /** * * *
-     * Product is not eligible or is disapproved for all destinations.
+     * Product is not eligible or is disapproved for all reporting contexts.
      * 
* * NOT_ELIGIBLE_OR_DISAPPROVED = 1; @@ -140,7 +141,7 @@ public enum AggregatedDestinationStatus implements com.google.protobuf.ProtocolM * * *
-     * Product's status is pending in all destinations.
+     * Product's status is pending in all reporting contexts.
      * 
* * PENDING = 2; @@ -150,7 +151,7 @@ public enum AggregatedDestinationStatus implements com.google.protobuf.ProtocolM * * *
-     * Product is eligible for some (but not all) destinations.
+     * Product is eligible for some (but not all) reporting contexts.
      * 
* * ELIGIBLE_LIMITED = 3; @@ -160,7 +161,7 @@ public enum AggregatedDestinationStatus implements com.google.protobuf.ProtocolM * * *
-     * Product is eligible for all destinations.
+     * Product is eligible for all reporting contexts.
      * 
* * ELIGIBLE = 4; @@ -176,14 +177,14 @@ public enum AggregatedDestinationStatus implements com.google.protobuf.ProtocolM * Not specified. * * - * AGGREGATED_DESTINATION_STATUS_UNSPECIFIED = 0; + * AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED = 0; */ - public static final int AGGREGATED_DESTINATION_STATUS_UNSPECIFIED_VALUE = 0; + public static final int AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED_VALUE = 0; /** * * *
-     * Product is not eligible or is disapproved for all destinations.
+     * Product is not eligible or is disapproved for all reporting contexts.
      * 
* * NOT_ELIGIBLE_OR_DISAPPROVED = 1; @@ -193,7 +194,7 @@ public enum AggregatedDestinationStatus implements com.google.protobuf.ProtocolM * * *
-     * Product's status is pending in all destinations.
+     * Product's status is pending in all reporting contexts.
      * 
* * PENDING = 2; @@ -203,7 +204,7 @@ public enum AggregatedDestinationStatus implements com.google.protobuf.ProtocolM * * *
-     * Product is eligible for some (but not all) destinations.
+     * Product is eligible for some (but not all) reporting contexts.
      * 
* * ELIGIBLE_LIMITED = 3; @@ -213,7 +214,7 @@ public enum AggregatedDestinationStatus implements com.google.protobuf.ProtocolM * * *
-     * Product is eligible for all destinations.
+     * Product is eligible for all reporting contexts.
      * 
* * ELIGIBLE = 4; @@ -234,7 +235,7 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static AggregatedDestinationStatus valueOf(int value) { + public static AggregatedReportingContextStatus valueOf(int value) { return forNumber(value); } @@ -242,10 +243,10 @@ public static AggregatedDestinationStatus valueOf(int value) { * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ - public static AggregatedDestinationStatus forNumber(int value) { + public static AggregatedReportingContextStatus forNumber(int value) { switch (value) { case 0: - return AGGREGATED_DESTINATION_STATUS_UNSPECIFIED; + return AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED; case 1: return NOT_ELIGIBLE_OR_DISAPPROVED; case 2: @@ -259,16 +260,16 @@ public static AggregatedDestinationStatus forNumber(int value) { } } - public static com.google.protobuf.Internal.EnumLiteMap + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AggregatedDestinationStatus findValueByNumber(int number) { - return AggregatedDestinationStatus.forNumber(number); + new com.google.protobuf.Internal.EnumLiteMap() { + public AggregatedReportingContextStatus findValueByNumber(int number) { + return AggregatedReportingContextStatus.forNumber(number); } }; @@ -290,9 +291,9 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor .get(0); } - private static final AggregatedDestinationStatus[] VALUES = values(); + private static final AggregatedReportingContextStatus[] VALUES = values(); - public static AggregatedDestinationStatus valueOf( + public static AggregatedReportingContextStatus valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); @@ -305,11 +306,11 @@ public static AggregatedDestinationStatus valueOf( private final int value; - private AggregatedDestinationStatus(int value) { + private AggregatedReportingContextStatus(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus) + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus) } public interface ItemIssueOrBuilder @@ -1658,79 +1659,79 @@ public interface ItemIssueSeverityOrBuilder * * *
-       * Issue severity per destination.
+       * Issue severity per reporting context.
        * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ java.util.List< com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination> - getSeverityPerDestinationList(); + .IssueSeverityPerReportingContext> + getSeverityPerReportingContextList(); /** * * *
-       * Issue severity per destination.
+       * Issue severity per reporting context.
        * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination - getSeverityPerDestination(int index); + .IssueSeverityPerReportingContext + getSeverityPerReportingContext(int index); /** * * *
-       * Issue severity per destination.
+       * Issue severity per reporting context.
        * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ - int getSeverityPerDestinationCount(); + int getSeverityPerReportingContextCount(); /** * * *
-       * Issue severity per destination.
+       * Issue severity per reporting context.
        * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ java.util.List< ? extends com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestinationOrBuilder> - getSeverityPerDestinationOrBuilderList(); + .ItemIssueSeverity.IssueSeverityPerReportingContextOrBuilder> + getSeverityPerReportingContextOrBuilderList(); /** * * *
-       * Issue severity per destination.
+       * Issue severity per reporting context.
        * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestinationOrBuilder - getSeverityPerDestinationOrBuilder(int index); + .IssueSeverityPerReportingContextOrBuilder + getSeverityPerReportingContextOrBuilder(int index); /** * * *
-       * Aggregated severity of the issue for all destinations it affects.
+       * Aggregated severity of the issue for all reporting contexts it affects.
        *
        * **This field can be used for filtering the results.**
        * 
@@ -1746,7 +1747,7 @@ public interface ItemIssueSeverityOrBuilder * * *
-       * Aggregated severity of the issue for all destinations it affects.
+       * Aggregated severity of the issue for all reporting contexts it affects.
        *
        * **This field can be used for filtering the results.**
        * 
@@ -1762,7 +1763,7 @@ public interface ItemIssueSeverityOrBuilder * * *
-       * Aggregated severity of the issue for all destinations it affects.
+       * Aggregated severity of the issue for all reporting contexts it affects.
        *
        * **This field can be used for filtering the results.**
        * 
@@ -1798,7 +1799,7 @@ private ItemIssueSeverity(com.google.protobuf.GeneratedMessageV3.Builder buil } private ItemIssueSeverity() { - severityPerDestination_ = java.util.Collections.emptyList(); + severityPerReportingContext_ = java.util.Collections.emptyList(); aggregatedSeverity_ = 0; } @@ -1829,7 +1830,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-       * Issue severity aggregated for all destinations.
+       * Issue severity aggregated for all reporting contexts.
        * 
* * Protobuf enum {@code @@ -1850,7 +1851,7 @@ public enum AggregatedIssueSeverity implements com.google.protobuf.ProtocolMessa * * *
-         * Issue disapproves the product in at least one destination.
+         * Issue disapproves the product in at least one reporting context.
          * 
* * DISAPPROVED = 1; @@ -1860,7 +1861,7 @@ public enum AggregatedIssueSeverity implements com.google.protobuf.ProtocolMessa * * *
-         * Issue demotes the product in all destinations it affects.
+         * Issue demotes the product in all reporting contexts it affects.
          * 
* * DEMOTED = 2; @@ -1893,7 +1894,7 @@ public enum AggregatedIssueSeverity implements com.google.protobuf.ProtocolMessa * * *
-         * Issue disapproves the product in at least one destination.
+         * Issue disapproves the product in at least one reporting context.
          * 
* * DISAPPROVED = 1; @@ -1903,7 +1904,7 @@ public enum AggregatedIssueSeverity implements com.google.protobuf.ProtocolMessa * * *
-         * Issue demotes the product in all destinations it affects.
+         * Issue demotes the product in all reporting contexts it affects.
          * 
* * DEMOTED = 2; @@ -2012,54 +2013,60 @@ private AggregatedIssueSeverity(int value) { // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverity) } - public interface IssueSeverityPerDestinationOrBuilder + public interface IssueSeverityPerReportingContextOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination) + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext) com.google.protobuf.MessageOrBuilder { /** * * *
-         * Destination the issue applies to.
+         * Reporting context the issue applies to.
          * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * * - * @return Whether the destination field is set. + * @return Whether the reportingContext field is set. */ - boolean hasDestination(); + boolean hasReportingContext(); /** * * *
-         * Destination the issue applies to.
+         * Reporting context the issue applies to.
          * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * * - * @return The enum numeric value on the wire for destination. + * @return The enum numeric value on the wire for reportingContext. */ - int getDestinationValue(); + int getReportingContextValue(); /** * * *
-         * Destination the issue applies to.
+         * Reporting context the issue applies to.
          * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * * - * @return The destination. + * @return The reportingContext. */ - com.google.shopping.type.Destination getDestination(); + com.google.shopping.type.ReportingContext.ReportingContextEnum getReportingContext(); /** * * *
-         * List of disapproved countries in the destination, represented in ISO
-         * 3166 format.
+         * List of disapproved countries in the reporting context, represented
+         * in ISO 3166 format.
          * 
* * repeated string disapproved_countries = 2; @@ -2071,8 +2078,8 @@ public interface IssueSeverityPerDestinationOrBuilder * * *
-         * List of disapproved countries in the destination, represented in ISO
-         * 3166 format.
+         * List of disapproved countries in the reporting context, represented
+         * in ISO 3166 format.
          * 
* * repeated string disapproved_countries = 2; @@ -2084,8 +2091,8 @@ public interface IssueSeverityPerDestinationOrBuilder * * *
-         * List of disapproved countries in the destination, represented in ISO
-         * 3166 format.
+         * List of disapproved countries in the reporting context, represented
+         * in ISO 3166 format.
          * 
* * repeated string disapproved_countries = 2; @@ -2098,8 +2105,8 @@ public interface IssueSeverityPerDestinationOrBuilder * * *
-         * List of disapproved countries in the destination, represented in ISO
-         * 3166 format.
+         * List of disapproved countries in the reporting context, represented
+         * in ISO 3166 format.
          * 
* * repeated string disapproved_countries = 2; @@ -2113,8 +2120,8 @@ public interface IssueSeverityPerDestinationOrBuilder * * *
-         * List of demoted countries in the destination, represented in ISO 3166
-         * format.
+         * List of demoted countries in the reporting context, represented in
+         * ISO 3166 format.
          * 
* * repeated string demoted_countries = 3; @@ -2126,8 +2133,8 @@ public interface IssueSeverityPerDestinationOrBuilder * * *
-         * List of demoted countries in the destination, represented in ISO 3166
-         * format.
+         * List of demoted countries in the reporting context, represented in
+         * ISO 3166 format.
          * 
* * repeated string demoted_countries = 3; @@ -2139,8 +2146,8 @@ public interface IssueSeverityPerDestinationOrBuilder * * *
-         * List of demoted countries in the destination, represented in ISO 3166
-         * format.
+         * List of demoted countries in the reporting context, represented in
+         * ISO 3166 format.
          * 
* * repeated string demoted_countries = 3; @@ -2153,8 +2160,8 @@ public interface IssueSeverityPerDestinationOrBuilder * * *
-         * List of demoted countries in the destination, represented in ISO 3166
-         * format.
+         * List of demoted countries in the reporting context, represented in
+         * ISO 3166 format.
          * 
* * repeated string demoted_countries = 3; @@ -2168,26 +2175,26 @@ public interface IssueSeverityPerDestinationOrBuilder * * *
-       * Issue severity per destination.
+       * Issue severity per reporting context.
        * 
* * Protobuf type {@code - * google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination} + * google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext} */ - public static final class IssueSeverityPerDestination + public static final class IssueSeverityPerReportingContext extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination) - IssueSeverityPerDestinationOrBuilder { + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext) + IssueSeverityPerReportingContextOrBuilder { private static final long serialVersionUID = 0L; - // Use IssueSeverityPerDestination.newBuilder() to construct. - private IssueSeverityPerDestination( + // Use IssueSeverityPerReportingContext.newBuilder() to construct. + private IssueSeverityPerReportingContext( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IssueSeverityPerDestination() { - destination_ = 0; + private IssueSeverityPerReportingContext() { + reportingContext_ = 0; disapprovedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); demotedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @@ -2195,75 +2202,85 @@ private IssueSeverityPerDestination() { @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new IssueSeverityPerDestination(); + return new IssueSeverityPerReportingContext(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.reports.v1beta.ReportsProto - .internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerDestination_descriptor; + .internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.reports.v1beta.ReportsProto - .internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerDestination_fieldAccessorTable + .internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination.class, + .ItemIssueSeverity.IssueSeverityPerReportingContext.class, com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination.Builder.class); + .ItemIssueSeverity.IssueSeverityPerReportingContext.Builder.class); } private int bitField0_; - public static final int DESTINATION_FIELD_NUMBER = 1; - private int destination_ = 0; + public static final int REPORTING_CONTEXT_FIELD_NUMBER = 1; + private int reportingContext_ = 0; /** * * *
-         * Destination the issue applies to.
+         * Reporting context the issue applies to.
          * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * * - * @return Whether the destination field is set. + * @return Whether the reportingContext field is set. */ @java.lang.Override - public boolean hasDestination() { + public boolean hasReportingContext() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
-         * Destination the issue applies to.
+         * Reporting context the issue applies to.
          * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * * - * @return The enum numeric value on the wire for destination. + * @return The enum numeric value on the wire for reportingContext. */ @java.lang.Override - public int getDestinationValue() { - return destination_; + public int getReportingContextValue() { + return reportingContext_; } /** * * *
-         * Destination the issue applies to.
+         * Reporting context the issue applies to.
          * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * * - * @return The destination. + * @return The reportingContext. */ @java.lang.Override - public com.google.shopping.type.Destination getDestination() { - com.google.shopping.type.Destination result = - com.google.shopping.type.Destination.forNumber(destination_); - return result == null ? com.google.shopping.type.Destination.UNRECOGNIZED : result; + public com.google.shopping.type.ReportingContext.ReportingContextEnum + getReportingContext() { + com.google.shopping.type.ReportingContext.ReportingContextEnum result = + com.google.shopping.type.ReportingContext.ReportingContextEnum.forNumber( + reportingContext_); + return result == null + ? com.google.shopping.type.ReportingContext.ReportingContextEnum.UNRECOGNIZED + : result; } public static final int DISAPPROVED_COUNTRIES_FIELD_NUMBER = 2; @@ -2275,8 +2292,8 @@ public com.google.shopping.type.Destination getDestination() { * * *
-         * List of disapproved countries in the destination, represented in ISO
-         * 3166 format.
+         * List of disapproved countries in the reporting context, represented
+         * in ISO 3166 format.
          * 
* * repeated string disapproved_countries = 2; @@ -2290,8 +2307,8 @@ public com.google.protobuf.ProtocolStringList getDisapprovedCountriesList() { * * *
-         * List of disapproved countries in the destination, represented in ISO
-         * 3166 format.
+         * List of disapproved countries in the reporting context, represented
+         * in ISO 3166 format.
          * 
* * repeated string disapproved_countries = 2; @@ -2305,8 +2322,8 @@ public int getDisapprovedCountriesCount() { * * *
-         * List of disapproved countries in the destination, represented in ISO
-         * 3166 format.
+         * List of disapproved countries in the reporting context, represented
+         * in ISO 3166 format.
          * 
* * repeated string disapproved_countries = 2; @@ -2321,8 +2338,8 @@ public java.lang.String getDisapprovedCountries(int index) { * * *
-         * List of disapproved countries in the destination, represented in ISO
-         * 3166 format.
+         * List of disapproved countries in the reporting context, represented
+         * in ISO 3166 format.
          * 
* * repeated string disapproved_countries = 2; @@ -2343,8 +2360,8 @@ public com.google.protobuf.ByteString getDisapprovedCountriesBytes(int index) { * * *
-         * List of demoted countries in the destination, represented in ISO 3166
-         * format.
+         * List of demoted countries in the reporting context, represented in
+         * ISO 3166 format.
          * 
* * repeated string demoted_countries = 3; @@ -2358,8 +2375,8 @@ public com.google.protobuf.ProtocolStringList getDemotedCountriesList() { * * *
-         * List of demoted countries in the destination, represented in ISO 3166
-         * format.
+         * List of demoted countries in the reporting context, represented in
+         * ISO 3166 format.
          * 
* * repeated string demoted_countries = 3; @@ -2373,8 +2390,8 @@ public int getDemotedCountriesCount() { * * *
-         * List of demoted countries in the destination, represented in ISO 3166
-         * format.
+         * List of demoted countries in the reporting context, represented in
+         * ISO 3166 format.
          * 
* * repeated string demoted_countries = 3; @@ -2389,8 +2406,8 @@ public java.lang.String getDemotedCountries(int index) { * * *
-         * List of demoted countries in the destination, represented in ISO 3166
-         * format.
+         * List of demoted countries in the reporting context, represented in
+         * ISO 3166 format.
          * 
* * repeated string demoted_countries = 3; @@ -2418,7 +2435,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, destination_); + output.writeEnum(1, reportingContext_); } for (int i = 0; i < disapprovedCountries_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( @@ -2438,7 +2455,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, destination_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, reportingContext_); } { int dataSize = 0; @@ -2469,19 +2486,19 @@ public boolean equals(final java.lang.Object obj) { if (!(obj instanceof com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination)) { + .IssueSeverityPerReportingContext)) { return super.equals(obj); } com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination + .IssueSeverityPerReportingContext other = (com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination) + .ItemIssueSeverity.IssueSeverityPerReportingContext) obj; - if (hasDestination() != other.hasDestination()) return false; - if (hasDestination()) { - if (destination_ != other.destination_) return false; + if (hasReportingContext() != other.hasReportingContext()) return false; + if (hasReportingContext()) { + if (reportingContext_ != other.reportingContext_) return false; } if (!getDisapprovedCountriesList().equals(other.getDisapprovedCountriesList())) return false; @@ -2497,9 +2514,9 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDestination()) { - hash = (37 * hash) + DESTINATION_FIELD_NUMBER; - hash = (53 * hash) + destination_; + if (hasReportingContext()) { + hash = (37 * hash) + REPORTING_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + reportingContext_; } if (getDisapprovedCountriesCount() > 0) { hash = (37 * hash) + DISAPPROVED_COUNTRIES_FIELD_NUMBER; @@ -2515,14 +2532,14 @@ public int hashCode() { } public static com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination + .ItemIssueSeverity.IssueSeverityPerReportingContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination + .ItemIssueSeverity.IssueSeverityPerReportingContext parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2531,14 +2548,14 @@ public int hashCode() { } public static com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination + .ItemIssueSeverity.IssueSeverityPerReportingContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination + .ItemIssueSeverity.IssueSeverityPerReportingContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2547,26 +2564,26 @@ public int hashCode() { } public static com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination + .ItemIssueSeverity.IssueSeverityPerReportingContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination + .ItemIssueSeverity.IssueSeverityPerReportingContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination + .ItemIssueSeverity.IssueSeverityPerReportingContext parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination + .ItemIssueSeverity.IssueSeverityPerReportingContext parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2576,14 +2593,14 @@ public int hashCode() { } public static com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination + .ItemIssueSeverity.IssueSeverityPerReportingContext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input); } public static com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination + .ItemIssueSeverity.IssueSeverityPerReportingContext parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2593,13 +2610,13 @@ public int hashCode() { } public static com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination + .ItemIssueSeverity.IssueSeverityPerReportingContext parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination + .ItemIssueSeverity.IssueSeverityPerReportingContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2619,7 +2636,7 @@ public static Builder newBuilder() { public static Builder newBuilder( com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination + .IssueSeverityPerReportingContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -2639,37 +2656,37 @@ protected Builder newBuilderForType( * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * Protobuf type {@code - * google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination} + * google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination) + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext) com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestinationOrBuilder { + .IssueSeverityPerReportingContextOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.reports.v1beta.ReportsProto - .internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerDestination_descriptor; + .internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.reports.v1beta.ReportsProto - .internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerDestination_fieldAccessorTable + .internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination.class, + .ItemIssueSeverity.IssueSeverityPerReportingContext.class, com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination.Builder.class); + .ItemIssueSeverity.IssueSeverityPerReportingContext.Builder.class); } // Construct using - // com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination.newBuilder() + // com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -2680,7 +2697,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - destination_ = 0; + reportingContext_ = 0; disapprovedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); demotedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; @@ -2689,23 +2706,23 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.shopping.merchant.reports.v1beta.ReportsProto - .internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerDestination_descriptor; + .internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_descriptor; } @java.lang.Override public com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination + .IssueSeverityPerReportingContext getDefaultInstanceForType() { return com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination.getDefaultInstance(); + .ItemIssueSeverity.IssueSeverityPerReportingContext.getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination + .IssueSeverityPerReportingContext build() { com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination + .IssueSeverityPerReportingContext result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -2715,13 +2732,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { @java.lang.Override public com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination + .IssueSeverityPerReportingContext buildPartial() { com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination + .IssueSeverityPerReportingContext result = new com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination(this); + .ItemIssueSeverity.IssueSeverityPerReportingContext(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -2731,12 +2748,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { private void buildPartial0( com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination + .IssueSeverityPerReportingContext result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.destination_ = destination_; + result.reportingContext_ = reportingContext_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -2790,10 +2807,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination) { + .IssueSeverityPerReportingContext) { return mergeFrom( (com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination) + .ItemIssueSeverity.IssueSeverityPerReportingContext) other); } else { super.mergeFrom(other); @@ -2803,14 +2820,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom( com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination + .IssueSeverityPerReportingContext other) { if (other == com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination.getDefaultInstance()) + .ItemIssueSeverity.IssueSeverityPerReportingContext.getDefaultInstance()) return this; - if (other.hasDestination()) { - setDestination(other.getDestination()); + if (other.hasReportingContext()) { + setReportingContext(other.getReportingContext()); } if (!other.disapprovedCountries_.isEmpty()) { if (disapprovedCountries_.isEmpty()) { @@ -2860,7 +2877,7 @@ public Builder mergeFrom( break; case 8: { - destination_ = input.readEnum(); + reportingContext_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 @@ -2897,51 +2914,57 @@ public Builder mergeFrom( private int bitField0_; - private int destination_ = 0; + private int reportingContext_ = 0; /** * * *
-           * Destination the issue applies to.
+           * Reporting context the issue applies to.
            * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * * - * @return Whether the destination field is set. + * @return Whether the reportingContext field is set. */ @java.lang.Override - public boolean hasDestination() { + public boolean hasReportingContext() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
-           * Destination the issue applies to.
+           * Reporting context the issue applies to.
            * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * * - * @return The enum numeric value on the wire for destination. + * @return The enum numeric value on the wire for reportingContext. */ @java.lang.Override - public int getDestinationValue() { - return destination_; + public int getReportingContextValue() { + return reportingContext_; } /** * * *
-           * Destination the issue applies to.
+           * Reporting context the issue applies to.
            * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * * - * @param value The enum numeric value on the wire for destination to set. + * @param value The enum numeric value on the wire for reportingContext to set. * @return This builder for chaining. */ - public Builder setDestinationValue(int value) { - destination_ = value; + public Builder setReportingContextValue(int value) { + reportingContext_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -2950,37 +2973,46 @@ public Builder setDestinationValue(int value) { * * *
-           * Destination the issue applies to.
+           * Reporting context the issue applies to.
            * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * * - * @return The destination. + * @return The reportingContext. */ @java.lang.Override - public com.google.shopping.type.Destination getDestination() { - com.google.shopping.type.Destination result = - com.google.shopping.type.Destination.forNumber(destination_); - return result == null ? com.google.shopping.type.Destination.UNRECOGNIZED : result; + public com.google.shopping.type.ReportingContext.ReportingContextEnum + getReportingContext() { + com.google.shopping.type.ReportingContext.ReportingContextEnum result = + com.google.shopping.type.ReportingContext.ReportingContextEnum.forNumber( + reportingContext_); + return result == null + ? com.google.shopping.type.ReportingContext.ReportingContextEnum.UNRECOGNIZED + : result; } /** * * *
-           * Destination the issue applies to.
+           * Reporting context the issue applies to.
            * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * * - * @param value The destination to set. + * @param value The reportingContext to set. * @return This builder for chaining. */ - public Builder setDestination(com.google.shopping.type.Destination value) { + public Builder setReportingContext( + com.google.shopping.type.ReportingContext.ReportingContextEnum value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - destination_ = value.getNumber(); + reportingContext_ = value.getNumber(); onChanged(); return this; } @@ -2988,16 +3020,18 @@ public Builder setDestination(com.google.shopping.type.Destination value) { * * *
-           * Destination the issue applies to.
+           * Reporting context the issue applies to.
            * 
* - * optional .google.shopping.type.Destination destination = 1; + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * * * @return This builder for chaining. */ - public Builder clearDestination() { + public Builder clearReportingContext() { bitField0_ = (bitField0_ & ~0x00000001); - destination_ = 0; + reportingContext_ = 0; onChanged(); return this; } @@ -3016,8 +3050,8 @@ private void ensureDisapprovedCountriesIsMutable() { * * *
-           * List of disapproved countries in the destination, represented in ISO
-           * 3166 format.
+           * List of disapproved countries in the reporting context, represented
+           * in ISO 3166 format.
            * 
* * repeated string disapproved_countries = 2; @@ -3032,8 +3066,8 @@ public com.google.protobuf.ProtocolStringList getDisapprovedCountriesList() { * * *
-           * List of disapproved countries in the destination, represented in ISO
-           * 3166 format.
+           * List of disapproved countries in the reporting context, represented
+           * in ISO 3166 format.
            * 
* * repeated string disapproved_countries = 2; @@ -3047,8 +3081,8 @@ public int getDisapprovedCountriesCount() { * * *
-           * List of disapproved countries in the destination, represented in ISO
-           * 3166 format.
+           * List of disapproved countries in the reporting context, represented
+           * in ISO 3166 format.
            * 
* * repeated string disapproved_countries = 2; @@ -3063,8 +3097,8 @@ public java.lang.String getDisapprovedCountries(int index) { * * *
-           * List of disapproved countries in the destination, represented in ISO
-           * 3166 format.
+           * List of disapproved countries in the reporting context, represented
+           * in ISO 3166 format.
            * 
* * repeated string disapproved_countries = 2; @@ -3079,8 +3113,8 @@ public com.google.protobuf.ByteString getDisapprovedCountriesBytes(int index) { * * *
-           * List of disapproved countries in the destination, represented in ISO
-           * 3166 format.
+           * List of disapproved countries in the reporting context, represented
+           * in ISO 3166 format.
            * 
* * repeated string disapproved_countries = 2; @@ -3103,8 +3137,8 @@ public Builder setDisapprovedCountries(int index, java.lang.String value) { * * *
-           * List of disapproved countries in the destination, represented in ISO
-           * 3166 format.
+           * List of disapproved countries in the reporting context, represented
+           * in ISO 3166 format.
            * 
* * repeated string disapproved_countries = 2; @@ -3126,8 +3160,8 @@ public Builder addDisapprovedCountries(java.lang.String value) { * * *
-           * List of disapproved countries in the destination, represented in ISO
-           * 3166 format.
+           * List of disapproved countries in the reporting context, represented
+           * in ISO 3166 format.
            * 
* * repeated string disapproved_countries = 2; @@ -3146,8 +3180,8 @@ public Builder addAllDisapprovedCountries(java.lang.Iterable v * * *
-           * List of disapproved countries in the destination, represented in ISO
-           * 3166 format.
+           * List of disapproved countries in the reporting context, represented
+           * in ISO 3166 format.
            * 
* * repeated string disapproved_countries = 2; @@ -3165,8 +3199,8 @@ public Builder clearDisapprovedCountries() { * * *
-           * List of disapproved countries in the destination, represented in ISO
-           * 3166 format.
+           * List of disapproved countries in the reporting context, represented
+           * in ISO 3166 format.
            * 
* * repeated string disapproved_countries = 2; @@ -3199,8 +3233,8 @@ private void ensureDemotedCountriesIsMutable() { * * *
-           * List of demoted countries in the destination, represented in ISO 3166
-           * format.
+           * List of demoted countries in the reporting context, represented in
+           * ISO 3166 format.
            * 
* * repeated string demoted_countries = 3; @@ -3215,8 +3249,8 @@ public com.google.protobuf.ProtocolStringList getDemotedCountriesList() { * * *
-           * List of demoted countries in the destination, represented in ISO 3166
-           * format.
+           * List of demoted countries in the reporting context, represented in
+           * ISO 3166 format.
            * 
* * repeated string demoted_countries = 3; @@ -3230,8 +3264,8 @@ public int getDemotedCountriesCount() { * * *
-           * List of demoted countries in the destination, represented in ISO 3166
-           * format.
+           * List of demoted countries in the reporting context, represented in
+           * ISO 3166 format.
            * 
* * repeated string demoted_countries = 3; @@ -3246,8 +3280,8 @@ public java.lang.String getDemotedCountries(int index) { * * *
-           * List of demoted countries in the destination, represented in ISO 3166
-           * format.
+           * List of demoted countries in the reporting context, represented in
+           * ISO 3166 format.
            * 
* * repeated string demoted_countries = 3; @@ -3262,8 +3296,8 @@ public com.google.protobuf.ByteString getDemotedCountriesBytes(int index) { * * *
-           * List of demoted countries in the destination, represented in ISO 3166
-           * format.
+           * List of demoted countries in the reporting context, represented in
+           * ISO 3166 format.
            * 
* * repeated string demoted_countries = 3; @@ -3286,8 +3320,8 @@ public Builder setDemotedCountries(int index, java.lang.String value) { * * *
-           * List of demoted countries in the destination, represented in ISO 3166
-           * format.
+           * List of demoted countries in the reporting context, represented in
+           * ISO 3166 format.
            * 
* * repeated string demoted_countries = 3; @@ -3309,8 +3343,8 @@ public Builder addDemotedCountries(java.lang.String value) { * * *
-           * List of demoted countries in the destination, represented in ISO 3166
-           * format.
+           * List of demoted countries in the reporting context, represented in
+           * ISO 3166 format.
            * 
* * repeated string demoted_countries = 3; @@ -3329,8 +3363,8 @@ public Builder addAllDemotedCountries(java.lang.Iterable value * * *
-           * List of demoted countries in the destination, represented in ISO 3166
-           * format.
+           * List of demoted countries in the reporting context, represented in
+           * ISO 3166 format.
            * 
* * repeated string demoted_countries = 3; @@ -3348,8 +3382,8 @@ public Builder clearDemotedCountries() { * * *
-           * List of demoted countries in the destination, represented in ISO 3166
-           * format.
+           * List of demoted countries in the reporting context, represented in
+           * ISO 3166 format.
            * 
* * repeated string demoted_countries = 3; @@ -3381,30 +3415,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination) + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext) } - // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination) + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext) private static final com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination + .ItemIssueSeverity.IssueSeverityPerReportingContext DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination(); + .ItemIssueSeverity.IssueSeverityPerReportingContext(); } public static com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination + .ItemIssueSeverity.IssueSeverityPerReportingContext getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public IssueSeverityPerDestination parsePartialFrom( + public IssueSeverityPerReportingContext parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3424,116 +3458,116 @@ public IssueSeverityPerDestination parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination + .IssueSeverityPerReportingContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; - public static final int SEVERITY_PER_DESTINATION_FIELD_NUMBER = 1; + public static final int SEVERITY_PER_REPORTING_CONTEXT_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List< com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination> - severityPerDestination_; + .IssueSeverityPerReportingContext> + severityPerReportingContext_; /** * * *
-       * Issue severity per destination.
+       * Issue severity per reporting context.
        * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ @java.lang.Override public java.util.List< com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination> - getSeverityPerDestinationList() { - return severityPerDestination_; + .IssueSeverityPerReportingContext> + getSeverityPerReportingContextList() { + return severityPerReportingContext_; } /** * * *
-       * Issue severity per destination.
+       * Issue severity per reporting context.
        * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ @java.lang.Override public java.util.List< ? extends com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestinationOrBuilder> - getSeverityPerDestinationOrBuilderList() { - return severityPerDestination_; + .ItemIssueSeverity.IssueSeverityPerReportingContextOrBuilder> + getSeverityPerReportingContextOrBuilderList() { + return severityPerReportingContext_; } /** * * *
-       * Issue severity per destination.
+       * Issue severity per reporting context.
        * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ @java.lang.Override - public int getSeverityPerDestinationCount() { - return severityPerDestination_.size(); + public int getSeverityPerReportingContextCount() { + return severityPerReportingContext_.size(); } /** * * *
-       * Issue severity per destination.
+       * Issue severity per reporting context.
        * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ @java.lang.Override public com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination - getSeverityPerDestination(int index) { - return severityPerDestination_.get(index); + .IssueSeverityPerReportingContext + getSeverityPerReportingContext(int index) { + return severityPerReportingContext_.get(index); } /** * * *
-       * Issue severity per destination.
+       * Issue severity per reporting context.
        * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ @java.lang.Override public com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestinationOrBuilder - getSeverityPerDestinationOrBuilder(int index) { - return severityPerDestination_.get(index); + .IssueSeverityPerReportingContextOrBuilder + getSeverityPerReportingContextOrBuilder(int index) { + return severityPerReportingContext_.get(index); } public static final int AGGREGATED_SEVERITY_FIELD_NUMBER = 2; @@ -3542,7 +3576,7 @@ public int getSeverityPerDestinationCount() { * * *
-       * Aggregated severity of the issue for all destinations it affects.
+       * Aggregated severity of the issue for all reporting contexts it affects.
        *
        * **This field can be used for filtering the results.**
        * 
@@ -3561,7 +3595,7 @@ public boolean hasAggregatedSeverity() { * * *
-       * Aggregated severity of the issue for all destinations it affects.
+       * Aggregated severity of the issue for all reporting contexts it affects.
        *
        * **This field can be used for filtering the results.**
        * 
@@ -3580,7 +3614,7 @@ public int getAggregatedSeverityValue() { * * *
-       * Aggregated severity of the issue for all destinations it affects.
+       * Aggregated severity of the issue for all reporting contexts it affects.
        *
        * **This field can be used for filtering the results.**
        * 
@@ -3620,8 +3654,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < severityPerDestination_.size(); i++) { - output.writeMessage(1, severityPerDestination_.get(i)); + for (int i = 0; i < severityPerReportingContext_.size(); i++) { + output.writeMessage(1, severityPerReportingContext_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(2, aggregatedSeverity_); @@ -3635,10 +3669,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < severityPerDestination_.size(); i++) { + for (int i = 0; i < severityPerReportingContext_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, severityPerDestination_.get(i)); + 1, severityPerReportingContext_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, aggregatedSeverity_); @@ -3662,8 +3696,8 @@ public boolean equals(final java.lang.Object obj) { (com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity) obj; - if (!getSeverityPerDestinationList().equals(other.getSeverityPerDestinationList())) - return false; + if (!getSeverityPerReportingContextList() + .equals(other.getSeverityPerReportingContextList())) return false; if (hasAggregatedSeverity() != other.hasAggregatedSeverity()) return false; if (hasAggregatedSeverity()) { if (aggregatedSeverity_ != other.aggregatedSeverity_) return false; @@ -3679,9 +3713,9 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getSeverityPerDestinationCount() > 0) { - hash = (37 * hash) + SEVERITY_PER_DESTINATION_FIELD_NUMBER; - hash = (53 * hash) + getSeverityPerDestinationList().hashCode(); + if (getSeverityPerReportingContextCount() > 0) { + hash = (37 * hash) + SEVERITY_PER_REPORTING_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getSeverityPerReportingContextList().hashCode(); } if (hasAggregatedSeverity()) { hash = (37 * hash) + AGGREGATED_SEVERITY_FIELD_NUMBER; @@ -3855,11 +3889,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - if (severityPerDestinationBuilder_ == null) { - severityPerDestination_ = java.util.Collections.emptyList(); + if (severityPerReportingContextBuilder_ == null) { + severityPerReportingContext_ = java.util.Collections.emptyList(); } else { - severityPerDestination_ = null; - severityPerDestinationBuilder_.clear(); + severityPerReportingContext_ = null; + severityPerReportingContextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); aggregatedSeverity_ = 0; @@ -3908,15 +3942,15 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { private void buildPartialRepeatedFields( com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity result) { - if (severityPerDestinationBuilder_ == null) { + if (severityPerReportingContextBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - severityPerDestination_ = - java.util.Collections.unmodifiableList(severityPerDestination_); + severityPerReportingContext_ = + java.util.Collections.unmodifiableList(severityPerReportingContext_); bitField0_ = (bitField0_ & ~0x00000001); } - result.severityPerDestination_ = severityPerDestination_; + result.severityPerReportingContext_ = severityPerReportingContext_; } else { - result.severityPerDestination_ = severityPerDestinationBuilder_.build(); + result.severityPerReportingContext_ = severityPerReportingContextBuilder_.build(); } } @@ -3988,30 +4022,31 @@ public Builder mergeFrom( if (other == com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity .getDefaultInstance()) return this; - if (severityPerDestinationBuilder_ == null) { - if (!other.severityPerDestination_.isEmpty()) { - if (severityPerDestination_.isEmpty()) { - severityPerDestination_ = other.severityPerDestination_; + if (severityPerReportingContextBuilder_ == null) { + if (!other.severityPerReportingContext_.isEmpty()) { + if (severityPerReportingContext_.isEmpty()) { + severityPerReportingContext_ = other.severityPerReportingContext_; bitField0_ = (bitField0_ & ~0x00000001); } else { - ensureSeverityPerDestinationIsMutable(); - severityPerDestination_.addAll(other.severityPerDestination_); + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.addAll(other.severityPerReportingContext_); } onChanged(); } } else { - if (!other.severityPerDestination_.isEmpty()) { - if (severityPerDestinationBuilder_.isEmpty()) { - severityPerDestinationBuilder_.dispose(); - severityPerDestinationBuilder_ = null; - severityPerDestination_ = other.severityPerDestination_; + if (!other.severityPerReportingContext_.isEmpty()) { + if (severityPerReportingContextBuilder_.isEmpty()) { + severityPerReportingContextBuilder_.dispose(); + severityPerReportingContextBuilder_ = null; + severityPerReportingContext_ = other.severityPerReportingContext_; bitField0_ = (bitField0_ & ~0x00000001); - severityPerDestinationBuilder_ = + severityPerReportingContextBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSeverityPerDestinationFieldBuilder() + ? getSeverityPerReportingContextFieldBuilder() : null; } else { - severityPerDestinationBuilder_.addAllMessages(other.severityPerDestination_); + severityPerReportingContextBuilder_.addAllMessages( + other.severityPerReportingContext_); } } } @@ -4047,17 +4082,17 @@ public Builder mergeFrom( case 10: { com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination + .ItemIssueSeverity.IssueSeverityPerReportingContext m = input.readMessage( com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination.parser(), + .ItemIssueSeverity.IssueSeverityPerReportingContext.parser(), extensionRegistry); - if (severityPerDestinationBuilder_ == null) { - ensureSeverityPerDestinationIsMutable(); - severityPerDestination_.add(m); + if (severityPerReportingContextBuilder_ == null) { + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.add(m); } else { - severityPerDestinationBuilder_.addMessage(m); + severityPerReportingContextBuilder_.addMessage(m); } break; } // case 10 @@ -4088,112 +4123,113 @@ public Builder mergeFrom( private java.util.List< com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination> - severityPerDestination_ = java.util.Collections.emptyList(); + .IssueSeverityPerReportingContext> + severityPerReportingContext_ = java.util.Collections.emptyList(); - private void ensureSeverityPerDestinationIsMutable() { + private void ensureSeverityPerReportingContextIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - severityPerDestination_ = + severityPerReportingContext_ = new java.util.ArrayList< com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination>(severityPerDestination_); + .ItemIssueSeverity.IssueSeverityPerReportingContext>( + severityPerReportingContext_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination, + .IssueSeverityPerReportingContext, com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination.Builder, + .IssueSeverityPerReportingContext.Builder, com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestinationOrBuilder> - severityPerDestinationBuilder_; + .IssueSeverityPerReportingContextOrBuilder> + severityPerReportingContextBuilder_; /** * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ public java.util.List< com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination> - getSeverityPerDestinationList() { - if (severityPerDestinationBuilder_ == null) { - return java.util.Collections.unmodifiableList(severityPerDestination_); + .IssueSeverityPerReportingContext> + getSeverityPerReportingContextList() { + if (severityPerReportingContextBuilder_ == null) { + return java.util.Collections.unmodifiableList(severityPerReportingContext_); } else { - return severityPerDestinationBuilder_.getMessageList(); + return severityPerReportingContextBuilder_.getMessageList(); } } /** * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ - public int getSeverityPerDestinationCount() { - if (severityPerDestinationBuilder_ == null) { - return severityPerDestination_.size(); + public int getSeverityPerReportingContextCount() { + if (severityPerReportingContextBuilder_ == null) { + return severityPerReportingContext_.size(); } else { - return severityPerDestinationBuilder_.getCount(); + return severityPerReportingContextBuilder_.getCount(); } } /** * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ public com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination - getSeverityPerDestination(int index) { - if (severityPerDestinationBuilder_ == null) { - return severityPerDestination_.get(index); + .IssueSeverityPerReportingContext + getSeverityPerReportingContext(int index) { + if (severityPerReportingContextBuilder_ == null) { + return severityPerReportingContext_.get(index); } else { - return severityPerDestinationBuilder_.getMessage(index); + return severityPerReportingContextBuilder_.getMessage(index); } } /** * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ - public Builder setSeverityPerDestination( + public Builder setSeverityPerReportingContext( int index, com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination + .IssueSeverityPerReportingContext value) { - if (severityPerDestinationBuilder_ == null) { + if (severityPerReportingContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureSeverityPerDestinationIsMutable(); - severityPerDestination_.set(index, value); + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.set(index, value); onChanged(); } else { - severityPerDestinationBuilder_.setMessage(index, value); + severityPerReportingContextBuilder_.setMessage(index, value); } return this; } @@ -4201,24 +4237,24 @@ public Builder setSeverityPerDestination( * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ - public Builder setSeverityPerDestination( + public Builder setSeverityPerReportingContext( int index, com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination.Builder + .IssueSeverityPerReportingContext.Builder builderForValue) { - if (severityPerDestinationBuilder_ == null) { - ensureSeverityPerDestinationIsMutable(); - severityPerDestination_.set(index, builderForValue.build()); + if (severityPerReportingContextBuilder_ == null) { + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.set(index, builderForValue.build()); onChanged(); } else { - severityPerDestinationBuilder_.setMessage(index, builderForValue.build()); + severityPerReportingContextBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -4226,26 +4262,26 @@ public Builder setSeverityPerDestination( * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ - public Builder addSeverityPerDestination( + public Builder addSeverityPerReportingContext( com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination + .IssueSeverityPerReportingContext value) { - if (severityPerDestinationBuilder_ == null) { + if (severityPerReportingContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureSeverityPerDestinationIsMutable(); - severityPerDestination_.add(value); + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.add(value); onChanged(); } else { - severityPerDestinationBuilder_.addMessage(value); + severityPerReportingContextBuilder_.addMessage(value); } return this; } @@ -4253,27 +4289,27 @@ public Builder addSeverityPerDestination( * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ - public Builder addSeverityPerDestination( + public Builder addSeverityPerReportingContext( int index, com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination + .IssueSeverityPerReportingContext value) { - if (severityPerDestinationBuilder_ == null) { + if (severityPerReportingContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureSeverityPerDestinationIsMutable(); - severityPerDestination_.add(index, value); + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.add(index, value); onChanged(); } else { - severityPerDestinationBuilder_.addMessage(index, value); + severityPerReportingContextBuilder_.addMessage(index, value); } return this; } @@ -4281,23 +4317,23 @@ public Builder addSeverityPerDestination( * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ - public Builder addSeverityPerDestination( + public Builder addSeverityPerReportingContext( com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination.Builder + .IssueSeverityPerReportingContext.Builder builderForValue) { - if (severityPerDestinationBuilder_ == null) { - ensureSeverityPerDestinationIsMutable(); - severityPerDestination_.add(builderForValue.build()); + if (severityPerReportingContextBuilder_ == null) { + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.add(builderForValue.build()); onChanged(); } else { - severityPerDestinationBuilder_.addMessage(builderForValue.build()); + severityPerReportingContextBuilder_.addMessage(builderForValue.build()); } return this; } @@ -4305,24 +4341,24 @@ public Builder addSeverityPerDestination( * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ - public Builder addSeverityPerDestination( + public Builder addSeverityPerReportingContext( int index, com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination.Builder + .IssueSeverityPerReportingContext.Builder builderForValue) { - if (severityPerDestinationBuilder_ == null) { - ensureSeverityPerDestinationIsMutable(); - severityPerDestination_.add(index, builderForValue.build()); + if (severityPerReportingContextBuilder_ == null) { + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.add(index, builderForValue.build()); onChanged(); } else { - severityPerDestinationBuilder_.addMessage(index, builderForValue.build()); + severityPerReportingContextBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -4330,25 +4366,26 @@ public Builder addSeverityPerDestination( * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ - public Builder addAllSeverityPerDestination( + public Builder addAllSeverityPerReportingContext( java.lang.Iterable< ? extends com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination> + .ItemIssueSeverity.IssueSeverityPerReportingContext> values) { - if (severityPerDestinationBuilder_ == null) { - ensureSeverityPerDestinationIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, severityPerDestination_); + if (severityPerReportingContextBuilder_ == null) { + ensureSeverityPerReportingContextIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, severityPerReportingContext_); onChanged(); } else { - severityPerDestinationBuilder_.addAllMessages(values); + severityPerReportingContextBuilder_.addAllMessages(values); } return this; } @@ -4356,20 +4393,20 @@ public Builder addAllSeverityPerDestination( * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ - public Builder clearSeverityPerDestination() { - if (severityPerDestinationBuilder_ == null) { - severityPerDestination_ = java.util.Collections.emptyList(); + public Builder clearSeverityPerReportingContext() { + if (severityPerReportingContextBuilder_ == null) { + severityPerReportingContext_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { - severityPerDestinationBuilder_.clear(); + severityPerReportingContextBuilder_.clear(); } return this; } @@ -4377,20 +4414,20 @@ public Builder clearSeverityPerDestination() { * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ - public Builder removeSeverityPerDestination(int index) { - if (severityPerDestinationBuilder_ == null) { - ensureSeverityPerDestinationIsMutable(); - severityPerDestination_.remove(index); + public Builder removeSeverityPerReportingContext(int index) { + if (severityPerReportingContextBuilder_ == null) { + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.remove(index); onChanged(); } else { - severityPerDestinationBuilder_.remove(index); + severityPerReportingContextBuilder_.remove(index); } return this; } @@ -4398,141 +4435,141 @@ public Builder removeSeverityPerDestination(int index) { * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ public com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination.Builder - getSeverityPerDestinationBuilder(int index) { - return getSeverityPerDestinationFieldBuilder().getBuilder(index); + .IssueSeverityPerReportingContext.Builder + getSeverityPerReportingContextBuilder(int index) { + return getSeverityPerReportingContextFieldBuilder().getBuilder(index); } /** * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ public com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestinationOrBuilder - getSeverityPerDestinationOrBuilder(int index) { - if (severityPerDestinationBuilder_ == null) { - return severityPerDestination_.get(index); + .IssueSeverityPerReportingContextOrBuilder + getSeverityPerReportingContextOrBuilder(int index) { + if (severityPerReportingContextBuilder_ == null) { + return severityPerReportingContext_.get(index); } else { - return severityPerDestinationBuilder_.getMessageOrBuilder(index); + return severityPerReportingContextBuilder_.getMessageOrBuilder(index); } } /** * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ public java.util.List< ? extends com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestinationOrBuilder> - getSeverityPerDestinationOrBuilderList() { - if (severityPerDestinationBuilder_ != null) { - return severityPerDestinationBuilder_.getMessageOrBuilderList(); + .ItemIssueSeverity.IssueSeverityPerReportingContextOrBuilder> + getSeverityPerReportingContextOrBuilderList() { + if (severityPerReportingContextBuilder_ != null) { + return severityPerReportingContextBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(severityPerDestination_); + return java.util.Collections.unmodifiableList(severityPerReportingContext_); } } /** * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ public com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination.Builder - addSeverityPerDestinationBuilder() { - return getSeverityPerDestinationFieldBuilder() + .IssueSeverityPerReportingContext.Builder + addSeverityPerReportingContextBuilder() { + return getSeverityPerReportingContextFieldBuilder() .addBuilder( com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination.getDefaultInstance()); + .ItemIssueSeverity.IssueSeverityPerReportingContext.getDefaultInstance()); } /** * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ public com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination.Builder - addSeverityPerDestinationBuilder(int index) { - return getSeverityPerDestinationFieldBuilder() + .IssueSeverityPerReportingContext.Builder + addSeverityPerReportingContextBuilder(int index) { + return getSeverityPerReportingContextFieldBuilder() .addBuilder( index, com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination.getDefaultInstance()); + .ItemIssueSeverity.IssueSeverityPerReportingContext.getDefaultInstance()); } /** * * *
-         * Issue severity per destination.
+         * Issue severity per reporting context.
          * 
* * - * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerDestination severity_per_destination = 1; + * repeated .google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; * */ public java.util.List< com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination.Builder> - getSeverityPerDestinationBuilderList() { - return getSeverityPerDestinationFieldBuilder().getBuilderList(); + .IssueSeverityPerReportingContext.Builder> + getSeverityPerReportingContextBuilderList() { + return getSeverityPerReportingContextFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination, + .IssueSeverityPerReportingContext, com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestination.Builder, + .IssueSeverityPerReportingContext.Builder, com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity - .IssueSeverityPerDestinationOrBuilder> - getSeverityPerDestinationFieldBuilder() { - if (severityPerDestinationBuilder_ == null) { - severityPerDestinationBuilder_ = + .IssueSeverityPerReportingContextOrBuilder> + getSeverityPerReportingContextFieldBuilder() { + if (severityPerReportingContextBuilder_ == null) { + severityPerReportingContextBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination, + .ItemIssueSeverity.IssueSeverityPerReportingContext, com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestination.Builder, + .ItemIssueSeverity.IssueSeverityPerReportingContext.Builder, com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue - .ItemIssueSeverity.IssueSeverityPerDestinationOrBuilder>( - severityPerDestination_, + .ItemIssueSeverity.IssueSeverityPerReportingContextOrBuilder>( + severityPerReportingContext_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - severityPerDestination_ = null; + severityPerReportingContext_ = null; } - return severityPerDestinationBuilder_; + return severityPerReportingContextBuilder_; } private int aggregatedSeverity_ = 0; @@ -4540,7 +4577,7 @@ public Builder removeSeverityPerDestination(int index) { * * *
-         * Aggregated severity of the issue for all destinations it affects.
+         * Aggregated severity of the issue for all reporting contexts it affects.
          *
          * **This field can be used for filtering the results.**
          * 
@@ -4559,7 +4596,7 @@ public boolean hasAggregatedSeverity() { * * *
-         * Aggregated severity of the issue for all destinations it affects.
+         * Aggregated severity of the issue for all reporting contexts it affects.
          *
          * **This field can be used for filtering the results.**
          * 
@@ -4578,7 +4615,7 @@ public int getAggregatedSeverityValue() { * * *
-         * Aggregated severity of the issue for all destinations it affects.
+         * Aggregated severity of the issue for all reporting contexts it affects.
          *
          * **This field can be used for filtering the results.**
          * 
@@ -4600,7 +4637,7 @@ public Builder setAggregatedSeverityValue(int value) { * * *
-         * Aggregated severity of the issue for all destinations it affects.
+         * Aggregated severity of the issue for all reporting contexts it affects.
          *
          * **This field can be used for filtering the results.**
          * 
@@ -4629,7 +4666,7 @@ public Builder setAggregatedSeverityValue(int value) { * * *
-         * Aggregated severity of the issue for all destinations it affects.
+         * Aggregated severity of the issue for all reporting contexts it affects.
          *
          * **This field can be used for filtering the results.**
          * 
@@ -4657,7 +4694,7 @@ public Builder setAggregatedSeverity( * * *
-         * Aggregated severity of the issue for all destinations it affects.
+         * Aggregated severity of the issue for all reporting contexts it affects.
          *
          * **This field can be used for filtering the results.**
          * 
@@ -5994,9 +6031,9 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId.
-   * Merchant API methods that operate on products take this as their `name`
-   * parameter.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+   * on products take this as their `name` parameter.
    *
    * Required in the `SELECT` clause.
    * 
@@ -6013,9 +6050,9 @@ public boolean hasId() { * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId.
-   * Merchant API methods that operate on products take this as their `name`
-   * parameter.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+   * on products take this as their `name` parameter.
    *
    * Required in the `SELECT` clause.
    * 
@@ -6040,9 +6077,9 @@ public java.lang.String getId() { * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId.
-   * Merchant API methods that operate on products take this as their `name`
-   * parameter.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+   * on products take this as their `name` parameter.
    *
    * Required in the `SELECT` clause.
    * 
@@ -6064,6 +6101,56 @@ public com.google.protobuf.ByteString getIdBytes() { } } + public static final int CHANNEL_FIELD_NUMBER = 28; + private int channel_ = 0; + /** + * + * + *
+   * Channel of the product. Can be `ONLINE` or `LOCAL`.
+   * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return Whether the channel field is set. + */ + @java.lang.Override + public boolean hasChannel() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Channel of the product. Can be `ONLINE` or `LOCAL`.
+   * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+   * Channel of the product. Can be `ONLINE` or `LOCAL`.
+   * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return The channel. + */ + @java.lang.Override + public com.google.shopping.type.Channel.ChannelEnum getChannel() { + com.google.shopping.type.Channel.ChannelEnum result = + com.google.shopping.type.Channel.ChannelEnum.forNumber(channel_); + return result == null ? com.google.shopping.type.Channel.ChannelEnum.UNRECOGNIZED : result; + } + public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -6081,7 +6168,7 @@ public com.google.protobuf.ByteString getIdBytes() { */ @java.lang.Override public boolean hasLanguageCode() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -6147,7 +6234,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { */ @java.lang.Override public boolean hasFeedLabel() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -6213,7 +6300,7 @@ public com.google.protobuf.ByteString getFeedLabelBytes() { */ @java.lang.Override public boolean hasOfferId() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -6279,7 +6366,7 @@ public com.google.protobuf.ByteString getOfferIdBytes() { */ @java.lang.Override public boolean hasTitle() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -6345,7 +6432,7 @@ public com.google.protobuf.ByteString getTitleBytes() { */ @java.lang.Override public boolean hasBrand() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -6412,7 +6499,7 @@ public com.google.protobuf.ByteString getBrandBytes() { */ @java.lang.Override public boolean hasCategoryL1() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -6481,7 +6568,7 @@ public com.google.protobuf.ByteString getCategoryL1Bytes() { */ @java.lang.Override public boolean hasCategoryL2() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -6550,7 +6637,7 @@ public com.google.protobuf.ByteString getCategoryL2Bytes() { */ @java.lang.Override public boolean hasCategoryL3() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -6619,7 +6706,7 @@ public com.google.protobuf.ByteString getCategoryL3Bytes() { */ @java.lang.Override public boolean hasCategoryL4() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -6688,7 +6775,7 @@ public com.google.protobuf.ByteString getCategoryL4Bytes() { */ @java.lang.Override public boolean hasCategoryL5() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -6757,7 +6844,7 @@ public com.google.protobuf.ByteString getCategoryL5Bytes() { */ @java.lang.Override public boolean hasProductTypeL1() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -6826,7 +6913,7 @@ public com.google.protobuf.ByteString getProductTypeL1Bytes() { */ @java.lang.Override public boolean hasProductTypeL2() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -6895,7 +6982,7 @@ public com.google.protobuf.ByteString getProductTypeL2Bytes() { */ @java.lang.Override public boolean hasProductTypeL3() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -6964,7 +7051,7 @@ public com.google.protobuf.ByteString getProductTypeL3Bytes() { */ @java.lang.Override public boolean hasProductTypeL4() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -7033,7 +7120,7 @@ public com.google.protobuf.ByteString getProductTypeL4Bytes() { */ @java.lang.Override public boolean hasProductTypeL5() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -7151,7 +7238,7 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { */ @java.lang.Override public boolean hasCondition() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** * @@ -7220,7 +7307,7 @@ public com.google.protobuf.ByteString getConditionBytes() { */ @java.lang.Override public boolean hasAvailability() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -7290,7 +7377,7 @@ public com.google.protobuf.ByteString getAvailabilityBytes() { */ @java.lang.Override public boolean hasShippingLabel() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** * @@ -7424,7 +7511,7 @@ public com.google.protobuf.ByteString getGtinBytes(int index) { */ @java.lang.Override public boolean hasItemGroupId() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** * @@ -7491,7 +7578,7 @@ public com.google.protobuf.ByteString getItemGroupIdBytes() { */ @java.lang.Override public boolean hasThumbnailLink() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** * @@ -7638,63 +7725,64 @@ public com.google.type.DateOrBuilder getExpirationDateOrBuilder() { return expirationDate_ == null ? com.google.type.Date.getDefaultInstance() : expirationDate_; } - public static final int AGGREGATED_DESTINATION_STATUS_FIELD_NUMBER = 26; - private int aggregatedDestinationStatus_ = 0; + public static final int AGGREGATED_REPORTING_CONTEXT_STATUS_FIELD_NUMBER = 26; + private int aggregatedReportingContextStatus_ = 0; /** * * *
-   * Aggregated destination status.
+   * Aggregated status.
    * 
* * - * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus aggregated_destination_status = 26; + * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; * * - * @return Whether the aggregatedDestinationStatus field is set. + * @return Whether the aggregatedReportingContextStatus field is set. */ @java.lang.Override - public boolean hasAggregatedDestinationStatus() { - return ((bitField0_ & 0x00200000) != 0); + public boolean hasAggregatedReportingContextStatus() { + return ((bitField0_ & 0x00400000) != 0); } /** * * *
-   * Aggregated destination status.
+   * Aggregated status.
    * 
* * - * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus aggregated_destination_status = 26; + * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; * * - * @return The enum numeric value on the wire for aggregatedDestinationStatus. + * @return The enum numeric value on the wire for aggregatedReportingContextStatus. */ @java.lang.Override - public int getAggregatedDestinationStatusValue() { - return aggregatedDestinationStatus_; + public int getAggregatedReportingContextStatusValue() { + return aggregatedReportingContextStatus_; } /** * * *
-   * Aggregated destination status.
+   * Aggregated status.
    * 
* * - * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus aggregated_destination_status = 26; + * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; * * - * @return The aggregatedDestinationStatus. + * @return The aggregatedReportingContextStatus. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus - getAggregatedDestinationStatus() { - com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus result = - com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus - .forNumber(aggregatedDestinationStatus_); + public com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus + getAggregatedReportingContextStatus() { + com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus + result = + com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus + .forNumber(aggregatedReportingContextStatus_); return result == null - ? com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus + ? com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus .UNRECOGNIZED : result; } @@ -7827,70 +7915,70 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, feedLabel_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, offerId_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, title_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, brand_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, categoryL1_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, categoryL2_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, categoryL3_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, categoryL4_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, categoryL5_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, productTypeL1_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, productTypeL2_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, productTypeL3_); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, productTypeL4_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, productTypeL5_); } if (price_ != null) { output.writeMessage(17, getPrice()); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, condition_); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, availability_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, shippingLabel_); } for (int i = 0; i < gtin_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, gtin_.getRaw(i)); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 22, itemGroupId_); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 23, thumbnailLink_); } if (creationTime_ != null) { @@ -7899,12 +7987,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (expirationDate_ != null) { output.writeMessage(25, getExpirationDate()); } - if (((bitField0_ & 0x00200000) != 0)) { - output.writeEnum(26, aggregatedDestinationStatus_); + if (((bitField0_ & 0x00400000) != 0)) { + output.writeEnum(26, aggregatedReportingContextStatus_); } for (int i = 0; i < itemIssues_.size(); i++) { output.writeMessage(27, itemIssues_.get(i)); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(28, channel_); + } getUnknownFields().writeTo(output); } @@ -7917,61 +8008,61 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, feedLabel_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, offerId_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, title_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, brand_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, categoryL1_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, categoryL2_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, categoryL3_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, categoryL4_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, categoryL5_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, productTypeL1_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, productTypeL2_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, productTypeL3_); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, productTypeL4_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, productTypeL5_); } if (price_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getPrice()); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, condition_); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, availability_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, shippingLabel_); } { @@ -7982,10 +8073,10 @@ public int getSerializedSize() { size += dataSize; size += 2 * getGtinList().size(); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, itemGroupId_); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, thumbnailLink_); } if (creationTime_ != null) { @@ -7994,13 +8085,17 @@ public int getSerializedSize() { if (expirationDate_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getExpirationDate()); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { size += - com.google.protobuf.CodedOutputStream.computeEnumSize(26, aggregatedDestinationStatus_); + com.google.protobuf.CodedOutputStream.computeEnumSize( + 26, aggregatedReportingContextStatus_); } for (int i = 0; i < itemIssues_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, itemIssues_.get(i)); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(28, channel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8021,6 +8116,10 @@ public boolean equals(final java.lang.Object obj) { if (hasId()) { if (!getId().equals(other.getId())) return false; } + if (hasChannel() != other.hasChannel()) return false; + if (hasChannel()) { + if (channel_ != other.channel_) return false; + } if (hasLanguageCode() != other.hasLanguageCode()) return false; if (hasLanguageCode()) { if (!getLanguageCode().equals(other.getLanguageCode())) return false; @@ -8114,9 +8213,11 @@ public boolean equals(final java.lang.Object obj) { if (hasExpirationDate()) { if (!getExpirationDate().equals(other.getExpirationDate())) return false; } - if (hasAggregatedDestinationStatus() != other.hasAggregatedDestinationStatus()) return false; - if (hasAggregatedDestinationStatus()) { - if (aggregatedDestinationStatus_ != other.aggregatedDestinationStatus_) return false; + if (hasAggregatedReportingContextStatus() != other.hasAggregatedReportingContextStatus()) + return false; + if (hasAggregatedReportingContextStatus()) { + if (aggregatedReportingContextStatus_ != other.aggregatedReportingContextStatus_) + return false; } if (!getItemIssuesList().equals(other.getItemIssuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -8134,6 +8235,10 @@ public int hashCode() { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } + if (hasChannel()) { + hash = (37 * hash) + CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + channel_; + } if (hasLanguageCode()) { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); @@ -8230,9 +8335,9 @@ public int hashCode() { hash = (37 * hash) + EXPIRATION_DATE_FIELD_NUMBER; hash = (53 * hash) + getExpirationDate().hashCode(); } - if (hasAggregatedDestinationStatus()) { - hash = (37 * hash) + AGGREGATED_DESTINATION_STATUS_FIELD_NUMBER; - hash = (53 * hash) + aggregatedDestinationStatus_; + if (hasAggregatedReportingContextStatus()) { + hash = (37 * hash) + AGGREGATED_REPORTING_CONTEXT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + aggregatedReportingContextStatus_; } if (getItemIssuesCount() > 0) { hash = (37 * hash) + ITEM_ISSUES_FIELD_NUMBER; @@ -8389,6 +8494,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; + channel_ = 0; languageCode_ = ""; feedLabel_ = ""; offerId_ = ""; @@ -8425,14 +8531,14 @@ public Builder clear() { expirationDateBuilder_.dispose(); expirationDateBuilder_ = null; } - aggregatedDestinationStatus_ = 0; + aggregatedReportingContextStatus_ = 0; if (itemIssuesBuilder_ == null) { itemIssues_ = java.util.Collections.emptyList(); } else { itemIssues_ = null; itemIssuesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); return this; } @@ -8471,9 +8577,9 @@ public com.google.shopping.merchant.reports.v1beta.ProductView buildPartial() { private void buildPartialRepeatedFields( com.google.shopping.merchant.reports.v1beta.ProductView result) { if (itemIssuesBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { itemIssues_ = java.util.Collections.unmodifiableList(itemIssues_); - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); } result.itemIssues_ = itemIssues_; } else { @@ -8489,103 +8595,107 @@ private void buildPartial0(com.google.shopping.merchant.reports.v1beta.ProductVi to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.languageCode_ = languageCode_; + result.channel_ = channel_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.feedLabel_ = feedLabel_; + result.languageCode_ = languageCode_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.offerId_ = offerId_; + result.feedLabel_ = feedLabel_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.title_ = title_; + result.offerId_ = offerId_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.brand_ = brand_; + result.title_ = title_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.categoryL1_ = categoryL1_; + result.brand_ = brand_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.categoryL2_ = categoryL2_; + result.categoryL1_ = categoryL1_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.categoryL3_ = categoryL3_; + result.categoryL2_ = categoryL2_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.categoryL4_ = categoryL4_; + result.categoryL3_ = categoryL3_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.categoryL5_ = categoryL5_; + result.categoryL4_ = categoryL4_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.productTypeL1_ = productTypeL1_; + result.categoryL5_ = categoryL5_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.productTypeL2_ = productTypeL2_; + result.productTypeL1_ = productTypeL1_; to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00002000) != 0)) { - result.productTypeL3_ = productTypeL3_; + result.productTypeL2_ = productTypeL2_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.productTypeL4_ = productTypeL4_; + result.productTypeL3_ = productTypeL3_; to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.productTypeL5_ = productTypeL5_; + result.productTypeL4_ = productTypeL4_; to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.price_ = priceBuilder_ == null ? price_ : priceBuilder_.build(); + result.productTypeL5_ = productTypeL5_; + to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x00020000) != 0)) { - result.condition_ = condition_; - to_bitField0_ |= 0x00010000; + result.price_ = priceBuilder_ == null ? price_ : priceBuilder_.build(); } if (((from_bitField0_ & 0x00040000) != 0)) { - result.availability_ = availability_; + result.condition_ = condition_; to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x00080000) != 0)) { - result.shippingLabel_ = shippingLabel_; + result.availability_ = availability_; to_bitField0_ |= 0x00040000; } if (((from_bitField0_ & 0x00100000) != 0)) { - gtin_.makeImmutable(); - result.gtin_ = gtin_; + result.shippingLabel_ = shippingLabel_; + to_bitField0_ |= 0x00080000; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.itemGroupId_ = itemGroupId_; - to_bitField0_ |= 0x00080000; + gtin_.makeImmutable(); + result.gtin_ = gtin_; } if (((from_bitField0_ & 0x00400000) != 0)) { - result.thumbnailLink_ = thumbnailLink_; + result.itemGroupId_ = itemGroupId_; to_bitField0_ |= 0x00100000; } if (((from_bitField0_ & 0x00800000) != 0)) { + result.thumbnailLink_ = thumbnailLink_; + to_bitField0_ |= 0x00200000; + } + if (((from_bitField0_ & 0x01000000) != 0)) { result.creationTime_ = creationTimeBuilder_ == null ? creationTime_ : creationTimeBuilder_.build(); } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.expirationDate_ = expirationDateBuilder_ == null ? expirationDate_ : expirationDateBuilder_.build(); } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.aggregatedDestinationStatus_ = aggregatedDestinationStatus_; - to_bitField0_ |= 0x00200000; + if (((from_bitField0_ & 0x04000000) != 0)) { + result.aggregatedReportingContextStatus_ = aggregatedReportingContextStatus_; + to_bitField0_ |= 0x00400000; } result.bitField0_ |= to_bitField0_; } @@ -8641,79 +8751,82 @@ public Builder mergeFrom(com.google.shopping.merchant.reports.v1beta.ProductView bitField0_ |= 0x00000001; onChanged(); } + if (other.hasChannel()) { + setChannel(other.getChannel()); + } if (other.hasLanguageCode()) { languageCode_ = other.languageCode_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasFeedLabel()) { feedLabel_ = other.feedLabel_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasOfferId()) { offerId_ = other.offerId_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasTitle()) { title_ = other.title_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasBrand()) { brand_ = other.brand_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasCategoryL1()) { categoryL1_ = other.categoryL1_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasCategoryL2()) { categoryL2_ = other.categoryL2_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasCategoryL3()) { categoryL3_ = other.categoryL3_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasCategoryL4()) { categoryL4_ = other.categoryL4_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasCategoryL5()) { categoryL5_ = other.categoryL5_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (other.hasProductTypeL1()) { productTypeL1_ = other.productTypeL1_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (other.hasProductTypeL2()) { productTypeL2_ = other.productTypeL2_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (other.hasProductTypeL3()) { productTypeL3_ = other.productTypeL3_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (other.hasProductTypeL4()) { productTypeL4_ = other.productTypeL4_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (other.hasProductTypeL5()) { productTypeL5_ = other.productTypeL5_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } if (other.hasPrice()) { @@ -8721,23 +8834,23 @@ public Builder mergeFrom(com.google.shopping.merchant.reports.v1beta.ProductView } if (other.hasCondition()) { condition_ = other.condition_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } if (other.hasAvailability()) { availability_ = other.availability_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } if (other.hasShippingLabel()) { shippingLabel_ = other.shippingLabel_; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } if (!other.gtin_.isEmpty()) { if (gtin_.isEmpty()) { gtin_ = other.gtin_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; } else { ensureGtinIsMutable(); gtin_.addAll(other.gtin_); @@ -8746,12 +8859,12 @@ public Builder mergeFrom(com.google.shopping.merchant.reports.v1beta.ProductView } if (other.hasItemGroupId()) { itemGroupId_ = other.itemGroupId_; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } if (other.hasThumbnailLink()) { thumbnailLink_ = other.thumbnailLink_; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } if (other.hasCreationTime()) { @@ -8760,14 +8873,14 @@ public Builder mergeFrom(com.google.shopping.merchant.reports.v1beta.ProductView if (other.hasExpirationDate()) { mergeExpirationDate(other.getExpirationDate()); } - if (other.hasAggregatedDestinationStatus()) { - setAggregatedDestinationStatus(other.getAggregatedDestinationStatus()); + if (other.hasAggregatedReportingContextStatus()) { + setAggregatedReportingContextStatus(other.getAggregatedReportingContextStatus()); } if (itemIssuesBuilder_ == null) { if (!other.itemIssues_.isEmpty()) { if (itemIssues_.isEmpty()) { itemIssues_ = other.itemIssues_; - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); } else { ensureItemIssuesIsMutable(); itemIssues_.addAll(other.itemIssues_); @@ -8780,7 +8893,7 @@ public Builder mergeFrom(com.google.shopping.merchant.reports.v1beta.ProductView itemIssuesBuilder_.dispose(); itemIssuesBuilder_ = null; itemIssues_ = other.itemIssues_; - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); itemIssuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getItemIssuesFieldBuilder() @@ -8825,115 +8938,115 @@ public Builder mergeFrom( case 18: { languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 26: { feedLabel_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: { offerId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 case 42: { title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 case 50: { brand_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 case 58: { categoryL1_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 58 case 66: { categoryL2_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 66 case 74: { categoryL3_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 74 case 82: { categoryL4_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 82 case 90: { categoryL5_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 90 case 98: { productTypeL1_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 98 case 106: { productTypeL2_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 106 case 114: { productTypeL3_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 114 case 122: { productTypeL4_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 122 case 130: { productTypeL5_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 130 case 138: { input.readMessage(getPriceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 138 case 146: { condition_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 146 case 154: { availability_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 154 case 162: { shippingLabel_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 162 case 170: @@ -8946,31 +9059,31 @@ public Builder mergeFrom( case 178: { itemGroupId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 178 case 186: { thumbnailLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 186 case 194: { input.readMessage(getCreationTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 194 case 202: { input.readMessage(getExpirationDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } // case 202 case 208: { - aggregatedDestinationStatus_ = input.readEnum(); - bitField0_ |= 0x02000000; + aggregatedReportingContextStatus_ = input.readEnum(); + bitField0_ |= 0x04000000; break; } // case 208 case 218: @@ -8987,6 +9100,12 @@ public Builder mergeFrom( } break; } // case 218 + case 224: + { + channel_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 224 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9011,9 +9130,9 @@ public Builder mergeFrom( * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId.
-     * Merchant API methods that operate on products take this as their `name`
-     * parameter.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+     * on products take this as their `name` parameter.
      *
      * Required in the `SELECT` clause.
      * 
@@ -9029,9 +9148,9 @@ public boolean hasId() { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId.
-     * Merchant API methods that operate on products take this as their `name`
-     * parameter.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+     * on products take this as their `name` parameter.
      *
      * Required in the `SELECT` clause.
      * 
@@ -9055,9 +9174,9 @@ public java.lang.String getId() { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId.
-     * Merchant API methods that operate on products take this as their `name`
-     * parameter.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+     * on products take this as their `name` parameter.
      *
      * Required in the `SELECT` clause.
      * 
@@ -9081,9 +9200,9 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId.
-     * Merchant API methods that operate on products take this as their `name`
-     * parameter.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+     * on products take this as their `name` parameter.
      *
      * Required in the `SELECT` clause.
      * 
@@ -9106,9 +9225,9 @@ public Builder setId(java.lang.String value) { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId.
-     * Merchant API methods that operate on products take this as their `name`
-     * parameter.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+     * on products take this as their `name` parameter.
      *
      * Required in the `SELECT` clause.
      * 
@@ -9127,9 +9246,9 @@ public Builder clearId() { * * *
-     * REST ID of the product, in the form of languageCode~feedLabel~offerId.
-     * Merchant API methods that operate on products take this as their `name`
-     * parameter.
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+     * on products take this as their `name` parameter.
      *
      * Required in the `SELECT` clause.
      * 
@@ -9150,6 +9269,111 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { return this; } + private int channel_ = 0; + /** + * + * + *
+     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return Whether the channel field is set. + */ + @java.lang.Override + public boolean hasChannel() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @param value The enum numeric value on the wire for channel to set. + * @return This builder for chaining. + */ + public Builder setChannelValue(int value) { + channel_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return The channel. + */ + @java.lang.Override + public com.google.shopping.type.Channel.ChannelEnum getChannel() { + com.google.shopping.type.Channel.ChannelEnum result = + com.google.shopping.type.Channel.ChannelEnum.forNumber(channel_); + return result == null ? com.google.shopping.type.Channel.ChannelEnum.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(com.google.shopping.type.Channel.ChannelEnum value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + channel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return This builder for chaining. + */ + public Builder clearChannel() { + bitField0_ = (bitField0_ & ~0x00000002); + channel_ = 0; + onChanged(); + return this; + } + private java.lang.Object languageCode_ = ""; /** * @@ -9163,7 +9387,7 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * @return Whether the languageCode field is set. */ public boolean hasLanguageCode() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -9226,7 +9450,7 @@ public Builder setLanguageCode(java.lang.String value) { throw new NullPointerException(); } languageCode_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -9243,7 +9467,7 @@ public Builder setLanguageCode(java.lang.String value) { */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -9265,7 +9489,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); languageCode_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -9283,7 +9507,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * @return Whether the feedLabel field is set. */ public boolean hasFeedLabel() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -9346,7 +9570,7 @@ public Builder setFeedLabel(java.lang.String value) { throw new NullPointerException(); } feedLabel_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -9363,7 +9587,7 @@ public Builder setFeedLabel(java.lang.String value) { */ public Builder clearFeedLabel() { feedLabel_ = getDefaultInstance().getFeedLabel(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -9385,7 +9609,7 @@ public Builder setFeedLabelBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); feedLabel_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -9403,7 +9627,7 @@ public Builder setFeedLabelBytes(com.google.protobuf.ByteString value) { * @return Whether the offerId field is set. */ public boolean hasOfferId() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -9466,7 +9690,7 @@ public Builder setOfferId(java.lang.String value) { throw new NullPointerException(); } offerId_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -9483,7 +9707,7 @@ public Builder setOfferId(java.lang.String value) { */ public Builder clearOfferId() { offerId_ = getDefaultInstance().getOfferId(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -9505,7 +9729,7 @@ public Builder setOfferIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); offerId_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -9523,7 +9747,7 @@ public Builder setOfferIdBytes(com.google.protobuf.ByteString value) { * @return Whether the title field is set. */ public boolean hasTitle() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -9586,7 +9810,7 @@ public Builder setTitle(java.lang.String value) { throw new NullPointerException(); } title_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -9603,7 +9827,7 @@ public Builder setTitle(java.lang.String value) { */ public Builder clearTitle() { title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -9625,7 +9849,7 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); title_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -9643,7 +9867,7 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { * @return Whether the brand field is set. */ public boolean hasBrand() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -9706,7 +9930,7 @@ public Builder setBrand(java.lang.String value) { throw new NullPointerException(); } brand_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -9723,7 +9947,7 @@ public Builder setBrand(java.lang.String value) { */ public Builder clearBrand() { brand_ = getDefaultInstance().getBrand(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -9745,7 +9969,7 @@ public Builder setBrandBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); brand_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -9764,7 +9988,7 @@ public Builder setBrandBytes(com.google.protobuf.ByteString value) { * @return Whether the categoryL1 field is set. */ public boolean hasCategoryL1() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -9830,7 +10054,7 @@ public Builder setCategoryL1(java.lang.String value) { throw new NullPointerException(); } categoryL1_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -9848,7 +10072,7 @@ public Builder setCategoryL1(java.lang.String value) { */ public Builder clearCategoryL1() { categoryL1_ = getDefaultInstance().getCategoryL1(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -9871,7 +10095,7 @@ public Builder setCategoryL1Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); categoryL1_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -9890,7 +10114,7 @@ public Builder setCategoryL1Bytes(com.google.protobuf.ByteString value) { * @return Whether the categoryL2 field is set. */ public boolean hasCategoryL2() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -9956,7 +10180,7 @@ public Builder setCategoryL2(java.lang.String value) { throw new NullPointerException(); } categoryL2_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -9974,7 +10198,7 @@ public Builder setCategoryL2(java.lang.String value) { */ public Builder clearCategoryL2() { categoryL2_ = getDefaultInstance().getCategoryL2(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -9997,7 +10221,7 @@ public Builder setCategoryL2Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); categoryL2_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -10016,7 +10240,7 @@ public Builder setCategoryL2Bytes(com.google.protobuf.ByteString value) { * @return Whether the categoryL3 field is set. */ public boolean hasCategoryL3() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -10082,7 +10306,7 @@ public Builder setCategoryL3(java.lang.String value) { throw new NullPointerException(); } categoryL3_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -10100,7 +10324,7 @@ public Builder setCategoryL3(java.lang.String value) { */ public Builder clearCategoryL3() { categoryL3_ = getDefaultInstance().getCategoryL3(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -10123,7 +10347,7 @@ public Builder setCategoryL3Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); categoryL3_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -10142,7 +10366,7 @@ public Builder setCategoryL3Bytes(com.google.protobuf.ByteString value) { * @return Whether the categoryL4 field is set. */ public boolean hasCategoryL4() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -10208,7 +10432,7 @@ public Builder setCategoryL4(java.lang.String value) { throw new NullPointerException(); } categoryL4_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -10226,7 +10450,7 @@ public Builder setCategoryL4(java.lang.String value) { */ public Builder clearCategoryL4() { categoryL4_ = getDefaultInstance().getCategoryL4(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -10249,7 +10473,7 @@ public Builder setCategoryL4Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); categoryL4_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -10268,7 +10492,7 @@ public Builder setCategoryL4Bytes(com.google.protobuf.ByteString value) { * @return Whether the categoryL5 field is set. */ public boolean hasCategoryL5() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -10334,7 +10558,7 @@ public Builder setCategoryL5(java.lang.String value) { throw new NullPointerException(); } categoryL5_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -10352,7 +10576,7 @@ public Builder setCategoryL5(java.lang.String value) { */ public Builder clearCategoryL5() { categoryL5_ = getDefaultInstance().getCategoryL5(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -10375,7 +10599,7 @@ public Builder setCategoryL5Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); categoryL5_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -10394,7 +10618,7 @@ public Builder setCategoryL5Bytes(com.google.protobuf.ByteString value) { * @return Whether the productTypeL1 field is set. */ public boolean hasProductTypeL1() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -10460,7 +10684,7 @@ public Builder setProductTypeL1(java.lang.String value) { throw new NullPointerException(); } productTypeL1_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -10478,7 +10702,7 @@ public Builder setProductTypeL1(java.lang.String value) { */ public Builder clearProductTypeL1() { productTypeL1_ = getDefaultInstance().getProductTypeL1(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -10501,7 +10725,7 @@ public Builder setProductTypeL1Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); productTypeL1_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -10520,7 +10744,7 @@ public Builder setProductTypeL1Bytes(com.google.protobuf.ByteString value) { * @return Whether the productTypeL2 field is set. */ public boolean hasProductTypeL2() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -10586,7 +10810,7 @@ public Builder setProductTypeL2(java.lang.String value) { throw new NullPointerException(); } productTypeL2_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -10604,7 +10828,7 @@ public Builder setProductTypeL2(java.lang.String value) { */ public Builder clearProductTypeL2() { productTypeL2_ = getDefaultInstance().getProductTypeL2(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -10627,7 +10851,7 @@ public Builder setProductTypeL2Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); productTypeL2_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -10646,7 +10870,7 @@ public Builder setProductTypeL2Bytes(com.google.protobuf.ByteString value) { * @return Whether the productTypeL3 field is set. */ public boolean hasProductTypeL3() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -10712,7 +10936,7 @@ public Builder setProductTypeL3(java.lang.String value) { throw new NullPointerException(); } productTypeL3_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -10730,7 +10954,7 @@ public Builder setProductTypeL3(java.lang.String value) { */ public Builder clearProductTypeL3() { productTypeL3_ = getDefaultInstance().getProductTypeL3(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -10753,7 +10977,7 @@ public Builder setProductTypeL3Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); productTypeL3_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -10772,7 +10996,7 @@ public Builder setProductTypeL3Bytes(com.google.protobuf.ByteString value) { * @return Whether the productTypeL4 field is set. */ public boolean hasProductTypeL4() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -10838,7 +11062,7 @@ public Builder setProductTypeL4(java.lang.String value) { throw new NullPointerException(); } productTypeL4_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -10856,7 +11080,7 @@ public Builder setProductTypeL4(java.lang.String value) { */ public Builder clearProductTypeL4() { productTypeL4_ = getDefaultInstance().getProductTypeL4(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -10879,7 +11103,7 @@ public Builder setProductTypeL4Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); productTypeL4_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -10898,7 +11122,7 @@ public Builder setProductTypeL4Bytes(com.google.protobuf.ByteString value) { * @return Whether the productTypeL5 field is set. */ public boolean hasProductTypeL5() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -10964,7 +11188,7 @@ public Builder setProductTypeL5(java.lang.String value) { throw new NullPointerException(); } productTypeL5_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -10982,7 +11206,7 @@ public Builder setProductTypeL5(java.lang.String value) { */ public Builder clearProductTypeL5() { productTypeL5_ = getDefaultInstance().getProductTypeL5(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -11005,7 +11229,7 @@ public Builder setProductTypeL5Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); productTypeL5_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -11029,7 +11253,7 @@ public Builder setProductTypeL5Bytes(com.google.protobuf.ByteString value) { * @return Whether the price field is set. */ public boolean hasPrice() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** * @@ -11069,7 +11293,7 @@ public Builder setPrice(com.google.shopping.type.Price value) { } else { priceBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -11089,7 +11313,7 @@ public Builder setPrice(com.google.shopping.type.Price.Builder builderForValue) } else { priceBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -11105,7 +11329,7 @@ public Builder setPrice(com.google.shopping.type.Price.Builder builderForValue) */ public Builder mergePrice(com.google.shopping.type.Price value) { if (priceBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && price_ != null && price_ != com.google.shopping.type.Price.getDefaultInstance()) { getPriceBuilder().mergeFrom(value); @@ -11115,7 +11339,7 @@ public Builder mergePrice(com.google.shopping.type.Price value) { } else { priceBuilder_.mergeFrom(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -11130,7 +11354,7 @@ public Builder mergePrice(com.google.shopping.type.Price value) { * .google.shopping.type.Price price = 17; */ public Builder clearPrice() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); price_ = null; if (priceBuilder_ != null) { priceBuilder_.dispose(); @@ -11150,7 +11374,7 @@ public Builder clearPrice() { * .google.shopping.type.Price price = 17; */ public com.google.shopping.type.Price.Builder getPriceBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return getPriceFieldBuilder().getBuilder(); } @@ -11212,7 +11436,7 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { * @return Whether the condition field is set. */ public boolean hasCondition() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -11278,7 +11502,7 @@ public Builder setCondition(java.lang.String value) { throw new NullPointerException(); } condition_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -11296,7 +11520,7 @@ public Builder setCondition(java.lang.String value) { */ public Builder clearCondition() { condition_ = getDefaultInstance().getCondition(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } @@ -11319,7 +11543,7 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); condition_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -11338,7 +11562,7 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { * @return Whether the availability field is set. */ public boolean hasAvailability() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** * @@ -11404,7 +11628,7 @@ public Builder setAvailability(java.lang.String value) { throw new NullPointerException(); } availability_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -11422,7 +11646,7 @@ public Builder setAvailability(java.lang.String value) { */ public Builder clearAvailability() { availability_ = getDefaultInstance().getAvailability(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -11445,7 +11669,7 @@ public Builder setAvailabilityBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); availability_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -11465,7 +11689,7 @@ public Builder setAvailabilityBytes(com.google.protobuf.ByteString value) { * @return Whether the shippingLabel field is set. */ public boolean hasShippingLabel() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** * @@ -11534,7 +11758,7 @@ public Builder setShippingLabel(java.lang.String value) { throw new NullPointerException(); } shippingLabel_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -11553,7 +11777,7 @@ public Builder setShippingLabel(java.lang.String value) { */ public Builder clearShippingLabel() { shippingLabel_ = getDefaultInstance().getShippingLabel(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -11577,7 +11801,7 @@ public Builder setShippingLabelBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); shippingLabel_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -11589,7 +11813,7 @@ private void ensureGtinIsMutable() { if (!gtin_.isModifiable()) { gtin_ = new com.google.protobuf.LazyStringArrayList(gtin_); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; } /** * @@ -11669,7 +11893,7 @@ public Builder setGtin(int index, java.lang.String value) { } ensureGtinIsMutable(); gtin_.set(index, value); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -11691,7 +11915,7 @@ public Builder addGtin(java.lang.String value) { } ensureGtinIsMutable(); gtin_.add(value); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -11710,7 +11934,7 @@ public Builder addGtin(java.lang.String value) { public Builder addAllGtin(java.lang.Iterable values) { ensureGtinIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gtin_); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -11727,7 +11951,7 @@ public Builder addAllGtin(java.lang.Iterable values) { */ public Builder clearGtin() { gtin_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); ; onChanged(); return this; @@ -11751,7 +11975,7 @@ public Builder addGtinBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureGtinIsMutable(); gtin_.add(value); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -11769,7 +11993,7 @@ public Builder addGtinBytes(com.google.protobuf.ByteString value) { * @return Whether the itemGroupId field is set. */ public boolean hasItemGroupId() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** * @@ -11832,7 +12056,7 @@ public Builder setItemGroupId(java.lang.String value) { throw new NullPointerException(); } itemGroupId_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -11849,7 +12073,7 @@ public Builder setItemGroupId(java.lang.String value) { */ public Builder clearItemGroupId() { itemGroupId_ = getDefaultInstance().getItemGroupId(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } @@ -11871,7 +12095,7 @@ public Builder setItemGroupIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); itemGroupId_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -11890,7 +12114,7 @@ public Builder setItemGroupIdBytes(com.google.protobuf.ByteString value) { * @return Whether the thumbnailLink field is set. */ public boolean hasThumbnailLink() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** * @@ -11956,7 +12180,7 @@ public Builder setThumbnailLink(java.lang.String value) { throw new NullPointerException(); } thumbnailLink_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -11974,7 +12198,7 @@ public Builder setThumbnailLink(java.lang.String value) { */ public Builder clearThumbnailLink() { thumbnailLink_ = getDefaultInstance().getThumbnailLink(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -11997,7 +12221,7 @@ public Builder setThumbnailLinkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); thumbnailLink_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -12020,7 +12244,7 @@ public Builder setThumbnailLinkBytes(com.google.protobuf.ByteString value) { * @return Whether the creationTime field is set. */ public boolean hasCreationTime() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** * @@ -12060,7 +12284,7 @@ public Builder setCreationTime(com.google.protobuf.Timestamp value) { } else { creationTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -12079,7 +12303,7 @@ public Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForV } else { creationTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -12094,7 +12318,7 @@ public Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForV */ public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { if (creationTimeBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) + if (((bitField0_ & 0x01000000) != 0) && creationTime_ != null && creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreationTimeBuilder().mergeFrom(value); @@ -12104,7 +12328,7 @@ public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { } else { creationTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -12118,7 +12342,7 @@ public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp creation_time = 24; */ public Builder clearCreationTime() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); creationTime_ = null; if (creationTimeBuilder_ != null) { creationTimeBuilder_.dispose(); @@ -12137,7 +12361,7 @@ public Builder clearCreationTime() { * .google.protobuf.Timestamp creation_time = 24; */ public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return getCreationTimeFieldBuilder().getBuilder(); } @@ -12201,7 +12425,7 @@ public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { * @return Whether the expirationDate field is set. */ public boolean hasExpirationDate() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** * @@ -12241,7 +12465,7 @@ public Builder setExpirationDate(com.google.type.Date value) { } else { expirationDateBuilder_.setMessage(value); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -12260,7 +12484,7 @@ public Builder setExpirationDate(com.google.type.Date.Builder builderForValue) { } else { expirationDateBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -12275,7 +12499,7 @@ public Builder setExpirationDate(com.google.type.Date.Builder builderForValue) { */ public Builder mergeExpirationDate(com.google.type.Date value) { if (expirationDateBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) + if (((bitField0_ & 0x02000000) != 0) && expirationDate_ != null && expirationDate_ != com.google.type.Date.getDefaultInstance()) { getExpirationDateBuilder().mergeFrom(value); @@ -12285,7 +12509,7 @@ public Builder mergeExpirationDate(com.google.type.Date value) { } else { expirationDateBuilder_.mergeFrom(value); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -12299,7 +12523,7 @@ public Builder mergeExpirationDate(com.google.type.Date value) { * .google.type.Date expiration_date = 25; */ public Builder clearExpirationDate() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); expirationDate_ = null; if (expirationDateBuilder_ != null) { expirationDateBuilder_.dispose(); @@ -12318,7 +12542,7 @@ public Builder clearExpirationDate() { * .google.type.Date expiration_date = 25; */ public com.google.type.Date.Builder getExpirationDateBuilder() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return getExpirationDateFieldBuilder().getBuilder(); } @@ -12362,58 +12586,58 @@ public com.google.type.DateOrBuilder getExpirationDateOrBuilder() { return expirationDateBuilder_; } - private int aggregatedDestinationStatus_ = 0; + private int aggregatedReportingContextStatus_ = 0; /** * * *
-     * Aggregated destination status.
+     * Aggregated status.
      * 
* * - * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus aggregated_destination_status = 26; + * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; * * - * @return Whether the aggregatedDestinationStatus field is set. + * @return Whether the aggregatedReportingContextStatus field is set. */ @java.lang.Override - public boolean hasAggregatedDestinationStatus() { - return ((bitField0_ & 0x02000000) != 0); + public boolean hasAggregatedReportingContextStatus() { + return ((bitField0_ & 0x04000000) != 0); } /** * * *
-     * Aggregated destination status.
+     * Aggregated status.
      * 
* * - * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus aggregated_destination_status = 26; + * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; * * - * @return The enum numeric value on the wire for aggregatedDestinationStatus. + * @return The enum numeric value on the wire for aggregatedReportingContextStatus. */ @java.lang.Override - public int getAggregatedDestinationStatusValue() { - return aggregatedDestinationStatus_; + public int getAggregatedReportingContextStatusValue() { + return aggregatedReportingContextStatus_; } /** * * *
-     * Aggregated destination status.
+     * Aggregated status.
      * 
* * - * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus aggregated_destination_status = 26; + * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; * * - * @param value The enum numeric value on the wire for aggregatedDestinationStatus to set. + * @param value The enum numeric value on the wire for aggregatedReportingContextStatus to set. * @return This builder for chaining. */ - public Builder setAggregatedDestinationStatusValue(int value) { - aggregatedDestinationStatus_ = value; - bitField0_ |= 0x02000000; + public Builder setAggregatedReportingContextStatusValue(int value) { + aggregatedReportingContextStatus_ = value; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -12421,23 +12645,24 @@ public Builder setAggregatedDestinationStatusValue(int value) { * * *
-     * Aggregated destination status.
+     * Aggregated status.
      * 
* * - * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus aggregated_destination_status = 26; + * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; * * - * @return The aggregatedDestinationStatus. + * @return The aggregatedReportingContextStatus. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus - getAggregatedDestinationStatus() { - com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus result = - com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus - .forNumber(aggregatedDestinationStatus_); + public com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus + getAggregatedReportingContextStatus() { + com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus + result = + com.google.shopping.merchant.reports.v1beta.ProductView + .AggregatedReportingContextStatus.forNumber(aggregatedReportingContextStatus_); return result == null - ? com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus + ? com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus .UNRECOGNIZED : result; } @@ -12445,23 +12670,24 @@ public Builder setAggregatedDestinationStatusValue(int value) { * * *
-     * Aggregated destination status.
+     * Aggregated status.
      * 
* * - * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus aggregated_destination_status = 26; + * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; * * - * @param value The aggregatedDestinationStatus to set. + * @param value The aggregatedReportingContextStatus to set. * @return This builder for chaining. */ - public Builder setAggregatedDestinationStatus( - com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus value) { + public Builder setAggregatedReportingContextStatus( + com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus + value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x02000000; - aggregatedDestinationStatus_ = value.getNumber(); + bitField0_ |= 0x04000000; + aggregatedReportingContextStatus_ = value.getNumber(); onChanged(); return this; } @@ -12469,18 +12695,18 @@ public Builder setAggregatedDestinationStatus( * * *
-     * Aggregated destination status.
+     * Aggregated status.
      * 
* * - * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus aggregated_destination_status = 26; + * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; * * * @return This builder for chaining. */ - public Builder clearAggregatedDestinationStatus() { - bitField0_ = (bitField0_ & ~0x02000000); - aggregatedDestinationStatus_ = 0; + public Builder clearAggregatedReportingContextStatus() { + bitField0_ = (bitField0_ & ~0x04000000); + aggregatedReportingContextStatus_ = 0; onChanged(); return this; } @@ -12489,11 +12715,11 @@ public Builder clearAggregatedDestinationStatus() { itemIssues_ = java.util.Collections.emptyList(); private void ensureItemIssuesIsMutable() { - if (!((bitField0_ & 0x04000000) != 0)) { + if (!((bitField0_ & 0x08000000) != 0)) { itemIssues_ = new java.util.ArrayList< com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue>(itemIssues_); - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; } } @@ -12806,7 +13032,7 @@ public Builder addAllItemIssues( public Builder clearItemIssues() { if (itemIssuesBuilder_ == null) { itemIssues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); onChanged(); } else { itemIssuesBuilder_.clear(); @@ -12994,7 +13220,7 @@ public Builder removeItemIssues(int index) { com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue, com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.Builder, com.google.shopping.merchant.reports.v1beta.ProductView.ItemIssueOrBuilder>( - itemIssues_, ((bitField0_ & 0x04000000) != 0), getParentForChildren(), isClean()); + itemIssues_, ((bitField0_ & 0x08000000) != 0), getParentForChildren(), isClean()); itemIssues_ = null; } return itemIssuesBuilder_; diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductViewOrBuilder.java index d03b58da940f..8b98b1b88d6e 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductViewOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductViewOrBuilder.java @@ -27,9 +27,9 @@ public interface ProductViewOrBuilder * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId.
-   * Merchant API methods that operate on products take this as their `name`
-   * parameter.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+   * on products take this as their `name` parameter.
    *
    * Required in the `SELECT` clause.
    * 
@@ -43,9 +43,9 @@ public interface ProductViewOrBuilder * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId.
-   * Merchant API methods that operate on products take this as their `name`
-   * parameter.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+   * on products take this as their `name` parameter.
    *
    * Required in the `SELECT` clause.
    * 
@@ -59,9 +59,9 @@ public interface ProductViewOrBuilder * * *
-   * REST ID of the product, in the form of languageCode~feedLabel~offerId.
-   * Merchant API methods that operate on products take this as their `name`
-   * parameter.
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+   * on products take this as their `name` parameter.
    *
    * Required in the `SELECT` clause.
    * 
@@ -72,6 +72,43 @@ public interface ProductViewOrBuilder */ com.google.protobuf.ByteString getIdBytes(); + /** + * + * + *
+   * Channel of the product. Can be `ONLINE` or `LOCAL`.
+   * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return Whether the channel field is set. + */ + boolean hasChannel(); + /** + * + * + *
+   * Channel of the product. Can be `ONLINE` or `LOCAL`.
+   * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return The enum numeric value on the wire for channel. + */ + int getChannelValue(); + /** + * + * + *
+   * Channel of the product. Can be `ONLINE` or `LOCAL`.
+   * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return The channel. + */ + com.google.shopping.type.Channel.ChannelEnum getChannel(); + /** * * @@ -1020,45 +1057,45 @@ public interface ProductViewOrBuilder * * *
-   * Aggregated destination status.
+   * Aggregated status.
    * 
* * - * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus aggregated_destination_status = 26; + * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; * * - * @return Whether the aggregatedDestinationStatus field is set. + * @return Whether the aggregatedReportingContextStatus field is set. */ - boolean hasAggregatedDestinationStatus(); + boolean hasAggregatedReportingContextStatus(); /** * * *
-   * Aggregated destination status.
+   * Aggregated status.
    * 
* * - * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus aggregated_destination_status = 26; + * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; * * - * @return The enum numeric value on the wire for aggregatedDestinationStatus. + * @return The enum numeric value on the wire for aggregatedReportingContextStatus. */ - int getAggregatedDestinationStatusValue(); + int getAggregatedReportingContextStatusValue(); /** * * *
-   * Aggregated destination status.
+   * Aggregated status.
    * 
* * - * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus aggregated_destination_status = 26; + * optional .google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; * * - * @return The aggregatedDestinationStatus. + * @return The aggregatedReportingContextStatus. */ - com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedDestinationStatus - getAggregatedDestinationStatus(); + com.google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus + getAggregatedReportingContextStatus(); /** * diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/RelativeDemand.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/RelativeDemand.java index 63675e8ea333..5264165b27c0 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/RelativeDemand.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/RelativeDemand.java @@ -25,230 +25,646 @@ * Relative demand of a product cluster or brand in the Best sellers report. * * - * Protobuf enum {@code google.shopping.merchant.reports.v1beta.RelativeDemand} + * Protobuf type {@code google.shopping.merchant.reports.v1beta.RelativeDemand} */ -public enum RelativeDemand implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Not specified.
-   * 
- * - * RELATIVE_DEMAND_UNSPECIFIED = 0; - */ - RELATIVE_DEMAND_UNSPECIFIED(0), - /** - * - * - *
-   * Demand is 0-5% of the demand of the highest ranked product cluster or
-   * brand.
-   * 
- * - * VERY_LOW = 10; - */ - VERY_LOW(10), - /** - * - * - *
-   * Demand is 6-10% of the demand of the highest ranked product cluster or
-   * brand.
-   * 
- * - * LOW = 20; - */ - LOW(20), - /** - * - * - *
-   * Demand is 11-20% of the demand of the highest ranked product cluster or
-   * brand.
-   * 
- * - * MEDIUM = 30; - */ - MEDIUM(30), - /** - * - * - *
-   * Demand is 21-50% of the demand of the highest ranked product cluster or
-   * brand.
-   * 
- * - * HIGH = 40; - */ - HIGH(40), - /** - * - * - *
-   * Demand is 51-100% of the demand of the highest ranked product cluster or
-   * brand.
-   * 
- * - * VERY_HIGH = 50; - */ - VERY_HIGH(50), - UNRECOGNIZED(-1), - ; +public final class RelativeDemand extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1beta.RelativeDemand) + RelativeDemandOrBuilder { + private static final long serialVersionUID = 0L; + // Use RelativeDemand.newBuilder() to construct. + private RelativeDemand(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RelativeDemand() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RelativeDemand(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_RelativeDemand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_RelativeDemand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1beta.RelativeDemand.class, + com.google.shopping.merchant.reports.v1beta.RelativeDemand.Builder.class); + } /** * * *
-   * Not specified.
-   * 
- * - * RELATIVE_DEMAND_UNSPECIFIED = 0; - */ - public static final int RELATIVE_DEMAND_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Demand is 0-5% of the demand of the highest ranked product cluster or
-   * brand.
-   * 
- * - * VERY_LOW = 10; - */ - public static final int VERY_LOW_VALUE = 10; - /** - * - * - *
-   * Demand is 6-10% of the demand of the highest ranked product cluster or
-   * brand.
-   * 
- * - * LOW = 20; - */ - public static final int LOW_VALUE = 20; - /** - * - * - *
-   * Demand is 11-20% of the demand of the highest ranked product cluster or
-   * brand.
-   * 
- * - * MEDIUM = 30; - */ - public static final int MEDIUM_VALUE = 30; - /** - * - * - *
-   * Demand is 21-50% of the demand of the highest ranked product cluster or
-   * brand.
+   * Relative demand values.
    * 
* - * HIGH = 40; + * Protobuf enum {@code google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum} */ - public static final int HIGH_VALUE = 40; + public enum RelativeDemandEnum implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * RELATIVE_DEMAND_ENUM_UNSPECIFIED = 0; + */ + RELATIVE_DEMAND_ENUM_UNSPECIFIED(0), + /** + * + * + *
+     * Demand is 0-5% of the demand of the highest ranked product cluster or
+     * brand.
+     * 
+ * + * VERY_LOW = 10; + */ + VERY_LOW(10), + /** + * + * + *
+     * Demand is 6-10% of the demand of the highest ranked product cluster or
+     * brand.
+     * 
+ * + * LOW = 20; + */ + LOW(20), + /** + * + * + *
+     * Demand is 11-20% of the demand of the highest ranked product cluster or
+     * brand.
+     * 
+ * + * MEDIUM = 30; + */ + MEDIUM(30), + /** + * + * + *
+     * Demand is 21-50% of the demand of the highest ranked product cluster or
+     * brand.
+     * 
+ * + * HIGH = 40; + */ + HIGH(40), + /** + * + * + *
+     * Demand is 51-100% of the demand of the highest ranked product cluster or
+     * brand.
+     * 
+ * + * VERY_HIGH = 50; + */ + VERY_HIGH(50), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * RELATIVE_DEMAND_ENUM_UNSPECIFIED = 0; + */ + public static final int RELATIVE_DEMAND_ENUM_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Demand is 0-5% of the demand of the highest ranked product cluster or
+     * brand.
+     * 
+ * + * VERY_LOW = 10; + */ + public static final int VERY_LOW_VALUE = 10; + /** + * + * + *
+     * Demand is 6-10% of the demand of the highest ranked product cluster or
+     * brand.
+     * 
+ * + * LOW = 20; + */ + public static final int LOW_VALUE = 20; + /** + * + * + *
+     * Demand is 11-20% of the demand of the highest ranked product cluster or
+     * brand.
+     * 
+ * + * MEDIUM = 30; + */ + public static final int MEDIUM_VALUE = 30; + /** + * + * + *
+     * Demand is 21-50% of the demand of the highest ranked product cluster or
+     * brand.
+     * 
+ * + * HIGH = 40; + */ + public static final int HIGH_VALUE = 40; + /** + * + * + *
+     * Demand is 51-100% of the demand of the highest ranked product cluster or
+     * brand.
+     * 
+ * + * VERY_HIGH = 50; + */ + public static final int VERY_HIGH_VALUE = 50; + + 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 RelativeDemandEnum 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 RelativeDemandEnum forNumber(int value) { + switch (value) { + case 0: + return RELATIVE_DEMAND_ENUM_UNSPECIFIED; + case 10: + return VERY_LOW; + case 20: + return LOW; + case 30: + return MEDIUM; + case 40: + return HIGH; + case 50: + return VERY_HIGH; + 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 RelativeDemandEnum findValueByNumber(int number) { + return RelativeDemandEnum.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.merchant.reports.v1beta.RelativeDemand.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RelativeDemandEnum[] VALUES = values(); + + public static RelativeDemandEnum 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 RelativeDemandEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum) + } + + 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.merchant.reports.v1beta.RelativeDemand)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1beta.RelativeDemand other = + (com.google.shopping.merchant.reports.v1beta.RelativeDemand) 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.merchant.reports.v1beta.RelativeDemand parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemand parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemand parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemand parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemand parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemand parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemand parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemand parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemand parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemand parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemand parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemand 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.merchant.reports.v1beta.RelativeDemand 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; + } /** * * *
-   * Demand is 51-100% of the demand of the highest ranked product cluster or
-   * brand.
+   * Relative demand of a product cluster or brand in the Best sellers report.
    * 
* - * VERY_HIGH = 50; + * Protobuf type {@code google.shopping.merchant.reports.v1beta.RelativeDemand} */ - public static final int VERY_HIGH_VALUE = 50; + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1beta.RelativeDemand) + com.google.shopping.merchant.reports.v1beta.RelativeDemandOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_RelativeDemand_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.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_RelativeDemand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1beta.RelativeDemand.class, + com.google.shopping.merchant.reports.v1beta.RelativeDemand.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 RelativeDemand valueOf(int value) { - return forNumber(value); - } + // Construct using com.google.shopping.merchant.reports.v1beta.RelativeDemand.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 RelativeDemand forNumber(int value) { - switch (value) { - case 0: - return RELATIVE_DEMAND_UNSPECIFIED; - case 10: - return VERY_LOW; - case 20: - return LOW; - case 30: - return MEDIUM; - case 40: - return HIGH; - case 50: - return VERY_HIGH; - 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 RelativeDemand findValueByNumber(int number) { - return RelativeDemand.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.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_RelativeDemand_descriptor; + } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.shopping.merchant.reports.v1beta.ReportsProto.getDescriptor() - .getEnumTypes() - .get(1); - } + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.RelativeDemand getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1beta.RelativeDemand.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.RelativeDemand build() { + com.google.shopping.merchant.reports.v1beta.RelativeDemand result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.RelativeDemand buildPartial() { + com.google.shopping.merchant.reports.v1beta.RelativeDemand result = + new com.google.shopping.merchant.reports.v1beta.RelativeDemand(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); + } - private static final RelativeDemand[] VALUES = values(); + @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); + } - public static RelativeDemand 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 addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1beta.RelativeDemand) { + return mergeFrom((com.google.shopping.merchant.reports.v1beta.RelativeDemand) other); + } else { + super.mergeFrom(other); + return this; + } } - return VALUES[desc.getIndex()]; + + public Builder mergeFrom(com.google.shopping.merchant.reports.v1beta.RelativeDemand other) { + if (other == com.google.shopping.merchant.reports.v1beta.RelativeDemand.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.merchant.reports.v1beta.RelativeDemand) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1beta.RelativeDemand) + private static final com.google.shopping.merchant.reports.v1beta.RelativeDemand DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1beta.RelativeDemand(); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemand getDefaultInstance() { + return DEFAULT_INSTANCE; } - private final int value; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelativeDemand 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; + } - private RelativeDemand(int value) { - this.value = value; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1beta.RelativeDemand) + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.RelativeDemand getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/RelativeDemandChangeType.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/RelativeDemandChangeType.java index caf8656894ff..cd25239e394e 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/RelativeDemandChangeType.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/RelativeDemandChangeType.java @@ -26,179 +26,604 @@ * compared to the previous time period. * * - * Protobuf enum {@code google.shopping.merchant.reports.v1beta.RelativeDemandChangeType} + * Protobuf type {@code google.shopping.merchant.reports.v1beta.RelativeDemandChangeType} */ -public enum RelativeDemandChangeType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Not specified.
-   * 
- * - * RELATIVE_DEMAND_CHANGE_TYPE_UNSPECIFIED = 0; - */ - RELATIVE_DEMAND_CHANGE_TYPE_UNSPECIFIED(0), - /** - * - * - *
-   * Relative demand is lower than the previous time period.
-   * 
- * - * SINKER = 1; - */ - SINKER(1), - /** - * - * - *
-   * Relative demand is equal to the previous time period.
-   * 
- * - * FLAT = 2; - */ - FLAT(2), - /** - * - * - *
-   * Relative demand is higher than the previous time period.
-   * 
- * - * RISER = 3; - */ - RISER(3), - UNRECOGNIZED(-1), - ; +public final class RelativeDemandChangeType extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1beta.RelativeDemandChangeType) + RelativeDemandChangeTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use RelativeDemandChangeType.newBuilder() to construct. + private RelativeDemandChangeType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RelativeDemandChangeType() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RelativeDemandChangeType(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_RelativeDemandChangeType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_RelativeDemandChangeType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.class, + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.Builder.class); + } /** * * *
-   * Not specified.
-   * 
- * - * RELATIVE_DEMAND_CHANGE_TYPE_UNSPECIFIED = 0; - */ - public static final int RELATIVE_DEMAND_CHANGE_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Relative demand is lower than the previous time period.
-   * 
- * - * SINKER = 1; - */ - public static final int SINKER_VALUE = 1; - /** - * - * - *
-   * Relative demand is equal to the previous time period.
+   * Relative demand change type values.
    * 
* - * FLAT = 2; + * Protobuf enum {@code + * google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum} */ - public static final int FLAT_VALUE = 2; + public enum RelativeDemandChangeTypeEnum implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED = 0; + */ + RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED(0), + /** + * + * + *
+     * Relative demand is lower than the previous time period.
+     * 
+ * + * SINKER = 1; + */ + SINKER(1), + /** + * + * + *
+     * Relative demand is equal to the previous time period.
+     * 
+ * + * FLAT = 2; + */ + FLAT(2), + /** + * + * + *
+     * Relative demand is higher than the previous time period.
+     * 
+ * + * RISER = 3; + */ + RISER(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED = 0; + */ + public static final int RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Relative demand is lower than the previous time period.
+     * 
+ * + * SINKER = 1; + */ + public static final int SINKER_VALUE = 1; + /** + * + * + *
+     * Relative demand is equal to the previous time period.
+     * 
+ * + * FLAT = 2; + */ + public static final int FLAT_VALUE = 2; + /** + * + * + *
+     * Relative demand is higher than the previous time period.
+     * 
+ * + * RISER = 3; + */ + public static final int RISER_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 RelativeDemandChangeTypeEnum 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 RelativeDemandChangeTypeEnum forNumber(int value) { + switch (value) { + case 0: + return RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED; + case 1: + return SINKER; + case 2: + return FLAT; + case 3: + return RISER; + 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 RelativeDemandChangeTypeEnum findValueByNumber(int number) { + return RelativeDemandChangeTypeEnum.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.merchant.reports.v1beta.RelativeDemandChangeType.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RelativeDemandChangeTypeEnum[] VALUES = values(); + + public static RelativeDemandChangeTypeEnum 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 RelativeDemandChangeTypeEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum) + } + + 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.merchant.reports.v1beta.RelativeDemandChangeType)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType other = + (com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType) 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.merchant.reports.v1beta.RelativeDemandChangeType parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType 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.merchant.reports.v1beta.RelativeDemandChangeType 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; + } /** * * *
-   * Relative demand is higher than the previous time period.
+   * Relative demand of a product cluster or brand in the Best sellers report
+   * compared to the previous time period.
    * 
* - * RISER = 3; + * Protobuf type {@code google.shopping.merchant.reports.v1beta.RelativeDemandChangeType} */ - public static final int RISER_VALUE = 3; + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1beta.RelativeDemandChangeType) + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_RelativeDemandChangeType_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.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_RelativeDemandChangeType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.class, + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.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 RelativeDemandChangeType valueOf(int value) { - return forNumber(value); - } + // Construct using + // com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.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 RelativeDemandChangeType forNumber(int value) { - switch (value) { - case 0: - return RELATIVE_DEMAND_CHANGE_TYPE_UNSPECIFIED; - case 1: - return SINKER; - case 2: - return FLAT; - case 3: - return RISER; - default: - return null; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); } - } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelativeDemandChangeType findValueByNumber(int number) { - return RelativeDemandChangeType.forNumber(number); - } - }; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_RelativeDemandChangeType_descriptor; + } - 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 com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .getDefaultInstance(); } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType build() { + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.shopping.merchant.reports.v1beta.ReportsProto.getDescriptor() - .getEnumTypes() - .get(2); - } + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType buildPartial() { + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType result = + new com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType(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); + } - private static final RelativeDemandChangeType[] VALUES = values(); + @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); + } - public static RelativeDemandChangeType 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType) other); + } else { + super.mergeFrom(other); + return this; + } } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType other) { + if (other + == com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } - return VALUES[desc.getIndex()]; + + @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.merchant.reports.v1beta.RelativeDemandChangeType) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1beta.RelativeDemandChangeType) + private static final com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType(); } - private final int value; + public static com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelativeDemandChangeType 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 RelativeDemandChangeType(int value) { - this.value = value; + public static com.google.protobuf.Parser parser() { + return PARSER; } - // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1beta.RelativeDemandChangeType) + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/RelativeDemandChangeTypeOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/RelativeDemandChangeTypeOrBuilder.java new file mode 100644 index 000000000000..e16d389c1c17 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/RelativeDemandChangeTypeOrBuilder.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/merchant/reports/v1beta/reports.proto + +package com.google.shopping.merchant.reports.v1beta; + +public interface RelativeDemandChangeTypeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1beta.RelativeDemandChangeType) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/RelativeDemandOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/RelativeDemandOrBuilder.java new file mode 100644 index 000000000000..30b719efaa8a --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/RelativeDemandOrBuilder.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/merchant/reports/v1beta/reports.proto + +package com.google.shopping.merchant.reports.v1beta; + +public interface RelativeDemandOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1beta.RelativeDemand) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportGranularity.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportGranularity.java index 8b2f50f0a194..dd801b426b33 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportGranularity.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportGranularity.java @@ -26,156 +26,575 @@ * over a week and a month timeframe. * * - * Protobuf enum {@code google.shopping.merchant.reports.v1beta.ReportGranularity} + * Protobuf type {@code google.shopping.merchant.reports.v1beta.ReportGranularity} */ -public enum ReportGranularity implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Not specified.
-   * 
- * - * REPORT_GRANULARITY_UNSPECIFIED = 0; - */ - REPORT_GRANULARITY_UNSPECIFIED(0), - /** - * - * - *
-   * Report is computed over a week timeframe.
-   * 
- * - * WEEKLY = 1; - */ - WEEKLY(1), - /** - * - * - *
-   * Report is computed over a month timeframe.
-   * 
- * - * MONTHLY = 2; - */ - MONTHLY(2), - UNRECOGNIZED(-1), - ; +public final class ReportGranularity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1beta.ReportGranularity) + ReportGranularityOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReportGranularity.newBuilder() to construct. + private ReportGranularity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReportGranularity() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReportGranularity(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_ReportGranularity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_ReportGranularity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1beta.ReportGranularity.class, + com.google.shopping.merchant.reports.v1beta.ReportGranularity.Builder.class); + } /** * * *
-   * Not specified.
-   * 
- * - * REPORT_GRANULARITY_UNSPECIFIED = 0; - */ - public static final int REPORT_GRANULARITY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Report is computed over a week timeframe.
+   * Report granularity values.
    * 
* - * WEEKLY = 1; + * Protobuf enum {@code + * google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum} */ - public static final int WEEKLY_VALUE = 1; + public enum ReportGranularityEnum implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * REPORT_GRANULARITY_ENUM_UNSPECIFIED = 0; + */ + REPORT_GRANULARITY_ENUM_UNSPECIFIED(0), + /** + * + * + *
+     * Report is computed over a week timeframe.
+     * 
+ * + * WEEKLY = 1; + */ + WEEKLY(1), + /** + * + * + *
+     * Report is computed over a month timeframe.
+     * 
+ * + * MONTHLY = 2; + */ + MONTHLY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * REPORT_GRANULARITY_ENUM_UNSPECIFIED = 0; + */ + public static final int REPORT_GRANULARITY_ENUM_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Report is computed over a week timeframe.
+     * 
+ * + * WEEKLY = 1; + */ + public static final int WEEKLY_VALUE = 1; + /** + * + * + *
+     * Report is computed over a month timeframe.
+     * 
+ * + * MONTHLY = 2; + */ + public static final int MONTHLY_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 ReportGranularityEnum 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 ReportGranularityEnum forNumber(int value) { + switch (value) { + case 0: + return REPORT_GRANULARITY_ENUM_UNSPECIFIED; + case 1: + return WEEKLY; + case 2: + return MONTHLY; + 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 ReportGranularityEnum findValueByNumber(int number) { + return ReportGranularityEnum.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.merchant.reports.v1beta.ReportGranularity.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ReportGranularityEnum[] VALUES = values(); + + public static ReportGranularityEnum 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 ReportGranularityEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum) + } + + 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.merchant.reports.v1beta.ReportGranularity)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1beta.ReportGranularity other = + (com.google.shopping.merchant.reports.v1beta.ReportGranularity) 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.merchant.reports.v1beta.ReportGranularity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.ReportGranularity parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.ReportGranularity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.ReportGranularity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.ReportGranularity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.ReportGranularity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.ReportGranularity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.ReportGranularity parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.ReportGranularity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.ReportGranularity parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.ReportGranularity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.ReportGranularity 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.merchant.reports.v1beta.ReportGranularity 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; + } /** * * *
-   * Report is computed over a month timeframe.
+   * Granularity of the Best sellers report. Best sellers reports are computed
+   * over a week and a month timeframe.
    * 
* - * MONTHLY = 2; + * Protobuf type {@code google.shopping.merchant.reports.v1beta.ReportGranularity} */ - public static final int MONTHLY_VALUE = 2; + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1beta.ReportGranularity) + com.google.shopping.merchant.reports.v1beta.ReportGranularityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_ReportGranularity_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.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_ReportGranularity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1beta.ReportGranularity.class, + com.google.shopping.merchant.reports.v1beta.ReportGranularity.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 ReportGranularity valueOf(int value) { - return forNumber(value); - } + // Construct using com.google.shopping.merchant.reports.v1beta.ReportGranularity.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 ReportGranularity forNumber(int value) { - switch (value) { - case 0: - return REPORT_GRANULARITY_UNSPECIFIED; - case 1: - return WEEKLY; - case 2: - return MONTHLY; - default: - return null; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); } - } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ReportGranularity findValueByNumber(int number) { - return ReportGranularity.forNumber(number); - } - }; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_ReportGranularity_descriptor; + } - 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 com.google.shopping.merchant.reports.v1beta.ReportGranularity + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1beta.ReportGranularity.getDefaultInstance(); } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.ReportGranularity build() { + com.google.shopping.merchant.reports.v1beta.ReportGranularity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.shopping.merchant.reports.v1beta.ReportsProto.getDescriptor() - .getEnumTypes() - .get(0); - } + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.ReportGranularity buildPartial() { + com.google.shopping.merchant.reports.v1beta.ReportGranularity result = + new com.google.shopping.merchant.reports.v1beta.ReportGranularity(this); + onBuilt(); + return result; + } - private static final ReportGranularity[] VALUES = values(); + @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 ReportGranularity 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); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1beta.ReportGranularity) { + return mergeFrom((com.google.shopping.merchant.reports.v1beta.ReportGranularity) other); + } else { + super.mergeFrom(other); + return this; + } } - return VALUES[desc.getIndex()]; + + public Builder mergeFrom(com.google.shopping.merchant.reports.v1beta.ReportGranularity other) { + if (other + == com.google.shopping.merchant.reports.v1beta.ReportGranularity.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.merchant.reports.v1beta.ReportGranularity) } - private final int value; + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1beta.ReportGranularity) + private static final com.google.shopping.merchant.reports.v1beta.ReportGranularity + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1beta.ReportGranularity(); + } - private ReportGranularity(int value) { - this.value = value; + public static com.google.shopping.merchant.reports.v1beta.ReportGranularity getDefaultInstance() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1beta.ReportGranularity) + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReportGranularity 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.merchant.reports.v1beta.ReportGranularity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportGranularityOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportGranularityOrBuilder.java new file mode 100644 index 000000000000..dc14937bdc0b --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportGranularityOrBuilder.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/merchant/reports/v1beta/reports.proto + +package com.google.shopping.merchant.reports.v1beta; + +public interface ReportGranularityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1beta.ReportGranularity) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportsProto.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportsProto.java index 0fd7e70ba4f7..134655d46150 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportsProto.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportsProto.java @@ -60,9 +60,9 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerDestination_descriptor; + internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerDestination_fieldAccessorTable; + internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_shopping_merchant_reports_v1beta_PriceCompetitivenessProductView_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -95,6 +95,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_shopping_merchant_reports_v1beta_CompetitiveVisibilityBenchmarkView_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_shopping_merchant_reports_v1beta_CompetitiveVisibilityBenchmarkView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1beta_MarketingMethod_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1beta_MarketingMethod_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1beta_ReportGranularity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1beta_ReportGranularity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1beta_RelativeDemand_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1beta_RelativeDemand_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1beta_RelativeDemandChangeType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1beta_RelativeDemandChangeType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1beta_TrafficSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1beta_TrafficSource_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -110,314 +130,326 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".proto\032\027google/api/client.proto\032\037google/" + "api/field_behavior.proto\032\037google/protobu" + "f/timestamp.proto\032 google/shopping/type/" - + "types.proto\032\026google/type/date.proto\"a\n\rS" + + "types.proto\032\026google/type/date.proto\"m\n\rS" + "earchRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\023\n\005qu" - + "ery\030\002 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npa" - + "ge_token\030\004 \001(\t\"n\n\016SearchResponse\022C\n\007resu" - + "lts\030\001 \003(\01322.google.shopping.merchant.rep" - + "orts.v1beta.ReportRow\022\027\n\017next_page_token" - + "\030\002 \001(\t\"\320\010\n\tReportRow\022a\n\030product_performa" - + "nce_view\030\001 \001(\0132?.google.shopping.merchan" - + "t.reports.v1beta.ProductPerformanceView\022" - + "h\n\034non_product_performance_view\030\007 \001(\0132B." + + "ery\030\002 \001(\tB\004\342A\001\002\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001" + + "\022\030\n\npage_token\030\004 \001(\tB\004\342A\001\001\"n\n\016SearchResp" + + "onse\022C\n\007results\030\001 \003(\01322.google.shopping." + + "merchant.reports.v1beta.ReportRow\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"\320\010\n\tReportRow\022a\n\030prod" + + "uct_performance_view\030\001 \001(\0132?.google.shop" + + "ping.merchant.reports.v1beta.ProductPerf" + + "ormanceView\022h\n\034non_product_performance_v" + + "iew\030\007 \001(\0132B.google.shopping.merchant.rep" + + "orts.v1beta.NonProductPerformanceView\022J\n" + + "\014product_view\030\002 \001(\01324.google.shopping.me" + + "rchant.reports.v1beta.ProductView\022t\n\"pri" + + "ce_competitiveness_product_view\030\003 \001(\0132H." + "google.shopping.merchant.reports.v1beta." - + "NonProductPerformanceView\022J\n\014product_vie" - + "w\030\002 \001(\01324.google.shopping.merchant.repor" - + "ts.v1beta.ProductView\022t\n\"price_competiti" - + "veness_product_view\030\003 \001(\0132H.google.shopp" - + "ing.merchant.reports.v1beta.PriceCompeti" - + "tivenessProductView\022f\n\033price_insights_pr" - + "oduct_view\030\004 \001(\0132A.google.shopping.merch" - + "ant.reports.v1beta.PriceInsightsProductV" - + "iew\022q\n!best_sellers_product_cluster_view" - + "\030\005 \001(\0132F.google.shopping.merchant.report" - + "s.v1beta.BestSellersProductClusterView\022^" - + "\n\027best_sellers_brand_view\030\006 \001(\0132=.google" - + ".shopping.merchant.reports.v1beta.BestSe" - + "llersBrandView\022|\n&competitive_visibility" - + "_competitor_view\030\010 \001(\0132L.google.shopping" - + ".merchant.reports.v1beta.CompetitiveVisi" - + "bilityCompetitorView\022\177\n(competitive_visi" - + "bility_top_merchant_view\030\t \001(\0132M.google." - + "shopping.merchant.reports.v1beta.Competi" - + "tiveVisibilityTopMerchantView\022z\n%competi" - + "tive_visibility_benchmark_view\030\n \001(\0132K.g" - + "oogle.shopping.merchant.reports.v1beta.C" - + "ompetitiveVisibilityBenchmarkView\"\252\013\n\026Pr" - + "oductPerformanceView\022;\n\013destination\030\001 \001(" - + "\0162!.google.shopping.type.DestinationH\000\210\001" - + "\001\022\037\n\004date\030\002 \001(\0132\021.google.type.Date\022\037\n\004we" - + "ek\030\003 \001(\0132\021.google.type.Date\022\"\n\025customer_" - + "country_code\030\004 \001(\tH\001\210\001\001\022\027\n\naccount_id\030\035 " - + "\001(\003H\002\210\001\001\022!\n\024account_display_name\030\036 \001(\tH\003" - + "\210\001\001\022 \n\023external_account_id\030\037 \001(\tH\004\210\001\001\022\025\n" - + "\010offer_id\030\005 \001(\tH\005\210\001\001\022\022\n\005title\030\006 \001(\tH\006\210\001\001" - + "\022\022\n\005brand\030\007 \001(\tH\007\210\001\001\022\030\n\013category_l1\030\010 \001(" - + "\tH\010\210\001\001\022\030\n\013category_l2\030\t \001(\tH\t\210\001\001\022\030\n\013cate" - + "gory_l3\030\n \001(\tH\n\210\001\001\022\030\n\013category_l4\030\013 \001(\tH" - + "\013\210\001\001\022\030\n\013category_l5\030\014 \001(\tH\014\210\001\001\022\034\n\017produc" - + "t_type_l1\030\r \001(\tH\r\210\001\001\022\034\n\017product_type_l2\030" - + "\016 \001(\tH\016\210\001\001\022\034\n\017product_type_l3\030\017 \001(\tH\017\210\001\001" - + "\022\034\n\017product_type_l4\030\020 \001(\tH\020\210\001\001\022\034\n\017produc" - + "t_type_l5\030\021 \001(\tH\021\210\001\001\022\032\n\rcustom_label0\030\022 " - + "\001(\tH\022\210\001\001\022\032\n\rcustom_label1\030\023 \001(\tH\023\210\001\001\022\032\n\r" - + "custom_label2\030\024 \001(\tH\024\210\001\001\022\032\n\rcustom_label" - + "3\030\025 \001(\tH\025\210\001\001\022\032\n\rcustom_label4\030\026 \001(\tH\026\210\001\001" - + "\022\023\n\006clicks\030\027 \001(\003H\027\210\001\001\022\030\n\013impressions\030\030 \001" - + "(\003H\030\210\001\001\022\037\n\022click_through_rate\030\031 \001(\001H\031\210\001\001" - + "\022\030\n\013conversions\030\032 \001(\001H\032\210\001\001\0225\n\020conversion" - + "_value\030\033 \001(\0132\033.google.shopping.type.Pric" - + "e\022\034\n\017conversion_rate\030\034 \001(\001H\033\210\001\001B\016\n\014_dest" - + "inationB\030\n\026_customer_country_codeB\r\n\013_ac" - + "count_idB\027\n\025_account_display_nameB\026\n\024_ex" - + "ternal_account_idB\013\n\t_offer_idB\010\n\006_title" - + "B\010\n\006_brandB\016\n\014_category_l1B\016\n\014_category_" - + "l2B\016\n\014_category_l3B\016\n\014_category_l4B\016\n\014_c" - + "ategory_l5B\022\n\020_product_type_l1B\022\n\020_produ" - + "ct_type_l2B\022\n\020_product_type_l3B\022\n\020_produ" - + "ct_type_l4B\022\n\020_product_type_l5B\020\n\016_custo" - + "m_label0B\020\n\016_custom_label1B\020\n\016_custom_la" - + "bel2B\020\n\016_custom_label3B\020\n\016_custom_label4" - + "B\t\n\007_clicksB\016\n\014_impressionsB\025\n\023_click_th" - + "rough_rateB\016\n\014_conversionsB\022\n\020_conversio" - + "n_rate\"\266\024\n\013ProductView\022\017\n\002id\030\001 \001(\tH\000\210\001\001\022" - + "\032\n\rlanguage_code\030\002 \001(\tH\001\210\001\001\022\027\n\nfeed_labe" - + "l\030\003 \001(\tH\002\210\001\001\022\025\n\010offer_id\030\004 \001(\tH\003\210\001\001\022\022\n\005t" - + "itle\030\005 \001(\tH\004\210\001\001\022\022\n\005brand\030\006 \001(\tH\005\210\001\001\022\030\n\013c" - + "ategory_l1\030\007 \001(\tH\006\210\001\001\022\030\n\013category_l2\030\010 \001" - + "(\tH\007\210\001\001\022\030\n\013category_l3\030\t \001(\tH\010\210\001\001\022\030\n\013cat" - + "egory_l4\030\n \001(\tH\t\210\001\001\022\030\n\013category_l5\030\013 \001(\t" - + "H\n\210\001\001\022\034\n\017product_type_l1\030\014 \001(\tH\013\210\001\001\022\034\n\017p" - + "roduct_type_l2\030\r \001(\tH\014\210\001\001\022\034\n\017product_typ" - + "e_l3\030\016 \001(\tH\r\210\001\001\022\034\n\017product_type_l4\030\017 \001(\t" - + "H\016\210\001\001\022\034\n\017product_type_l5\030\020 \001(\tH\017\210\001\001\022*\n\005p" - + "rice\030\021 \001(\0132\033.google.shopping.type.Price\022" - + "\026\n\tcondition\030\022 \001(\tH\020\210\001\001\022\031\n\014availability\030" - + "\023 \001(\tH\021\210\001\001\022\033\n\016shipping_label\030\024 \001(\tH\022\210\001\001\022" - + "\014\n\004gtin\030\025 \003(\t\022\032\n\ritem_group_id\030\026 \001(\tH\023\210\001" - + "\001\022\033\n\016thumbnail_link\030\027 \001(\tH\024\210\001\001\0221\n\rcreati" - + "on_time\030\030 \001(\0132\032.google.protobuf.Timestam" - + "p\022*\n\017expiration_date\030\031 \001(\0132\021.google.type" - + ".Date\022|\n\035aggregated_destination_status\030\032" - + " \001(\0162P.google.shopping.merchant.reports." - + "v1beta.ProductView.AggregatedDestination" - + "StatusH\025\210\001\001\022S\n\013item_issues\030\033 \003(\0132>.googl" - + "e.shopping.merchant.reports.v1beta.Produ" - + "ctView.ItemIssue\032\375\010\n\tItemIssue\022Z\n\004type\030\001" - + " \001(\0132L.google.shopping.merchant.reports." - + "v1beta.ProductView.ItemIssue.ItemIssueTy" - + "pe\022b\n\010severity\030\002 \001(\0132P.google.shopping.m" - + "erchant.reports.v1beta.ProductView.ItemI" - + "ssue.ItemIssueSeverity\022k\n\nresolution\030\003 \001" - + "(\0162R.google.shopping.merchant.reports.v1" - + "beta.ProductView.ItemIssue.ItemIssueReso" - + "lutionH\000\210\001\001\032e\n\rItemIssueType\022\021\n\004code\030\001 \001" - + "(\tH\000\210\001\001\022 \n\023canonical_attribute\030\002 \001(\tH\001\210\001" - + "\001B\007\n\005_codeB\026\n\024_canonical_attribute\032\341\004\n\021I" - + "temIssueSeverity\022\216\001\n\030severity_per_destin" - + "ation\030\001 \003(\0132l.google.shopping.merchant.r" - + "eports.v1beta.ProductView.ItemIssue.Item" - + "IssueSeverity.IssueSeverityPerDestinatio" - + "n\022\212\001\n\023aggregated_severity\030\002 \001(\0162h.google" - + ".shopping.merchant.reports.v1beta.Produc" - + "tView.ItemIssue.ItemIssueSeverity.Aggreg" - + "atedIssueSeverityH\000\210\001\001\032\244\001\n\033IssueSeverity" - + "PerDestination\022;\n\013destination\030\001 \001(\0162!.go" - + "ogle.shopping.type.DestinationH\000\210\001\001\022\035\n\025d" - + "isapproved_countries\030\002 \003(\t\022\031\n\021demoted_co" - + "untries\030\003 \003(\tB\016\n\014_destination\"o\n\027Aggrega" - + "tedIssueSeverity\022)\n%AGGREGATED_ISSUE_SEV" - + "ERITY_UNSPECIFIED\020\000\022\017\n\013DISAPPROVED\020\001\022\013\n\007" - + "DEMOTED\020\002\022\013\n\007PENDING\020\003B\026\n\024_aggregated_se" - + "verity\"i\n\023ItemIssueResolution\022%\n!ITEM_IS" - + "SUE_RESOLUTION_UNSPECIFIED\020\000\022\023\n\017MERCHANT" - + "_ACTION\020\001\022\026\n\022PENDING_PROCESSING\020\002B\r\n\013_re" - + "solution\"\236\001\n\033AggregatedDestinationStatus" - + "\022-\n)AGGREGATED_DESTINATION_STATUS_UNSPEC" - + "IFIED\020\000\022\037\n\033NOT_ELIGIBLE_OR_DISAPPROVED\020\001" - + "\022\013\n\007PENDING\020\002\022\024\n\020ELIGIBLE_LIMITED\020\003\022\014\n\010E" - + "LIGIBLE\020\004B\005\n\003_idB\020\n\016_language_codeB\r\n\013_f" - + "eed_labelB\013\n\t_offer_idB\010\n\006_titleB\010\n\006_bra" - + "ndB\016\n\014_category_l1B\016\n\014_category_l2B\016\n\014_c" - + "ategory_l3B\016\n\014_category_l4B\016\n\014_category_" - + "l5B\022\n\020_product_type_l1B\022\n\020_product_type_" - + "l2B\022\n\020_product_type_l3B\022\n\020_product_type_" - + "l4B\022\n\020_product_type_l5B\014\n\n_conditionB\017\n\r" - + "_availabilityB\021\n\017_shipping_labelB\020\n\016_ite" - + "m_group_idB\021\n\017_thumbnail_linkB \n\036_aggreg" - + "ated_destination_status\"\201\006\n\037PriceCompeti" - + "tivenessProductView\022 \n\023report_country_co" - + "de\030\001 \001(\tH\000\210\001\001\022\017\n\002id\030\002 \001(\tH\001\210\001\001\022\025\n\010offer_" - + "id\030\003 \001(\tH\002\210\001\001\022\022\n\005title\030\004 \001(\tH\003\210\001\001\022\022\n\005bra" - + "nd\030\005 \001(\tH\004\210\001\001\022\030\n\013category_l1\030\006 \001(\tH\005\210\001\001\022" - + "\030\n\013category_l2\030\007 \001(\tH\006\210\001\001\022\030\n\013category_l3" - + "\030\010 \001(\tH\007\210\001\001\022\030\n\013category_l4\030\t \001(\tH\010\210\001\001\022\030\n" - + "\013category_l5\030\n \001(\tH\t\210\001\001\022\034\n\017product_type_" - + "l1\030\013 \001(\tH\n\210\001\001\022\034\n\017product_type_l2\030\014 \001(\tH\013" - + "\210\001\001\022\034\n\017product_type_l3\030\r \001(\tH\014\210\001\001\022\034\n\017pro" - + "duct_type_l4\030\016 \001(\tH\r\210\001\001\022\034\n\017product_type_" - + "l5\030\017 \001(\tH\016\210\001\001\022*\n\005price\030\020 \001(\0132\033.google.sh" - + "opping.type.Price\0224\n\017benchmark_price\030\021 \001" - + "(\0132\033.google.shopping.type.PriceB\026\n\024_repo" - + "rt_country_codeB\005\n\003_idB\013\n\t_offer_idB\010\n\006_" - + "titleB\010\n\006_brandB\016\n\014_category_l1B\016\n\014_cate" - + "gory_l2B\016\n\014_category_l3B\016\n\014_category_l4B" - + "\016\n\014_category_l5B\022\n\020_product_type_l1B\022\n\020_" - + "product_type_l2B\022\n\020_product_type_l3B\022\n\020_" - + "product_type_l4B\022\n\020_product_type_l5\"\374\010\n\030" - + "PriceInsightsProductView\022\017\n\002id\030\001 \001(\tH\000\210\001" - + "\001\022\025\n\010offer_id\030\002 \001(\tH\001\210\001\001\022\022\n\005title\030\003 \001(\tH" - + "\002\210\001\001\022\022\n\005brand\030\004 \001(\tH\003\210\001\001\022\030\n\013category_l1\030" - + "\005 \001(\tH\004\210\001\001\022\030\n\013category_l2\030\006 \001(\tH\005\210\001\001\022\030\n\013" - + "category_l3\030\007 \001(\tH\006\210\001\001\022\030\n\013category_l4\030\010 " - + "\001(\tH\007\210\001\001\022\030\n\013category_l5\030\t \001(\tH\010\210\001\001\022\034\n\017pr" - + "oduct_type_l1\030\n \001(\tH\t\210\001\001\022\034\n\017product_type" - + "_l2\030\013 \001(\tH\n\210\001\001\022\034\n\017product_type_l3\030\014 \001(\tH" - + "\013\210\001\001\022\034\n\017product_type_l4\030\r \001(\tH\014\210\001\001\022\034\n\017pr" - + "oduct_type_l5\030\016 \001(\tH\r\210\001\001\022*\n\005price\030\017 \001(\0132" - + "\033.google.shopping.type.Price\0224\n\017suggeste" - + "d_price\030\020 \001(\0132\033.google.shopping.type.Pri" - + "ce\0222\n%predicted_impressions_change_fract" - + "ion\030\021 \001(\001H\016\210\001\001\022-\n predicted_clicks_chang" - + "e_fraction\030\022 \001(\001H\017\210\001\001\0222\n%predicted_conve" - + "rsions_change_fraction\030\023 \001(\001H\020\210\001\001\0223\n&pre" - + "dicted_gross_profit_change_fraction\030\024 \001(" - + "\001H\021\210\001\001\022J\n%predicted_monthly_gross_profit" - + "_change\030\025 \001(\0132\033.google.shopping.type.Pri" - + "ceB\005\n\003_idB\013\n\t_offer_idB\010\n\006_titleB\010\n\006_bra" - + "ndB\016\n\014_category_l1B\016\n\014_category_l2B\016\n\014_c" - + "ategory_l3B\016\n\014_category_l4B\016\n\014_category_" - + "l5B\022\n\020_product_type_l1B\022\n\020_product_type_" - + "l2B\022\n\020_product_type_l3B\022\n\020_product_type_" - + "l4B\022\n\020_product_type_l5B(\n&_predicted_imp" - + "ressions_change_fractionB#\n!_predicted_c" - + "licks_change_fractionB(\n&_predicted_conv" - + "ersions_change_fractionB)\n\'_predicted_gr" - + "oss_profit_change_fraction\"\256\013\n\035BestSelle" - + "rsProductClusterView\022&\n\013report_date\030\001 \001(" - + "\0132\021.google.type.Date\022[\n\022report_granulari" - + "ty\030\002 \001(\0162:.google.shopping.merchant.repo" - + "rts.v1beta.ReportGranularityH\000\210\001\001\022 \n\023rep" - + "ort_country_code\030\003 \001(\tH\001\210\001\001\022\037\n\022report_ca" - + "tegory_id\030\004 \001(\003H\002\210\001\001\022\017\n\002id\030\005 \001(\tH\003\210\001\001\022\022\n" - + "\005title\030\006 \001(\tH\004\210\001\001\022\022\n\005brand\030\007 \001(\tH\005\210\001\001\022\030\n" - + "\013category_l1\030\010 \001(\tH\006\210\001\001\022\030\n\013category_l2\030\t" - + " \001(\tH\007\210\001\001\022\030\n\013category_l3\030\n \001(\tH\010\210\001\001\022\030\n\013c" - + "ategory_l4\030\013 \001(\tH\t\210\001\001\022\030\n\013category_l5\030\014 \001" - + "(\tH\n\210\001\001\022\025\n\rvariant_gtins\030\r \003(\t\022u\n\020invent" - + "ory_status\030\016 \001(\0162V.google.shopping.merch" + + "PriceCompetitivenessProductView\022f\n\033price" + + "_insights_product_view\030\004 \001(\0132A.google.sh" + + "opping.merchant.reports.v1beta.PriceInsi" + + "ghtsProductView\022q\n!best_sellers_product_" + + "cluster_view\030\005 \001(\0132F.google.shopping.mer" + + "chant.reports.v1beta.BestSellersProductC" + + "lusterView\022^\n\027best_sellers_brand_view\030\006 " + + "\001(\0132=.google.shopping.merchant.reports.v" + + "1beta.BestSellersBrandView\022|\n&competitiv" + + "e_visibility_competitor_view\030\010 \001(\0132L.goo" + + "gle.shopping.merchant.reports.v1beta.Com" + + "petitiveVisibilityCompetitorView\022\177\n(comp" + + "etitive_visibility_top_merchant_view\030\t \001" + + "(\0132M.google.shopping.merchant.reports.v1" + + "beta.CompetitiveVisibilityTopMerchantVie" + + "w\022z\n%competitive_visibility_benchmark_vi" + + "ew\030\n \001(\0132K.google.shopping.merchant.repo" + + "rts.v1beta.CompetitiveVisibilityBenchmar" + + "kView\"\337\013\n\026ProductPerformanceView\022k\n\020mark" + + "eting_method\030\001 \001(\0162L.google.shopping.mer" + + "chant.reports.v1beta.MarketingMethod.Mar" + + "ketingMethodEnumH\000\210\001\001\022\037\n\004date\030\002 \001(\0132\021.go" + + "ogle.type.Date\022\037\n\004week\030\003 \001(\0132\021.google.ty" + + "pe.Date\022\"\n\025customer_country_code\030\004 \001(\tH\001" + + "\210\001\001\022\027\n\naccount_id\030\035 \001(\003H\002\210\001\001\022!\n\024account_" + + "display_name\030\036 \001(\tH\003\210\001\001\022 \n\023external_acco" + + "unt_id\030\037 \001(\tH\004\210\001\001\022\025\n\010offer_id\030\005 \001(\tH\005\210\001\001" + + "\022\022\n\005title\030\006 \001(\tH\006\210\001\001\022\022\n\005brand\030\007 \001(\tH\007\210\001\001" + + "\022\030\n\013category_l1\030\010 \001(\tH\010\210\001\001\022\030\n\013category_l" + + "2\030\t \001(\tH\t\210\001\001\022\030\n\013category_l3\030\n \001(\tH\n\210\001\001\022\030" + + "\n\013category_l4\030\013 \001(\tH\013\210\001\001\022\030\n\013category_l5\030" + + "\014 \001(\tH\014\210\001\001\022\034\n\017product_type_l1\030\r \001(\tH\r\210\001\001" + + "\022\034\n\017product_type_l2\030\016 \001(\tH\016\210\001\001\022\034\n\017produc" + + "t_type_l3\030\017 \001(\tH\017\210\001\001\022\034\n\017product_type_l4\030" + + "\020 \001(\tH\020\210\001\001\022\034\n\017product_type_l5\030\021 \001(\tH\021\210\001\001" + + "\022\032\n\rcustom_label0\030\022 \001(\tH\022\210\001\001\022\032\n\rcustom_l" + + "abel1\030\023 \001(\tH\023\210\001\001\022\032\n\rcustom_label2\030\024 \001(\tH" + + "\024\210\001\001\022\032\n\rcustom_label3\030\025 \001(\tH\025\210\001\001\022\032\n\rcust" + + "om_label4\030\026 \001(\tH\026\210\001\001\022\023\n\006clicks\030\027 \001(\003H\027\210\001" + + "\001\022\030\n\013impressions\030\030 \001(\003H\030\210\001\001\022\037\n\022click_thr" + + "ough_rate\030\031 \001(\001H\031\210\001\001\022\030\n\013conversions\030\032 \001(" + + "\001H\032\210\001\001\0225\n\020conversion_value\030\033 \001(\0132\033.googl" + + "e.shopping.type.Price\022\034\n\017conversion_rate" + + "\030\034 \001(\001H\033\210\001\001B\023\n\021_marketing_methodB\030\n\026_cus" + + "tomer_country_codeB\r\n\013_account_idB\027\n\025_ac" + + "count_display_nameB\026\n\024_external_account_" + + "idB\013\n\t_offer_idB\010\n\006_titleB\010\n\006_brandB\016\n\014_" + + "category_l1B\016\n\014_category_l2B\016\n\014_category" + + "_l3B\016\n\014_category_l4B\016\n\014_category_l5B\022\n\020_" + + "product_type_l1B\022\n\020_product_type_l2B\022\n\020_" + + "product_type_l3B\022\n\020_product_type_l4B\022\n\020_" + + "product_type_l5B\020\n\016_custom_label0B\020\n\016_cu" + + "stom_label1B\020\n\016_custom_label2B\020\n\016_custom" + + "_label3B\020\n\016_custom_label4B\t\n\007_clicksB\016\n\014" + + "_impressionsB\025\n\023_click_through_rateB\016\n\014_" + + "conversionsB\022\n\020_conversion_rate\"\326\025\n\013Prod" + + "uctView\022\017\n\002id\030\001 \001(\tH\000\210\001\001\022?\n\007channel\030\034 \001(" + + "\0162).google.shopping.type.Channel.Channel" + + "EnumH\001\210\001\001\022\032\n\rlanguage_code\030\002 \001(\tH\002\210\001\001\022\027\n" + + "\nfeed_label\030\003 \001(\tH\003\210\001\001\022\025\n\010offer_id\030\004 \001(\t" + + "H\004\210\001\001\022\022\n\005title\030\005 \001(\tH\005\210\001\001\022\022\n\005brand\030\006 \001(\t" + + "H\006\210\001\001\022\030\n\013category_l1\030\007 \001(\tH\007\210\001\001\022\030\n\013categ" + + "ory_l2\030\010 \001(\tH\010\210\001\001\022\030\n\013category_l3\030\t \001(\tH\t" + + "\210\001\001\022\030\n\013category_l4\030\n \001(\tH\n\210\001\001\022\030\n\013categor" + + "y_l5\030\013 \001(\tH\013\210\001\001\022\034\n\017product_type_l1\030\014 \001(\t" + + "H\014\210\001\001\022\034\n\017product_type_l2\030\r \001(\tH\r\210\001\001\022\034\n\017p" + + "roduct_type_l3\030\016 \001(\tH\016\210\001\001\022\034\n\017product_typ" + + "e_l4\030\017 \001(\tH\017\210\001\001\022\034\n\017product_type_l5\030\020 \001(\t" + + "H\020\210\001\001\022*\n\005price\030\021 \001(\0132\033.google.shopping.t" + + "ype.Price\022\026\n\tcondition\030\022 \001(\tH\021\210\001\001\022\031\n\014ava" + + "ilability\030\023 \001(\tH\022\210\001\001\022\033\n\016shipping_label\030\024" + + " \001(\tH\023\210\001\001\022\014\n\004gtin\030\025 \003(\t\022\032\n\ritem_group_id" + + "\030\026 \001(\tH\024\210\001\001\022\033\n\016thumbnail_link\030\027 \001(\tH\025\210\001\001" + + "\0221\n\rcreation_time\030\030 \001(\0132\032.google.protobu" + + "f.Timestamp\022*\n\017expiration_date\030\031 \001(\0132\021.g" + + "oogle.type.Date\022\207\001\n#aggregated_reporting" + + "_context_status\030\032 \001(\0162U.google.shopping." + + "merchant.reports.v1beta.ProductView.Aggr" + + "egatedReportingContextStatusH\026\210\001\001\022S\n\013ite" + + "m_issues\030\033 \003(\0132>.google.shopping.merchan" + + "t.reports.v1beta.ProductView.ItemIssue\032\263" + + "\t\n\tItemIssue\022Z\n\004type\030\001 \001(\0132L.google.shop" + + "ping.merchant.reports.v1beta.ProductView" + + ".ItemIssue.ItemIssueType\022b\n\010severity\030\002 \001" + + "(\0132P.google.shopping.merchant.reports.v1" + + "beta.ProductView.ItemIssue.ItemIssueSeve" + + "rity\022k\n\nresolution\030\003 \001(\0162R.google.shoppi" + + "ng.merchant.reports.v1beta.ProductView.I" + + "temIssue.ItemIssueResolutionH\000\210\001\001\032e\n\rIte" + + "mIssueType\022\021\n\004code\030\001 \001(\tH\000\210\001\001\022 \n\023canonic" + + "al_attribute\030\002 \001(\tH\001\210\001\001B\007\n\005_codeB\026\n\024_can" + + "onical_attribute\032\227\005\n\021ItemIssueSeverity\022\231" + + "\001\n\036severity_per_reporting_context\030\001 \003(\0132" + + "q.google.shopping.merchant.reports.v1bet" + + "a.ProductView.ItemIssue.ItemIssueSeverit" + + "y.IssueSeverityPerReportingContext\022\212\001\n\023a" + + "ggregated_severity\030\002 \001(\0162h.google.shoppi" + + "ng.merchant.reports.v1beta.ProductView.I" + + "temIssue.ItemIssueSeverity.AggregatedIss" + + "ueSeverityH\000\210\001\001\032\317\001\n IssueSeverityPerRepo" + + "rtingContext\022[\n\021reporting_context\030\001 \001(\0162" + + ";.google.shopping.type.ReportingContext." + + "ReportingContextEnumH\000\210\001\001\022\035\n\025disapproved" + + "_countries\030\002 \003(\t\022\031\n\021demoted_countries\030\003 " + + "\003(\tB\024\n\022_reporting_context\"o\n\027AggregatedI" + + "ssueSeverity\022)\n%AGGREGATED_ISSUE_SEVERIT" + + "Y_UNSPECIFIED\020\000\022\017\n\013DISAPPROVED\020\001\022\013\n\007DEMO" + + "TED\020\002\022\013\n\007PENDING\020\003B\026\n\024_aggregated_severi" + + "ty\"i\n\023ItemIssueResolution\022%\n!ITEM_ISSUE_" + + "RESOLUTION_UNSPECIFIED\020\000\022\023\n\017MERCHANT_ACT" + + "ION\020\001\022\026\n\022PENDING_PROCESSING\020\002B\r\n\013_resolu" + + "tion\"\251\001\n AggregatedReportingContextStatu" + + "s\0223\n/AGGREGATED_REPORTING_CONTEXT_STATUS" + + "_UNSPECIFIED\020\000\022\037\n\033NOT_ELIGIBLE_OR_DISAPP" + + "ROVED\020\001\022\013\n\007PENDING\020\002\022\024\n\020ELIGIBLE_LIMITED" + + "\020\003\022\014\n\010ELIGIBLE\020\004B\005\n\003_idB\n\n\010_channelB\020\n\016_" + + "language_codeB\r\n\013_feed_labelB\013\n\t_offer_i" + + "dB\010\n\006_titleB\010\n\006_brandB\016\n\014_category_l1B\016\n" + + "\014_category_l2B\016\n\014_category_l3B\016\n\014_catego" + + "ry_l4B\016\n\014_category_l5B\022\n\020_product_type_l" + + "1B\022\n\020_product_type_l2B\022\n\020_product_type_l" + + "3B\022\n\020_product_type_l4B\022\n\020_product_type_l" + + "5B\014\n\n_conditionB\017\n\r_availabilityB\021\n\017_shi" + + "pping_labelB\020\n\016_item_group_idB\021\n\017_thumbn" + + "ail_linkB&\n$_aggregated_reporting_contex" + + "t_status\"\201\006\n\037PriceCompetitivenessProduct" + + "View\022 \n\023report_country_code\030\001 \001(\tH\000\210\001\001\022\017" + + "\n\002id\030\002 \001(\tH\001\210\001\001\022\025\n\010offer_id\030\003 \001(\tH\002\210\001\001\022\022" + + "\n\005title\030\004 \001(\tH\003\210\001\001\022\022\n\005brand\030\005 \001(\tH\004\210\001\001\022\030" + + "\n\013category_l1\030\006 \001(\tH\005\210\001\001\022\030\n\013category_l2\030" + + "\007 \001(\tH\006\210\001\001\022\030\n\013category_l3\030\010 \001(\tH\007\210\001\001\022\030\n\013" + + "category_l4\030\t \001(\tH\010\210\001\001\022\030\n\013category_l5\030\n " + + "\001(\tH\t\210\001\001\022\034\n\017product_type_l1\030\013 \001(\tH\n\210\001\001\022\034" + + "\n\017product_type_l2\030\014 \001(\tH\013\210\001\001\022\034\n\017product_" + + "type_l3\030\r \001(\tH\014\210\001\001\022\034\n\017product_type_l4\030\016 " + + "\001(\tH\r\210\001\001\022\034\n\017product_type_l5\030\017 \001(\tH\016\210\001\001\022*" + + "\n\005price\030\020 \001(\0132\033.google.shopping.type.Pri" + + "ce\0224\n\017benchmark_price\030\021 \001(\0132\033.google.sho" + + "pping.type.PriceB\026\n\024_report_country_code" + + "B\005\n\003_idB\013\n\t_offer_idB\010\n\006_titleB\010\n\006_brand" + + "B\016\n\014_category_l1B\016\n\014_category_l2B\016\n\014_cat" + + "egory_l3B\016\n\014_category_l4B\016\n\014_category_l5" + + "B\022\n\020_product_type_l1B\022\n\020_product_type_l2" + + "B\022\n\020_product_type_l3B\022\n\020_product_type_l4" + + "B\022\n\020_product_type_l5\"\320\007\n\030PriceInsightsPr" + + "oductView\022\017\n\002id\030\001 \001(\tH\000\210\001\001\022\025\n\010offer_id\030\002" + + " \001(\tH\001\210\001\001\022\022\n\005title\030\003 \001(\tH\002\210\001\001\022\022\n\005brand\030\004" + + " \001(\tH\003\210\001\001\022\030\n\013category_l1\030\005 \001(\tH\004\210\001\001\022\030\n\013c" + + "ategory_l2\030\006 \001(\tH\005\210\001\001\022\030\n\013category_l3\030\007 \001" + + "(\tH\006\210\001\001\022\030\n\013category_l4\030\010 \001(\tH\007\210\001\001\022\030\n\013cat" + + "egory_l5\030\t \001(\tH\010\210\001\001\022\034\n\017product_type_l1\030\n" + + " \001(\tH\t\210\001\001\022\034\n\017product_type_l2\030\013 \001(\tH\n\210\001\001\022" + + "\034\n\017product_type_l3\030\014 \001(\tH\013\210\001\001\022\034\n\017product" + + "_type_l4\030\r \001(\tH\014\210\001\001\022\034\n\017product_type_l5\030\016" + + " \001(\tH\r\210\001\001\022*\n\005price\030\017 \001(\0132\033.google.shoppi" + + "ng.type.Price\0224\n\017suggested_price\030\020 \001(\0132\033" + + ".google.shopping.type.Price\0222\n%predicted" + + "_impressions_change_fraction\030\021 \001(\001H\016\210\001\001\022" + + "-\n predicted_clicks_change_fraction\030\022 \001(" + + "\001H\017\210\001\001\0222\n%predicted_conversions_change_f" + + "raction\030\023 \001(\001H\020\210\001\001B\005\n\003_idB\013\n\t_offer_idB\010" + + "\n\006_titleB\010\n\006_brandB\016\n\014_category_l1B\016\n\014_c" + + "ategory_l2B\016\n\014_category_l3B\016\n\014_category_" + + "l4B\016\n\014_category_l5B\022\n\020_product_type_l1B\022" + + "\n\020_product_type_l2B\022\n\020_product_type_l3B\022" + + "\n\020_product_type_l4B\022\n\020_product_type_l5B(" + + "\n&_predicted_impressions_change_fraction" + + "B#\n!_predicted_clicks_change_fractionB(\n" + + "&_predicted_conversions_change_fraction\"" + + "\210\014\n\035BestSellersProductClusterView\022&\n\013rep" + + "ort_date\030\001 \001(\0132\021.google.type.Date\022q\n\022rep" + + "ort_granularity\030\002 \001(\0162P.google.shopping." + + "merchant.reports.v1beta.ReportGranularit" + + "y.ReportGranularityEnumH\000\210\001\001\022 \n\023report_c" + + "ountry_code\030\003 \001(\tH\001\210\001\001\022\037\n\022report_categor" + + "y_id\030\004 \001(\003H\002\210\001\001\022\017\n\002id\030\005 \001(\tH\003\210\001\001\022\022\n\005titl" + + "e\030\006 \001(\tH\004\210\001\001\022\022\n\005brand\030\007 \001(\tH\005\210\001\001\022\030\n\013cate" + + "gory_l1\030\010 \001(\tH\006\210\001\001\022\030\n\013category_l2\030\t \001(\tH" + + "\007\210\001\001\022\030\n\013category_l3\030\n \001(\tH\010\210\001\001\022\030\n\013catego" + + "ry_l4\030\013 \001(\tH\t\210\001\001\022\030\n\013category_l5\030\014 \001(\tH\n\210" + + "\001\001\022\025\n\rvariant_gtins\030\r \003(\t\022u\n\020inventory_s" + + "tatus\030\016 \001(\0162V.google.shopping.merchant.r" + + "eports.v1beta.BestSellersProductClusterV" + + "iew.InventoryStatusH\013\210\001\001\022{\n\026brand_invent" + + "ory_status\030\017 \001(\0162V.google.shopping.merch" + "ant.reports.v1beta.BestSellersProductClu" - + "sterView.InventoryStatusH\013\210\001\001\022{\n\026brand_i" - + "nventory_status\030\017 \001(\0162V.google.shopping." - + "merchant.reports.v1beta.BestSellersProdu" - + "ctClusterView.InventoryStatusH\014\210\001\001\022\021\n\004ra" - + "nk\030\020 \001(\003H\r\210\001\001\022\032\n\rprevious_rank\030\021 \001(\003H\016\210\001" - + "\001\022U\n\017relative_demand\030\022 \001(\01627.google.shop" - + "ping.merchant.reports.v1beta.RelativeDem" - + "andH\017\210\001\001\022^\n\030previous_relative_demand\030\023 \001" - + "(\01627.google.shopping.merchant.reports.v1" - + "beta.RelativeDemandH\020\210\001\001\022f\n\026relative_dem" - + "and_change\030\024 \001(\0162A.google.shopping.merch" - + "ant.reports.v1beta.RelativeDemandChangeT" - + "ypeH\021\210\001\001\"i\n\017InventoryStatus\022 \n\034INVENTORY" - + "_STATUS_UNSPECIFIED\020\000\022\014\n\010IN_STOCK\020\001\022\020\n\014O" - + "UT_OF_STOCK\020\002\022\024\n\020NOT_IN_INVENTORY\020\003B\025\n\023_" - + "report_granularityB\026\n\024_report_country_co" - + "deB\025\n\023_report_category_idB\005\n\003_idB\010\n\006_tit" - + "leB\010\n\006_brandB\016\n\014_category_l1B\016\n\014_categor" - + "y_l2B\016\n\014_category_l3B\016\n\014_category_l4B\016\n\014" - + "_category_l5B\023\n\021_inventory_statusB\031\n\027_br" - + "and_inventory_statusB\007\n\005_rankB\020\n\016_previo" - + "us_rankB\022\n\020_relative_demandB\033\n\031_previous" - + "_relative_demandB\031\n\027_relative_demand_cha" - + "nge\"\217\006\n\024BestSellersBrandView\022&\n\013report_d" - + "ate\030\001 \001(\0132\021.google.type.Date\022[\n\022report_g" - + "ranularity\030\002 \001(\0162:.google.shopping.merch" - + "ant.reports.v1beta.ReportGranularityH\000\210\001" - + "\001\022 \n\023report_country_code\030\003 \001(\tH\001\210\001\001\022\037\n\022r" - + "eport_category_id\030\004 \001(\003H\002\210\001\001\022\017\n\002id\030\005 \001(\t" - + "H\003\210\001\001\022\022\n\005brand\030\006 \001(\tH\004\210\001\001\022\021\n\004rank\030\007 \001(\003H" - + "\005\210\001\001\022\032\n\rprevious_rank\030\010 \001(\003H\006\210\001\001\022U\n\017rela" - + "tive_demand\030\t \001(\01627.google.shopping.merc" - + "hant.reports.v1beta.RelativeDemandH\007\210\001\001\022" - + "^\n\030previous_relative_demand\030\n \001(\01627.goog" - + "le.shopping.merchant.reports.v1beta.Rela" - + "tiveDemandH\010\210\001\001\022f\n\026relative_demand_chang" - + "e\030\013 \001(\0162A.google.shopping.merchant.repor" - + "ts.v1beta.RelativeDemandChangeTypeH\t\210\001\001B" - + "\025\n\023_report_granularityB\026\n\024_report_countr" - + "y_codeB\025\n\023_report_category_idB\005\n\003_idB\010\n\006" - + "_brandB\007\n\005_rankB\020\n\016_previous_rankB\022\n\020_re" - + "lative_demandB\033\n\031_previous_relative_dema" - + "ndB\031\n\027_relative_demand_change\"\337\001\n\031NonPro" - + "ductPerformanceView\022\037\n\004date\030\001 \001(\0132\021.goog" - + "le.type.Date\022\037\n\004week\030\002 \001(\0132\021.google.type" - + ".Date\022\023\n\006clicks\030\003 \001(\003H\000\210\001\001\022\030\n\013impression" - + "s\030\004 \001(\003H\001\210\001\001\022\037\n\022click_through_rate\030\005 \001(\001" - + "H\002\210\001\001B\t\n\007_clicksB\016\n\014_impressionsB\025\n\023_cli" - + "ck_through_rate\"\356\004\n#CompetitiveVisibilit" - + "yCompetitorView\022\037\n\004date\030\001 \001(\0132\021.google.t" - + "ype.Date\022\023\n\006domain\030\002 \001(\tH\000\210\001\001\022\033\n\016is_your" - + "_domain\030\003 \001(\010H\001\210\001\001\022 \n\023report_country_cod" - + "e\030\004 \001(\tH\002\210\001\001\022\037\n\022report_category_id\030\005 \001(\003" - + "H\003\210\001\001\022S\n\016traffic_source\030\006 \001(\01626.google.s" - + "hopping.merchant.reports.v1beta.TrafficS" - + "ourceH\004\210\001\001\022\021\n\004rank\030\007 \001(\003H\005\210\001\001\022\036\n\021ads_org" - + "anic_ratio\030\010 \001(\001H\006\210\001\001\022\036\n\021page_overlap_ra" - + "te\030\t \001(\001H\007\210\001\001\022!\n\024higher_position_rate\030\n " - + "\001(\001H\010\210\001\001\022 \n\023relative_visibility\030\013 \001(\001H\t\210" - + "\001\001B\t\n\007_domainB\021\n\017_is_your_domainB\026\n\024_rep" - + "ort_country_codeB\025\n\023_report_category_idB" - + "\021\n\017_traffic_sourceB\007\n\005_rankB\024\n\022_ads_orga" - + "nic_ratioB\024\n\022_page_overlap_rateB\027\n\025_high" - + "er_position_rateB\026\n\024_relative_visibility" - + "\"\265\004\n$CompetitiveVisibilityTopMerchantVie" - + "w\022\037\n\004date\030\001 \001(\0132\021.google.type.Date\022\023\n\006do" - + "main\030\002 \001(\tH\000\210\001\001\022\033\n\016is_your_domain\030\003 \001(\010H" - + "\001\210\001\001\022 \n\023report_country_code\030\004 \001(\tH\002\210\001\001\022\037" - + "\n\022report_category_id\030\005 \001(\003H\003\210\001\001\022S\n\016traff" - + "ic_source\030\006 \001(\01626.google.shopping.mercha" - + "nt.reports.v1beta.TrafficSourceH\004\210\001\001\022\021\n\004" - + "rank\030\007 \001(\003H\005\210\001\001\022\036\n\021ads_organic_ratio\030\010 \001" - + "(\001H\006\210\001\001\022\036\n\021page_overlap_rate\030\t \001(\001H\007\210\001\001\022" - + "!\n\024higher_position_rate\030\n \001(\001H\010\210\001\001B\t\n\007_d" - + "omainB\021\n\017_is_your_domainB\026\n\024_report_coun" - + "try_codeB\025\n\023_report_category_idB\021\n\017_traf" - + "fic_sourceB\007\n\005_rankB\024\n\022_ads_organic_rati" - + "oB\024\n\022_page_overlap_rateB\027\n\025_higher_posit" - + "ion_rate\"\305\003\n\"CompetitiveVisibilityBenchm" - + "arkView\022\037\n\004date\030\001 \001(\0132\021.google.type.Date" - + "\022 \n\023report_country_code\030\002 \001(\tH\000\210\001\001\022\037\n\022re" - + "port_category_id\030\003 \001(\003H\001\210\001\001\022S\n\016traffic_s" - + "ource\030\004 \001(\01626.google.shopping.merchant.r" - + "eports.v1beta.TrafficSourceH\002\210\001\001\022)\n\034your" - + "_domain_visibility_trend\030\005 \001(\001H\003\210\001\001\0220\n#c" - + "ategory_benchmark_visibility_trend\030\006 \001(\001" - + "H\004\210\001\001B\026\n\024_report_country_codeB\025\n\023_report" - + "_category_idB\021\n\017_traffic_sourceB\037\n\035_your" - + "_domain_visibility_trendB&\n$_category_be" - + "nchmark_visibility_trend*P\n\021ReportGranul" - + "arity\022\"\n\036REPORT_GRANULARITY_UNSPECIFIED\020" - + "\000\022\n\n\006WEEKLY\020\001\022\013\n\007MONTHLY\020\002*m\n\016RelativeDe" - + "mand\022\037\n\033RELATIVE_DEMAND_UNSPECIFIED\020\000\022\014\n" - + "\010VERY_LOW\020\n\022\007\n\003LOW\020\024\022\n\n\006MEDIUM\020\036\022\010\n\004HIGH" - + "\020(\022\r\n\tVERY_HIGH\0202*h\n\030RelativeDemandChang" - + "eType\022+\n\'RELATIVE_DEMAND_CHANGE_TYPE_UNS" - + "PECIFIED\020\000\022\n\n\006SINKER\020\001\022\010\n\004FLAT\020\002\022\t\n\005RISE" - + "R\020\003*N\n\rTrafficSource\022\036\n\032TRAFFIC_SOURCE_U" - + "NSPECIFIED\020\000\022\013\n\007ORGANIC\020\001\022\007\n\003ADS\020\002\022\007\n\003AL" - + "L\020\0032\234\002\n\rReportService\022\301\001\n\006Search\0226.googl" - + "e.shopping.merchant.reports.v1beta.Searc" - + "hRequest\0327.google.shopping.merchant.repo" - + "rts.v1beta.SearchResponse\"F\332A\006parent\202\323\344\223" - + "\0027\"2/reports/v1beta/{parent=accounts/*}/" - + "reports:search:\001*\032G\312A\032merchantapi.google" - + "apis.com\322A\'https://www.googleapis.com/au" - + "th/contentB\215\001\n+com.google.shopping.merch" - + "ant.reports.v1betaB\014ReportsProtoP\001ZNgoog" - + "le.golang.org/genproto/googleapis/shoppi" - + "ng/merchant/reports/v1beta;reportsb\006prot" - + "o3" + + "sterView.InventoryStatusH\014\210\001\001\022\021\n\004rank\030\020 " + + "\001(\003H\r\210\001\001\022\032\n\rprevious_rank\030\021 \001(\003H\016\210\001\001\022h\n\017" + + "relative_demand\030\022 \001(\0162J.google.shopping." + + "merchant.reports.v1beta.RelativeDemand.R" + + "elativeDemandEnumH\017\210\001\001\022q\n\030previous_relat" + + "ive_demand\030\023 \001(\0162J.google.shopping.merch" + + "ant.reports.v1beta.RelativeDemand.Relati" + + "veDemandEnumH\020\210\001\001\022\203\001\n\026relative_demand_ch" + + "ange\030\024 \001(\0162^.google.shopping.merchant.re" + + "ports.v1beta.RelativeDemandChangeType.Re" + + "lativeDemandChangeTypeEnumH\021\210\001\001\"i\n\017Inven" + + "toryStatus\022 \n\034INVENTORY_STATUS_UNSPECIFI" + + "ED\020\000\022\014\n\010IN_STOCK\020\001\022\020\n\014OUT_OF_STOCK\020\002\022\024\n\020" + + "NOT_IN_INVENTORY\020\003B\025\n\023_report_granularit" + + "yB\026\n\024_report_country_codeB\025\n\023_report_cat" + + "egory_idB\005\n\003_idB\010\n\006_titleB\010\n\006_brandB\016\n\014_" + + "category_l1B\016\n\014_category_l2B\016\n\014_category" + + "_l3B\016\n\014_category_l4B\016\n\014_category_l5B\023\n\021_" + + "inventory_statusB\031\n\027_brand_inventory_sta" + + "tusB\007\n\005_rankB\020\n\016_previous_rankB\022\n\020_relat" + + "ive_demandB\033\n\031_previous_relative_demandB" + + "\031\n\027_relative_demand_change\"\351\006\n\024BestSelle" + + "rsBrandView\022&\n\013report_date\030\001 \001(\0132\021.googl" + + "e.type.Date\022q\n\022report_granularity\030\002 \001(\0162" + + "P.google.shopping.merchant.reports.v1bet" + + "a.ReportGranularity.ReportGranularityEnu" + + "mH\000\210\001\001\022 \n\023report_country_code\030\003 \001(\tH\001\210\001\001" + + "\022\037\n\022report_category_id\030\004 \001(\003H\002\210\001\001\022\017\n\002id\030" + + "\005 \001(\tH\003\210\001\001\022\022\n\005brand\030\006 \001(\tH\004\210\001\001\022\021\n\004rank\030\007" + + " \001(\003H\005\210\001\001\022\032\n\rprevious_rank\030\010 \001(\003H\006\210\001\001\022h\n" + + "\017relative_demand\030\t \001(\0162J.google.shopping" + + ".merchant.reports.v1beta.RelativeDemand." + + "RelativeDemandEnumH\007\210\001\001\022q\n\030previous_rela" + + "tive_demand\030\n \001(\0162J.google.shopping.merc" + + "hant.reports.v1beta.RelativeDemand.Relat" + + "iveDemandEnumH\010\210\001\001\022\203\001\n\026relative_demand_c" + + "hange\030\013 \001(\0162^.google.shopping.merchant.r" + + "eports.v1beta.RelativeDemandChangeType.R" + + "elativeDemandChangeTypeEnumH\t\210\001\001B\025\n\023_rep" + + "ort_granularityB\026\n\024_report_country_codeB" + + "\025\n\023_report_category_idB\005\n\003_idB\010\n\006_brandB" + + "\007\n\005_rankB\020\n\016_previous_rankB\022\n\020_relative_" + + "demandB\033\n\031_previous_relative_demandB\031\n\027_" + + "relative_demand_change\"\337\001\n\031NonProductPer" + + "formanceView\022\037\n\004date\030\001 \001(\0132\021.google.type" + + ".Date\022\037\n\004week\030\002 \001(\0132\021.google.type.Date\022\023" + + "\n\006clicks\030\003 \001(\003H\000\210\001\001\022\030\n\013impressions\030\004 \001(\003" + + "H\001\210\001\001\022\037\n\022click_through_rate\030\005 \001(\001H\002\210\001\001B\t" + + "\n\007_clicksB\016\n\014_impressionsB\025\n\023_click_thro" + + "ugh_rate\"\200\005\n#CompetitiveVisibilityCompet" + + "itorView\022\037\n\004date\030\001 \001(\0132\021.google.type.Dat" + + "e\022\023\n\006domain\030\002 \001(\tH\000\210\001\001\022\033\n\016is_your_domain" + + "\030\003 \001(\010H\001\210\001\001\022 \n\023report_country_code\030\004 \001(\t" + + "H\002\210\001\001\022\037\n\022report_category_id\030\005 \001(\003H\003\210\001\001\022e" + + "\n\016traffic_source\030\006 \001(\0162H.google.shopping" + + ".merchant.reports.v1beta.TrafficSource.T" + + "rafficSourceEnumH\004\210\001\001\022\021\n\004rank\030\007 \001(\003H\005\210\001\001" + + "\022\036\n\021ads_organic_ratio\030\010 \001(\001H\006\210\001\001\022\036\n\021page" + + "_overlap_rate\030\t \001(\001H\007\210\001\001\022!\n\024higher_posit" + + "ion_rate\030\n \001(\001H\010\210\001\001\022 \n\023relative_visibili" + + "ty\030\013 \001(\001H\t\210\001\001B\t\n\007_domainB\021\n\017_is_your_dom" + + "ainB\026\n\024_report_country_codeB\025\n\023_report_c" + + "ategory_idB\021\n\017_traffic_sourceB\007\n\005_rankB\024" + + "\n\022_ads_organic_ratioB\024\n\022_page_overlap_ra" + + "teB\027\n\025_higher_position_rateB\026\n\024_relative" + + "_visibility\"\307\004\n$CompetitiveVisibilityTop" + + "MerchantView\022\037\n\004date\030\001 \001(\0132\021.google.type" + + ".Date\022\023\n\006domain\030\002 \001(\tH\000\210\001\001\022\033\n\016is_your_do" + + "main\030\003 \001(\010H\001\210\001\001\022 \n\023report_country_code\030\004" + + " \001(\tH\002\210\001\001\022\037\n\022report_category_id\030\005 \001(\003H\003\210" + + "\001\001\022e\n\016traffic_source\030\006 \001(\0162H.google.shop" + + "ping.merchant.reports.v1beta.TrafficSour" + + "ce.TrafficSourceEnumH\004\210\001\001\022\021\n\004rank\030\007 \001(\003H" + + "\005\210\001\001\022\036\n\021ads_organic_ratio\030\010 \001(\001H\006\210\001\001\022\036\n\021" + + "page_overlap_rate\030\t \001(\001H\007\210\001\001\022!\n\024higher_p" + + "osition_rate\030\n \001(\001H\010\210\001\001B\t\n\007_domainB\021\n\017_i" + + "s_your_domainB\026\n\024_report_country_codeB\025\n" + + "\023_report_category_idB\021\n\017_traffic_sourceB" + + "\007\n\005_rankB\024\n\022_ads_organic_ratioB\024\n\022_page_" + + "overlap_rateB\027\n\025_higher_position_rate\"\327\003" + + "\n\"CompetitiveVisibilityBenchmarkView\022\037\n\004" + + "date\030\001 \001(\0132\021.google.type.Date\022 \n\023report_" + + "country_code\030\002 \001(\tH\000\210\001\001\022\037\n\022report_catego" + + "ry_id\030\003 \001(\003H\001\210\001\001\022e\n\016traffic_source\030\004 \001(\016" + + "2H.google.shopping.merchant.reports.v1be" + + "ta.TrafficSource.TrafficSourceEnumH\002\210\001\001\022" + + ")\n\034your_domain_visibility_trend\030\005 \001(\001H\003\210" + + "\001\001\0220\n#category_benchmark_visibility_tren" + + "d\030\006 \001(\001H\004\210\001\001B\026\n\024_report_country_codeB\025\n\023" + + "_report_category_idB\021\n\017_traffic_sourceB\037" + + "\n\035_your_domain_visibility_trendB&\n$_cate" + + "gory_benchmark_visibility_trend\"e\n\017Marke" + + "tingMethod\"R\n\023MarketingMethodEnum\022%\n!MAR" + + "KETING_METHOD_ENUM_UNSPECIFIED\020\000\022\013\n\007ORGA" + + "NIC\020\001\022\007\n\003ADS\020\002\"n\n\021ReportGranularity\"Y\n\025R" + + "eportGranularityEnum\022\'\n#REPORT_GRANULARI" + + "TY_ENUM_UNSPECIFIED\020\000\022\n\n\006WEEKLY\020\001\022\013\n\007MON" + + "THLY\020\002\"\210\001\n\016RelativeDemand\"v\n\022RelativeDem" + + "andEnum\022$\n RELATIVE_DEMAND_ENUM_UNSPECIF" + + "IED\020\000\022\014\n\010VERY_LOW\020\n\022\007\n\003LOW\020\024\022\n\n\006MEDIUM\020\036" + + "\022\010\n\004HIGH\020(\022\r\n\tVERY_HIGH\0202\"\215\001\n\030RelativeDe" + + "mandChangeType\"q\n\034RelativeDemandChangeTy" + + "peEnum\0220\n,RELATIVE_DEMAND_CHANGE_TYPE_EN" + + "UM_UNSPECIFIED\020\000\022\n\n\006SINKER\020\001\022\010\n\004FLAT\020\002\022\t" + + "\n\005RISER\020\003\"h\n\rTrafficSource\"W\n\021TrafficSou" + + "rceEnum\022#\n\037TRAFFIC_SOURCE_ENUM_UNSPECIFI" + + "ED\020\000\022\013\n\007ORGANIC\020\001\022\007\n\003ADS\020\002\022\007\n\003ALL\020\0032\234\002\n\r" + + "ReportService\022\301\001\n\006Search\0226.google.shoppi" + + "ng.merchant.reports.v1beta.SearchRequest" + + "\0327.google.shopping.merchant.reports.v1be" + + "ta.SearchResponse\"F\332A\006parent\202\323\344\223\0027\"2/rep" + + "orts/v1beta/{parent=accounts/*}/reports:" + + "search:\001*\032G\312A\032merchantapi.googleapis.com" + + "\322A\'https://www.googleapis.com/auth/conte" + + "ntB\212\001\n+com.google.shopping.merchant.repo" + + "rts.v1betaB\014ReportsProtoP\001ZKcloud.google" + + ".com/go/shopping/merchant/reports/apiv1b" + + "eta/reportspb;reportspbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -469,7 +501,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_reports_v1beta_ProductPerformanceView_descriptor, new java.lang.String[] { - "Destination", + "MarketingMethod", "Date", "Week", "CustomerCountryCode", @@ -500,7 +532,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Conversions", "ConversionValue", "ConversionRate", - "Destination", + "MarketingMethod", "CustomerCountryCode", "AccountId", "AccountDisplayName", @@ -536,6 +568,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_shopping_merchant_reports_v1beta_ProductView_descriptor, new java.lang.String[] { "Id", + "Channel", "LanguageCode", "FeedLabel", "OfferId", @@ -560,9 +593,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ThumbnailLink", "CreationTime", "ExpirationDate", - "AggregatedDestinationStatus", + "AggregatedReportingContextStatus", "ItemIssues", "Id", + "Channel", "LanguageCode", "FeedLabel", "OfferId", @@ -583,7 +617,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ShippingLabel", "ItemGroupId", "ThumbnailLink", - "AggregatedDestinationStatus", + "AggregatedReportingContextStatus", }); internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_descriptor = internal_static_google_shopping_merchant_reports_v1beta_ProductView_descriptor @@ -613,17 +647,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_descriptor, new java.lang.String[] { - "SeverityPerDestination", "AggregatedSeverity", "AggregatedSeverity", + "SeverityPerReportingContext", "AggregatedSeverity", "AggregatedSeverity", }); - internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerDestination_descriptor = + internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_descriptor = internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_descriptor .getNestedTypes() .get(0); - internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerDestination_fieldAccessorTable = + internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerDestination_descriptor, + internal_static_google_shopping_merchant_reports_v1beta_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_descriptor, new java.lang.String[] { - "Destination", "DisapprovedCountries", "DemotedCountries", "Destination", + "ReportingContext", "DisapprovedCountries", "DemotedCountries", "ReportingContext", }); internal_static_google_shopping_merchant_reports_v1beta_PriceCompetitivenessProductView_descriptor = getDescriptor().getMessageTypes().get(5); @@ -689,8 +723,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PredictedImpressionsChangeFraction", "PredictedClicksChangeFraction", "PredictedConversionsChangeFraction", - "PredictedGrossProfitChangeFraction", - "PredictedMonthlyGrossProfitChange", "Id", "OfferId", "Title", @@ -708,7 +740,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PredictedImpressionsChangeFraction", "PredictedClicksChangeFraction", "PredictedConversionsChangeFraction", - "PredictedGrossProfitChangeFraction", }); internal_static_google_shopping_merchant_reports_v1beta_BestSellersProductClusterView_descriptor = getDescriptor().getMessageTypes().get(7); @@ -870,6 +901,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "YourDomainVisibilityTrend", "CategoryBenchmarkVisibilityTrend", }); + internal_static_google_shopping_merchant_reports_v1beta_MarketingMethod_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_shopping_merchant_reports_v1beta_MarketingMethod_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1beta_MarketingMethod_descriptor, + new java.lang.String[] {}); + internal_static_google_shopping_merchant_reports_v1beta_ReportGranularity_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_shopping_merchant_reports_v1beta_ReportGranularity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1beta_ReportGranularity_descriptor, + new java.lang.String[] {}); + internal_static_google_shopping_merchant_reports_v1beta_RelativeDemand_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_shopping_merchant_reports_v1beta_RelativeDemand_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1beta_RelativeDemand_descriptor, + new java.lang.String[] {}); + internal_static_google_shopping_merchant_reports_v1beta_RelativeDemandChangeType_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_shopping_merchant_reports_v1beta_RelativeDemandChangeType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1beta_RelativeDemandChangeType_descriptor, + new java.lang.String[] {}); + internal_static_google_shopping_merchant_reports_v1beta_TrafficSource_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_shopping_merchant_reports_v1beta_TrafficSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1beta_TrafficSource_descriptor, + new java.lang.String[] {}); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/SearchRequest.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/SearchRequest.java index 42eea9bd17d3..770dc16dd056 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/SearchRequest.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/SearchRequest.java @@ -182,11 +182,11 @@ public com.google.protobuf.ByteString getQueryBytes() { * * *
-   * Number of `ReportRows` to retrieve in a single page. Defaults to the
-   * maximum of 1000. Values above 1000 are coerced to 1000.
+   * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
+   * the maximum of 1000. Values above 1000 are coerced to 1000.
    * 
* - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -203,12 +203,13 @@ public int getPageSize() { * * *
-   * Token of the page to retrieve. If not specified, the first page of results
-   * is returned. In order to request the next page of results, the value
-   * obtained from `next_page_token` in the previous response should be used.
+   * Optional. Token of the page to retrieve. If not specified, the first page
+   * of results is returned. In order to request the next page of results, the
+   * value obtained from `next_page_token` in the previous response should be
+   * used.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -228,12 +229,13 @@ public java.lang.String getPageToken() { * * *
-   * Token of the page to retrieve. If not specified, the first page of results
-   * is returned. In order to request the next page of results, the value
-   * obtained from `next_page_token` in the previous response should be used.
+   * Optional. Token of the page to retrieve. If not specified, the first page
+   * of results is returned. In order to request the next page of results, the
+   * value obtained from `next_page_token` in the previous response should be
+   * used.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -905,11 +907,11 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { * * *
-     * Number of `ReportRows` to retrieve in a single page. Defaults to the
-     * maximum of 1000. Values above 1000 are coerced to 1000.
+     * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
+     * the maximum of 1000. Values above 1000 are coerced to 1000.
      * 
* - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -921,11 +923,11 @@ public int getPageSize() { * * *
-     * Number of `ReportRows` to retrieve in a single page. Defaults to the
-     * maximum of 1000. Values above 1000 are coerced to 1000.
+     * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
+     * the maximum of 1000. Values above 1000 are coerced to 1000.
      * 
* - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -941,11 +943,11 @@ public Builder setPageSize(int value) { * * *
-     * Number of `ReportRows` to retrieve in a single page. Defaults to the
-     * maximum of 1000. Values above 1000 are coerced to 1000.
+     * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
+     * the maximum of 1000. Values above 1000 are coerced to 1000.
      * 
* - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -961,12 +963,13 @@ public Builder clearPageSize() { * * *
-     * Token of the page to retrieve. If not specified, the first page of results
-     * is returned. In order to request the next page of results, the value
-     * obtained from `next_page_token` in the previous response should be used.
+     * Optional. Token of the page to retrieve. If not specified, the first page
+     * of results is returned. In order to request the next page of results, the
+     * value obtained from `next_page_token` in the previous response should be
+     * used.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -985,12 +988,13 @@ public java.lang.String getPageToken() { * * *
-     * Token of the page to retrieve. If not specified, the first page of results
-     * is returned. In order to request the next page of results, the value
-     * obtained from `next_page_token` in the previous response should be used.
+     * Optional. Token of the page to retrieve. If not specified, the first page
+     * of results is returned. In order to request the next page of results, the
+     * value obtained from `next_page_token` in the previous response should be
+     * used.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -1009,12 +1013,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Token of the page to retrieve. If not specified, the first page of results
-     * is returned. In order to request the next page of results, the value
-     * obtained from `next_page_token` in the previous response should be used.
+     * Optional. Token of the page to retrieve. If not specified, the first page
+     * of results is returned. In order to request the next page of results, the
+     * value obtained from `next_page_token` in the previous response should be
+     * used.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1032,12 +1037,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Token of the page to retrieve. If not specified, the first page of results
-     * is returned. In order to request the next page of results, the value
-     * obtained from `next_page_token` in the previous response should be used.
+     * Optional. Token of the page to retrieve. If not specified, the first page
+     * of results is returned. In order to request the next page of results, the
+     * value obtained from `next_page_token` in the previous response should be
+     * used.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1051,12 +1057,13 @@ public Builder clearPageToken() { * * *
-     * Token of the page to retrieve. If not specified, the first page of results
-     * is returned. In order to request the next page of results, the value
-     * obtained from `next_page_token` in the previous response should be used.
+     * Optional. Token of the page to retrieve. If not specified, the first page
+     * of results is returned. In order to request the next page of results, the
+     * value obtained from `next_page_token` in the previous response should be
+     * used.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/SearchRequestOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/SearchRequestOrBuilder.java index 008057e089ec..3ea862f724a1 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/SearchRequestOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/SearchRequestOrBuilder.java @@ -87,11 +87,11 @@ public interface SearchRequestOrBuilder * * *
-   * Number of `ReportRows` to retrieve in a single page. Defaults to the
-   * maximum of 1000. Values above 1000 are coerced to 1000.
+   * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
+   * the maximum of 1000. Values above 1000 are coerced to 1000.
    * 
* - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -101,12 +101,13 @@ public interface SearchRequestOrBuilder * * *
-   * Token of the page to retrieve. If not specified, the first page of results
-   * is returned. In order to request the next page of results, the value
-   * obtained from `next_page_token` in the previous response should be used.
+   * Optional. Token of the page to retrieve. If not specified, the first page
+   * of results is returned. In order to request the next page of results, the
+   * value obtained from `next_page_token` in the previous response should be
+   * used.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -115,12 +116,13 @@ public interface SearchRequestOrBuilder * * *
-   * Token of the page to retrieve. If not specified, the first page of results
-   * is returned. In order to request the next page of results, the value
-   * obtained from `next_page_token` in the previous response should be used.
+   * Optional. Token of the page to retrieve. If not specified, the first page
+   * of results is returned. In order to request the next page of results, the
+   * value obtained from `next_page_token` in the previous response should be
+   * used.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/TrafficSource.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/TrafficSource.java index bb6707018105..f516aca52d52 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/TrafficSource.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/TrafficSource.java @@ -25,176 +25,592 @@ * Traffic source of impressions in the Competitive visibility report. * * - * Protobuf enum {@code google.shopping.merchant.reports.v1beta.TrafficSource} + * Protobuf type {@code google.shopping.merchant.reports.v1beta.TrafficSource} */ -public enum TrafficSource implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Not specified.
-   * 
- * - * TRAFFIC_SOURCE_UNSPECIFIED = 0; - */ - TRAFFIC_SOURCE_UNSPECIFIED(0), - /** - * - * - *
-   * Organic traffic.
-   * 
- * - * ORGANIC = 1; - */ - ORGANIC(1), - /** - * - * - *
-   * Traffic from ads.
-   * 
- * - * ADS = 2; - */ - ADS(2), - /** - * - * - *
-   * Organic and ads traffic.
-   * 
- * - * ALL = 3; - */ - ALL(3), - UNRECOGNIZED(-1), - ; +public final class TrafficSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1beta.TrafficSource) + TrafficSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrafficSource.newBuilder() to construct. + private TrafficSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrafficSource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrafficSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_TrafficSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_TrafficSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1beta.TrafficSource.class, + com.google.shopping.merchant.reports.v1beta.TrafficSource.Builder.class); + } /** * * *
-   * Not specified.
-   * 
- * - * TRAFFIC_SOURCE_UNSPECIFIED = 0; - */ - public static final int TRAFFIC_SOURCE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Organic traffic.
-   * 
- * - * ORGANIC = 1; - */ - public static final int ORGANIC_VALUE = 1; - /** - * - * - *
-   * Traffic from ads.
+   * Traffic source values.
    * 
* - * ADS = 2; + * Protobuf enum {@code google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum} */ - public static final int ADS_VALUE = 2; + public enum TrafficSourceEnum implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * TRAFFIC_SOURCE_ENUM_UNSPECIFIED = 0; + */ + TRAFFIC_SOURCE_ENUM_UNSPECIFIED(0), + /** + * + * + *
+     * Organic traffic.
+     * 
+ * + * ORGANIC = 1; + */ + ORGANIC(1), + /** + * + * + *
+     * Traffic from ads.
+     * 
+ * + * ADS = 2; + */ + ADS(2), + /** + * + * + *
+     * Organic and ads traffic.
+     * 
+ * + * ALL = 3; + */ + ALL(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * TRAFFIC_SOURCE_ENUM_UNSPECIFIED = 0; + */ + public static final int TRAFFIC_SOURCE_ENUM_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Organic traffic.
+     * 
+ * + * ORGANIC = 1; + */ + public static final int ORGANIC_VALUE = 1; + /** + * + * + *
+     * Traffic from ads.
+     * 
+ * + * ADS = 2; + */ + public static final int ADS_VALUE = 2; + /** + * + * + *
+     * Organic and ads traffic.
+     * 
+ * + * ALL = 3; + */ + public static final int ALL_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 TrafficSourceEnum 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 TrafficSourceEnum forNumber(int value) { + switch (value) { + case 0: + return TRAFFIC_SOURCE_ENUM_UNSPECIFIED; + case 1: + return ORGANIC; + case 2: + return ADS; + case 3: + return ALL; + 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 TrafficSourceEnum findValueByNumber(int number) { + return TrafficSourceEnum.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.merchant.reports.v1beta.TrafficSource.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final TrafficSourceEnum[] VALUES = values(); + + public static TrafficSourceEnum 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 TrafficSourceEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum) + } + + 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.merchant.reports.v1beta.TrafficSource)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1beta.TrafficSource other = + (com.google.shopping.merchant.reports.v1beta.TrafficSource) 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.merchant.reports.v1beta.TrafficSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.TrafficSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.TrafficSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.TrafficSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.TrafficSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.TrafficSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.TrafficSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.TrafficSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.TrafficSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.TrafficSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.TrafficSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.TrafficSource 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.merchant.reports.v1beta.TrafficSource 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; + } /** * * *
-   * Organic and ads traffic.
+   * Traffic source of impressions in the Competitive visibility report.
    * 
* - * ALL = 3; + * Protobuf type {@code google.shopping.merchant.reports.v1beta.TrafficSource} */ - public static final int ALL_VALUE = 3; + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1beta.TrafficSource) + com.google.shopping.merchant.reports.v1beta.TrafficSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_TrafficSource_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.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_TrafficSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1beta.TrafficSource.class, + com.google.shopping.merchant.reports.v1beta.TrafficSource.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 TrafficSource valueOf(int value) { - return forNumber(value); - } + // Construct using com.google.shopping.merchant.reports.v1beta.TrafficSource.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 TrafficSource forNumber(int value) { - switch (value) { - case 0: - return TRAFFIC_SOURCE_UNSPECIFIED; - case 1: - return ORGANIC; - case 2: - return ADS; - case 3: - return ALL; - default: - return null; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); } - } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TrafficSource findValueByNumber(int number) { - return TrafficSource.forNumber(number); - } - }; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_TrafficSource_descriptor; + } - 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 com.google.shopping.merchant.reports.v1beta.TrafficSource getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1beta.TrafficSource.getDefaultInstance(); } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.TrafficSource build() { + com.google.shopping.merchant.reports.v1beta.TrafficSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.shopping.merchant.reports.v1beta.ReportsProto.getDescriptor() - .getEnumTypes() - .get(3); - } + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.TrafficSource buildPartial() { + com.google.shopping.merchant.reports.v1beta.TrafficSource result = + new com.google.shopping.merchant.reports.v1beta.TrafficSource(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } - private static final TrafficSource[] VALUES = values(); + @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 TrafficSource 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); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1beta.TrafficSource) { + return mergeFrom((com.google.shopping.merchant.reports.v1beta.TrafficSource) other); + } else { + super.mergeFrom(other); + return this; + } } - return VALUES[desc.getIndex()]; + + public Builder mergeFrom(com.google.shopping.merchant.reports.v1beta.TrafficSource other) { + if (other == com.google.shopping.merchant.reports.v1beta.TrafficSource.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.merchant.reports.v1beta.TrafficSource) } - private final int value; + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1beta.TrafficSource) + private static final com.google.shopping.merchant.reports.v1beta.TrafficSource DEFAULT_INSTANCE; - private TrafficSource(int value) { - this.value = value; + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1beta.TrafficSource(); } - // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1beta.TrafficSource) + public static com.google.shopping.merchant.reports.v1beta.TrafficSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrafficSource 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.merchant.reports.v1beta.TrafficSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/TrafficSourceOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/TrafficSourceOrBuilder.java new file mode 100644 index 000000000000..0e19384d6a47 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/TrafficSourceOrBuilder.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/merchant/reports/v1beta/reports.proto + +package com.google.shopping.merchant.reports.v1beta; + +public interface TrafficSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1beta.TrafficSource) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/Channel.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/Channel.java new file mode 100644 index 000000000000..5ee421705cc4 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-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-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/ChannelOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/ChannelOrBuilder.java new file mode 100644 index 000000000000..06aee0067e60 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-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-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/Destination.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/Destination.java index 555c9b9c713f..ba5b3940a70a 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/Destination.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-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-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/DestinationOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/DestinationOrBuilder.java new file mode 100644 index 000000000000..ccec8f709da9 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-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-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/Price.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/Price.java index 64a582473d71..daf2dbcc9282 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/Price.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-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-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/PriceOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/PriceOrBuilder.java index d071d52a528a..daad96b93806 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/PriceOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-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-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/ReportingContext.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/ReportingContext.java new file mode 100644 index 000000000000..891f8b1ea958 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-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-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/ReportingContextOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/ReportingContextOrBuilder.java new file mode 100644 index 000000000000..e3650d6489ef --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-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-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/TypesProto.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/TypesProto.java index c0d5a014193f..39d4af4b9716 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/type/TypesProto.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-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-reports/proto-google-shopping-merchant-reports-v1beta/src/main/proto/google/shopping/merchant/reports/v1beta/reports.proto b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/proto/google/shopping/merchant/reports/v1beta/reports.proto index d1c657390e4c..c2059a07f1b2 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/proto/google/shopping/merchant/reports/v1beta/reports.proto +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/proto/google/shopping/merchant/reports/v1beta/reports.proto @@ -23,7 +23,7 @@ import "google/protobuf/timestamp.proto"; import "google/shopping/type/types.proto"; import "google/type/date.proto"; -option go_package = "google.golang.org/genproto/googleapis/shopping/merchant/reports/v1beta;reports"; +option go_package = "cloud.google.com/go/shopping/merchant/reports/apiv1beta/reportspb;reportspb"; option java_multiple_files = true; option java_outer_classname = "ReportsProto"; option java_package = "com.google.shopping.merchant.reports.v1beta"; @@ -46,76 +46,6 @@ service ReportService { } } -// Granularity of the Best sellers report. Best sellers reports are computed -// over a week and a month timeframe. -enum ReportGranularity { - // Not specified. - REPORT_GRANULARITY_UNSPECIFIED = 0; - - // Report is computed over a week timeframe. - WEEKLY = 1; - - // Report is computed over a month timeframe. - MONTHLY = 2; -} - -// Relative demand of a product cluster or brand in the Best sellers report. -enum RelativeDemand { - // Not specified. - RELATIVE_DEMAND_UNSPECIFIED = 0; - - // Demand is 0-5% of the demand of the highest ranked product cluster or - // brand. - VERY_LOW = 10; - - // Demand is 6-10% of the demand of the highest ranked product cluster or - // brand. - LOW = 20; - - // Demand is 11-20% of the demand of the highest ranked product cluster or - // brand. - MEDIUM = 30; - - // Demand is 21-50% of the demand of the highest ranked product cluster or - // brand. - HIGH = 40; - - // Demand is 51-100% of the demand of the highest ranked product cluster or - // brand. - VERY_HIGH = 50; -} - -// Relative demand of a product cluster or brand in the Best sellers report -// compared to the previous time period. -enum RelativeDemandChangeType { - // Not specified. - RELATIVE_DEMAND_CHANGE_TYPE_UNSPECIFIED = 0; - - // Relative demand is lower than the previous time period. - SINKER = 1; - - // Relative demand is equal to the previous time period. - FLAT = 2; - - // Relative demand is higher than the previous time period. - RISER = 3; -} - -// Traffic source of impressions in the Competitive visibility report. -enum TrafficSource { - // Not specified. - TRAFFIC_SOURCE_UNSPECIFIED = 0; - - // Organic traffic. - ORGANIC = 1; - - // Traffic from ads. - ADS = 2; - - // Organic and ads traffic. - ALL = 3; -} - // Request message for the `ReportService.Search` method. message SearchRequest { // Required. Id of the account making the call. Must be a standalone account @@ -129,14 +59,15 @@ message SearchRequest { // fields. string query = 2 [(google.api.field_behavior) = REQUIRED]; - // Number of `ReportRows` to retrieve in a single page. Defaults to the - // maximum of 1000. Values above 1000 are coerced to 1000. - int32 page_size = 3; + // Optional. Number of `ReportRows` to retrieve in a single page. Defaults to + // the maximum of 1000. Values above 1000 are coerced to 1000. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; - // Token of the page to retrieve. If not specified, the first page of results - // is returned. In order to request the next page of results, the value - // obtained from `next_page_token` in the previous response should be used. - string page_token = 4; + // Optional. Token of the page to retrieve. If not specified, the first page + // of results is returned. In order to request the next page of results, the + // value obtained from `next_page_token` in the previous response should be + // used. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; } // Response message for the `ReportService.Search` method. @@ -204,11 +135,8 @@ message ReportRow { // Values are only set for fields requested explicitly in the request's search // query. message ProductPerformanceView { - // Destination of the product to which metrics apply. Segment. - // - // Product performance data is not available for the LOCAL_INVENTORY_ADS - // destination. - optional google.shopping.type.Destination destination = 1; + // Marketing method to which metrics apply. Segment. + optional MarketingMethod.MarketingMethodEnum marketing_method = 1; // Date in the merchant timezone to which metrics apply. Segment. // @@ -362,6 +290,7 @@ message ProductPerformanceView { // // Values are only set for fields requested explicitly in the request's search // query. +// message ProductView { // Item issue associated with the product. message ItemIssue { @@ -377,39 +306,41 @@ message ProductView { // How the issue affects the serving of the product. message ItemIssueSeverity { - // Issue severity per destination. - message IssueSeverityPerDestination { - // Destination the issue applies to. - optional google.shopping.type.Destination destination = 1; - - // List of disapproved countries in the destination, represented in ISO - // 3166 format. + // Issue severity per reporting context. + message IssueSeverityPerReportingContext { + // Reporting context the issue applies to. + optional google.shopping.type.ReportingContext.ReportingContextEnum + reporting_context = 1; + + // List of disapproved countries in the reporting context, represented + // in ISO 3166 format. repeated string disapproved_countries = 2; - // List of demoted countries in the destination, represented in ISO 3166 - // format. + // List of demoted countries in the reporting context, represented in + // ISO 3166 format. repeated string demoted_countries = 3; } - // Issue severity aggregated for all destinations. + // Issue severity aggregated for all reporting contexts. enum AggregatedIssueSeverity { // Not specified. AGGREGATED_ISSUE_SEVERITY_UNSPECIFIED = 0; - // Issue disapproves the product in at least one destination. + // Issue disapproves the product in at least one reporting context. DISAPPROVED = 1; - // Issue demotes the product in all destinations it affects. + // Issue demotes the product in all reporting contexts it affects. DEMOTED = 2; // Issue resolution is `PENDING_PROCESSING`. PENDING = 3; } - // Issue severity per destination. - repeated IssueSeverityPerDestination severity_per_destination = 1; + // Issue severity per reporting context. + repeated IssueSeverityPerReportingContext severity_per_reporting_context = + 1; - // Aggregated severity of the issue for all destinations it affects. + // Aggregated severity of the issue for all reporting contexts it affects. // // **This field can be used for filtering the results.** optional AggregatedIssueSeverity aggregated_severity = 2; @@ -439,9 +370,9 @@ message ProductView { optional ItemIssueResolution resolution = 3; } - // Status of the product aggregated for all destinations. + // Status of the product aggregated for all reporting contexts. // - // Here's an example of how the aggregated destination status is computed: + // Here's an example of how the aggregated status is computed: // // Free listings | Shopping Ads | Status // --------------|--------------|------------------------------ @@ -452,31 +383,33 @@ message ProductView { // Disapproved | Disapproved | NOT_ELIGIBLE_OR_DISAPPROVED // // - // - enum AggregatedDestinationStatus { + enum AggregatedReportingContextStatus { // Not specified. - AGGREGATED_DESTINATION_STATUS_UNSPECIFIED = 0; + AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED = 0; - // Product is not eligible or is disapproved for all destinations. + // Product is not eligible or is disapproved for all reporting contexts. NOT_ELIGIBLE_OR_DISAPPROVED = 1; - // Product's status is pending in all destinations. + // Product's status is pending in all reporting contexts. PENDING = 2; - // Product is eligible for some (but not all) destinations. + // Product is eligible for some (but not all) reporting contexts. ELIGIBLE_LIMITED = 3; - // Product is eligible for all destinations. + // Product is eligible for all reporting contexts. ELIGIBLE = 4; } - // REST ID of the product, in the form of languageCode~feedLabel~offerId. - // Merchant API methods that operate on products take this as their `name` - // parameter. + // REST ID of the product, in the form of + // `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate + // on products take this as their `name` parameter. // // Required in the `SELECT` clause. optional string id = 1; + // Channel of the product. Can be `ONLINE` or `LOCAL`. + optional google.shopping.type.Channel.ChannelEnum channel = 28; + // Language code of the product in BCP 47 format. optional string language_code = 2; @@ -565,8 +498,9 @@ message ProductView { // Expiration date for the product, specified on insertion. google.type.Date expiration_date = 25; - // Aggregated destination status. - optional AggregatedDestinationStatus aggregated_destination_status = 26; + // Aggregated status. + optional AggregatedReportingContextStatus + aggregated_reporting_context_status = 26; // List of item issues for the product. // @@ -591,8 +525,9 @@ message PriceCompetitivenessProductView { // Required in the `SELECT` clause. optional string report_country_code = 1; - // REST ID of the product, in the form of languageCode~feedLabel~offerId. Can - // be used to join data with the `product_view` table. + // REST ID of the product, in the form of + // `channel~languageCode~feedLabel~offerId`. Can be used to join data with the + // `product_view` table. // // Required in the `SELECT` clause. optional string id = 2; @@ -662,8 +597,9 @@ message PriceCompetitivenessProductView { // Values are only set for fields requested explicitly in the request's search // query. message PriceInsightsProductView { - // REST ID of the product, in the form of languageCode~feedLabel~offerId. Can - // be used to join data with the `product_view` table. + // REST ID of the product, in the form of + // `channel~languageCode~feedLabel~offerId`. Can be used to join data with the + // `product_view` table. // // Required in the `SELECT` clause. optional string id = 1; @@ -737,15 +673,6 @@ message PriceInsightsProductView { // suggested price compared to current active price. For example, 0.05 is a 5% // predicted increase in conversions). optional double predicted_conversions_change_fraction = 19; - - // Predicted change in gross profit as a fraction after introducing the - // suggested price compared to current active price. For example, 0.05 is a 5% - // predicted increase in gross profit. - optional double predicted_gross_profit_change_fraction = 20; - - // Predicted change in gross profit after introducing the suggested price - // for a month compared to current active price. - google.shopping.type.Price predicted_monthly_gross_profit_change = 21; } // Fields available for query in `best_sellers_product_cluster_view` table. @@ -789,7 +716,7 @@ message BestSellersProductClusterView { // // Required in the `SELECT` clause. Condition on `report_granularity` is // required in the `WHERE` clause. - optional ReportGranularity report_granularity = 2; + optional ReportGranularity.ReportGranularityEnum report_granularity = 2; // Country where the ranking is calculated. Represented in the ISO 3166 // format. @@ -868,15 +795,16 @@ message BestSellersProductClusterView { // Estimated demand in relation to the product cluster with the highest // popularity rank in the same category and country. - optional RelativeDemand relative_demand = 18; + optional RelativeDemand.RelativeDemandEnum relative_demand = 18; // Estimated demand in relation to the product cluster with the highest // popularity rank in the same category and country in the previous week or // month. - optional RelativeDemand previous_relative_demand = 19; + optional RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; // Change in the estimated demand. Whether it rose, sank or remained flat. - optional RelativeDemandChangeType relative_demand_change = 20; + optional RelativeDemandChangeType.RelativeDemandChangeTypeEnum + relative_demand_change = 20; } // Fields available for query in `best_sellers_brand_view` table. @@ -902,7 +830,7 @@ message BestSellersBrandView { // // Required in the `SELECT` clause. Condition on `report_granularity` is // required in the `WHERE` clause. - optional ReportGranularity report_granularity = 2; + optional ReportGranularity.ReportGranularityEnum report_granularity = 2; // Country where the ranking is calculated. Represented in the ISO 3166 // format. @@ -935,14 +863,15 @@ message BestSellersBrandView { // Estimated demand in relation to the brand with the highest popularity rank // in the same category and country. - optional RelativeDemand relative_demand = 9; + optional RelativeDemand.RelativeDemandEnum relative_demand = 9; // Estimated demand in relation to the brand with the highest popularity rank // in the same category and country in the previous week or month. - optional RelativeDemand previous_relative_demand = 10; + optional RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; // Change in the estimated demand. Whether it rose, sank or remained flat. - optional RelativeDemandChangeType relative_demand_change = 11; + optional RelativeDemandChangeType.RelativeDemandChangeTypeEnum + relative_demand_change = 11; } // Fields available for query in `non_product_performance_view` table. @@ -1023,7 +952,7 @@ message CompetitiveVisibilityCompetitorView { // Traffic source of impressions. // // Required in the `SELECT` clause. - optional TrafficSource traffic_source = 6; + optional TrafficSource.TrafficSourceEnum traffic_source = 6; // Position of the domain in the similar businesses ranking for the selected // keys (`date`, `report_category_id`, `report_country_code`, @@ -1111,7 +1040,7 @@ message CompetitiveVisibilityTopMerchantView { // Traffic source of impressions. // // Required in the `SELECT` clause. - optional TrafficSource traffic_source = 6; + optional TrafficSource.TrafficSourceEnum traffic_source = 6; // Position of the domain in the top merchants ranking for the selected keys // (`date`, `report_category_id`, `report_country_code`, `traffic_source`) @@ -1177,7 +1106,7 @@ message CompetitiveVisibilityBenchmarkView { // Traffic source of impressions. // // Required in the `SELECT` clause. - optional TrafficSource traffic_source = 4; + optional TrafficSource.TrafficSourceEnum traffic_source = 4; // Change in visibility based on impressions for your domain with respect to // the start of the selected time range (or first day with non-zero @@ -1194,3 +1123,101 @@ message CompetitiveVisibilityBenchmarkView { // Cannot be filtered on in the 'WHERE' clause. optional double category_benchmark_visibility_trend = 6; } + +// Marketing method used to promote your products on Google (organic versus +// ads). +message MarketingMethod { + // Marketing method values. + enum MarketingMethodEnum { + // Not specified. + MARKETING_METHOD_ENUM_UNSPECIFIED = 0; + + // Organic marketing. + ORGANIC = 1; + + // Ads-based marketing. + ADS = 2; + } +} + +// Granularity of the Best sellers report. Best sellers reports are computed +// over a week and a month timeframe. +message ReportGranularity { + // Report granularity values. + enum ReportGranularityEnum { + // Not specified. + REPORT_GRANULARITY_ENUM_UNSPECIFIED = 0; + + // Report is computed over a week timeframe. + WEEKLY = 1; + + // Report is computed over a month timeframe. + MONTHLY = 2; + } +} + +// Relative demand of a product cluster or brand in the Best sellers report. +message RelativeDemand { + // Relative demand values. + enum RelativeDemandEnum { + // Not specified. + RELATIVE_DEMAND_ENUM_UNSPECIFIED = 0; + + // Demand is 0-5% of the demand of the highest ranked product cluster or + // brand. + VERY_LOW = 10; + + // Demand is 6-10% of the demand of the highest ranked product cluster or + // brand. + LOW = 20; + + // Demand is 11-20% of the demand of the highest ranked product cluster or + // brand. + MEDIUM = 30; + + // Demand is 21-50% of the demand of the highest ranked product cluster or + // brand. + HIGH = 40; + + // Demand is 51-100% of the demand of the highest ranked product cluster or + // brand. + VERY_HIGH = 50; + } +} + +// Relative demand of a product cluster or brand in the Best sellers report +// compared to the previous time period. +message RelativeDemandChangeType { + // Relative demand change type values. + enum RelativeDemandChangeTypeEnum { + // Not specified. + RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED = 0; + + // Relative demand is lower than the previous time period. + SINKER = 1; + + // Relative demand is equal to the previous time period. + FLAT = 2; + + // Relative demand is higher than the previous time period. + RISER = 3; + } +} + +// Traffic source of impressions in the Competitive visibility report. +message TrafficSource { + // Traffic source values. + enum TrafficSourceEnum { + // Not specified. + TRAFFIC_SOURCE_ENUM_UNSPECIFIED = 0; + + // Organic traffic. + ORGANIC = 1; + + // Traffic from ads. + ADS = 2; + + // Organic and ads traffic. + ALL = 3; + } +}